/frameworks/base/rs/java/android/renderscript/ |
H A D | ProgramStore.java | 146 ProgramStore(long id, RenderScript rs) { argument 147 super(id, rs); 233 * @param rs Context to which the program will belong. 235 public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs) { argument 236 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { 237 ProgramStore.Builder builder = new ProgramStore.Builder(rs); 242 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); 244 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; 254 * @param rs Context to which the program will belong. 256 public static ProgramStore BLEND_NONE_DEPTH_NONE(RenderScript rs) { argument 280 BLEND_ALPHA_DEPTH_TEST(RenderScript rs) argument 302 BLEND_ALPHA_DEPTH_NONE(RenderScript rs) argument 331 Builder(RenderScript rs) argument [all...] |
H A D | RSSurfaceView.java | 137 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); 138 setRenderScriptGL(rs); 139 return rs; 155 public void setRenderScriptGL(RenderScriptGL rs) { argument 156 mRS = rs;
|
H A D | ScriptIntrinsicResize.java | 25 private ScriptIntrinsicResize(long id, RenderScript rs) { argument 26 super(id, rs); 33 * @param rs The RenderScript context 37 public static ScriptIntrinsicResize create(RenderScript rs) { argument 38 long id = rs.nScriptIntrinsicCreate(12, 0); 39 ScriptIntrinsicResize si = new ScriptIntrinsicResize(id, rs);
|
H A D | BaseObj.java | 28 BaseObj(long id, RenderScript rs) { argument 29 rs.validate(); 30 mRS = rs; 46 * @param rs Context to verify against internal context for 51 long getID(RenderScript rs) { argument 59 if ((rs != null) && (rs != mRS)) {
|
/frameworks/rs/tests/cppallocation/ |
H A D | Android.mk | 8 multiply.rs \ 22 LOCAL_C_INCLUDES += frameworks/rs/cpp 23 LOCAL_C_INCLUDES += frameworks/rs
|
/frameworks/rs/tests/cppbasic/ |
H A D | Android.mk | 8 mono.rs \ 22 LOCAL_C_INCLUDES += frameworks/rs/cpp 23 LOCAL_C_INCLUDES += frameworks/rs
|
/frameworks/rs/tests/cppbasic-getpointer/ |
H A D | Android.mk | 5 mono.rs \ 19 LOCAL_C_INCLUDES += frameworks/rs/cpp 20 LOCAL_C_INCLUDES += frameworks/rs
|
H A D | compute.cpp | 18 sp<RS> rs = new RS(); local 19 printf("New RS %p\n", rs.get()); 22 bool r = rs->init("/system/bin"); 25 sp<const Element> e = Element::U32(rs); 28 Type::Builder tb(rs, e); 35 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); 38 sp<Allocation> ain = Allocation::createTyped(rs, t, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_SHARED); 39 sp<Allocation> aout = Allocation::createTyped(rs, t, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_SHARED); 67 sp<ScriptC_mono> sc = new ScriptC_mono(rs); 69 rs [all...] |
/frameworks/rs/tests/cppbasic-shared/ |
H A D | Android.mk | 5 mono.rs \ 19 LOCAL_C_INCLUDES += frameworks/rs/cpp 20 LOCAL_C_INCLUDES += frameworks/rs
|
/frameworks/rs/tests/cppstrided/ |
H A D | Android.mk | 8 multiply.rs \ 22 LOCAL_C_INCLUDES += frameworks/rs/cpp 23 LOCAL_C_INCLUDES += frameworks/rs
|
H A D | compute.cpp | 24 sp<RS> rs = new RS(); local 26 bool r = rs->init("/system/bin"); 28 sp<const Element> e = Element::U32(rs); 30 Type::Builder tb(rs, e); 35 sp<Allocation> ain = Allocation::createTyped(rs, t); 36 sp<Allocation> aout = Allocation::createTyped(rs, t); 38 sp<ScriptC_multiply> sc = new ScriptC_multiply(rs);
|
/frameworks/rs/tests/latency/ |
H A D | Android.mk | 8 latency.rs \ 22 LOCAL_C_INCLUDES += frameworks/rs/cpp 23 LOCAL_C_INCLUDES += frameworks/rs
|
H A D | latency.cpp | 54 sp<RS> rs = new RS(); local 60 bool r = rs->init("/system/bin", flags); 62 sp<const Element> e = Element::U32(rs); 64 Type::Builder tb(rs, e); 70 sp<Allocation> ain = Allocation::createTyped(rs, t); 71 sp<Allocation> aout = Allocation::createTyped(rs, t); 73 sp<ScriptC_latency> sc = new ScriptC_latency(rs); 83 rs->finish(); 99 rs->finish();
|
/frameworks/rs/tests/typecheck/ |
H A D | Android.mk | 8 kernels.rs \ 22 LOCAL_C_INCLUDES += frameworks/rs/cpp 23 LOCAL_C_INCLUDES += frameworks/rs
|
H A D | typecheck.cpp | 25 sp<Allocation> createAlloc(sp<RS> rs, sp<const Element> e) { argument 26 Type::Builder tb(rs, e); 29 return Allocation::createTyped(rs, t); 35 sp<RS> rs = new RS(); \ 36 bool r = rs->init("/system/bin"); \ 37 sp<Allocation> a = createAlloc(rs, Element::ENAME(rs)); \ 38 ScriptC_kernels sc(rs); \ 40 rs->finish(); \ 42 if (shouldPass != (rs [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | BaseObj.java | 29 BaseObj(int id, RenderScript rs) { argument 30 rs.validate(); 31 mRS = rs; 47 * @param rs Context to verify against internal context for 52 int getID(RenderScript rs) { argument 60 if ((rs != null) && (rs != mRS)) {
|
H A D | ScriptIntrinsicColorMatrix.java | 34 protected ScriptIntrinsicColorMatrix(int id, RenderScript rs) { argument 35 super(id, rs); 44 * @param rs The RenderScript context 49 public static ScriptIntrinsicColorMatrix create(RenderScript rs, Element e) { argument 50 if (rs.isNative) { 51 RenderScriptThunker rst = (RenderScriptThunker) rs; 52 return ScriptIntrinsicColorMatrixThunker.create(rs, e); 55 if (!e.isCompatible(Element.U8_4(rs))) { 58 int id = rs.nScriptIntrinsicCreate(2, e.getID(rs)); [all...] |
/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/java/tests/HelloComputeNDK/libhellocomputendk/ |
H A D | helloComputeNDK.cpp | 37 sp<RS> rs = new RS(); local 38 rs->init(path); 41 sp<const Element> e = Element::RGBA_8888(rs); 43 sp<const Type> t = Type::create(rs, e, X, Y, 0); 45 sp<Allocation> inputAlloc = Allocation::createTyped(rs, t, RS_ALLOCATION_MIPMAP_NONE, 48 sp<Allocation> outputAlloc = Allocation::createTyped(rs, t, RS_ALLOCATION_MIPMAP_NONE, 54 ScriptC_mono* sc = new ScriptC_mono(rs);
|
/frameworks/rs/java/tests/MathErr/src/com/example/android/rs/matherr/ |
H A D | MathErr.java | 17 package com.example.android.rs.matherr; 36 MathErr(RenderScript rs) { argument 37 mRS = rs; 40 mAllocationSrc = Allocation.createSized(rs, Element.F32(rs), BUF_SIZE); 41 mAllocationRes = Allocation.createSized(rs, Element.F32(rs), BUF_SIZE);
|
/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/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/ |
H A D | Benchmark.java | 17 package com.example.android.rs.latencybench; 28 public Benchmark(RenderScript rs, Resources res) { argument 29 mRS = rs; 31 ain = Allocation.createSized(rs, Element.U32(mRS), 10000); 32 aout = Allocation.createSized(rs, Element.U32(mRS), 10000);
|
/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);
|