Condividi tramite


AllocationAdapter Class

Definition

Only intended for use by generated reflected code.

[Android.Runtime.Register("android/renderscript/AllocationAdapter", DoNotGenerateAcw=true)]
public class AllocationAdapter : Android.Renderscripts.Allocation
[<Android.Runtime.Register("android/renderscript/AllocationAdapter", DoNotGenerateAcw=true)>]
type AllocationAdapter = class
    inherit Allocation
Inheritance
AllocationAdapter
Attributes

Remarks

Only intended for use by generated reflected code.

This member is deprecated. Renderscript has been deprecated in API level 31. Please refer to the migration guide for the proposed alternatives.

Java documentation for android.renderscript.AllocationAdapter.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

AllocationAdapter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

ByteBuffer

Gets or creates a ByteBuffer that contains the raw data of the current Allocation.

(Inherited from Allocation)
BytesSize

Get the size of the Allocation in bytes.

(Inherited from Allocation)
Class

Returns the runtime class of this Object.

(Inherited from Object)
Element

Get the android.renderscript.Element of the android.renderscript.Type of the Allocation.

(Inherited from Allocation)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Name

setName assigns a name to an object.

(Inherited from BaseObj)
PeerReference (Inherited from Object)
Stride

Gets the stride of the Allocation.

(Inherited from Allocation)
Surface

Returns the handle to a raw buffer that is being managed by the screen compositor. -or- Associate a android.view.Surface with this Allocation.

(Inherited from Allocation)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TimeStamp

Get the timestamp for the most recent buffer held by this Allocation.

(Inherited from Allocation)
Type

Get the android.renderscript.Type of the Allocation.

(Inherited from Allocation)
Usage

Get the usage flags of the Allocation.

(Inherited from Allocation)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Copy1DRangeFrom(Int32, Int32, Allocation, Int32)

Copy part of an Allocation into this Allocation.

(Inherited from Allocation)
Copy1DRangeFrom(Int32, Int32, Byte[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFrom(Int32, Int32, Int16[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFrom(Int32, Int32, Int32[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFrom(Int32, Int32, Object)

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFrom(Int32, Int32, Single[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFromUnchecked(Int32, Int32, Byte[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFromUnchecked(Int32, Int32, Int16[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFromUnchecked(Int32, Int32, Int32[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFromUnchecked(Int32, Int32, Object)

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeFromUnchecked(Int32, Int32, Single[])

Copy an array into a 1D region of this Allocation.

(Inherited from Allocation)
Copy1DRangeTo(Int32, Int32, Byte[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeTo(Int32, Int32, Int16[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeTo(Int32, Int32, Int32[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeTo(Int32, Int32, Object)

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeTo(Int32, Int32, Single[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeToUnchecked(Int32, Int32, Byte[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeToUnchecked(Int32, Int32, Int16[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeToUnchecked(Int32, Int32, Int32[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeToUnchecked(Int32, Int32, Object)

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy1DRangeToUnchecked(Int32, Int32, Single[])

Copy a 1D region of this Allocation into an array.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Bitmap)

Copy a android.graphics.Bitmap into an Allocation.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Allocation, Int32, Int32)

Copy a rectangular region from an Allocation into a rectangular region in this Allocation.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Byte[])

Copy from an array into a rectangular region in this Allocation.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int16[])

Copy from an array into a rectangular region in this Allocation.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int32[])

Copy from an array into a rectangular region in this Allocation.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Object)

Copy from an array into a rectangular region in this Allocation.

(Inherited from Allocation)
Copy2DRangeFrom(Int32, Int32, Int32, Int32, Single[])

Copy from an array into a rectangular region in this Allocation.

(Inherited from Allocation)
Copy2DRangeTo(Int32, Int32, Int32, Int32, Byte[])

Copy from a rectangular region in this Allocation into an array.

(Inherited from Allocation)
Copy2DRangeTo(Int32, Int32, Int32, Int32, Int16[])

Copy from a rectangular region in this Allocation into an array.

(Inherited from Allocation)
Copy2DRangeTo(Int32, Int32, Int32, Int32, Int32[])

Copy from a rectangular region in this Allocation into an array.

(Inherited from Allocation)
Copy2DRangeTo(Int32, Int32, Int32, Int32, Object)

Copy from a rectangular region in this Allocation into an array.

(Inherited from Allocation)
Copy2DRangeTo(Int32, Int32, Int32, Int32, Single[])

Copy from a rectangular region in this Allocation into an array.

(Inherited from Allocation)
Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Allocation, Int32, Int32, Int32)

Copy a rectangular region into the allocation from another allocation.

(Inherited from Allocation)
Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Object)

Copy from an array into a 3D region in this Allocation.

(Inherited from Allocation)
Copy3DRangeTo(Int32, Int32, Int32, Int32, Int32, Int32, Object) (Inherited from Allocation)
CopyFrom(Allocation)

Copy an Allocation from an Allocation.

(Inherited from Allocation)
CopyFrom(BaseObj[])

Copy an array of RS objects to the Allocation.

(Inherited from Allocation)
CopyFrom(Bitmap)

Copy into an Allocation from a android.graphics.Bitmap.

(Inherited from Allocation)
CopyFrom(Byte[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFrom(Int16[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFrom(Int32[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFrom(Object)

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFrom(Single[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFromUnchecked(Byte[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFromUnchecked(Int16[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFromUnchecked(Int32[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFromUnchecked(Object)

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyFromUnchecked(Single[])

Copy into this Allocation from an array.

(Inherited from Allocation)
CopyTo(Bitmap)

Copy from the Allocation into a android.graphics.Bitmap.

(Inherited from Allocation)
CopyTo(Byte[])

Copy from the Allocation into a byte array.

(Inherited from Allocation)
CopyTo(Int16[])

Copy from the Allocation into a short array.

(Inherited from Allocation)
CopyTo(Int32[])

Copy from the Allocation into a int array.

(Inherited from Allocation)
CopyTo(Object)

Copy from the Allocation into an array.

(Inherited from Allocation)
CopyTo(Single[])

Copy from the Allocation into a float array.

(Inherited from Allocation)
Create1D(RenderScript, Allocation)
Create2D(RenderScript, Allocation)
CreateTyped(RenderScript, Allocation, Type)

Create an arbitrary window into the base allocation.

Destroy()

Frees any native resources associated with this object.

(Inherited from BaseObj)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GenerateMipmaps()

Generate a mipmap chain.

(Inherited from Allocation)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
IoReceive()

Receive the latest input into the Allocation.

(Inherited from Allocation)
IoSend()

Send a buffer to the output stream.

(Inherited from Allocation)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Resize(Int32)
Obsolete.

Resize a 1D allocation.

(Inherited from Allocation)
SetAutoPadding(Boolean)

Specifies the mapping between the Allocation's cells and an array's elements when data is copied from the Allocation to the array, or vice-versa.

(Inherited from Allocation)
SetFace(Type+CubemapFace)

Set the active Face.

SetFromFieldPacker(Int32, FieldPacker)

This is only intended to be used by auto-generated code reflected from the RenderScript script files and should not be used by developers.

(Inherited from Allocation)
SetFromFieldPacker(Int32, Int32, FieldPacker)

This is only intended to be used by auto-generated code reflected from the RenderScript script files and should not be used by developers.

(Inherited from Allocation)
SetFromFieldPacker(Int32, Int32, Int32, Int32, FieldPacker)

This is only intended to be used by auto-generated code reflected from the RenderScript script files and should not be used by developers.

(Inherited from Allocation)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetLOD(Int32)

Set the active LOD.

SetOnBufferAvailableListener(Allocation+IOnBufferAvailableListener)

Set a notification handler for #USAGE_IO_INPUT.

(Inherited from Allocation)
SetX(Int32)

Set the active X.

SetY(Int32)

Set the active Y.

SetZ(Int32)

Set the active Z.

SyncAll(Int32)

Propagate changes from one usage of the Allocation to the other usages of the Allocation.

(Inherited from Allocation)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Events

BufferAvailable (Inherited from Allocation)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to