/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
ScriptC_reduce_general_inputs.java.expect | 95 for (Allocation tempIn : mTempIns) { 108 private result_int(Allocation out) { 114 private Allocation[] mTempIns; 115 private Allocation mOut; 128 Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length); 139 Allocation ain2 = Allocation.createSized(mRSLocal, __F16, in2.length); 144 result.mTempIns = new Allocation[]{ain1, ain2}; 150 public result_int reduce_my_half_half_0(Allocation ain1, Allocation ain2) [all...] |
/frameworks/compile/slang/tests/P_reduce_general_examples_explicit/ |
ScriptC_reduce_general_examples_explicit.java.expect | 66 for (Allocation tempIn : mTempIns) { 79 private resultArray256_uint(Allocation out) { 85 private Allocation[] mTempIns; 86 private Allocation mOut; 102 for (Allocation tempIn : mTempIns) { 115 private result_float(Allocation out) { 121 private Allocation[] mTempIns; 122 private Allocation mOut; 138 for (Allocation tempIn : mTempIns) { 151 private result_int(Allocation out) [all...] |
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
ViewfinderProcessor.java | 22 import android.renderscript.Allocation; 34 private Allocation mInputHdrAllocation; 35 private Allocation mInputNormalAllocation; 36 private Allocation mPrevAllocation; 37 private Allocation mOutputAllocation; 62 mInputHdrAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 63 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT); 64 mInputNormalAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 65 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT) [all...] |
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
ViewfinderProcessor.java | 22 import android.renderscript.Allocation; 34 private Allocation mInputHdrAllocation; 35 private Allocation mInputNormalAllocation; 36 private Allocation mPrevAllocation; 37 private Allocation mOutputAllocation; 62 mInputHdrAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 63 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT); 64 mInputNormalAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 65 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT) [all...] |
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
ViewfinderProcessor.java | 22 import android.renderscript.Allocation; 34 private Allocation mInputHdrAllocation; 35 private Allocation mInputNormalAllocation; 36 private Allocation mPrevAllocation; 37 private Allocation mOutputAllocation; 62 mInputHdrAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 63 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT); 64 mInputNormalAllocation = Allocation.createTyped(rs, yuvTypeBuilder.create(), 65 Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT) [all...] |
/frameworks/compile/slang/tests/P_reduce_general_duplicate_array/ |
ScriptC_reduce_general_duplicate_array.java.expect | 55 for (Allocation tempIn : mTempIns) { 68 private resultArray4_int(Allocation out) { 74 private Allocation[] mTempIns; 75 private Allocation mOut; 87 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 92 result.mTempIns = new Allocation[]{ain1}; 97 public resultArray4_int reduce_sumDec(Allocation ain1) { 102 public resultArray4_int reduce_sumDec(Allocation ain1, Script.LaunchOptions sc) { 107 Allocation aout = Allocation.createSized(mRSLocal, __I32, 4) [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
VoidPtr.java | 19 import android.renderscript.Allocation; 25 Allocation AOutput; 26 Allocation AInput; 27 Allocation AFailed; 35 AFailed = Allocation.createTyped(mRS, t); 44 * allocation, even if the pointer passed to the kernel of the script 47 * This test runs for an allocation of type int 56 AOutput = Allocation.createTyped(mRS, t); 72 * allocation, even if the pointer passed to the kernel of the script 75 * This test runs for an allocation of type uchar [all...] |
InitTest.java | 19 import android.renderscript.Allocation; 24 private Allocation mIn; 25 private Allocation mOut; 29 public void forEach(int testId, Allocation mIn, Allocation mOut) throws RSRuntimeException { 38 mIn = Allocation.createSized(mRS, Element.F32(mRS), INPUTSIZE); 39 mOut= Allocation.createSized(mRS, Element.F32(mRS), INPUTSIZE);
|
YuvTest.java | 28 Allocation ay; 29 Allocation au; 30 Allocation av; 61 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h)); 63 au = Allocation.createTyped(mRS, tuv); 64 av = Allocation.createTyped(mRS, tuv); 71 public Allocation makeOutput() { 72 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); 75 public Allocation makeOutput_f4() { 76 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height)) [all...] |
ForEachTest.java | 19 import android.renderscript.Allocation; 60 Allocation badOut = Allocation.createTyped(mRS, t); 65 Allocation in = Allocation.createTyped(mRS, t); 67 Allocation out = Allocation.createTyped(mRS, t); 79 in = Allocation.createTyped(mRS, t); 81 out = Allocation.createTyped(mRS, t); 93 in = Allocation.createTyped(mRS, t) [all...] |
KernelTest.java | 19 import android.renderscript.Allocation; 60 Allocation badOut = Allocation.createTyped(mRS, t); 65 Allocation in = Allocation.createTyped(mRS, t); 67 Allocation out = Allocation.createTyped(mRS, t); 79 in = Allocation.createTyped(mRS, t); 81 out = Allocation.createTyped(mRS, t); 93 in = Allocation.createTyped(mRS, t) [all...] |
AllocationTest.java | 20 import android.renderscript.Allocation; 22 import android.renderscript.Allocation.MipmapControl; 48 Allocation.createTyped(mRS, typeBuilder.create()); 59 Allocation.createTyped(mRS, typeBuilder.setX(8).create(), 61 Allocation.USAGE_GRAPHICS_TEXTURE); 62 Allocation.createTyped(mRS, typeBuilder.setY(8).create(), 64 Allocation.USAGE_GRAPHICS_TEXTURE); 66 Allocation.createTyped(mRS, typeBuilder.create(), 68 Allocation.USAGE_GRAPHICS_TEXTURE | 69 Allocation.USAGE_SCRIPT) [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...] |
/frameworks/base/rs/java/android/renderscript/ |
Allocation.java | 32 * and from RenderScript kernels. An Allocation provides the backing store for 35 * <p>An Allocation also contains a set of usage flags that denote how the 36 * Allocation could be used. For example, an Allocation may have usage flags 39 * different usages using {@link android.renderscript.Allocation#syncAll} in 40 * order to ensure that different users of the Allocation have a consistent view 41 * of memory. For example, in the case where an Allocation is used as the output 43 * {@link #syncAll syncAll(Allocation.USAGE_SCRIPT)} prior to launching the 46 * <p>An Allocation can be populated with the {@link #copyFrom} routines. For 57 public class Allocation extends BaseObj [all...] |
/development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/ |
HelloCompute.java | 24 import android.renderscript.Allocation; 32 private Allocation mInAllocation; 33 private Allocation mOutAllocation; 58 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn, 59 Allocation.MipmapControl.MIPMAP_NONE, 60 Allocation.USAGE_SCRIPT); 61 mOutAllocation = Allocation.createFromBitmap(mRS, mBitmapOut, 62 Allocation.MipmapControl.MIPMAP_NONE, 63 Allocation.USAGE_SCRIPT);
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
UsageIO.java | 22 import android.renderscript.Allocation; 34 private Allocation mScratchPixelsAllocation1; 35 private Allocation mScratchPixelsAllocation2; 51 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_OUTPUT | Allocation.USAGE_SCRIPT); 52 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT);
|
/system/core/libmemunreachable/tests/ |
HeapWalker_test.cpp | 42 TEST_F(HeapWalkerTest, allocation) { 44 ASSERT_TRUE(heap_walker.Allocation(3, 4)); 45 ASSERT_TRUE(heap_walker.Allocation(2, 3)); 46 ASSERT_TRUE(heap_walker.Allocation(4, 5)); 47 ASSERT_TRUE(heap_walker.Allocation(6, 7)); 48 ASSERT_TRUE(heap_walker.Allocation(0, 1)); 53 ASSERT_TRUE(heap_walker.Allocation(2, 3)); 54 ASSERT_TRUE(heap_walker.Allocation(3, 4)); 55 ASSERT_FALSE(heap_walker.Allocation(2, 3)); 56 ASSERT_FALSE(heap_walker.Allocation(1, 3)) [all...] |
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
IntrinsicBLAS.java | 28 private ArrayList<Allocation> mMatrixS; 32 private ArrayList<Allocation> mMatrixD; 36 private ArrayList<Allocation> mMatrixC; 40 private ArrayList<Allocation> mMatrixZ; 74 mMatrixS = new ArrayList<Allocation>(); 75 mMatrixD = new ArrayList<Allocation>(); 76 mMatrixC = new ArrayList<Allocation>(); 77 mMatrixZ = new ArrayList<Allocation>(); 80 mMatrixS.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), x, y))); 81 mMatrixD.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64(mRS), x, y))) [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Allocation.java | 31 * and from RenderScript kernels. An Allocation provides the backing store for 34 * <p>An Allocation also contains a set of usage flags that denote how the 35 * Allocation could be used. For example, an Allocation may have usage flags 39 * {@link android.support.v8.renderscript.Allocation#syncAll} in 40 * order to ensure that different users of the Allocation have a consistent view 41 * of memory. For example, in the case where an Allocation is used as the output 43 * {@link #syncAll syncAll(Allocation.USAGE_SCRIPT)} prior to launching the 46 * <p>An Allocation can be populated with the {@link #copyFrom} routines. For 58 public class Allocation extends BaseObj [all...] |
/art/test/080-oom-throw/ |
info.txt | 1 Inject memory allocation failures for NEW_ARRAY and NEW_INSTANCE and make sure
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/ |
ImageBuffersForRenderScriptd1new.java | 20 import android.renderscript.Allocation; 37 * Global allocation for images and meta data that are bound with memory in Render Script 41 public Allocation sharpRGBAAllocation; 42 public Allocation fuzzyRGBAAllocation; 43 public Allocation integralRGBAAllocation; 45 public Allocation sharpActualDepthAllocation; 46 public Allocation sharpDilatedDepthAllocation; 47 public Allocation sharpActiveAllocation; 48 public Allocation sharpMatteAllocation; 63 sharpRGBAAllocation = Allocation.createSized [all...] |
/external/valgrind/massif/tests/ |
one.c | 3 // A test for a single allocation. There are two .post.exp* files, for each
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
ErrorCalculator.java | 23 import android.renderscript.Allocation; 36 private Allocation mIdealPixelsAllocation; 37 private Allocation mGivenPixelsAllocation; 38 private Allocation mOutputPixelsAllocation; 40 private Allocation mInputRowsAllocation; 41 private Allocation mOutputRegionsAllocation; 62 mInputRowsAllocation = Allocation.createSized(mRS, Element.I32(mRS), rowIndices.length, 63 Allocation.USAGE_SCRIPT); 65 mOutputRegionsAllocation = Allocation.createSized(mRS, Element.I32(mRS), 66 mOutputRowRegions.length, Allocation.USAGE_SCRIPT) [all...] |
/frameworks/rs/cpu_ref/ |
rsCpuScript.h | 47 virtual void preLaunch(uint32_t slot, const Allocation ** ains, 48 uint32_t inLen, Allocation * aout, const void * usr, 50 virtual void postLaunch(uint32_t slot, const Allocation ** ains, 51 uint32_t inLen, Allocation * aout, 56 const Allocation ** ains, 58 Allocation* aout, 64 const Allocation ** ains, uint32_t inLen, 65 Allocation* aout, 76 void setGlobalBind(uint32_t slot, Allocation *data) override; 86 bool forEachMtlsSetup(const Allocation ** ains, uint32_t inLen [all...] |
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/d1new/ |
ImageBuffersForRenderScriptd1new.java | 4 import android.support.v8.renderscript.Allocation; 25 * Global allocation for images and meta data that are bound with memory in Render Script 29 public Allocation sharpRGBAAllocation; 30 public Allocation fuzzyRGBAAllocation; 31 public Allocation integralRGBAAllocation; 33 public Allocation sharpActualDepthAllocation; 34 public Allocation sharpDilatedDepthAllocation; 35 public Allocation sharpActiveAllocation; 36 public Allocation sharpMatteAllocation; 51 sharpRGBAAllocation = Allocation.createSized [all...] |