Searched refs:rs (Results 1 - 25 of 65) sorted by relevance

123

/frameworks/base/graphics/java/android/renderscript/
H A DElement.java233 * @param rs Context to which the element will belong.
237 public static Element BOOLEAN(RenderScript rs) { argument
238 if(rs.mElement_BOOLEAN == null) {
239 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN);
241 return rs.mElement_BOOLEAN;
247 * @param rs Context to which the element will belong.
251 public static Element U8(RenderScript rs) { argument
252 if(rs.mElement_U8 == null) {
253 rs
265 I8(RenderScript rs) argument
272 U16(RenderScript rs) argument
279 I16(RenderScript rs) argument
286 U32(RenderScript rs) argument
293 I32(RenderScript rs) argument
300 U64(RenderScript rs) argument
307 I64(RenderScript rs) argument
314 F32(RenderScript rs) argument
321 F64(RenderScript rs) argument
328 ELEMENT(RenderScript rs) argument
335 TYPE(RenderScript rs) argument
342 ALLOCATION(RenderScript rs) argument
349 SAMPLER(RenderScript rs) argument
356 SCRIPT(RenderScript rs) argument
363 MESH(RenderScript rs) argument
370 PROGRAM_FRAGMENT(RenderScript rs) argument
377 PROGRAM_VERTEX(RenderScript rs) argument
384 PROGRAM_RASTER(RenderScript rs) argument
391 PROGRAM_STORE(RenderScript rs) argument
399 A_8(RenderScript rs) argument
406 RGB_565(RenderScript rs) argument
413 RGB_888(RenderScript rs) argument
420 RGBA_5551(RenderScript rs) argument
427 RGBA_4444(RenderScript rs) argument
434 RGBA_8888(RenderScript rs) argument
441 F32_2(RenderScript rs) argument
448 F32_3(RenderScript rs) argument
455 F32_4(RenderScript rs) argument
462 F64_2(RenderScript rs) argument
469 F64_3(RenderScript rs) argument
476 F64_4(RenderScript rs) argument
483 U8_2(RenderScript rs) argument
490 U8_3(RenderScript rs) argument
497 U8_4(RenderScript rs) argument
504 I8_2(RenderScript rs) argument
511 I8_3(RenderScript rs) argument
518 I8_4(RenderScript rs) argument
525 U16_2(RenderScript rs) argument
532 U16_3(RenderScript rs) argument
539 U16_4(RenderScript rs) argument
546 I16_2(RenderScript rs) argument
553 I16_3(RenderScript rs) argument
560 I16_4(RenderScript rs) argument
567 U32_2(RenderScript rs) argument
574 U32_3(RenderScript rs) argument
581 U32_4(RenderScript rs) argument
588 I32_2(RenderScript rs) argument
595 I32_3(RenderScript rs) argument
602 I32_4(RenderScript rs) argument
609 U64_2(RenderScript rs) argument
616 U64_3(RenderScript rs) argument
623 U64_4(RenderScript rs) argument
630 I64_2(RenderScript rs) argument
637 I64_3(RenderScript rs) argument
644 I64_4(RenderScript rs) argument
651 MATRIX_4X4(RenderScript rs) argument
657 MATRIX4X4(RenderScript rs) argument
661 MATRIX_3X3(RenderScript rs) argument
668 MATRIX_2X2(RenderScript rs) argument
675 Element(int id, RenderScript rs, Element[] e, String[] n, int[] as) argument
688 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) argument
703 Element(int id, RenderScript rs) argument
757 createUser(RenderScript rs, DataType dt) argument
776 createVector(RenderScript rs, DataType dt, int size) argument
798 createPixel(RenderScript rs, DataType dt, DataKind dk) argument
894 Builder(RenderScript rs) argument
[all...]
H A DProgramRaster.java43 ProgramRaster(int id, RenderScript rs) { argument
44 super(id, rs);
66 public static ProgramRaster CULL_BACK(RenderScript rs) { argument
67 if(rs.mProgramRaster_CULL_BACK == null) {
68 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs);
70 rs.mProgramRaster_CULL_BACK = builder.create();
72 return rs.mProgramRaster_CULL_BACK;
75 public static ProgramRaster CULL_FRONT(RenderScript rs) { argument
76 if(rs.mProgramRaster_CULL_FRONT == null) {
77 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs);
84 CULL_NONE(RenderScript rs) argument
98 Builder(RenderScript rs) argument
[all...]
H A DSampler.java57 Sampler(int id, RenderScript rs) { argument
58 super(id, rs);
105 * @param rs Context to which the sampler will belong.
109 public static Sampler CLAMP_NEAREST(RenderScript rs) { argument
110 if(rs.mSampler_CLAMP_NEAREST == null) {
111 Builder b = new Builder(rs);
116 rs.mSampler_CLAMP_NEAREST = b.create();
118 return rs.mSampler_CLAMP_NEAREST;
125 * @param rs Context to which the sampler will belong.
129 public static Sampler CLAMP_LINEAR(RenderScript rs) { argument
149 CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) argument
169 WRAP_NEAREST(RenderScript rs) argument
189 WRAP_LINEAR(RenderScript rs) argument
209 WRAP_LINEAR_MIP_LINEAR(RenderScript rs) argument
236 Builder(RenderScript rs) argument
[all...]
H A DFileA3D.java124 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { argument
134 int objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex);
141 entry.mLoadedObj = new Mesh(objectID, rs);
149 IndexEntry(RenderScript rs, int index, int id, String name, EntryType type) { argument
150 mRS = rs;
162 FileA3D(int id, RenderScript rs, InputStream stream) { argument
163 super(id, rs);
214 * @param rs Context to which the object will belong.
220 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { argument
221 rs
240 createFromFile(RenderScript rs, String path) argument
259 createFromFile(RenderScript rs, File path) argument
272 createFromResource(RenderScript rs, Resources res, int id) argument
[all...]
H A DFont.java137 Font(int id, RenderScript rs) { argument
138 super(id, rs);
144 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { argument
145 rs.validate();
147 int fontId = rs.nFontCreateFromFile(path, pointSize, dpi);
152 Font rsFont = new Font(fontId, rs);
157 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { argument
158 return createFromFile(rs, res, path.getAbsolutePath(), pointSize);
161 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { argument
162 rs
174 createFromResource(RenderScript rs, Resources res, int id, float pointSize) argument
213 create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) argument
[all...]
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 packageName = rs.getApplicationContext().getPackageResourcePath();
99 String cacheDir = rs
[all...]
H A DProgramStore.java148 ProgramStore(int id, RenderScript rs) { argument
149 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 DRSSurfaceView.java127 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc);
128 setRenderScriptGL(rs);
129 return rs;
139 public void setRenderScriptGL(RenderScriptGL rs) { argument
140 mRS = rs;
H A DScript.java75 Script(int id, RenderScript rs) { argument
76 super(id, rs);
177 Builder(RenderScript rs) { argument
178 mRS = rs;
187 protected void init(RenderScript rs, int dimx) { argument
188 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT);
191 protected void init(RenderScript rs, int dimx, int usages) { argument
192 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT | usages);
H A DProgramFragment.java40 ProgramFragment(int id, RenderScript rs) { argument
41 super(id, rs);
48 * @param rs Context to which the program will belong.
50 public Builder(RenderScript rs) { argument
51 super(rs);
H A DProgramVertex.java53 ProgramVertex(int id, RenderScript rs) { argument
54 super(id, rs);
69 * @param rs Context to which the program will belong.
71 public Builder(RenderScript rs) { argument
72 super(rs);
H A DProgramVertexFixedFunction.java32 ProgramVertexFixedFunction(int id, RenderScript rs) { argument
33 super(id, rs);
48 public InternalBuilder(RenderScript rs) { argument
49 super(rs);
107 * @param rs Context to which the program will belong.
109 public Builder(RenderScript rs) { argument
110 mRS = rs;
122 static Type getConstantInputType(RenderScript rs) { argument
123 Element.Builder b = new Element.Builder(rs);
124 b.add(Element.MATRIX4X4(rs), "M
202 Constants(RenderScript rs) argument
[all...]
H A DRSTextureView.java64 //android.util.Log.e("rs", "getSurfaceTextureListerner " + getSurfaceTextureListener());
140 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc);
141 setRenderScriptGL(rs);
145 return rs;
161 * @param rs The new RS object.
163 public void setRenderScriptGL(RenderScriptGL rs) { argument
164 mRS = rs;
H A DAllocation.java179 Allocation(int id, RenderScript rs, Type t, int usage) { argument
180 super(id, rs);
868 static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { argument
869 rs.validate();
873 int id = rs.nAllocationCreateTyped(type.getID(), mips.mID, usage);
877 return new Allocation(id, rs, type, usage);
884 * @param rs Context to which the allocation will belong.
891 static public Allocation createTyped(RenderScript rs, Type type, int usage) { argument
892 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage);
900 * @param rs Contex
905 createTyped(RenderScript rs, Type type) argument
921 createSized(RenderScript rs, Element e, int count, int usage) argument
945 createSized(RenderScript rs, Element e, int count) argument
949 elementFromBitmap(RenderScript rs, Bitmap b) argument
966 typeFromBitmap(RenderScript rs, Bitmap b, MipmapControl mip) argument
989 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1012 createFromBitmap(RenderScript rs, Bitmap b) argument
1031 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1078 createCubemapFromBitmap(RenderScript rs, Bitmap b) argument
1102 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument
1168 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg) argument
1195 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument
1219 createFromBitmapResource(RenderScript rs, Resources res, int id) argument
1237 createFromString(RenderScript rs, String str, int usage) argument
[all...]
H A DAllocationAdapter.java28 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { argument
29 super(id, rs, alloc.mType, alloc.mUsage);
214 static public AllocationAdapter create1D(RenderScript rs, Allocation a) { argument
215 rs.validate();
216 AllocationAdapter aa = new AllocationAdapter(0, rs, a);
225 static public AllocationAdapter create2D(RenderScript rs, Allocation a) { argument
226 android.util.Log.e("rs", "create2d " + a);
227 rs.validate();
228 AllocationAdapter aa = new AllocationAdapter(0, rs, a);
H A DBaseObj.java28 BaseObj(int id, RenderScript rs) { argument
29 rs.validate();
30 mRS = rs;
H A DProgramFragmentFixedFunction.java32 ProgramFragmentFixedFunction(int id, RenderScript rs) { argument
33 super(id, rs);
37 public InternalBuilder(RenderScript rs) { argument
38 super(rs);
194 * @param rs Context to which the program will belong.
196 public Builder(RenderScript rs) { argument
197 mRS = rs;
H A DType.java169 Type(int id, RenderScript rs) { argument
170 super(id, rs);
211 * @param rs
214 public Builder(RenderScript rs, Element e) { argument
216 mRS = rs;
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/
H A Dlaunchtestxyw.rs18 #pragma rs java_package_name(com.example.android.rs.computeperf)
H A DMandelbrot.java17 package com.example.android.rs.computeperf;
27 Mandelbrot(RenderScript rs, Resources res) { argument
28 mRS = rs;
31 Type.Builder tb = new Type.Builder(rs, Element.U8_4(rs));
34 mAllocationXY = Allocation.createTyped(rs, tb.create());
H A DLaunchTest.java17 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 Dlaunchtestxlw.rs18 #pragma rs java_package_name(com.example.android.rs.computeperf)
/frameworks/compile/slang/
H A DRSSpec.mk17 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/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
H A DImageProcessingTestRunner.java17 package com.android.rs.image;
19 import com.android.rs.image.ImageProcessingTest;
27 * adb shell am instrument -w com.android.rs.image/.ImageProcessingTestRunner
/frameworks/ex/carousel/test/
H A DAndroid.mk22 ../../../../frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs

Completed in 340 milliseconds

123