/frameworks/base/tests/RenderScriptTests/ComputeBenchmark/src/com/example/android/rs/computebench/ |
H A D | Benchmark.java | 17 package com.example.android.rs.computebench; 26 public Benchmark(RenderScript rs, Resources res) { argument 27 mRS = rs;
|
/frameworks/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/ |
H A D | HelloWorldRS.java | 17 package com.example.android.rs.helloworld; 34 public void init(RenderScriptGL rs, Resources res) { argument 35 mRS = rs;
|
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | launchtestxlw.rs | 18 #pragma rs java_package_name(com.example.android.rs.computeperf)
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ |
H A D | greyscale.fs | 18 #pragma rs java_package_name(com.android.rs.image)
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
H A D | greyscale.rs | 18 #pragma rs java_package_name(com.android.rs.image2)
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | RsBenchBaseTest.java | 22 boolean init(RenderScriptGL rs, Resources res); argument
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
H A D | UT_copy_test.java | 17 package com.android.rs.test; 33 void testFloat2(RenderScript rs, ScriptC_copy_test s) { argument 34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); 35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); 57 void testFloat3(RenderScript rs, ScriptC_copy_test s) { argument 58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); 59 Allocation a2 = Allocation.createSized(rs, Elemen 81 testFloat4(RenderScript rs, ScriptC_copy_test s) argument [all...] |
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-common/SRC/ |
H A D | DriverRS.java.template | 34 public void init(RenderScriptGL rs, Resources res) { 35 mRS = rs;
|
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-int-param/ |
H A D | DriverRS.java.template | 34 public void init(RenderScriptGL rs, Resources res) { 35 mRS = rs;
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | ScriptIntrinsicLUT.java | 35 private ScriptIntrinsicLUT(int id, RenderScript rs) { argument 36 super(id, rs); 37 mTables = Allocation.createSized(rs, Element.U8(rs), 1024); 52 * @param rs The Renderscript context 57 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { argument 58 int id = rs.nScriptIntrinsicCreate(3, e.getID(rs)); 59 return new ScriptIntrinsicLUT(id, rs);
|
H A D | BaseObj.java | 28 BaseObj(int id, RenderScript rs) { argument 29 rs.validate(); 30 mRS = rs; 46 * @param rs Context to verify against internal context for 51 int getID(RenderScript rs) { argument 59 if ((rs != null) && (rs != mRS)) {
|
H A D | ProgramStore.java | 148 ProgramStore(int id, RenderScript rs) { argument 149 super(id, rs); 235 * @param rs Context to which the program will belong. 237 public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs) { argument 238 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { 239 ProgramStore.Builder builder = new ProgramStore.Builder(rs); 244 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); 246 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; 256 * @param rs Context to which the program will belong. 258 public static ProgramStore BLEND_NONE_DEPTH_NONE(RenderScript rs) { argument 282 BLEND_ALPHA_DEPTH_TEST(RenderScript rs) argument 304 BLEND_ALPHA_DEPTH_NONE(RenderScript rs) argument 333 Builder(RenderScript rs) argument [all...] |
H A D | RSSurfaceView.java | 144 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); 145 setRenderScriptGL(rs); 146 return rs; 162 public void setRenderScriptGL(RenderScriptGL rs) { argument 163 mRS = rs;
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
H A D | ScriptC.java | 42 * @param rs 44 protected ScriptC(int id, RenderScript rs) { argument 45 super(id, rs); 52 * @param rs 56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument 57 super(0, rs); 58 int id = internalCreate(rs, resources, resourceID); 66 private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceID) { argument 96 String cachePath = rs.getApplicationContext().getCacheDir().toString(); 100 return rs [all...] |
H A D | ScriptIntrinsicLUT.java | 33 private ScriptIntrinsicLUT(int id, RenderScript rs) { argument 34 super(id, rs); 35 mTables = Allocation.createSized(rs, Element.U8(rs), 1024); 50 * @param rs The Renderscript context 55 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { argument 56 int id = rs.nScriptIntrinsicCreate(3, e.getID(rs)); 57 return new ScriptIntrinsicLUT(id, rs);
|
H A D | BaseObj.java | 28 BaseObj(int id, RenderScript rs) { argument 29 rs.validate(); 30 mRS = rs; 46 * @param rs Context to verify against internal context for 51 int getID(RenderScript rs) { argument 59 if ((rs != null) && (rs != mRS)) {
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | FullscreenBlur.java | 57 static void createRenderTargets(RenderScriptGL rs, int w, int h) {
argument 60 Type.Builder b = new Type.Builder(rs, Element.RGBA_8888(rs));
63 sRenderTargetBlur0Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage));
64 sRenderTargetBlur1Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage));
65 sRenderTargetBlur2Color = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage));
67 b = new Type.Builder(rs, Element.createPixel(rs, Element.DataType.UNSIGNED_16,
71 sRenderTargetBlur0Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderType, usage));
72 sRenderTargetBlur1Depth = new TextureRenderTarget(Allocation.createTyped(rs, renderTyp 94 addBlurPasses(Scene scene, RenderScriptGL rs, Camera cam) argument 148 addCompositePass(Scene scene, RenderScriptGL rs, Camera cam) argument 160 getShader(Resources res, RenderScriptGL rs, int resID, Type constants) argument 173 initShaders(Resources res, RenderScriptGL rs) argument [all...] |
/frameworks/rs/cpp/ |
H A D | RenderScript.cpp | 24 #include "rs.h" 93 RenderScript *rs = static_cast<RenderScript *>(vrsc); local 97 rsContextInitToClient(rs->mContext); 98 rs->mMessageRun = true; 100 while (rs->mMessageRun) { 104 RsMessageToClientType r = rsContextPeekMessage(rs->mContext, 116 rsContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen), 123 if(rs->mMessageFunc != NULL) { 124 rs->mErrorFunc(usrID, (const char *)rbuf); 134 if(rs [all...] |
H A D | BaseObj.cpp | 19 #include <rs.h> 39 BaseObj::BaseObj(void *id, RenderScript *rs) { argument 40 mRS = rs;
|
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
H A D | FountainRS.java | 17 package com.example.android.rs.fountain; 33 public void init(RenderScriptGL rs, Resources res) { argument 34 mRS = rs; 37 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(rs); 39 rs.bindProgramFragment(pfb.create());
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | SceneManager.java | 90 RenderScriptGL rs = sSceneManager.mRS; 91 Type.Builder b = new Type.Builder(rs, Element.RGBA_8888(rs)); 101 Allocation defaultImage = Allocation.createTyped(rs, bitmapType, mip, usage); 165 static Allocation createFromBitmap(Bitmap b, RenderScriptGL rs, boolean isCube) { argument 172 return Allocation.createCubemapFromBitmap(rs, b, mip, usage); 174 return Allocation.createFromBitmap(rs, b, mip, usage); 177 public static Allocation loadCubemap(String name, RenderScriptGL rs, Resources res) { argument 178 return createFromBitmap(loadBitmap(name, res), rs, true); 181 public static Allocation loadCubemap(int id, RenderScriptGL rs, Resource argument 185 loadTexture2D(String name, RenderScriptGL rs, Resources res) argument 189 loadTexture2D(int id, RenderScriptGL rs, Resources res) argument 193 BLEND_ADD_DEPTH_NONE(RenderScript rs) argument 202 getStringAsAllocation(RenderScript rs, String str) argument 458 initRS(RenderScriptGL rs, Resources res, int w, int h) argument [all...] |
H A D | TextureRenderTarget.java | 55 RenderScriptGL rs = SceneManager.getRS(); 56 if (rs == null) { 60 mField = new ScriptField_Texture_s(rs, 1);
|
H A D | Camera.java | 81 RenderScriptGL rs = SceneManager.getRS(); 82 mData.name = getNameAlloc(rs); 93 RenderScriptGL rs = SceneManager.getRS(); 94 if (rs == null) { 102 mField = new ScriptField_Camera_s(rs, 1); 108 mData.name = getNameAlloc(rs);
|
H A D | Texture2D.java | 75 RenderScriptGL rs = SceneManager.getRS(); 79 setTexture(SceneManager.loadTexture2D(mFileDir + shortName, rs, res)); 81 setTexture(SceneManager.loadTexture2D(mResourceID, rs, res)); 90 RenderScriptGL rs = SceneManager.getRS(); 92 if (rs == null || res == null) { 96 mField = new ScriptField_Texture_s(rs, 1);
|
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/ |
H A D | RsYuv.java | 17 package com.android.rs.livepreview; 47 RsYuv(RenderScript rs, Resources res, int width, int height) { argument 50 mRS = rs; 54 mYuv = ScriptIntrinsicYuvToRGB.create(rs, Element.RGBA_8888(mRS)); 60 mAllocationOut = Allocation.createTyped(rs, tb.create()); 61 mAllocationIn = Allocation.createSized(rs, Element.U8(mRS), (mHeight * mWidth) +
|