Searched refs:rs (Results 251 - 275 of 291) sorted by path

<<1112

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mockril/
H A DMockRilTest.java64 RilCtrlCmds.CtrlRspRadioState rs = new RilCtrlCmds.CtrlRspRadioState();
65 assertTrue(String.format("expected rs.state == 0 was %d", rs.getState()),
66 rs.getState() == 0);
67 rs.setState(1);
68 assertTrue(String.format("expected rs.state == 1 was %d", rs.getState()),
69 rs.getState() == 1);
71 byte[] rs_ser = rs.toByteArray();
73 assertTrue(String.format("expected rsNew.state == 1 was %d", rs
[all...]
/frameworks/rs/
H A DAndroid.mk101 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec
102 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec
118 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec
119 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec
194 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec
195 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec
209 $(GEN) : PRIVATE_CUSTOM_TOOL = $(RSG_GENERATOR) $< $@ <$(PRIVATE_PATH)/rs.spec
210 $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec
/frameworks/rs/cpp/
H A DAllocation.cpp50 Allocation::Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage) : argument
51 BaseObj(id, rs) {
381 android::sp<Allocation> Allocation::createTyped(RenderScript *rs, sp<const Type> type, argument
383 void *id = rsAllocationCreateTyped(rs->mContext, type->getID(), mips, usage, 0);
388 return new Allocation(id, rs, type, usage);
391 android::sp<Allocation> Allocation::createTyped(RenderScript *rs, sp<const Type> type, argument
393 void *id = rsAllocationCreateTyped(rs->mContext, type->getID(), mips, usage, (uint32_t)pointer);
397 return new Allocation(id, rs, type, usage);
400 android::sp<Allocation> Allocation::createTyped(RenderScript *rs, sp<const Type> type, argument
402 return createTyped(rs, typ
405 createSized(RenderScript *rs, sp<const Element> e, size_t count, uint32_t usage) argument
[all...]
H A DAllocation.h21 #include <rs.h>
56 Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage);
115 static sp<Allocation> createTyped(RenderScript *rs, sp<const Type> type,
117 static sp<Allocation> createTyped(RenderScript *rs, sp<const Type> type,
120 static sp<Allocation> createTyped(RenderScript *rs, sp<const Type> type,
122 static sp<Allocation> createSized(RenderScript *rs, sp<const Element> e, size_t count,
H A DAndroid.mk29 LOCAL_C_INCLUDES += frameworks/rs
H A DBaseObj.cpp19 #include <rs.h>
39 BaseObj::BaseObj(void *id, RenderScript *rs) { argument
40 mRS = rs;
H A DBaseObj.h23 #include <rs.h>
45 BaseObj(void *id, RenderScript *rs);
H A DElement.cpp70 #define CREATE_USER(N, T) sp<const Element> Element::N(RenderScript *rs) { \
71 return createUser(rs, RS_TYPE_##T); \
98 #define CREATE_PIXEL(N, T, K) sp<const Element> Element::N(RenderScript *rs) { \
99 return createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \
107 #define CREATE_VECTOR(N, T) sp<const Element> Element::N##_2(RenderScript *rs) { \
108 return createVector(rs, RS_TYPE_##T, 2); \
110 sp<const Element> Element::N##_3(RenderScript *rs) { \
111 return createVector(rs, RS_TYPE_##T, 3); \
113 sp<const Element> Element::N##_4(RenderScript *rs) { \
114 return createVector(rs, RS_TYPE
151 Element(void *id, RenderScript *rs, android::Vector<sp< Element> > &elements, android::Vector<android::String8> &elementNames, android::Vector<uint32_t> &arraySizes) argument
225 Element(void *id, RenderScript *rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument
298 createUser(RenderScript *rs, RsDataType dt) argument
303 createVector(RenderScript *rs, RsDataType dt, uint32_t size) argument
311 createPixel(RenderScript *rs, RsDataType dt, RsDataKind dk) argument
378 Builder(RenderScript *rs) argument
[all...]
H A DElement.h20 #include <rs.h>
94 static sp<const Element> BOOLEAN(RenderScript *rs);
95 static sp<const Element> U8(RenderScript *rs);
96 static sp<const Element> I8(RenderScript *rs);
97 static sp<const Element> U16(RenderScript *rs);
98 static sp<const Element> I16(RenderScript *rs);
99 static sp<const Element> U32(RenderScript *rs);
100 static sp<const Element> I32(RenderScript *rs);
101 static sp<const Element> U64(RenderScript *rs);
102 static sp<const Element> I64(RenderScript *rs);
[all...]
H A DRenderScript.cpp24 #include "rs.h"
93 RenderScript *rs = static_cast<RenderScript *>(vrsc); local
97 rsContextInitToClient(rs->mContext);
98 rs->mMessageRun = true;
100 while (rs->mMessageRun) {
104 RsMessageToClientType r = rsContextPeekMessage(rs->mContext,
116 rsContextGetMessage(rs->mContext, rbuf, rbuf_size, &receiveLen, sizeof(receiveLen),
123 if(rs->mMessageFunc != NULL) {
124 rs->mErrorFunc(usrID, (const char *)rbuf);
134 if(rs
[all...]
H A DScript.cpp46 Script::Script(void *id, RenderScript *rs) : BaseObj(id, rs) { argument
65 void Script::FieldBase::init(RenderScript *rs, uint32_t dimx, uint32_t usages) { argument
66 mAllocation = Allocation::createSized(rs, mElement, dimx, RS_ALLOCATION_USAGE_SCRIPT | usages);
H A DScript.h21 #include <rs.h>
38 Script(void *id, RenderScript *rs);
72 void init(RenderScript *rs, uint32_t dimx, uint32_t usages = 0);
H A DScriptC.cpp27 ScriptC::ScriptC(RenderScript *rs, argument
31 : Script(NULL, rs) {
32 mID = rsScriptCCreate(rs->mContext, cachedName, cachedNameLength,
H A DScriptC.h21 #include <rs.h>
30 ScriptC(RenderScript *rs,
H A DType.cpp67 Type::Type(void *id, RenderScript *rs) : BaseObj(id, rs) { argument
99 Type::Builder::Builder(RenderScript *rs, sp<const Element> e) { argument
100 mRS = rs;
H A DType.h20 #include <rs.h>
77 Type(void *id, RenderScript *rs);
91 Builder(RenderScript *rs, sp<const Element> e);
/frameworks/rs/tests/
H A DAndroid.mk32 LOCAL_C_INCLUDES += frameworks/rs/cpp
33 LOCAL_C_INCLUDES += frameworks/rs
H A DScriptC_mono.cpp20 * The source Renderscript file: mono.rs
107 ScriptC_mono::ScriptC_mono(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t cacheDirLength) : argument
108 ScriptC(rs, __txt, sizeof(__txt), "mono.rs", 4, cacheDir, cacheDirLength) {
H A DScriptC_mono.h20 * The source Renderscript file: mono.rs
31 ScriptC_mono(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t cacheDirLength);
H A Dcompute.cpp15 RenderScript *rs = new RenderScript(); local
16 printf("New RS %p\n", rs);
18 bool r = rs->init(16);
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, NULL, 0);
59 delete rs;
[all...]
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DAllocation.java196 Allocation(int id, RenderScript rs, Type t, int usage) { argument
197 super(id, rs);
905 static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { argument
906 rs.validate();
907 if (type.getID(rs) == 0) {
910 int id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0);
914 return new Allocation(id, rs, type, usage);
921 * @param rs Context to which the allocation will belong.
928 static public Allocation createTyped(RenderScript rs, Typ argument
942 createTyped(RenderScript rs, Type type) argument
958 createSized(RenderScript rs, Element e, int count, int usage) argument
982 createSized(RenderScript rs, Element e, int count) argument
986 elementFromBitmap(RenderScript rs, Bitmap b) argument
1003 typeFromBitmap(RenderScript rs, Bitmap b, MipmapControl mip) argument
1026 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1049 createFromBitmap(RenderScript rs, Bitmap b) argument
1068 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument
1115 createCubemapFromBitmap(RenderScript rs, Bitmap b) argument
1139 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument
1205 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg) argument
[all...]
H A DAllocationAdapter.java28 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { argument
29 super(id, rs, alloc.mType, alloc.mUsage);
33 int getID(RenderScript rs) { argument
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,
[all...]
H A DBaseObj.java28 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
59 if ((rs != null) && (rs != mRS)) {
H A DElement.java305 * @param rs Context to which the element will belong.
309 public static Element BOOLEAN(RenderScript rs) { argument
310 if(rs.mElement_BOOLEAN == null) {
311 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN);
313 return rs.mElement_BOOLEAN;
319 * @param rs Context to which the element will belong.
323 public static Element U8(RenderScript rs) { argument
324 if(rs.mElement_U8 == null) {
325 rs
337 I8(RenderScript rs) argument
344 U16(RenderScript rs) argument
351 I16(RenderScript rs) argument
358 U32(RenderScript rs) argument
365 I32(RenderScript rs) argument
372 U64(RenderScript rs) argument
379 I64(RenderScript rs) argument
386 F32(RenderScript rs) argument
393 F64(RenderScript rs) argument
400 ELEMENT(RenderScript rs) argument
407 TYPE(RenderScript rs) argument
414 ALLOCATION(RenderScript rs) argument
421 SAMPLER(RenderScript rs) argument
428 SCRIPT(RenderScript rs) argument
436 A_8(RenderScript rs) argument
443 RGB_565(RenderScript rs) argument
450 RGB_888(RenderScript rs) argument
457 RGBA_5551(RenderScript rs) argument
464 RGBA_4444(RenderScript rs) argument
471 RGBA_8888(RenderScript rs) argument
478 F32_2(RenderScript rs) argument
485 F32_3(RenderScript rs) argument
492 F32_4(RenderScript rs) argument
499 F64_2(RenderScript rs) argument
506 F64_3(RenderScript rs) argument
513 F64_4(RenderScript rs) argument
520 U8_2(RenderScript rs) argument
527 U8_3(RenderScript rs) argument
534 U8_4(RenderScript rs) argument
541 I8_2(RenderScript rs) argument
548 I8_3(RenderScript rs) argument
555 I8_4(RenderScript rs) argument
562 U16_2(RenderScript rs) argument
569 U16_3(RenderScript rs) argument
576 U16_4(RenderScript rs) argument
583 I16_2(RenderScript rs) argument
590 I16_3(RenderScript rs) argument
597 I16_4(RenderScript rs) argument
604 U32_2(RenderScript rs) argument
611 U32_3(RenderScript rs) argument
618 U32_4(RenderScript rs) argument
625 I32_2(RenderScript rs) argument
632 I32_3(RenderScript rs) argument
639 I32_4(RenderScript rs) argument
646 U64_2(RenderScript rs) argument
653 U64_3(RenderScript rs) argument
660 U64_4(RenderScript rs) argument
667 I64_2(RenderScript rs) argument
674 I64_3(RenderScript rs) argument
681 I64_4(RenderScript rs) argument
688 MATRIX_4X4(RenderScript rs) argument
695 MATRIX_3X3(RenderScript rs) argument
702 MATRIX_2X2(RenderScript rs) argument
709 Element(int id, RenderScript rs, Element[] e, String[] n, int[] as) argument
726 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) argument
745 Element(int id, RenderScript rs) argument
758 createUser(RenderScript rs, DataType dt) argument
779 createVector(RenderScript rs, DataType dt, int size) argument
822 createPixel(RenderScript rs, DataType dt, DataKind dk) argument
895 NBuilder(RenderScript rs) argument
929 Builder(RenderScript rs) argument
[all...]
H A DRenderScript.java663 MessageThread(RenderScript rs) { argument
665 mRS = rs;
754 RenderScript rs = new RenderScript(ctx);
756 rs.mDev = rs.nDeviceCreate();
757 rs.mContext = rs.nContextCreate(rs.mDev, 0, sdkVersion);
758 if (rs.mContext == 0) {
761 rs
[all...]

Completed in 104 milliseconds

<<1112