Searched refs:rs (Results 51 - 75 of 291) sorted by relevance

1234567891011>>

/frameworks/base/tests/RenderScriptTests/ComputeBenchmark/src/com/example/android/rs/computebench/
H A DBenchmark.java17 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 DHelloWorldRS.java17 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 Dlaunchtestxlw.rs18 #pragma rs java_package_name(com.example.android.rs.computeperf)
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
H A Dgreyscale.fs18 #pragma rs java_package_name(com.android.rs.image)
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
H A Dgreyscale.rs18 #pragma rs java_package_name(com.android.rs.image2)
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBenchBaseTest.java22 boolean init(RenderScriptGL rs, Resources res); argument
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DUT_copy_test.java17 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 DDriverRS.java.template34 public void init(RenderScriptGL rs, Resources res) {
35 mRS = rs;
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-int-param/
H A DDriverRS.java.template34 public void init(RenderScriptGL rs, Resources res) {
35 mRS = rs;
/frameworks/base/graphics/java/android/renderscript/
H A DScriptIntrinsicLUT.java35 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 DBaseObj.java28 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 DProgramStore.java148 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 DRSSurfaceView.java144 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 DScriptC.java42 * @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 DScriptIntrinsicLUT.java33 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 DBaseObj.java28 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 DFullscreenBlur.java57 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 DRenderScript.cpp24 #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 DBaseObj.cpp19 #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 DFountainRS.java17 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 DSceneManager.java90 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 DTextureRenderTarget.java55 RenderScriptGL rs = SceneManager.getRS();
56 if (rs == null) {
60 mField = new ScriptField_Texture_s(rs, 1);
H A DCamera.java81 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 DTexture2D.java75 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 DRsYuv.java17 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) +

Completed in 417 milliseconds

1234567891011>>