Allocation Allocation Class

Definition

[Android.Runtime.Register("android/renderscript/Allocation", ApiSince=11, DoNotGenerateAcw=true)]
public class Allocation : Android.Renderscripts.BaseObj
type Allocation = class
    inherit BaseObj
Inheritance
Derived
Attributes

Remarks

Android platform documentation

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

Allocation(IntPtr, JniHandleOwnership) Allocation(IntPtr, JniHandleOwnership)

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

Properties

ByteBuffer ByteBuffer
BytesSize BytesSize

Get the size of the Allocation in bytes.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Element Element

Get the Element of the Type of the Allocation.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Name Name Inherited from BaseObj
PeerReference PeerReference Inherited from Object
Stride Stride
Surface Surface

Returns the handle to a raw buffer that is being managed by the screen compositor.

ThresholdClass ThresholdClass

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

ThresholdType ThresholdType

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

TimeStamp TimeStamp
Type Type

Get the Type of the Allocation.

Usage Usage

Get the usage flags of the Allocation.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

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

Copy part of an Allocation into this Allocation.

Copy1DRangeFrom(Int32, Int32, Byte[]) Copy1DRangeFrom(Int32, Int32, Byte[])

Copy an array into part of this Allocation.

Copy1DRangeFrom(Int32, Int32, Int16[]) Copy1DRangeFrom(Int32, Int32, Int16[])

Copy an array into part of this Allocation.

Copy1DRangeFrom(Int32, Int32, Int32[]) Copy1DRangeFrom(Int32, Int32, Int32[])

Copy an array into part of this Allocation.

Copy1DRangeFrom(Int32, Int32, Object) Copy1DRangeFrom(Int32, Int32, Object)

Copy an array into part of this Allocation.

Copy1DRangeFrom(Int32, Int32, Single[]) Copy1DRangeFrom(Int32, Int32, Single[])

Copy an array into part of this Allocation.

Copy1DRangeFromUnchecked(Int32, Int32, Byte[]) Copy1DRangeFromUnchecked(Int32, Int32, Byte[])

Copy an array into part of this Allocation.

Copy1DRangeFromUnchecked(Int32, Int32, Int16[]) Copy1DRangeFromUnchecked(Int32, Int32, Int16[])

Copy an array into part of this Allocation.

Copy1DRangeFromUnchecked(Int32, Int32, Int32[]) Copy1DRangeFromUnchecked(Int32, Int32, Int32[])

Copy an array into part of this Allocation.

Copy1DRangeFromUnchecked(Int32, Int32, Object) Copy1DRangeFromUnchecked(Int32, Int32, Object)

Copy an array into part of this Allocation.

Copy1DRangeFromUnchecked(Int32, Int32, Single[]) Copy1DRangeFromUnchecked(Int32, Int32, Single[])

Copy an array into part of this Allocation.

Copy1DRangeTo(Int32, Int32, Byte[]) Copy1DRangeTo(Int32, Int32, Byte[])
Copy1DRangeTo(Int32, Int32, Int16[]) Copy1DRangeTo(Int32, Int32, Int16[])
Copy1DRangeTo(Int32, Int32, Int32[]) Copy1DRangeTo(Int32, Int32, Int32[])
Copy1DRangeTo(Int32, Int32, Object) Copy1DRangeTo(Int32, Int32, Object)
Copy1DRangeTo(Int32, Int32, Single[]) Copy1DRangeTo(Int32, Int32, Single[])
Copy1DRangeToUnchecked(Int32, Int32, Byte[]) Copy1DRangeToUnchecked(Int32, Int32, Byte[])
Copy1DRangeToUnchecked(Int32, Int32, Int16[]) Copy1DRangeToUnchecked(Int32, Int32, Int16[])
Copy1DRangeToUnchecked(Int32, Int32, Int32[]) Copy1DRangeToUnchecked(Int32, Int32, Int32[])
Copy1DRangeToUnchecked(Int32, Int32, Object) Copy1DRangeToUnchecked(Int32, Int32, Object)
Copy1DRangeToUnchecked(Int32, Int32, Single[]) Copy1DRangeToUnchecked(Int32, Int32, Single[])
Copy2DRangeFrom(Int32, Int32, Bitmap) Copy2DRangeFrom(Int32, Int32, Bitmap)

Copy a Bitmap into an Allocation.

Copy2DRangeFrom(Int32, Int32, Int32, Int32, Allocation, Int32, Int32) Copy2DRangeFrom(Int32, Int32, Int32, Int32, Allocation, Int32, Int32)

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

Copy2DRangeFrom(Int32, Int32, Int32, Int32, Byte[]) Copy2DRangeFrom(Int32, Int32, Int32, Int32, Byte[])

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

Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int16[]) Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int16[])

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

Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int32[]) Copy2DRangeFrom(Int32, Int32, Int32, Int32, Int32[])

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

Copy2DRangeFrom(Int32, Int32, Int32, Int32, Object) Copy2DRangeFrom(Int32, Int32, Int32, Int32, Object)

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

Copy2DRangeFrom(Int32, Int32, Int32, Int32, Single[]) Copy2DRangeFrom(Int32, Int32, Int32, Int32, Single[])

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

Copy2DRangeTo(Int32, Int32, Int32, Int32, Byte[]) Copy2DRangeTo(Int32, Int32, Int32, Int32, Byte[])
Copy2DRangeTo(Int32, Int32, Int32, Int32, Int16[]) Copy2DRangeTo(Int32, Int32, Int32, Int32, Int16[])
Copy2DRangeTo(Int32, Int32, Int32, Int32, Int32[]) Copy2DRangeTo(Int32, Int32, Int32, Int32, Int32[])
Copy2DRangeTo(Int32, Int32, Int32, Int32, Object) Copy2DRangeTo(Int32, Int32, Int32, Int32, Object)
Copy2DRangeTo(Int32, Int32, Int32, Int32, Single[]) Copy2DRangeTo(Int32, Int32, Int32, Int32, Single[])
Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Allocation, Int32, Int32, Int32) Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Allocation, Int32, Int32, Int32)
Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Object) Copy3DRangeFrom(Int32, Int32, Int32, Int32, Int32, Int32, Object)
Copy3DRangeTo(Int32, Int32, Int32, Int32, Int32, Int32, Object) Copy3DRangeTo(Int32, Int32, Int32, Int32, Int32, Int32, Object)
CopyFrom(Allocation) CopyFrom(Allocation)

Copy an Allocation from an Allocation.

CopyFrom(BaseObj[]) CopyFrom(BaseObj[])

Copy an array of RS objects to the Allocation.

CopyFrom(Bitmap) CopyFrom(Bitmap)

Copy into an Allocation from a Bitmap.

CopyFrom(Byte[]) CopyFrom(Byte[])

Copy into this Allocation from an array.

CopyFrom(Int16[]) CopyFrom(Int16[])

Copy into this Allocation from an array.

CopyFrom(Int32[]) CopyFrom(Int32[])

Copy into this Allocation from an array.

CopyFrom(Object) CopyFrom(Object)

Copy into this Allocation from an array.

CopyFrom(Single[]) CopyFrom(Single[])

Copy into this Allocation from an array.

CopyFromUnchecked(Byte[]) CopyFromUnchecked(Byte[])

Copy into this Allocation from an array.

CopyFromUnchecked(Int16[]) CopyFromUnchecked(Int16[])

Copy into this Allocation from an array.

CopyFromUnchecked(Int32[]) CopyFromUnchecked(Int32[])

Copy into this Allocation from an array.

CopyFromUnchecked(Object) CopyFromUnchecked(Object)

Copy into this Allocation from an array.

CopyFromUnchecked(Single[]) CopyFromUnchecked(Single[])

Copy into this Allocation from an array.

CopyTo(Bitmap) CopyTo(Bitmap)

Copy from the Allocation into a Bitmap.

CopyTo(Byte[]) CopyTo(Byte[])

Copy from the Allocation into a byte array.

CopyTo(Int16[]) CopyTo(Int16[])

Copy from the Allocation into a short array.

CopyTo(Int32[]) CopyTo(Int32[])

Copy from the Allocation into a int array.

CopyTo(Object) CopyTo(Object)

Copy from the Allocation into an array.

CopyTo(Single[]) CopyTo(Single[])

Copy from the Allocation into a float array.

CreateAllocations(RenderScript, Type, Int32, Int32) CreateAllocations(RenderScript, Type, Int32, Int32)
CreateCubemapFromBitmap(RenderScript, Bitmap) CreateCubemapFromBitmap(RenderScript, Bitmap)

Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a Bitmap containing the horizontal list of cube faces.

CreateCubemapFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage) CreateCubemapFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage)

Creates a cubemap Allocation from a Bitmap containing the horizontal list of cube faces.

CreateCubemapFromCubeFaces(RenderScript, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap) CreateCubemapFromCubeFaces(RenderScript, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap)

Creates a non-mipmapped cubemap Allocation for use as a sampler input from 6 Bitmap objects containing the cube faces.

CreateCubemapFromCubeFaces(RenderScript, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap, Allocation+MipmapControl, AllocationUsage) CreateCubemapFromCubeFaces(RenderScript, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap, Bitmap, Allocation+MipmapControl, AllocationUsage)

Creates a cubemap Allocation from 6 Bitmap objects containing the cube faces.

CreateFromBitmap(RenderScript, Bitmap) CreateFromBitmap(RenderScript, Bitmap)

Creates an Allocation from a Bitmap.

CreateFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage) CreateFromBitmap(RenderScript, Bitmap, Allocation+MipmapControl, AllocationUsage)

Creates an Allocation from a Bitmap.

CreateFromBitmapResource(RenderScript, Resources, Int32) CreateFromBitmapResource(RenderScript, Resources, Int32)

Creates a non-mipmapped Allocation to use as a graphics texture from the Bitmap referenced by resource ID.

CreateFromBitmapResource(RenderScript, Resources, Int32, Allocation+MipmapControl, AllocationUsage) CreateFromBitmapResource(RenderScript, Resources, Int32, Allocation+MipmapControl, AllocationUsage)

Creates an Allocation from the Bitmap referenced by resource ID.

CreateFromString(RenderScript, String, AllocationUsage) CreateFromString(RenderScript, String, AllocationUsage)

Creates an Allocation containing string data encoded in UTF-8 format.

CreateSized(RenderScript, Element, Int32) CreateSized(RenderScript, Element, Int32)

Creates an Allocation with a specified number of given elements

CreateSized(RenderScript, Element, Int32, AllocationUsage) CreateSized(RenderScript, Element, Int32, AllocationUsage)

Creates an Allocation with a specified number of given elements

CreateTyped(RenderScript, Type) CreateTyped(RenderScript, Type)

Creates an Allocation for use by scripts with a given Type and no mipmaps

CreateTyped(RenderScript, Type, Allocation+MipmapControl, AllocationUsage) CreateTyped(RenderScript, Type, Allocation+MipmapControl, AllocationUsage)

Creates a new Allocation with the given Type, mipmap flag, and usage flags.

CreateTyped(RenderScript, Type, AllocationUsage) CreateTyped(RenderScript, Type, AllocationUsage)

Creates an Allocation with the size specified by the type and no mipmaps generated by default

Destroy() Destroy()

Frees any native resources associated with this object.

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

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GenerateMipmaps() GenerateMipmaps()

Generate a mipmap chain.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
IoReceive() IoReceive()

Receive the latest input into the Allocation.

IoSend() IoSend()

Send a buffer to the output stream.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Resize(Int32) Resize(Int32)

Resize a 1D allocation.

SetAutoPadding(Boolean) SetAutoPadding(Boolean)
SetFromFieldPacker(Int32, FieldPacker) 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.

SetFromFieldPacker(Int32, Int32, FieldPacker) 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.

SetFromFieldPacker(Int32, Int32, Int32, Int32, FieldPacker) SetFromFieldPacker(Int32, Int32, Int32, Int32, FieldPacker)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetOnBufferAvailableListener(Allocation+IOnBufferAvailableListener) SetOnBufferAvailableListener(Allocation+IOnBufferAvailableListener)

Set a notification handler for IoInput.

SyncAll(Int32) SyncAll(Int32)

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

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

Returns a string containing a concise, human-readable description of this object.

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

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Events

BufferAvailable BufferAvailable

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to