/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptIntrinsicLUT.java | 33 protected ScriptIntrinsicLUT(int id, RenderScript rs) { argument 34 super(id, rs); 42 * @param rs The RenderScript context 47 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { argument 48 if (rs.isNative) { 49 RenderScriptThunker rst = (RenderScriptThunker) rs; 50 return ScriptIntrinsicLUTThunker.create(rs, e); 53 int id = rs.nScriptIntrinsicCreate(3, e.getID(rs)); 55 ScriptIntrinsicLUT si = new ScriptIntrinsicLUT(id, rs); [all...] |
H A D | ScriptC.java | 43 * @param rs 45 protected ScriptC(int id, RenderScript rs) { argument 46 super(id, rs); 53 * @param rs 57 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument 58 super(0, rs); 60 if (rs.isNative) { 61 RenderScriptThunker rst = (RenderScriptThunker)rs; 67 int id = internalCreate(rs, resources, resourceID); 75 private static synchronized int internalCreate(RenderScript rs, Resource argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptIntrinsicBlur.java | 29 private ScriptIntrinsicBlur(long id, RenderScript rs) { argument 30 super(id, rs); 39 * @param rs The RenderScript context 44 public static ScriptIntrinsicBlur create(RenderScript rs, Element e) { argument 45 if ((!e.isCompatible(Element.U8_4(rs))) && (!e.isCompatible(Element.U8(rs)))) { 48 long id = rs.nScriptIntrinsicCreate(5, e.getID(rs)); 49 ScriptIntrinsicBlur sib = new ScriptIntrinsicBlur(id, rs);
|
H A D | FileA3D.java | 129 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { argument 139 long objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex); 146 entry.mLoadedObj = new Mesh(objectID, rs); 154 IndexEntry(RenderScript rs, int index, long id, String name, EntryType type) { argument 155 mRS = rs; 167 FileA3D(long id, RenderScript rs, InputStream stream) { argument 168 super(id, rs); 222 * @param rs Context to which the object will belong. 228 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { argument 229 rs 249 createFromFile(RenderScript rs, String path) argument 269 createFromFile(RenderScript rs, File path) argument 283 createFromResource(RenderScript rs, Resources res, int id) argument [all...] |
H A D | Font.java | 151 Font(long id, RenderScript rs) { argument 152 super(id, rs); 159 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { argument 160 rs.validate(); 162 long fontId = rs.nFontCreateFromFile(path, pointSize, dpi); 167 Font rsFont = new Font(fontId, rs); 175 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { argument 176 return createFromFile(rs, res, path.getAbsolutePath(), pointSize); 182 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { argument 183 rs 198 createFromResource(RenderScript rs, Resources res, int id, float pointSize) argument 238 create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) argument [all...] |
H A D | ScriptIntrinsic3DLUT.java | 31 private ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e) { argument 32 super(id, rs); 41 * @param rs The RenderScript context 46 public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e) { argument 47 long id = rs.nScriptIntrinsicCreate(8, e.getID(rs)); 49 if (!e.isCompatible(Element.U8_4(rs))) { 53 return new ScriptIntrinsic3DLUT(id, rs, e);
|
H A D | ScriptIntrinsicLUT.java | 31 private ScriptIntrinsicLUT(long id, RenderScript rs) { argument 32 super(id, rs); 33 mTables = Allocation.createSized(rs, Element.U8(rs), 1024); 48 * @param rs The RenderScript context 53 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) { argument 54 long id = rs.nScriptIntrinsicCreate(3, e.getID(rs)); 55 return new ScriptIntrinsicLUT(id, rs);
|
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | LaunchTest.java | 17 package com.example.android.rs.computeperf; 28 LaunchTest(RenderScript rs, Resources res) { argument 29 mRS = rs; 33 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim); 34 Type.Builder tb = new Type.Builder(rs, Element.U8(rs)); 37 mAllocationXY = Allocation.createTyped(rs, tb.create());
|
H A D | launchtest.rs | 18 #pragma rs java_package_name(com.example.android.rs.computeperf)
|
/frameworks/rs/tests/cppallocation/ |
H A D | multiply.rs | 18 #pragma rs java_package_name(unused)
|
H A D | compute.cpp | 23 sp<RS> rs = new RS(); local 25 bool r = rs->init("/system/bin"); 27 sp<const Element> e = Element::U32(rs); 29 Type::Builder tb(rs, e); 33 sp<Allocation> ain = Allocation::createTyped(rs, t); 34 sp<Allocation> aout = Allocation::createTyped(rs, t); 36 sp<ScriptC_multiply> sc = new ScriptC_multiply(rs);
|
/frameworks/rs/tests/cppstrided/ |
H A D | multiply.rs | 18 #pragma rs java_package_name(unused)
|
/frameworks/rs/cpp/ |
H A D | Sampler.cpp | 22 Sampler::Sampler(sp<RS> rs, void* id): argument 23 BaseObj(id, rs) 52 sp<Sampler> Sampler::create(sp<RS> rs, RsSamplerValue min, RsSamplerValue mag, RsSamplerValue wrapS, RsSamplerValue wrapT, float anisotropy) { argument 54 void* id = RS::dispatch->SamplerCreate(rs->getContext(), min, mag, wrapS, wrapT, RS_SAMPLER_WRAP, anisotropy); 55 return new Sampler(rs, id); 58 #define CREATE_SAMPLER(N, MIN, MAG, WRAPS, WRAPT) sp<const Sampler> Sampler::N(sp<RS> rs) { \ 59 if (rs->mSamplers.N == NULL) { \ 60 rs->mSamplers.N = (create(rs, MIN, MAG, WRAPS, WRAPT, 0.f)); \ 62 return rs [all...] |
H A D | Element.cpp | 75 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \ 76 if (rs->mElements.N == NULL) { \ 77 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \ 79 return rs->mElements.N; \ 102 #define CREATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \ 103 if (rs->mElements.N == NULL) { \ 104 rs->mElements.N = createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \ 106 return rs 170 Element(void *id, android::RSC::sp<RS> rs, std::vector<android::RSC::sp<Element> > &elements, std::vector<std::string> &elementNames, std::vector<uint32_t> &arraySizes) argument 244 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument 274 createUser(android::RSC::sp<RS> rs, RsDataType dt) argument 279 createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) argument 288 createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) argument 361 Builder(android::RSC::sp<RS> rs) argument [all...] |
/frameworks/rs/tests/cppbasic/ |
H A D | compute.cpp | 14 sp<RS> rs = new RS(); local 15 printf("New RS %p\n", rs.get()); 18 bool r = rs->init("/system/bin"); 21 sp<const Element> e = Element::RGBA_8888(rs); 24 Type::Builder tb(rs, e); 31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); 34 sp<Allocation> ain = Allocation::createTyped(rs, t); 35 sp<Allocation> aout = Allocation::createTyped(rs, t); 38 sp<ScriptC_mono> sc = new ScriptC_mono(rs); 46 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); [all...] |
/frameworks/rs/tests/cppbasic-shared/ |
H A D | compute.cpp | 14 sp<RS> rs = new RS(); local 15 printf("New RS %p\n", rs.get()); 18 bool r = rs->init("/system/bin"); 21 sp<const Element> e = Element::RGBA_8888(rs); 24 Type::Builder tb(rs, e); 31 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); 34 sp<Allocation> ain = Allocation::createTyped(rs, t); 35 sp<Allocation> aout = Allocation::createTyped(rs, t); 38 sp<ScriptC_mono> sc = new ScriptC_mono(rs); 46 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | Transform.java | 53 RenderScriptGL rs = SceneManager.getRS(); 55 Allocation childRSData = Allocation.createSized(rs, Element.ALLOCATION(rs), 76 RenderScriptGL rs = SceneManager.getRS(); 77 if (rs == null) { 80 mField = new ScriptField_SgTransform(rs, 1); 83 mTransformData.name = getNameAlloc(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/rs/java/tests/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/PerfTest/src/com/android/perftest/ |
H A D | RsBenchBaseTest.java | 22 boolean init(RenderScriptGL rs, Resources res); argument
|
/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/rs/java/tests/HelloComputeNDK/libhellocomputendk/ |
H A D | mono.rs | 18 #pragma rs java_package_name(com.example.android.rs.hellocomputendk)
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
H A D | UT_copy_test.java | 17 package com.android.rs.test_compat; 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/rs/java/tests/RsTest/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...] |