Home
last modified time | relevance | path

Searched refs:rsRand (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rscript34 float r = rsRand(RADIUS_RANGE.x, RADIUS_RANGE.y);
35 float3 point = {rsRand(-1000.f, 1000.f),
36 rsRand(-1000.f, 1000.f),
37 rsRand(-1000.f, 1000.f)};
39 float4 v = {rsRand(-1000.f, 1000.f),
40 rsRand(-1000.f, 1000.f),
41 rsRand(-1000.f, 1000.f), 0};
47 rsRand(OBJECT_MIN_MASS, OBJECT_MAX_MASS)};
/frameworks/rs/driver/runtime/
Drs_core.c160 extern float __attribute__((overloadable)) rsRand(float min, float max);/* {
168 extern float __attribute__((overloadable)) rsRand(float max) { in rsRand() function
169 return rsRand(0.f, max); in rsRand()
176 extern int __attribute__((overloadable)) rsRand(int max) { in rsRand() function
177 return (int)rsRand((float)max); in rsRand()
180 extern int __attribute__((overloadable)) rsRand(int min, int max) { in rsRand() function
181 return (int)rsRand((float)min, (float)max); in rsRand()
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dballs.rscript33 balls[ct].position.x = rsRand(0.f, (float)w);
34 balls[ct].position.y = rsRand(0.f, (float)h);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rscript42 jitter[i] = (rsRand(rscale)+rsRand(rscale)+rsRand(rscale))/3;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dgrain.rscript21 return (uchar)rsRand(0xff);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dgrain.rscript21 return (uchar)rsRand(0xff);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dgrain.rscript21 return (uchar)rsRand(0xff);
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript1190 i = rsRand(i);
1191 i = rsRand(i, i);
1192 f = rsRand(f);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript1207 i = rsRand(i);
1208 i = rsRand(i, i);
1209 f = rsRand(f);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript1205 i = rsRand(i);
1206 i = rsRand(i, i);
1207 f = rsRand(f);
/frameworks/rs/script_api/
Drs_math.spec3396 function: rsRand
3405 function: rsRand
3412 function: rsRand
3418 function: rsRand
/frameworks/compile/slang/tests/P_all_api_14/
Dall14.rscript3201 *(int*)buf2104 = rsRand(*(int*)buf2105);
3202 *(int*)buf2106 = rsRand(*(int*)buf2107, *(int*)buf2108);
3203 *(float*)buf2109 = rsRand(*(float*)buf2110);
3204 *(float*)buf2111 = rsRand(*(float*)buf2112, *(float*)buf2113);
/frameworks/compile/slang/tests/P_all_api_15/
Dall15.rscript3201 *(int*)buf2104 = rsRand(*(int*)buf2105);
3202 *(int*)buf2106 = rsRand(*(int*)buf2107, *(int*)buf2108);
3203 *(float*)buf2109 = rsRand(*(float*)buf2110);
3204 *(float*)buf2111 = rsRand(*(float*)buf2112, *(float*)buf2113);
/frameworks/compile/slang/tests/P_all_api_11/
Dall11.rscript3115 *(int*)buf2041 = rsRand(*(int*)buf2042);
3116 *(int*)buf2043 = rsRand(*(int*)buf2044, *(int*)buf2045);
3117 *(float*)buf2046 = rsRand(*(float*)buf2047);
3118 *(float*)buf2048 = rsRand(*(float*)buf2049, *(float*)buf2050);
/frameworks/compile/slang/tests/P_all_api_12/
Dall12.rscript3115 *(int*)buf2041 = rsRand(*(int*)buf2042);
3116 *(int*)buf2043 = rsRand(*(int*)buf2044, *(int*)buf2045);
3117 *(float*)buf2046 = rsRand(*(float*)buf2047);
3118 *(float*)buf2048 = rsRand(*(float*)buf2049, *(float*)buf2050);
/frameworks/compile/slang/tests/P_all_api_13/
Dall13.rscript3115 *(int*)buf2041 = rsRand(*(int*)buf2042);
3116 *(int*)buf2043 = rsRand(*(int*)buf2044, *(int*)buf2045);
3117 *(float*)buf2046 = rsRand(*(float*)buf2047);
3118 *(float*)buf2048 = rsRand(*(float*)buf2049, *(float*)buf2050);
/frameworks/compile/slang/tests/P_all_api_16/
Dall16.rscript3305 *(int*)buf2133 = rsRand(*(int*)buf2134);
3306 *(int*)buf2135 = rsRand(*(int*)buf2136, *(int*)buf2137);
3307 *(float*)buf2138 = rsRand(*(float*)buf2139);
3308 *(float*)buf2140 = rsRand(*(float*)buf2141, *(float*)buf2142);
/frameworks/compile/slang/tests/P_all_api_17/
Dall17.rscript3465 *(int*)buf2241 = rsRand(*(int*)buf2242);
3466 *(int*)buf2243 = rsRand(*(int*)buf2244, *(int*)buf2245);
3467 *(float*)buf2246 = rsRand(*(float*)buf2247);
3468 *(float*)buf2248 = rsRand(*(float*)buf2249, *(float*)buf2250);
/frameworks/compile/slang/tests/P_all_api_18/
Dall18.rscript4055 *(int*)buf2313 = rsRand(*(int*)buf2314);
4056 *(int*)buf2315 = rsRand(*(int*)buf2316, *(int*)buf2317);
4057 *(float*)buf2318 = rsRand(*(float*)buf2319);
4058 *(float*)buf2320 = rsRand(*(float*)buf2321, *(float*)buf2322);
/frameworks/compile/slang/tests/P_all_api_20/
Dall20.rscript4361 *(int*)buf2556 = rsRand(*(int*)buf2557);
4362 *(int*)buf2558 = rsRand(*(int*)buf2559, *(int*)buf2560);
4363 *(float*)buf2561 = rsRand(*(float*)buf2562);
4364 *(float*)buf2563 = rsRand(*(float*)buf2564, *(float*)buf2565);
/frameworks/compile/slang/tests/P_all_api_19/
Dall19.rscript4335 *(int*)buf2537 = rsRand(*(int*)buf2538);
4336 *(int*)buf2539 = rsRand(*(int*)buf2540, *(int*)buf2541);
4337 *(float*)buf2542 = rsRand(*(float*)buf2543);
4338 *(float*)buf2544 = rsRand(*(float*)buf2545, *(float*)buf2546);
/frameworks/rs/script_api/include/
Drs_math.rsh6534 * rsRand: Pseudo-random number
6539 rsRand(int max_value);
6542 rsRand(int min_value, int max_value);
6545 rsRand(float max_value);
6548 rsRand(float min_value, float max_value);
/frameworks/compile/slang/tests/P_all_api_21/
Dall21.rscript5304 *(int*)buf3191 = rsRand(*(int*)buf3192);
5305 *(int*)buf3193 = rsRand(*(int*)buf3194, *(int*)buf3195);
5306 *(float*)buf3196 = rsRand(*(float*)buf3197);
5307 *(float*)buf3198 = rsRand(*(float*)buf3199, *(float*)buf3200);
/frameworks/compile/slang/tests/P_all_api_22/
Dall22.rscript6204 *(int*)buf3911 = rsRand(*(int*)buf3912);
6205 *(int*)buf3913 = rsRand(*(int*)buf3914, *(int*)buf3915);
6206 *(float*)buf3916 = rsRand(*(float*)buf3917);
6207 *(float*)buf3918 = rsRand(*(float*)buf3919, *(float*)buf3920);
/frameworks/compile/slang/tests/P_all_api_23/
Dall23.rscript6148 *(int*)buf3962 = rsRand(*(int*)buf3963);
6149 *(int*)buf3964 = rsRand(*(int*)buf3965, *(int*)buf3966);
6150 *(float*)buf3967 = rsRand(*(float*)buf3968);
6151 *(float*)buf3969 = rsRand(*(float*)buf3970, *(float*)buf3971);

12