/frameworks/base/graphics/java/android/renderscript/ |
H A D | Path.java | 44 Path(int id, RenderScript rs, Primitive p, Allocation vtx, Allocation loop, float q) { argument 45 super(id, rs); 69 public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { argument 70 int id = rs.nPathCreate(p.mID, false, vtx.getID(rs), 0, quality); 71 Path newPath = new Path(id, rs, p, null, null, quality); 75 public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { argument 79 public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { argument 83 public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { argument
|
H A D | ScriptIntrinsicBlur.java | 33 private ScriptIntrinsicBlur(int id, RenderScript rs) { argument 34 super(id, rs); 43 * @param rs The RenderScript context 48 public static ScriptIntrinsicBlur create(RenderScript rs, Element e) { argument 49 if ((!e.isCompatible(Element.U8_4(rs))) && (!e.isCompatible(Element.U8(rs)))) { 52 int id = rs.nScriptIntrinsicCreate(5, e.getID(rs)); 53 ScriptIntrinsicBlur sib = new ScriptIntrinsicBlur(id, rs);
|
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 | FileA3D.java | 134 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { argument 144 int objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex); 151 entry.mLoadedObj = new Mesh(objectID, rs); 159 IndexEntry(RenderScript rs, int index, int id, String name, EntryType type) { argument 160 mRS = rs; 172 FileA3D(int id, RenderScript rs, InputStream stream) { argument 173 super(id, rs); 227 * @param rs Context to which the object will belong. 233 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { argument 234 rs 254 createFromFile(RenderScript rs, String path) argument 274 createFromFile(RenderScript rs, File path) argument 288 createFromResource(RenderScript rs, Resources res, int id) argument [all...] |
H A D | Font.java | 154 Font(int id, RenderScript rs) { argument 155 super(id, rs); 162 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { argument 163 rs.validate(); 165 int fontId = rs.nFontCreateFromFile(path, pointSize, dpi); 170 Font rsFont = new Font(fontId, rs); 178 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { argument 179 return createFromFile(rs, res, path.getAbsolutePath(), pointSize); 185 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { argument 186 rs 201 createFromResource(RenderScript rs, Resources res, int id, float pointSize) argument 241 create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) argument [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptIntrinsicConvolve5x5.java | 29 ScriptIntrinsicConvolve5x5(int id, RenderScript rs) { argument 30 super(id, rs); 45 * @param rs The RenderScript context 50 public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element e) { argument 51 if (rs.isNative) { 52 RenderScriptThunker rst = (RenderScriptThunker) rs; 53 return ScriptIntrinsicConvolve5x5Thunker.create(rs, e); 55 int id = rs.nScriptIntrinsicCreate(4, e.getID(rs)); 56 return new ScriptIntrinsicConvolve5x5(id, rs); [all...] |
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 | 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 53 if (rs.isNative) { 54 RenderScriptThunker rst = (RenderScriptThunker)rs; 65 if ((rs != null) && (rs != mRS)) {
|
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/compile/slang/ |
H A D | RSSpec.mk | 17 RS_SPEC_GEN := $(BUILD_OUT_EXECUTABLES)/rs-spec-gen$(BUILD_EXECUTABLE_SUFFIX) 19 define generate-rs-spec-inc 32 $(call generate-rs-spec-inc,clang-builtin-enums) 38 $(call generate-rs-spec-inc,rs-data-type-enums) 44 $(call generate-rs-spec-inc,rs-matrix-type-enums) 50 $(call generate-rs-spec-inc,rs-object-type-enums) 56 $(call generate-rs [all...] |
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | LaunchTest.java | 17 package com.example.android.rs.computeperf; 29 LaunchTest(RenderScript rs, Resources res) { argument 30 mRS = rs; 35 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim); 36 Type.Builder tb = new Type.Builder(rs, Element.U8(rs)); 39 mAllocationXY = Allocation.createTyped(rs, tb.create());
|
H A D | launchtestxlw.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(); 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.get(), 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 169 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 243 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument 273 createUser(android::RSC::sp<RS> rs, RsDataType dt) argument 278 createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) argument 287 createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) argument 360 Builder(android::RSC::sp<RS> rs) argument [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/rs/java/tests/HelloComputeNDK/libhellocomputendk/ |
H A D | helloComputeNDK.cpp | 35 sp<RS> rs = new RS(); local 36 rs->init(); 38 sp<const Element> e = Element::RGBA_8888(rs); 40 sp<const Type> t = Type::create(rs, e, X, Y, 0); 42 sp<Allocation> inputAlloc = Allocation::createTyped(rs, t, RS_ALLOCATION_MIPMAP_NONE, 45 sp<Allocation> outputAlloc = Allocation::createTyped(rs, t, RS_ALLOCATION_MIPMAP_NONE, 51 ScriptC_mono* sc = new ScriptC_mono(rs);
|
H A D | mono.rs | 18 #pragma rs java_package_name(com.example.android.rs.hellocomputendk)
|
/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;
|