Searched refs:rsRand (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
D | fountain.rs | 45 partColor[index].x = rsRand(0.5f, 1.0f); 46 partColor[index].y = rsRand(1.0f); 47 partColor[index].z = rsRand(1.0f); 56 float angle = rsRand(3.14f * 2.f); 57 float len = rsRand(rMax);
|
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
D | fountain.rs | 44 partColor[index].x = rsRand(0.5f, 1.0f); 45 partColor[index].y = rsRand(1.0f); 46 partColor[index].z = rsRand(1.0f); 55 float angle = rsRand(3.14f * 2.f); 56 float len = rsRand(rMax);
|
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/ |
D | fountainfbo.rs | 80 partColor[index].x = rsRand(0.5f, 1.0f); 81 partColor[index].y = rsRand(1.0f); 82 partColor[index].z = rsRand(1.0f); 91 float angle = rsRand(3.14f * 2.f); 92 float len = rsRand(rMax);
|
/frameworks/rs/driver/runtime/ |
D | rs_core.c | 153 extern float __attribute__((overloadable)) rsRand(float min, float max);/* { 161 extern float __attribute__((overloadable)) rsRand(float max) { in rsRand() function 162 return rsRand(0.f, max); in rsRand() 169 extern int __attribute__((overloadable)) rsRand(int max) { in rsRand() function 170 return (int)rsRand((float)max); in rsRand() 173 extern int __attribute__((overloadable)) rsRand(int min, int max) { in rsRand() function 174 return (int)rsRand((float)min, (float)max); in rsRand()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | ui_test.rs | 130 x1 = rsRand(2.0f) - 1.0f; 131 x2 = rsRand(2.0f) - 1.0f; 143 float d = fabs(randomGauss()) * gGalaxyRadius * 0.5f + rsRand(64.0f); 158 part->color.w = (uchar) (rsRand(1.2f, 2.1f) * 60); 169 part->position.x = rsRand(TWO_PI); 171 gSpeed[idx] = rsRand(0.0015f, 0.0025f) * (0.5f + (scale / d)) * 0.8f;
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | balls.rs | 36 balls[ct].position.x = rsRand(0.f, (float)w); 37 balls[ct].position.y = rsRand(0.f, (float)h);
|
/frameworks/rs/scriptc/ |
D | rs_math.rsh | 32 rsRand(int max_value); 37 rsRand(int min_value, int max_value); 42 rsRand(float max_value); 47 rsRand(float min_value, float max_value);
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | grain.rs | 21 return (uchar)rsRand(0xff);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | grain.rs | 21 return (uchar)rsRand(0xff);
|
/frameworks/rs/cpu_ref/ |
D | rsCpuRuntimeMathFuncs.cpp | 90 float __attribute__((overloadable)) rsRand(float min, float max) { in rsRand() function
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | grain.fs | 20 return (uchar)rsRand(0xff);
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | apitest.rs | 1190 i = rsRand(i); 1191 i = rsRand(i, i); 1192 f = rsRand(f);
|