/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rscript | 34 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/ |
D | rs_core.c | 160 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/ |
D | balls.rscript | 33 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/ |
D | vr.rscript | 42 jitter[i] = (rsRand(rscale)+rsRand(rscale)+rsRand(rscale))/3;
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | grain.rscript | 21 return (uchar)rsRand(0xff);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | grain.rscript | 21 return (uchar)rsRand(0xff);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | grain.rscript | 21 return (uchar)rsRand(0xff);
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | apitest.rscript | 1190 i = rsRand(i); 1191 i = rsRand(i, i); 1192 f = rsRand(f);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | apitest.rscript | 1207 i = rsRand(i); 1208 i = rsRand(i, i); 1209 f = rsRand(f);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/ |
D | apitest.rscript | 1205 i = rsRand(i); 1206 i = rsRand(i, i); 1207 f = rsRand(f);
|
/frameworks/rs/script_api/ |
D | rs_math.spec | 3396 function: rsRand 3405 function: rsRand 3412 function: rsRand 3418 function: rsRand
|
/frameworks/compile/slang/tests/P_all_api_14/ |
D | all14.rscript | 3201 *(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/ |
D | all15.rscript | 3201 *(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/ |
D | all11.rscript | 3115 *(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/ |
D | all12.rscript | 3115 *(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/ |
D | all13.rscript | 3115 *(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/ |
D | all16.rscript | 3305 *(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/ |
D | all17.rscript | 3465 *(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/ |
D | all18.rscript | 4055 *(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/ |
D | all20.rscript | 4361 *(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/ |
D | all19.rscript | 4335 *(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/ |
D | rs_math.rsh | 6534 * 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/ |
D | all21.rscript | 5304 *(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/ |
D | all22.rscript | 6204 *(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/ |
D | all23.rscript | 6148 *(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);
|