/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
ImageProcessingActivity2.java | 147 RenderScript mRS; 199 mRS = rs; 200 mRS.setMessageHandler(new MessageProcessor()); 201 mScriptUtils = new ScriptC_util(mRS); 206 mRS, getResources(), R.drawable.img1920x1080a); 208 mRS, getResources(), R.drawable.img1920x1080b); 214 mRS, getResources(), R.drawable.img1280x720a); 216 mRS, getResources(), R.drawable.img1280x720b); 222 mRS, getResources(), R.drawable.img800x450a); 224 mRS, getResources(), R.drawable.img800x450b) [all...] |
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
ImageProcessingActivityJB.java | 152 RenderScript mRS; 195 mRS = rs; 198 mRS.setMessageHandler(new MessageProcessor()); 203 mRS, getResources(), R.drawable.img3840x2160a); 205 mRS, getResources(), R.drawable.img3840x2160b); 209 mRS, getResources(), R.drawable.img1920x1080a); 211 mRS, getResources(), R.drawable.img1920x1080b); 215 mRS, getResources(), R.drawable.img1280x720a); 217 mRS, getResources(), R.drawable.img1280x720b); 221 mRS, getResources(), R.drawable.img800x450a) [all...] |
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
RsYuv.java | 42 private RenderScript mRS; 52 mRS = rs; 53 mScript = new ScriptC_yuv(mRS); 54 mYuv = ScriptIntrinsicYuvToRGB.create(rs, Element.RGBA_8888(mRS)); 78 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 82 mAllocationOut = Allocation.createTyped(mRS, t, Allocation.USAGE_SCRIPT | 86 tb = new Type.Builder(mRS, Element.createPixel(mRS, Element.DataType.UNSIGNED_8, Element.DataKind.PIXEL_YUV)); 90 mAllocationIn = Allocation.createTyped(mRS, tb.create(), Allocation.USAGE_SCRIPT) [all...] |
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
RSTestCore.java | 38 private RenderScript mRS; 54 mRS = rs; 110 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length); 113 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT);
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
RSTestCore.java | 39 private RenderScriptGL mRS; 57 mRS = rs; 63 mScript = new ScriptC_rslist(mRS); 86 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length); 89 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT); 99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); 102 mRS.bindRootScript(mScript); 151 if (mListAllocs != null && mScript != null && mRS != null) { 155 mRS.bindRootScript(mScript);
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
RSTestCore.java | 39 private RenderScriptGL mRS; 57 mRS = rs; 63 mScript = new ScriptC_rslist(mRS); 90 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length); 93 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT); 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); 106 mRS.bindRootScript(mScript); 155 if (mListAllocs != null && mScript != null && mRS != null) { 159 mRS.bindRootScript(mScript);
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
RSTestCore.java | 39 private RenderScriptGL mRS; 57 mRS = rs; 63 mScript = new ScriptC_rslist(mRS); 90 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length); 93 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT); 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); 106 mRS.bindRootScript(mScript); 155 if (mListAllocs != null && mScript != null && mRS != null) { 159 mRS.bindRootScript(mScript);
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
CallbackProcessor.java | 35 private RenderScript mRS; 58 mRS = rs; 63 mAllocationIn = Allocation.createSized(mRS, Element.U8(mRS), inputSize); 65 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 70 mAllocationOut = Allocation.createTyped(mRS, outType, 73 ScriptC_callback swizzleScript = new ScriptC_callback(mRS);
|
/frameworks/base/rs/java/android/renderscript/ |
ScriptGroup.java | 285 ValueAndSize vs = new ValueAndSize(mRS, obj); 286 mRS.nClosureSetArg(getID(mRS), index, vs.value, vs.size); 294 ValueAndSize vs = new ValueAndSize(mRS, obj); 295 mRS.nClosureSetGlobal(getID(mRS), fieldID.getID(mRS), vs.value, vs.size); 458 mRS.nScriptGroup2Execute(getID(mRS)); 487 mRS.nScriptGroupSetInput(getID(mRS), s.getID(mRS), mRS.safeID(a)) [all...] |
Type.java | 237 mRS.nTypeGetNativeData(getID(mRS), dataBuffer); 247 mElement = new Element(elementID, mRS); 333 RenderScript mRS; 352 mRS = rs; 477 long id = mRS.nTypeCreate(mElement.getID(mRS), 479 Type t = new Type(id, mRS);
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
Element.java | 761 public long getDummyElement(RenderScript mRS) { 762 return mRS.nIncElementCreate(mType.mID, mKind.mID, mNormalized, mVectorSize); 920 RenderScript mRS; 933 mRS = rs; 1002 mRS.validate(); [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
IntrinsicConvolve3x3.java | 38 ScriptIntrinsicConvolve3x3 si = ScriptIntrinsicConvolve3x3.create(mRS, e); 43 ScriptC_intrinsic_convolve3x3 sr = new ScriptC_intrinsic_convolve3x3(mRS); 163 mRS.finish(); 254 ScriptIntrinsicConvolve3x3 s = ScriptIntrinsicConvolve3x3.create(mRS, Element.U8_4(mRS));
|
ForEachTest.java | 59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); 60 Allocation badOut = Allocation.createTyped(mRS, t); 62 ScriptC_fe_all fe_all = new ScriptC_fe_all(mRS); 65 Allocation in = Allocation.createTyped(mRS, t); 66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); 67 Allocation out = Allocation.createTyped(mRS, t); 69 mRS.finish(); 72 mRS.finish() [all...] |
IntrinsicResize.java | 45 ScriptIntrinsicResize si = ScriptIntrinsicResize.create(mRS); 49 ScriptC_intrinsic_resize sr = new ScriptC_intrinsic_resize(mRS); 96 mRS.finish();
|
KernelTest.java | 59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); 60 Allocation badOut = Allocation.createTyped(mRS, t); 62 ScriptC_kernel_all kernel_all = new ScriptC_kernel_all(mRS); 65 Allocation in = Allocation.createTyped(mRS, t); 66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); 67 Allocation out = Allocation.createTyped(mRS, t); 69 mRS.finish(); 72 mRS.finish() [all...] |
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/ |
MainActivity.java | 50 private RenderScript mRS; 149 mRS = RenderScript.create(this); 151 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn); 155 mOutAllocations[i] = Allocation.createFromBitmap(mRS, mBitmapsOut[i]); 163 mScriptBlur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); 164 mScriptConvolve = ScriptIntrinsicConvolve5x5.create(mRS, 165 Element.U8_4(mRS)); 166 mScriptMatrix = ScriptIntrinsicColorMatrix.create(mRS, 167 Element.U8_4(mRS)); [all...] |
/developers/samples/android/renderScript/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/ |
MainActivity.java | 50 private RenderScript mRS; 149 mRS = RenderScript.create(this); 151 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn); 155 mOutAllocations[i] = Allocation.createFromBitmap(mRS, mBitmapsOut[i]); 163 mScriptBlur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); 164 mScriptConvolve = ScriptIntrinsicConvolve5x5.create(mRS, 165 Element.U8_4(mRS)); 166 mScriptMatrix = ScriptIntrinsicColorMatrix.create(mRS, 167 Element.U8_4(mRS)); [all...] |
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
MainActivity.java | 43 private RenderScript mRS; 153 mRS = RenderScript.create(this); 155 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn); 159 mOutAllocations[i] = Allocation.createFromBitmap(mRS, mBitmapsOut[i]); 169 mScriptBlur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); 170 mScriptConvolve = ScriptIntrinsicConvolve5x5.create(mRS, 171 Element.U8_4(mRS)); 172 mScriptMatrix = ScriptIntrinsicColorMatrix.create(mRS, 173 Element.U8_4(mRS)); [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
Camera2Source.java | 62 private RenderScript mRS; 117 mRS = RenderScript.create(context.getApplicationContext()); 167 Element ele = Element.createPixel(mRS, Element.DataType.UNSIGNED_8, 170 rgbConverter = ScriptIntrinsicYuvToRGB.create(mRS,ele); 171 Type.Builder yuvBuilder = new Type.Builder(mRS,ele); 176 mAllocationIn = Allocation.createTyped(mRS, yuvBuilder.create(), 183 mAllocationOut = Allocation.createFromBitmap(mRS, mBitmap);
|
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
BallsRS.java | 34 private RenderScriptGL mRS; 45 mVpConsts = new ScriptField_VpConsts(mRS, 1, 50 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1); 58 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS); 72 mRS.bindProgramVertex(pvs); 80 Allocation.createFromBitmap(mRS, bp, 96 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS); 105 mRS = rs; 112 mPoints = new ScriptField_Point(mRS, PART_COUNT, Allocation.USAGE_SCRIPT) [all...] |
/frameworks/rs/tests/lldb/cpp/Allocations/ |
Allocations.cpp | 21 sp<RS> mRS; 83 Type::Builder typeI8Builder(mRS, Element::I8(mRS)); 88 mCharAllocation = Allocation::createTyped(mRS, typeI8Builder.create()); 89 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2); 90 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4); 91 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSize / 4) [all...] |
/frameworks/rs/tests/lldb/jni/Allocations/jniallocations/ |
jniallocations.cpp | 24 sp<RS> mRS; 87 Type::Builder typeI8Builder(mRS, Element::I8(mRS)); 92 mCharAllocation = Allocation::createTyped(mRS, typeI8Builder.create()); 93 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2); 94 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4); 95 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSize / 4) [all...] |
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
HdrViewfinderActivity.java | 129 RenderScript mRS; 169 mRS = RenderScript.create(this); 491 mProcessor = new ViewfinderProcessor(mRS, outputSize);
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
HdrViewfinderActivity.java | 129 RenderScript mRS; 169 mRS = RenderScript.create(this); 491 mProcessor = new ViewfinderProcessor(mRS, outputSize);
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
HdrViewfinderActivity.java | 126 RenderScript mRS; 166 mRS = RenderScript.create(this); 492 mProcessor = new ViewfinderProcessor(mRS, outputSize);
|