HomeSort by relevance Sort by last modified time
    Searched full:allocation (Results 101 - 125 of 7203) sorted by null

1 2 3 45 6 7 8 91011>>

  /cts/tests/tests/renderscript/src/android/renderscript/cts/
SampleTest.java 20 import android.renderscript.Allocation;
21 import android.renderscript.Allocation.MipmapControl;
32 Allocation mAlloc_RGBA_1D;
33 Allocation mAlloc_RGBA_2D;
35 Allocation createAlloc(Type t) {
36 Allocation a = Allocation.createTyped(mRS, t, Allocation.MipmapControl.MIPMAP_FULL,
37 Allocation.USAGE_SCRIPT);
GetAllocationTest.java 19 import android.renderscript.Allocation;
35 Allocation mTemp = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE);
37 Allocation mOut = Allocation.createTyped(mRS, mTemp.getType());
YuvTest.java 28 Allocation ay;
29 Allocation au;
30 Allocation av;
76 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h));
78 au = Allocation.createTyped(mRS, tuv);
79 av = Allocation.createTyped(mRS, tuv);
86 public Allocation makeOutput() {
87 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height));
90 public Allocation makeOutput_f4() {
91 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height))
    [all...]
VoidPtr.java 19 import android.renderscript.Allocation;
25 Allocation AOutput;
26 Allocation AInput;
27 Allocation AFailed;
34 AFailed = Allocation.createTyped(mRS, t);
57 * allocation, even if the pointer passed to the kernel of the script
60 * This test runs for an allocation of type int
69 AOutput = Allocation.createTyped(mRS, t);
85 * allocation, even if the pointer passed to the kernel of the script
88 * This test runs for an allocation of type uchar
    [all...]
clear_object.rs 4 rs_allocation allocation;
8 rsClearObject( &allocation );
9 *out = ( NULL == allocation.p ? 1 : 0 );
  /device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/
UncachedMemoryAllocationLib.c 52 VOID *Allocation;
64 * This function firstly checks if the requested allocation can fit into one
66 * If the requested allocation does not fit in the existing pool then
67 * the function makes a new allocation.
69 * @param MemoryType Type of memory requested for the new allocation
72 * @param Allocation Address of the newly allocated buffer
83 OUT VOID **Allocation
98 // Look in our list for the smallest page that could satisfy the new allocation
110 Node->Allocation = (VOID*)(UINTN)Node->Base;
111 *Allocation = Node->Allocation;
    [all...]
  /external/clang/test/Analysis/
malloc-overflow.c 9 return malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
14 return malloc(sizeof(int) * n); // // expected-warning {{the computation of the size of the memory allocation may overflow}}
29 return malloc(s->n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
35 return malloc(s2.n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
40 return malloc((n + 1) * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
62 int * x = malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
70 int * x = malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
79 int * x = malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
112 return malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
  /frameworks/base/rs/java/android/renderscript/
ScriptIntrinsicYuvToRGB.java 23 * The input allocation should be supplied in a supported YUV format
24 * as a YUV element Allocation. The output is RGBA; the alpha channel
28 private Allocation mInput;
53 * Set the input yuv allocation, must be {@link Element#U8}.
55 * @param ain The input allocation.
57 public void setInput(Allocation ain) {
65 * @param aout Output allocation. Must match creation element
68 public void forEach(Allocation aout) {
69 forEach(0, (Allocation) null, aout, null);
AllocationAdapter.java 23 public class AllocationAdapter extends Allocation {
26 AllocationAdapter(long id, RenderScript rs, Allocation alloc, Type t) {
96 * type being adapted. The base allocation must have mipmaps.
105 throw new RSInvalidStateException("Cannot set LOD when the allocation type does not include mipmaps.");
117 * Set the active Face. The base allocation must be of a type
124 throw new RSInvalidStateException("Cannot set Face when the allocation type does not include faces.");
141 * the allocation being adapted.
147 throw new RSInvalidStateException("Cannot set X greater than dimension of allocation.");
153 throw new RSInvalidStateException("Cannot set (X + window) which would be larger than dimension of allocation.");
162 * the allocation being adapted. The base allocation mus
    [all...]
  /frameworks/compile/slang/tests/P_reduce_general_struct/
ScriptC_reduce_general_struct.java.expect 57 for (Allocation tempIn : mTempIns) {
70 private result_int(Allocation out) {
76 private Allocation[] mTempIns;
77 private Allocation mOut;
84 public result_int reduce_inStruct(Allocation ain1) {
89 public result_int reduce_inStruct(Allocation ain1, Script.LaunchOptions sc) {
94 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
96 reduce(mExportReduceIdx_inStruct, new Allocation[]{ain1}, aout, sc);
  /frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
UT_alloc.java 20 import android.renderscript.Allocation;
30 private Allocation mAFaces;
31 private Allocation mALOD;
32 private Allocation mAFacesLOD;
48 Allocation A = Allocation.createTyped(RS, T);
55 mAFaces = Allocation.createTyped(RS, mTFaces);
59 mALOD = Allocation.createTyped(RS, mTLOD);
63 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD);
  /system/bt/osi/include/
allocation_tracker.h 28 // Initialize the allocation tracker. If you do not call this function,
29 // the allocation tracker functions do nothing but are still safe to call.
32 // Reset the allocation tracker. Don't call this in the normal course of
41 // Notify the tracker of a new allocation belonging to |allocator_id|.
43 // size of the allocation without any canaries. The caller must allocate
44 // enough memory for canaries; the total allocation size can be determined
50 // Notify the tracker of an allocation that is being freed. |ptr| must be a
53 // |ptr| offset to the real beginning of the allocation including any canary
57 // Get the full size for an allocation, taking into account the size of
  /hardware/interfaces/renderscript/1.0/vts/functional/
VtsCopyTests.cpp 20 * This test creates a 1D Allocation with 128 Float Elements, and two float
22 * the Allocation using allocation1DWrite. Then the Allocation is copied into
40 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, local
43 ASSERT_NE(Allocation(0), allocation);
49 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data);
50 context->allocation1DRead(allocation, 0, 0, (uint32_t)dataOut.size(), (Ptr)dataOut.data(),
56 * This test creates a 2D Allocation with 128 * 128 Float Elements, and tw
76 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, local
113 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, local
154 Allocation allocation = context->allocationCreateFromBitmap(type, local
299 Allocation allocation = context->allocationCreateFromBitmap(type, local
357 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::FULL, local
403 Allocation allocation = context->allocationCubeCreateFromBitmap( local
464 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, local
    [all...]
  /external/deqp/external/vulkancts/framework/vulkan/
vkMemUtil.hpp 33 * \brief Memory allocation interface
35 * Allocation represents block of device memory and is allocated by
39 * Allocation doesn't necessarily correspond to a whole VkDeviceMemory, but
40 * instead it may represent sub-allocation. Thus whenever VkDeviceMemory
41 * (getMemory()) managed by Allocation is passed to Vulkan API calls,
46 * pointer, i.e. the pointer is already adjusted in case of sub-allocation.
48 * Memory mappings are managed solely by Allocation, i.e. unmapping or
49 * re-mapping VkDeviceMemory owned by Allocation is not allowed.
51 class Allocation
54 virtual ~Allocation (void)
    [all...]
  /frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
UT_array_alloc.java 27 super(rstc, "Array Allocation", ctx);
37 Allocation[] Arr = new Allocation[dimX];
41 Allocation A = Allocation.createTyped(pRS, T);
  /frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
UT_array_alloc.java 27 super(rstc, "Array Allocation", ctx);
37 Allocation[] Arr = new Allocation[dimX];
41 Allocation A = Allocation.createTyped(pRS, T);
  /cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
TestMax.java 21 import android.renderscript.Allocation;
54 Allocation inA = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x2952d868c2162460l, false);
55 Allocation inB = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x2952d868c2162461l, false);
57 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
66 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
78 private void verifyResultsMaxFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed)
    [all...]
TestMin.java 21 import android.renderscript.Allocation;
54 Allocation inA = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xbdad0b097121573el, false);
55 Allocation inB = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xbdad0b097121573fl, false);
57 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
66 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
78 private void verifyResultsMinFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed)
    [all...]
TestLgamma.java 21 import android.renderscript.Allocation;
53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xd9395583050bc4bel, false);
55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
63 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
73 private void verifyResultsLgammaFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
125 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0xeef55496367a4132l, false);
127 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE)
    [all...]
TestFrexp.java 21 import android.renderscript.Allocation;
54 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x57ae9fe07384e56dl, false);
56 Allocation outExponent = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE);
57 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
67 Allocation outExponent = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE);
68 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE)
    [all...]
TestModf.java 21 import android.renderscript.Allocation;
54 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xd655dc05ccaef45l, false);
56 Allocation outIntegralPart = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
57 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
67 Allocation outIntegralPart = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
68 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE)
    [all...]
TestClamp.java 21 import android.renderscript.Allocation;
55 Allocation inValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x7e886d7cc83c447dl, false);
56 Allocation inMinValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xdcebf6f230234027l, false);
57 Allocation inMaxValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xdcebf6e6c180322dl, false);
60 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
70 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
84 private void verifyResultsClampFloatFloatFloatFloat(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed)
    [all...]
  /frameworks/rs/cpp/
rsCppStructs.h 27 * Every row in an RS allocation is guaranteed to be aligned by this amount, and
28 * every row in a user-backed allocation must be aligned by this amount.
47 class Allocation;
497 sp<const Element> ALLOCATION;
560 * from RenderScript kernels. An Allocation provides the backing store for a
563 * An Allocation also contains a set of usage flags that denote how the
564 * Allocation could be used. For example, an Allocation may have usage flags
567 * syncAll(int) in order to ensure that different users of the Allocation have
568 * a consistent view of memory. For example, in the case where an Allocation i
    [all...]
  /system/core/libmemunreachable/tests/
LeakFolding_test.cpp 42 #define ALLOCATION(heap_walker, buffer) \
43 ASSERT_EQ(true, (heap_walker).Allocation(buffer_begin(buffer), buffer_end(buffer)))
50 ALLOCATION(heap_walker, buffer1);
74 ALLOCATION(heap_walker, buffer1);
75 ALLOCATION(heap_walker, buffer2);
103 ALLOCATION(heap_walker, buffer1);
104 ALLOCATION(heap_walker, buffer2);
133 ALLOCATION(heap_walker, buffer1);
134 ALLOCATION(heap_walker, buffer2);
135 ALLOCATION(heap_walker, buffer3)
    [all...]
  /frameworks/rs/
rsRuntime.h 30 void rsrAllocationSyncAll(Context *, Script *, Allocation *);
33 void rsrBindTexture(Context *, ProgramFragment *, uint32_t slot, Allocation *);
34 void rsrBindConstant(Context *, ProgramFragment *, uint32_t slot, Allocation *);
35 void rsrBindConstant(Context *, ProgramVertex*, uint32_t slot, Allocation *);
41 void rsrBindFrameBufferObjectColorTarget(Context *, Allocation *, uint32_t slot);
42 void rsrBindFrameBufferObjectDepthTarget(Context *, Allocation *);
79 void rsrAllocationCopy1DRange(Context *, Allocation *dstAlloc,
83 Allocation *srcAlloc,
85 void rsrAllocationCopy2DRange(Context *, Allocation *dstAlloc,
89 Allocation *srcAlloc
    [all...]

Completed in 644 milliseconds

1 2 3 45 6 7 8 91011>>