/frameworks/base/graphics/java/android/renderscript/ |
D | Element.java | 161 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN() argument 162 if(rs.mElement_BOOLEAN == null) { in BOOLEAN() 163 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN() 165 return rs.mElement_BOOLEAN; in BOOLEAN() 175 public static Element U8(RenderScript rs) { in U8() argument 176 if(rs.mElement_U8 == null) { in U8() 177 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8() 179 return rs.mElement_U8; in U8() 189 public static Element I8(RenderScript rs) { in I8() argument 190 if(rs.mElement_I8 == null) { in I8() [all …]
|
D | Sampler.java | 50 Sampler(int id, RenderScript rs) { in Sampler() argument 51 super(id, rs); in Sampler() 62 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() argument 63 if(rs.mSampler_CLAMP_NEAREST == null) { in CLAMP_NEAREST() 64 Builder b = new Builder(rs); in CLAMP_NEAREST() 69 rs.mSampler_CLAMP_NEAREST = b.create(); in CLAMP_NEAREST() 71 return rs.mSampler_CLAMP_NEAREST; in CLAMP_NEAREST() 82 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() argument 83 if(rs.mSampler_CLAMP_LINEAR == null) { in CLAMP_LINEAR() 84 Builder b = new Builder(rs); in CLAMP_LINEAR() [all …]
|
D | ProgramRaster.java | 46 ProgramRaster(int id, RenderScript rs) { in ProgramRaster() argument 47 super(id, rs); in ProgramRaster() 57 public static ProgramRaster CULL_BACK(RenderScript rs) { in CULL_BACK() argument 58 if(rs.mProgramRaster_CULL_BACK == null) { in CULL_BACK() 59 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_BACK() 61 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK() 63 return rs.mProgramRaster_CULL_BACK; in CULL_BACK() 66 public static ProgramRaster CULL_FRONT(RenderScript rs) { in CULL_FRONT() argument 67 if(rs.mProgramRaster_CULL_FRONT == null) { in CULL_FRONT() 68 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_FRONT() [all …]
|
D | ProgramStore.java | 139 ProgramStore(int id, RenderScript rs) { in ProgramStore() argument 140 super(id, rs); in ProgramStore() 154 public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs) { in BLEND_NONE_DEPTH_TEST() argument 155 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { in BLEND_NONE_DEPTH_TEST() 156 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST() 161 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST() 163 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; in BLEND_NONE_DEPTH_TEST() 175 public static ProgramStore BLEND_NONE_DEPTH_NONE(RenderScript rs) { in BLEND_NONE_DEPTH_NONE() argument 176 if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH == null) { in BLEND_NONE_DEPTH_NONE() 177 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE() [all …]
|
D | FileA3D.java | 124 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { in internalCreate() argument 134 int objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex); in internalCreate() 141 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate() 149 IndexEntry(RenderScript rs, int index, int id, String name, EntryType type) { in IndexEntry() argument 150 mRS = rs; in IndexEntry() 162 FileA3D(int id, RenderScript rs, InputStream stream) { in FileA3D() argument 163 super(id, rs); in FileA3D() 220 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset() argument 221 rs.validate(); in createFromAsset() 222 int fileId = rs.nFileA3DCreateFromAsset(mgr, path); in createFromAsset() [all …]
|
D | Font.java | 137 Font(int id, RenderScript rs) { in Font() argument 138 super(id, rs); in Font() 144 … static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { in createFromFile() argument 145 rs.validate(); in createFromFile() 147 int fontId = rs.nFontCreateFromFile(path, pointSize, dpi); in createFromFile() 152 Font rsFont = new Font(fontId, rs); in createFromFile() 157 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { in createFromFile() argument 158 return createFromFile(rs, res, path.getAbsolutePath(), pointSize); in createFromFile() 161 … static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { in createFromAsset() argument 162 rs.validate(); in createFromAsset() [all …]
|
D | Allocation.java | 179 Allocation(int id, RenderScript rs, Type t, int usage) { in Allocation() argument 180 super(id, rs); in Allocation() 868 … static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { in createTyped() argument 869 rs.validate(); in createTyped() 873 int id = rs.nAllocationCreateTyped(type.getID(), mips.mID, usage); in createTyped() 877 return new Allocation(id, rs, type, usage); in createTyped() 891 static public Allocation createTyped(RenderScript rs, Type type, int usage) { in createTyped() argument 892 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage); in createTyped() 905 static public Allocation createTyped(RenderScript rs, Type type) { in createTyped() argument 906 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, USAGE_SCRIPT); in createTyped() [all …]
|
D | ProgramVertexFixedFunction.java | 32 ProgramVertexFixedFunction(int id, RenderScript rs) { in ProgramVertexFixedFunction() argument 33 super(id, rs); in ProgramVertexFixedFunction() 48 public InternalBuilder(RenderScript rs) { in InternalBuilder() argument 49 super(rs); in InternalBuilder() 109 public Builder(RenderScript rs) { in Builder() argument 110 mRS = rs; in Builder() 122 static Type getConstantInputType(RenderScript rs) { in getConstantInputType() argument 123 Element.Builder b = new Element.Builder(rs); in getConstantInputType() 124 b.add(Element.MATRIX4X4(rs), "MV"); in getConstantInputType() 125 b.add(Element.MATRIX4X4(rs), "P"); in getConstantInputType() [all …]
|
D | ScriptC.java | 44 protected ScriptC(int id, RenderScript rs) { in ScriptC() argument 45 super(id, rs); in ScriptC() 56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument 57 super(0, rs); in ScriptC() 58 int id = internalCreate(rs, resources, resourceID); in ScriptC() 66 …private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceI… in internalCreate() argument 99 String cacheDir = rs.getApplicationContext().getCacheDir().toString(); in internalCreate() 102 return rs.nScriptCCreate(resName, cacheDir, pgm, pgmLength); in internalCreate()
|
D | Script.java | 75 Script(int id, RenderScript rs) { in Script() argument 76 super(id, rs); in Script() 177 Builder(RenderScript rs) { in Builder() argument 178 mRS = rs; in Builder() 187 protected void init(RenderScript rs, int dimx) { in init() argument 188 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT); in init() 191 protected void init(RenderScript rs, int dimx, int usages) { in init() argument 192 … mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT | usages); in init()
|
D | AllocationAdapter.java | 28 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { in AllocationAdapter() argument 29 super(id, rs, alloc.mType, alloc.mUsage); in AllocationAdapter() 214 static public AllocationAdapter create1D(RenderScript rs, Allocation a) { in create1D() argument 215 rs.validate(); in create1D() 216 AllocationAdapter aa = new AllocationAdapter(0, rs, a); in create1D() 225 static public AllocationAdapter create2D(RenderScript rs, Allocation a) { in create2D() argument 227 rs.validate(); in create2D() 228 AllocationAdapter aa = new AllocationAdapter(0, rs, a); in create2D()
|
D | RSSurfaceView.java | 123 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); in createRenderScriptGL() local 124 setRenderScriptGL(rs); in createRenderScriptGL() 125 return rs; in createRenderScriptGL() 133 public void setRenderScriptGL(RenderScriptGL rs) { in setRenderScriptGL() argument 134 mRS = rs; in setRenderScriptGL()
|
D | RSTextureView.java | 140 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); in createRenderScriptGL() local 141 setRenderScriptGL(rs); in createRenderScriptGL() 145 return rs; in createRenderScriptGL() 163 public void setRenderScriptGL(RenderScriptGL rs) { in setRenderScriptGL() argument 164 mRS = rs; in setRenderScriptGL()
|
D | ProgramFragment.java | 40 ProgramFragment(int id, RenderScript rs) { in ProgramFragment() argument 41 super(id, rs); in ProgramFragment() 50 public Builder(RenderScript rs) { in Builder() argument 51 super(rs); in Builder()
|
D | ProgramVertex.java | 53 ProgramVertex(int id, RenderScript rs) { in ProgramVertex() argument 54 super(id, rs); in ProgramVertex() 71 public Builder(RenderScript rs) { in Builder() argument 72 super(rs); in Builder()
|
D | ProgramFragmentFixedFunction.java | 32 ProgramFragmentFixedFunction(int id, RenderScript rs) { in ProgramFragmentFixedFunction() argument 33 super(id, rs); in ProgramFragmentFixedFunction() 37 public InternalBuilder(RenderScript rs) { in InternalBuilder() argument 38 super(rs); in InternalBuilder() 196 public Builder(RenderScript rs) { in Builder() argument 197 mRS = rs; in Builder()
|
/frameworks/compile/slang/ |
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-spec-inc,rs-data-kind-enums) 62 $(call generate-rs-spec-inc,rs-data-element-enums)
|
D | README.rst | 2 llvm-rs-cc: Compiler for Renderscript language 9 llvm-rs-cc compiles a program in the Renderscript language to generate the 25 llvm-rs-cc is run on the host and performs many aggressive optimizations. 29 llvm-rs-cc is a driver on top of libslang. The architecture of 55 Note that *-MD* will tell llvm-rs-cc to output dependence information. 72 $ out/host/linux-x86/bin/llvm-rs-cc \ 78 -I frameworks/base/libs/rs/scriptc \ 80 frameworks/base/libs/rs/java/Fountain/src/com/android/fountain/fountain.rs 93 Example Program: fountain.rs 96 fountain.rs is in the Renderscript language, which is based on the standard [all …]
|
/frameworks/compile/slang/tests/F_root_compute_really_bad/ |
D | stderr.txt.expect | 1 root_compute_really_bad.rs:4:5: error: compute root() is required to return a void type 2 root_compute_really_bad.rs:4:5: error: Compute root() must have at least one parameter for in or out 3 root_compute_really_bad.rs:4:14: error: Unexpected root() parameter 'ain' of type 'int' 4 root_compute_really_bad.rs:4:23: error: Unexpected root() parameter 'aout' of type 'int' 5 root_compute_really_bad.rs:4:33: error: Unexpected root() parameter 'usrData' of type 'int' 6 root_compute_really_bad.rs:4:48: error: Unexpected root() parameter 'x1' of type 'float' 7 root_compute_really_bad.rs:4:59: error: Unexpected root() parameter 'y1' of type 'double' 8 root_compute_really_bad.rs:5:31: error: Duplicate parameter entry (by position/name): 'x' 9 root_compute_really_bad.rs:6:19: error: Unexpected root() parameter 'extra1' of type 'uint32_t' 10 root_compute_really_bad.rs:6:36: error: Unexpected root() parameter 'extra2' of type 'uint32_t'
|
/frameworks/compile/slang/tests/F_root_compute_non_uint32_t_xyzar/ |
D | stderr.txt.expect | 1 root_compute_non_uint32_t_xyzar.rs:5:15: error: Unexpected root() parameter 'x' of type 'int' 2 root_compute_non_uint32_t_xyzar.rs:5:24: error: Unexpected root() parameter 'y' of type 'float' 3 root_compute_non_uint32_t_xyzar.rs:5:34: error: Unexpected root() parameter 'z' of type 'double' 4 root_compute_non_uint32_t_xyzar.rs:5:43: error: Unexpected root() parameter 'ar' of type 'uchar'
|
/frameworks/compile/slang/tests/F_mix_vector/ |
D | stderr.txt.expect | 1 mix_vector.rs:6:13: error: illegal vector component name 'g' 2 mix_vector.rs:7:13: error: illegal vector component name 'y' 3 mix_vector.rs:8:7: error: illegal vector component name 'r'
|
/frameworks/compile/slang/tests/F_multi_export_errors/ |
D | stderr.txt.expect | 1 multi_export_errors.rs:4:5: error: init(void) is required to have a void return type 2 multi_export_errors.rs:8:6: error: root(void) is required to return an int for graphics usage 3 multi_export_errors.rs:11:5: error: invokable non-static functions are required to return void
|
/frameworks/compile/slang/tests/F_root_graphics_13/ |
D | stderr.txt.expect | 1 root_graphics_13.rs:5:5: error: compute root() is required to return a void type 2 root_graphics_13.rs:5:5: error: Compute root() must have at least one parameter for in or out 3 root_graphics_13.rs:5:5: error: Compute root() targeting SDK levels 11-13 may not skip parameters
|
/frameworks/base/libs/rs/ |
D | Android.mk | 53 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec 54 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec 70 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec 71 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec 161 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec 162 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec 176 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec 177 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/mockril/ |
D | MockRilTest.java | 64 RilCtrlCmds.CtrlRspRadioState rs = new RilCtrlCmds.CtrlRspRadioState(); in testProtobufSerDes() local 65 assertTrue(String.format("expected rs.state == 0 was %d", rs.getState()), in testProtobufSerDes() 66 rs.getState() == 0); in testProtobufSerDes() 67 rs.setState(1); in testProtobufSerDes() 68 assertTrue(String.format("expected rs.state == 1 was %d", rs.getState()), in testProtobufSerDes() 69 rs.getState() == 1); in testProtobufSerDes() 71 byte[] rs_ser = rs.toByteArray(); in testProtobufSerDes() 73 assertTrue(String.format("expected rsNew.state == 1 was %d", rs.getState()), in testProtobufSerDes() 74 rs.getState() == 1); in testProtobufSerDes()
|