/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceRandom.java | 123 public MonkeySourceRandom(Random random, HashMap<ComponentName, String> MainApps, in MonkeySourceRandom() argument 143 mRandom = random; in MonkeySourceRandom() 145 mQ = new MonkeyEventQueue(random, throttle, randomizeThrottle); in MonkeySourceRandom() 268 private void generatePointerEvent(Random random, int gesture) { in generatePointerEvent() argument 271 PointF p1 = randomPoint(random, display); in generatePointerEvent() 272 PointF v1 = randomVector(random); in generatePointerEvent() 283 int count = random.nextInt(10); in generatePointerEvent() 285 randomWalk(random, display, p1, v1); in generatePointerEvent() 293 PointF p2 = randomPoint(random, display); in generatePointerEvent() 294 PointF v2 = randomVector(random); in generatePointerEvent() [all …]
|
D | MonkeySourceRandomScript.java | 55 long throttle, boolean randomizeThrottle, Random random, long profileWaitTime, in MonkeySourceRandomScript() argument 58 mSetupSource = new MonkeySourceScript(random, setupFileName, throttle, in MonkeySourceRandomScript() 64 mScriptSources.add(new MonkeySourceScript(random, fileName, throttle, in MonkeySourceRandomScript() 68 mRandom = random; in MonkeySourceRandomScript() 81 boolean randomizeThrottle, Random random, long profileWaitTime, long deviceSleepTime, in MonkeySourceRandomScript() argument 83 this(null, scriptFileNames, throttle, randomizeThrottle, random, profileWaitTime, in MonkeySourceRandomScript()
|
D | MonkeyEventQueue.java | 32 public MonkeyEventQueue(Random random, long throttle, boolean randomizeThrottle) { in MonkeyEventQueue() argument 34 mRandom = random; in MonkeyEventQueue()
|
D | MonkeyPermissionUtil.java | 180 public MonkeyPermissionEvent generateRandomPermissionEvent(Random random) { in generateRandomPermissionEvent() argument 181 String pkg = mTargetedPackages.get(random.nextInt(mTargetedPackages.size())); in generateRandomPermissionEvent() 183 return new MonkeyPermissionEvent(pkg, infos.get(random.nextInt(infos.size()))); in generateRandomPermissionEvent()
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ActivityTransitionDetails.java | 70 int red = (int)(Math.random() * 128); in randomColor() 71 int green = (int)(Math.random() * 128); in randomColor() 72 int blue = (int)(Math.random() * 128); in randomColor()
|
D | ActivityTransition.java | 127 int red = (int)(Math.random() * 128); in randomColor() 128 int green = (int)(Math.random() * 128); in randomColor() 129 int blue = (int)(Math.random() * 128); in randomColor()
|
D | ReversingAnimation.java | 109 int red = (int)(Math.random() * 255); in createBall() 110 int green = (int)(Math.random() * 255); in createBall() 111 int blue = (int)(Math.random() * 255); in createBall()
|
D | AnimationSeeking.java | 133 int red = (int)(100 + Math.random() * 155); in addBall() 134 int green = (int)(100 + Math.random() * 155); in addBall() 135 int blue = (int)(100 + Math.random() * 155); in addBall()
|
D | CustomEvaluator.java | 148 int red = (int)(Math.random() * 255); in createBall() 149 int green = (int)(Math.random() * 255); in createBall() 150 int blue = (int)(Math.random() * 255); in createBall()
|
D | AnimationCloning.java | 113 int red = (int)(100 + Math.random() * 155); in addBall() 114 int green = (int)(100 + Math.random() * 155); in addBall() 115 int blue = (int)(100 + Math.random() * 155); in addBall()
|
D | MultiPropertyAnimation.java | 150 int red = (int)(100 + Math.random() * 155); in addBall() 151 int green = (int)(100 + Math.random() * 155); in addBall() 152 int blue = (int)(100 + Math.random() * 155); in addBall()
|
D | BouncingBalls.java | 159 int red = (int)(Math.random() * 255); in addBall() 160 int green = (int)(Math.random() * 255); in addBall() 161 int blue = (int)(Math.random() * 255); in addBall()
|
D | AnimationLoading.java | 170 int red = (int)(100 + Math.random() * 155); in addBall() 171 int green = (int)(100 + Math.random() * 155); in addBall() 172 int blue = (int)(100 + Math.random() * 155); in addBall()
|
D | AnimatorEvents.java | 177 int red = (int)(Math.random() * 255); in createBall() 178 int green = (int)(Math.random() * 255); in createBall() 179 int blue = (int)(Math.random() * 255); in createBall()
|
/development/samples/devbytes/animation/LayoutTransChanging/src/com/example/android/layouttranschanging/ |
D | LayoutTransChanging.java | 101 int red = (int)(Math.random() * 128 + 127); in ColoredView() 102 int green = (int)(Math.random() * 128 + 127); in ColoredView() 103 int blue = (int)(Math.random() * 128 + 127); in ColoredView()
|
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/ |
D | SampleWallpaper.java | 193 Random random = new Random(); 194 mCircleShift.x = Math.abs(random.nextInt(5)); 199 final Random random = new Random(); 200 int br = random.nextInt(256); 201 int bg = random.nextInt(256); 202 int bb = random.nextInt(256);
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/ |
D | Cheeses.java | 174 Random random = new Random(); in randomList() local 181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/ |
D | Cheeses.java | 174 Random random = new Random(); in randomList() local 181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/ |
D | Cheeses.java | 174 Random random = new Random(); in randomList() local 181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | WindowSurface.java | 103 x = (float)((width-1)*Math.random()); in init() 104 y = (float)((height-1)*Math.random()); in init() 105 dx = (float)(Math.random()*minStep*2) + 1; in init() 106 dy = (float)(Math.random()*minStep*2) + 1; in init() 110 cur += (Math.random()*minStep) - (minStep/2); in adjDelta()
|
/development/apps/ShareTest/src/com/android/sharetest/ |
D | Utils.kt | 67 val noise = avg / 4 * random.nextGaussian() in getLatencyMs() 71 fun getRandomFailure(failureRate: Float): Boolean = random.nextFloat() < failureRate in getRandomFailure() 73 private val random by lazy { java.util.Random() } in getRandomFailure() constant
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
D | BitmapUtils.java | 62 int resourceId = mPhotos[(int) (Math.random() * mPhotos.length)]; in loadPhotos() 65 String description = mDescriptions[(int) (Math.random() * mDescriptions.length)]; in loadPhotos()
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
D | ExtendedWikiHelper.java | 210 JSONArray random = query.getJSONArray("random"); in getRandomWord() local 211 JSONObject word = random.getJSONObject(0); in getRandomWord()
|
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
D | AccelerometerPlayActivity.java | 157 final float r = ((float) Math.random() - 0.5f) * 0.2f; in Particle() 294 dx += ((float) Math.random() - 0.5f) * 0.0001f; in update() 295 dy += ((float) Math.random() - 0.5f) * 0.0001f; in update()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | SetWallpaperActivity.java | 69 int mColor = (int) Math.floor(Math.random() * mColors.length); in onCreate()
|