Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 36) sorted by relevance

12

/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceRandom.java122 public MonkeySourceRandom(Random random, List<ComponentName> MainApps, in MonkeySourceRandom() argument
142 mRandom = random; in MonkeySourceRandom()
144 mQ = new MonkeyEventQueue(random, throttle, randomizeThrottle); in MonkeySourceRandom()
267 private void generatePointerEvent(Random random, int gesture) { in generatePointerEvent() argument
270 PointF p1 = randomPoint(random, display); in generatePointerEvent()
271 PointF v1 = randomVector(random); in generatePointerEvent()
282 int count = random.nextInt(10); in generatePointerEvent()
284 randomWalk(random, display, p1, v1); in generatePointerEvent()
292 PointF p2 = randomPoint(random, display); in generatePointerEvent()
293 PointF v2 = randomVector(random); in generatePointerEvent()
[all …]
DMonkeySourceRandomScript.java55 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()
DMonkeyEventQueue.java32 public MonkeyEventQueue(Random random, long throttle, boolean randomizeThrottle) { in MonkeyEventQueue() argument
34 mRandom = random; in MonkeyEventQueue()
DMonkeyPermissionUtil.java173 public MonkeyPermissionEvent generateRandomPermissionEvent(Random random) { in generateRandomPermissionEvent() argument
174 String pkg = mTargetedPackages.get(random.nextInt(mTargetedPackages.size())); in generateRandomPermissionEvent()
176 return new MonkeyPermissionEvent(pkg, infos.get(random.nextInt(infos.size()))); in generateRandomPermissionEvent()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DActivityTransitionDetails.java70 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()
DActivityTransition.java127 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()
DReversingAnimation.java109 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()
DAnimationSeeking.java133 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()
DAnimationCloning.java113 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()
DCustomEvaluator.java148 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()
DMultiPropertyAnimation.java150 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()
DAnimationLoading.java170 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()
DBouncingBalls.java159 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()
DAnimatorEvents.java177 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/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
DCheeses.java174 Random random = new Random(); in randomList() local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
DCheeses.java174 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/
DCheeses.java174 Random random = new Random(); in randomList() local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/development/samples/devbytes/animation/LayoutTransChanging/src/com/example/android/layouttranschanging/
DLayoutTransChanging.java101 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/
DSampleWallpaper.java193 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/ApiDemos/src/com/example/android/apis/graphics/
DWindowSurface.java103 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/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DBitmapUtils.java62 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/
DExtendedWikiHelper.java210 JSONArray random = query.getJSONArray("random"); in getRandomWord() local
211 JSONObject word = random.getJSONObject(0); in getRandomWord()
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java157 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/training/AnimationsDemo/src/com/example/android/animationsdemo/
DLayoutChangesActivity.java86 COUNTRIES[(int) (Math.random() * COUNTRIES.length)]); in addItem()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DSetWallpaperActivity.java69 int mColor = (int) Math.floor(Math.random() * mColors.length); in onCreate()

12