/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
TestStep.java | 21 import android.renderscript.Allocation; 54 Allocation inEdge = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x598900c49184fbfel, false); 55 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x9aefccaa832f44e9l, 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 verifyResultsStepFloatFloatFloat(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) [all...] |
TestFma.java | 21 import android.renderscript.Allocation; 55 Allocation inMultiplicand1 = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x716293a685c419bel, false); 56 Allocation inMultiplicand2 = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x716293a685c419bfl, false); 57 Allocation inOffset = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x4a235a109d441b0el, false); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 69 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 83 private void verifyResultsFmaFloatFloatFloatFloat(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) [all...] |
TestMad.java | 21 import android.renderscript.Allocation; 55 Allocation inMultiplicand1 = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x2a4461e340b4de48l, false); 56 Allocation inMultiplicand2 = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x2a4461e340b4de49l, false); 57 Allocation inOffset = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xcea3b86dc50ce0fcl, false); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 69 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 83 private void verifyResultsMadFloatFloatFloatFloat(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) [all...] |
TestClz.java | 21 import android.renderscript.Allocation; 53 Allocation inValue = createRandomAllocation(mRS, Element.DataType.SIGNED_8, 1, 0xf6f3a15e2f7765afl, false); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 1), INPUTSIZE); 63 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 1), INPUTSIZE); 73 private void verifyResultsClzCharChar(Allocation inValue, Allocation out, boolean relaxed) { 124 Allocation inValue = createRandomAllocation(mRS, Element.DataType.SIGNED_8, 2, 0xf718b99dcaca5e93l, false); 126 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE) [all...] |
TestFastLength.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xebac65aea2660e8fl, 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 verifyResultsFastLengthFloatFloat(Allocation inV, Allocation out, boolean relaxed) { 127 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x95f43650f85e6cadl, false); 129 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestFastNormalize.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xdcfb9adc9f8882ecl, 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 verifyResultsFastNormalizeFloatFloat(Allocation inV, Allocation out, boolean relaxed) { 127 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x151c38c30573db70l, false); 129 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE) [all...] |
TestHalfRecip.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x854e263130d5b3dl, 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 verifyResultsHalfRecipFloatFloat(Allocation inV, Allocation out, boolean relaxed) { 125 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x2cf1d2db5ff23c79l, false); 127 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE) [all...] |
TestHalfRsqrt.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xad5e977ec00f0bf2l, 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 verifyResultsHalfRsqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) { 125 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x300ee7bff12787c6l, false); 127 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE) [all...] |
TestHalfSqrt.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x8be766c7a15db5fal, 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 verifyResultsHalfSqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) { 125 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x7a300d2342519b8el, false); 127 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE) [all...] |
TestIlogb.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x6103ca4b5664967bl, false); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 63 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 73 private void verifyResultsIlogbFloatInt(Allocation inV, Allocation out, boolean relaxed) { 117 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0xb460143cb6f32a61l, false); 119 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE) [all...] |
TestAbs.java | 21 import android.renderscript.Allocation; 53 Allocation inV = createRandomAllocation(mRS, Element.DataType.SIGNED_8, 1, 0x79257810f7393ea6l, false); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE); 63 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE); 73 private void verifyResultsAbsCharUchar(Allocation inV, Allocation out, boolean relaxed) { 124 Allocation inV = createRandomAllocation(mRS, Element.DataType.SIGNED_8, 2, 0xff611dd40e5e407cl, false); 126 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE) [all...] |
TestLdexp.java | 21 import android.renderscript.Allocation; 54 Allocation inMantissa = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xdffd225490f0e26fl, false); 55 Allocation inExponent = createRandomAllocation(mRS, Element.DataType.SIGNED_32, 1, 0xdffd207c2e4133c4l, 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 verifyResultsLdexpFloatIntFloat(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
RsPackColorTo8888Test.java | 19 import android.renderscript.Allocation; 41 public void forEach(int testId, Allocation mIn, Allocation mOut) throws RSRuntimeException { 75 Allocation mAllocationIn = Allocation.createSized(mRS, Element.F32_3(mRS), INPUTSIZE); 76 Allocation mAllocationOut = Allocation.createSized(mRS, Element.U8_4(mRS), INPUTSIZE); 105 Allocation mAllocationIn = Allocation.createSized(mRS, Element.F32_4(mRS), INPUTSIZE); 106 Allocation mAllocationOut = Allocation.createSized(mRS, Element.U8_4(mRS), INPUTSIZE) [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...] |
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); 81 in = Allocation.createTyped(mRS, t); 83 out = Allocation.createTyped(mRS, t); 97 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); 81 in = Allocation.createTyped(mRS, t); 83 out = Allocation.createTyped(mRS, t); 97 in = Allocation.createTyped(mRS, t) [all...] |
rsAllocationCopyTest.java | 19 import android.renderscript.Allocation; 40 Allocation aIn = Allocation.createTyped(mRS, typeBuilder.create()); 41 Allocation aOut = Allocation.createTyped(mRS, typeBuilder.create()); 87 Allocation aIn = Allocation.createTyped(mRS, typeBuilder.create()); 88 Allocation aOut = Allocation.createTyped(mRS, typeBuilder.create()); 134 Allocation aIn = Allocation.createTyped(mRS, typeBuilder.create()) [all...] |
/frameworks/rs/cpu_ref/ |
rsCpuCore.h | 88 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; 89 Allocation *aout[RS_KERNEL_INPUT_LIMIT]; 96 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; 113 // accumAlloc is a pointer to a single allocation of (N - !Outc) 115 // allocation acts as an accumulator.) It is created at kernel 116 // launch time. Within that allocation, the distance between the 136 // output allocation for its accumulator. 167 void launchForEach(const Allocation **ains, uint32_t inLen, Allocation *aout, 171 void launchReduce(const Allocation ** ains, uint32_t inLen, Allocation *aout [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/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
Healing.java | 25 import android.renderscript.Allocation; 87 Allocation dest_alloc = Allocation.createFromBitmap(rs, dest_bitmap); 90 Allocation src_alloc = Allocation.createFromBitmap(rs, src_bitmap); 91 Allocation mask_alloc = Allocation.createFromBitmap(rs, mask_bitmap); 130 Allocation dest1 = Allocation.createTyped(rs, floatImage.create()); 131 Allocation dest2 = Allocation.createTyped(rs, floatImage.create()) [all...] |
/frameworks/rs/ |
rs_hal.h | 80 class Allocation; 121 RS_BASE_OBJ(Allocation) rs_allocation; 172 const Allocation * ain, 173 Allocation * aout, 179 const Allocation ** ains, size_t inLen, 180 Allocation *aout, 202 Allocation *data); 211 const Allocation ** ains, 213 Allocation * aout, 221 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero) 314 } allocation; member in struct:android::renderscript::__anon41657 [all...] |
rsScriptC.h | 43 const Allocation ** ains, 45 Allocation * aout, 51 const Allocation ** ains, size_t inLen, 52 Allocation *aout, const RsScriptCall *sc) override;
|
rsScriptIntrinsic.h | 45 const Allocation ** ains, 47 Allocation* aout, 53 const Allocation ** ains, size_t inLen, 54 Allocation *aout, const RsScriptCall *sc) override;
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
ScriptIntrinsic3DLUT.java | 25 * allocation. The 8 nearest values are sampled and linearly interpolated. The 30 private Allocation mLUT; 66 * Sets the {@link android.support.v8.renderscript.Allocation} to be used as 74 public void setLUT(Allocation lut) { 94 * @param ain Input allocation 95 * @param aout Output allocation 97 public void forEach(Allocation ain, Allocation aout) {
|
ScriptIntrinsicBlur.java | 25 * specified radius to all elements of an allocation. 31 private Allocation mInput; 40 * Create an intrinsic for applying a blur to an allocation. The 72 * @param ain The input allocation 74 public void setInput(Allocation ain) { 76 throw new RSIllegalArgumentException("Input set to a 1D Allocation"); 98 * allocation. 100 * @param aout Output allocation. Must match creation element 103 public void forEach(Allocation aout) { 105 throw new RSIllegalArgumentException("Output is a 1D Allocation"); [all...] |