Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 25 of 1330) sorted by relevance

12345678910>>...54

/aosp12/frameworks/base/rs/java/android/renderscript/
H A DElement.java342 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
360 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8()
382 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16()
404 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32()
426 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64()
437 rs.mElement_F16 = createUser(rs, DataType.FLOAT_16); in F16()
448 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); in F32()
459 rs.mElement_F64 = createUser(rs, DataType.FLOAT_64); in F64()
481 rs.mElement_TYPE = createUser(rs, DataType.RS_TYPE); in TYPE()
525 rs.mElement_MESH = createUser(rs, DataType.RS_MESH); in MESH()
[all …]
H A DSampler.java58 super(id, rs); in Sampler()
107 synchronized (rs) { in CLAMP_NEAREST()
131 synchronized (rs) { in CLAMP_LINEAR()
155 synchronized (rs) { in CLAMP_LINEAR_MIP_LINEAR()
179 synchronized (rs) { in WRAP_NEAREST()
203 synchronized (rs) { in WRAP_LINEAR()
227 synchronized (rs) { in WRAP_LINEAR_MIP_LINEAR()
251 synchronized (rs) { in MIRRORED_REPEAT_NEAREST()
275 synchronized (rs) { in MIRRORED_REPEAT_LINEAR()
299 synchronized (rs) { in MIRRORED_REPEAT_LINEAR_MIP_LINEAR()
[all …]
H A DProgramRaster.java57 ProgramRaster(long id, RenderScript rs) { in ProgramRaster() argument
58 super(id, rs); in ProgramRaster()
87 if(rs.mProgramRaster_CULL_BACK == null) { in CULL_BACK()
90 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK()
92 return rs.mProgramRaster_CULL_BACK; in CULL_BACK()
99 if(rs.mProgramRaster_CULL_FRONT == null) { in CULL_FRONT()
104 return rs.mProgramRaster_CULL_FRONT; in CULL_FRONT()
111 if(rs.mProgramRaster_CULL_NONE == null) { in CULL_NONE()
116 return rs.mProgramRaster_CULL_NONE; in CULL_NONE()
131 public Builder(RenderScript rs) { in Builder() argument
[all …]
H A DProgramStore.java160 ProgramStore(long id, RenderScript rs) { in ProgramStore() argument
161 super(id, rs); in ProgramStore()
250 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { in BLEND_NONE_DEPTH_TEST()
258 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; in BLEND_NONE_DEPTH_TEST()
271 if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH == null) { in BLEND_NONE_DEPTH_NONE()
279 return rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH; in BLEND_NONE_DEPTH_NONE()
295 if(rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST == null) { in BLEND_ALPHA_DEPTH_TEST()
303 return rs.mProgramStore_BLEND_ALPHA_DEPTH_TEST; in BLEND_ALPHA_DEPTH_TEST()
326 return rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_DEPTH; in BLEND_ALPHA_DEPTH_NONE()
347 public Builder(RenderScript rs) { in Builder() argument
[all …]
H A DFileA3D.java151 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate()
163 mRS = rs; in IndexEntry()
175 FileA3D(long id, RenderScript rs, InputStream stream) { in FileA3D() argument
176 super(id, rs); in FileA3D()
239 rs.validate(); in createFromAsset()
245 FileA3D fa3d = new FileA3D(fileId, rs, null); in createFromAsset()
260 long fileId = rs.nFileA3DCreateFromFile(path); in createFromFile()
265 FileA3D fa3d = new FileA3D(fileId, rs, null); in createFromFile()
280 return createFromFile(rs, path.getAbsolutePath()); in createFromFile()
296 rs.validate(); in createFromResource()
[all …]
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/
H A DElement.java324 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
338 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
352 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8()
359 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16); in U16()
366 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16()
373 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32); in U32()
380 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32()
394 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64()
401 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); in F32()
408 rs.mElement_F64 = createUser(rs, DataType.FLOAT_64); in F64()
[all …]
H A DSampler.java70 Sampler(long id, RenderScript rs) { in Sampler() argument
71 super(id, rs); in Sampler()
119 Builder b = new Builder(rs); in CLAMP_NEAREST()
126 return rs.mSampler_CLAMP_NEAREST; in CLAMP_NEAREST()
139 Builder b = new Builder(rs); in CLAMP_LINEAR()
146 return rs.mSampler_CLAMP_LINEAR; in CLAMP_LINEAR()
159 Builder b = new Builder(rs); in CLAMP_LINEAR_MIP_LINEAR()
179 Builder b = new Builder(rs); in WRAP_NEAREST()
186 return rs.mSampler_WRAP_NEAREST; in WRAP_NEAREST()
206 return rs.mSampler_WRAP_LINEAR; in WRAP_LINEAR()
[all …]
/aosp12/bootable/recovery/tests/unit/
H A Drangeset_test.cpp30 ASSERT_TRUE(rs); in TEST()
78 ASSERT_TRUE(rs); in TEST()
79 rs.Clear(); in TEST()
80 ASSERT_FALSE(rs); in TEST()
83 rs.Clear(); in TEST()
84 ASSERT_FALSE(rs); in TEST()
88 RangeSet rs; in TEST() local
101 RangeSet rs; in TEST() local
239 for (auto it = rs.crbegin(); it != rs.crend(); it++) { in TEST()
285 rs.Insert(r1); in TEST()
[all …]
/aosp12/bionic/libc/dns/net/
H A Dgetservent.c47 p = rs->servent_ptr; in getservent_r()
75 rs->servent.s_name = p2; in getservent_r()
77 rs->servent.s_proto = p2; in getservent_r()
102 rs->servent_ptr = p; in getservent_r()
104 return &rs->servent; in getservent_r()
113 if (rs) rs->servent_ptr = NULL; in endservent()
118 return rs ? getservent_r(rs) : NULL; in getservent()
123 if (rs == NULL) return NULL; in getservbyname()
126 rs->servent_ptr = NULL; in getservbyname()
139 if (rs == NULL) return NULL; in getservbyport()
[all …]
/aosp12/frameworks/compile/slang/tests/P_reduce_general_inputs/
H A Dreduce_general_inputs.rscript3 #pragma rs java_package_name(inputs)
17 #pragma rs reduce(my_half_half_0) accumulator(my_half_half_0_accum) combiner(combiner)
20 #pragma rs reduce(my_half_half_1) accumulator(my_half_half_1_accum) combiner(combiner)
23 #pragma rs reduce(my_half_half2_0) accumulator(my_half_half2_0_accum) combiner(combiner)
26 #pragma rs reduce(my_half_half2_1) accumulator(my_half_half2_1_accum) combiner(combiner)
29 #pragma rs reduce(my_half_half4_0) accumulator(my_half_half4_0_accum) combiner(combiner)
32 #pragma rs reduce(my_half_half4_1) accumulator(my_half_half4_1_accum) combiner(combiner)
35 #pragma rs reduce(my_half_float_0) accumulator(my_half_float_0_accum) combiner(combiner)
38 #pragma rs reduce(my_half_float_1) accumulator(my_half_float_1_accum) combiner(combiner)
53 #pragma rs reduce(my_half_char_0) accumulator(my_half_char_0_accum) combiner(combiner)
[all …]
/aosp12/system/sepolicy/prebuilts/api/31.0/private/
H A Drs.te4 allow rs app_exec_data_file:file create_file_perms;
9 allow rs system_data_file:lnk_file read;
19 allow rs vendor_file:dir r_dir_perms;
20 r_dir_file(rs, vendor_overlay_file)
21 r_dir_file(rs, vendor_app_file)
24 r_dir_file(rs, apk_data_file)
26 allow rs gpu_device:chr_file rw_file_perms;
27 allow rs ion_device:chr_file r_file_perms;
35 neverallow rs rs:capability_class_set *;
39 # rs should never use network sockets
[all …]
/aosp12/system/sepolicy/prebuilts/api/32.0/private/
H A Drs.te4 allow rs app_exec_data_file:file create_file_perms;
9 allow rs system_data_file:lnk_file read;
19 allow rs vendor_file:dir r_dir_perms;
20 r_dir_file(rs, vendor_overlay_file)
21 r_dir_file(rs, vendor_app_file)
24 r_dir_file(rs, apk_data_file)
26 allow rs gpu_device:chr_file rw_file_perms;
27 allow rs ion_device:chr_file r_file_perms;
35 neverallow rs rs:capability_class_set *;
39 # rs should never use network sockets
[all …]
/aosp12/system/sepolicy/private/
H A Drs.te4 allow rs app_exec_data_file:file create_file_perms;
9 allow rs system_data_file:lnk_file read;
19 allow rs vendor_file:dir r_dir_perms;
20 r_dir_file(rs, vendor_overlay_file)
21 r_dir_file(rs, vendor_app_file)
24 r_dir_file(rs, apk_data_file)
26 allow rs gpu_device:chr_file rw_file_perms;
27 allow rs ion_device:chr_file r_file_perms;
35 neverallow rs rs:capability_class_set *;
39 # rs should never use network sockets
[all …]
/aosp12/system/sepolicy/prebuilts/api/30.0/private/
H A Drs.te3 allow rs app_data_file:dir ra_dir_perms;
8 allow rs system_data_file:lnk_file read;
11 allow rs app_data_file:file r_file_perms;
12 allow rs app_data_file:dir r_dir_perms;
15 allow rs app_data_file:dir remove_name;
18 allow rs vendor_file:dir r_dir_perms;
19 r_dir_file(rs, vendor_overlay_file)
20 r_dir_file(rs, vendor_app_file)
23 r_dir_file(rs, apk_data_file)
34 neverallow rs rs:capability_class_set *;
[all …]
/aosp12/system/sepolicy/prebuilts/api/29.0/private/
H A Drs.te3 allow rs app_data_file:dir ra_dir_perms;
8 allow rs system_data_file:lnk_file read;
11 allow rs app_data_file:file r_file_perms;
12 allow rs app_data_file:dir r_dir_perms;
15 allow rs app_data_file:dir remove_name;
18 allow rs vendor_file:dir r_dir_perms;
19 r_dir_file(rs, vendor_overlay_file)
20 r_dir_file(rs, vendor_app_file)
23 r_dir_file(rs, apk_data_file)
34 neverallow rs rs:capability_class_set *;
[all …]
/aosp12/frameworks/compile/slang/tests/P_reduce_general_input/
H A Dreduce_general_input.rscript3 #pragma rs java_package_name(input)
17 #pragma rs reduce(my_half_0) accumulator(my_half_0_accum) combiner(combiner)
20 #pragma rs reduce(my_half_1) accumulator(my_half_1_accum) combiner(combiner)
23 #pragma rs reduce(my_half_2) accumulator(my_half_2_accum) combiner(combiner)
26 #pragma rs reduce(my_half_3) accumulator(my_half_3_accum) combiner(combiner)
29 #pragma rs reduce(my_half_4) accumulator(my_half_4_accum) combiner(combiner)
32 #pragma rs reduce(my_half_5) accumulator(my_half_5_accum) combiner(combiner)
35 #pragma rs reduce(my_half_6) accumulator(my_half_6_accum) combiner(combiner)
38 #pragma rs reduce(my_half_7) accumulator(my_half_7_accum) combiner(combiner)
41 #pragma rs reduce(my_half_8) accumulator(my_half_8_accum) combiner(combiner)
[all …]
/aosp12/frameworks/rs/tests/lldb/cpp/KernelVariables/
H A DKernelVariables.cpp24 sp<RS> rs = new RS(); in main() local
28 auto e = Element::RGBA_8888(rs); in main()
29 Type::Builder tb(rs, e); in main()
34 auto a = Allocation::createTyped(rs, t); in main()
35 auto b = Allocation::createTyped(rs, t); in main()
37 sp<ScriptC_simple> s = new ScriptC_simple(rs); in main()
40 sp<Allocation> int_allocation = Allocation::createSized(rs, Element::I32(rs), 4); in main()
46 Type::Builder typeI32Builder2D(rs, Element::I32(rs)); in main()
59 Type::Builder typeI32Builder3D(rs, Element::I32(rs)); in main()
68 Type::Builder yuvTypeBuilder(rs, Element::YUV(rs)); in main()
[all …]
/aosp12/frameworks/rs/tests/lldb/jni/KernelVariables/jnikernelvariables/
H A Djnikernelvariables.cpp31 sp<RS> rs = new RS(); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS() local
37 auto e = Element::RGBA_8888(rs); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
38 Type::Builder tb(rs, e); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
43 auto a = Allocation::createTyped(rs, t); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
44 auto b = Allocation::createTyped(rs, t); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
46 sp<ScriptC_simple> s = new ScriptC_simple(rs); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
49 sp<Allocation> int_allocation = Allocation::createSized(rs, Element::I32(rs), 4); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
55 Type::Builder typeI32Builder2D(rs, Element::I32(rs)); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
68 Type::Builder typeI32Builder3D(rs, Element::I32(rs)); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
77 Type::Builder yuvTypeBuilder(rs, Element::YUV(rs)); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
[all …]
/aosp12/frameworks/compile/slang/tests/F_reduce_general_parse/
H A Dreduce_general_parse.rscript3 #pragma rs java_package_name(all)
5 #pragma rs reduce
6 #pragma rs reduce(
7 #pragma rs reduce (
8 #pragma rs reduce(*
9 #pragma rs reduce(foo
10 #pragma rs reduce (foo
11 #pragma rs reduce(foo )
12 #pragma rs reduce(foo) initializer(
13 #pragma rs reduce(foo) initializer(init)
[all …]
/aosp12/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp36 : Script(nullptr, rs) { in ScriptIntrinsic()
37 mID = createDispatch(rs, RS::dispatch->ScriptIntrinsicCreate(rs->getContext(), id, in ScriptIntrinsic()
51 return new ScriptIntrinsic3DLUT(rs, e); in create()
85 return new ScriptIntrinsicBlend(rs, e); in create()
221 return new ScriptIntrinsicBlur(rs, e); in create()
256 return new ScriptIntrinsicColorMatrix(rs, Element::RGBA_8888(rs)); in create()
349 if (!(e->isCompatible(Element::U8(rs))) && in create()
390 if (!(e->isCompatible(Element::U8(rs))) && in create()
521 return new ScriptIntrinsicLUT(rs, e); in create()
526 LUT = Allocation::createSized(rs, Element::U8(rs), 1024); in ScriptIntrinsicLUT()
[all …]
H A DElement.cpp76 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \
104 rs->mElements.N = createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \
119 rs->mElements.N##_2 = createVector(rs, RS_TYPE_##T, 2); \
125 rs->mElements.N##_3 = createVector(rs, RS_TYPE_##T, 3); \
131 rs->mElements.N##_4 = createVector(rs, RS_TYPE_##T, 4); \
177 Element::Element(void *id, android::RSC::sp<RS> rs, in Element() argument
217 BaseObj(id, rs) { in Element()
273 Element::Element(void *id, android::RSC::sp<RS> rs, in Element() argument
275 BaseObj(id, rs) in Element()
387 return new Element(id, rs, dt, dk, true, size); in createPixel()
[all …]
/aosp12/frameworks/base/libs/hwui/renderthread/
H A DReliableSurface.cpp180 std::lock_guard _lock{rs->mMutex}; in hook_dequeueBuffer()
181 if (rs->mReservedBuffer) { in hook_dequeueBuffer()
182 *buffer = rs->mReservedBuffer; in hook_dequeueBuffer()
184 rs->mReservedBuffer = nullptr; in hook_dequeueBuffer()
196 std::lock_guard _lock{rs->mMutex}; in hook_dequeueBuffer()
197 rs->mHasDequeuedBuffer = true; in hook_dequeueBuffer()
206 rs->clearReservedBuffer(); in hook_cancelBuffer()
207 if (rs->isFallbackBuffer(buffer)) { in hook_cancelBuffer()
220 rs->clearReservedBuffer(); in hook_queueBuffer()
222 if (rs->isFallbackBuffer(buffer)) { in hook_queueBuffer()
[all …]
/aosp12/frameworks/compile/slang/tests/F_reduce_general_bad_function/
H A Dreduce_general_bad_function.rscript3 #pragma rs java_package_name(fn)
73 #pragma rs reduce(accum0) accumulator(accum0)
77 #pragma rs reduce(accum1) accumulator(accum1)
81 #pragma rs reduce(accum_noptr) accumulator(accum_noptr)
90 #pragma rs reduce(accum_special) accumulator(accum_special)
110 #pragma rs reduce(accum_over) accumulator(accum_over)
114 #pragma rs reduce(accum_dup) accumulator(accum_dup)
119 #pragma rs reduce(accum_missing) accumulator(accum_missing)
130 #pragma rs reduce(accum_const) accumulator(accum_const)
159 #pragma rs reduce(accum_2in) accumulator(accum_2in)
[all …]
H A Dstderr.txt.expect1 reduce_general_bad_function.rscript:18:13: error: initializer init0() for '#pragma rs reduce(init0)…
2 reduce_general_bad_function.rscript:22:13: error: initializer init2() for '#pragma rs reduce(init2)…
8 … not find function definition for 'initializer(init_missing)' for '#pragma rs reduce(init_missing)'
9 reduce_general_bad_function.rscript:54:6: error: initializer init_nonstatic() for '#pragma rs reduc…
12 reduce_general_bad_function.rscript:74:13: error: accumulator accum0() for '#pragma rs reduce(accum…
13 reduce_general_bad_function.rscript:78:13: error: accumulator accum1() for '#pragma rs reduce(accum…
21 …not find function definition for 'accumulator(accum_missing)' for '#pragma rs reduce(accum_missing…
34 …uld not find function definition for 'combiner(comb_missing)' for '#pragma rs reduce(comb_missing)'
35 reduce_general_bad_function.rscript:184:6: error: combiner comb_nonstatic() for '#pragma rs reduce(…
47 …d not find function definition for 'outconverter(out_missing)' for '#pragma rs reduce(out_missing)'
[all …]
/aosp12/bionic/libc/upstream-openbsd/lib/libc/crypt/
H A Darc4random.c56 } *rs; variable
76 if (rs == NULL) { in _rs_init()
93 if (!rs) in _rs_stir()
100 rs->rs_have = 0; in _rs_stir()
103 rs->rs_count = 1600000; in _rs_stir()
110 if (!rs || rs->rs_count <= len) in _rs_stir_if_needed()
113 rs->rs_count = 0; in _rs_stir_if_needed()
115 rs->rs_count -= len; in _rs_stir_if_needed()
153 - rs->rs_have; in _rs_random_buf()
158 rs->rs_have -= m; in _rs_random_buf()
[all …]

12345678910>>...54