Searched refs:mRandom (Results 1 - 15 of 15) sorted by relevance

/development/cmds/monkey/src/com/android/commands/monkey/
H A DMonkeyEventQueue.java28 private Random mRandom; field in class:MonkeyEventQueue
34 mRandom = random;
45 throttle = mRandom.nextLong();
H A DMonkeySourceRandomScript.java39 private Random mRandom; field in class:MonkeySourceRandomScript
68 mRandom = random;
102 mCurrentSource = mScriptSources.get(mRandom.nextInt(numSources));
H A DMonkeySourceRandom.java99 private Random mRandom; field in class:MonkeySourceRandom
138 mRandom = random;
395 float cls = mRandom.nextFloat();
399 generatePointerEvent(mRandom, GESTURE_TAP);
402 generatePointerEvent(mRandom, GESTURE_DRAG);
405 generatePointerEvent(mRandom, GESTURE_PINCH_OR_ZOOM);
408 generateTrackballEvent(mRandom);
411 generateRotationEvent(mRandom);
418 lastKey = NAV_KEYS[mRandom.nextInt(NAV_KEYS.length)];
420 lastKey = MAJOR_NAV_KEYS[mRandom
[all...]
H A DMonkey.java209 Random mRandom = null; field in class:Monkey
594 mRandom = new Random(mSeed);
598 mEventSource = new MonkeySourceScript(mRandom, mScriptFileNames.get(0), mThrottle,
606 mScriptFileNames, mThrottle, mRandomizeThrottle, mRandom,
611 mThrottle, mRandomizeThrottle, mRandom,
629 mEventSource = new MonkeySourceRandom(mRandom, mMainApps, mThrottle, mRandomizeThrottle);
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
H A DNonsenseGenerator.java29 Random mRandom; field in class:NonsenseGenerator
63 mRandom = new Random();
106 if (!isHeadline && mRandom.nextInt(4) == 0)
113 if (mRandom.nextInt(2) == 0) {
128 if (mRandom.nextInt(3) != 0) {
138 if (mRandom.nextInt(3) != 0) {
143 if (mRandom.nextInt(3) == 0) {
148 if (mRandom.nextInt(3) != 0) {
156 return options[mRandom.nextInt(options.length)];
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
H A DAnimatedNotificationDisplayActivity.java42 private Random mRandom; field in class:AnimatedNotificationDisplayActivity
52 mRandom = new Random(System.currentTimeMillis());
73 float endX = -mRandom.nextInt(mAnimationRange);
74 float endY = -mRandom.nextInt(mAnimationRange);
/development/apps/Development/src/com/android/development/
H A DMediaScannerActivity.java54 Random mRandom = new Random(); field in class:MediaScannerActivity
173 int baseYear = 1969 + mRandom.nextInt(30);
190 map.put(Audio.Media.YEAR, baseYear + mRandom.nextInt(10));
225 mBuilder.append(elements[mRandom.nextInt(max)]);
234 boolean longfirst = mRandom.nextInt(5) < 3;
237 switch (mRandom.nextInt(6)) {
/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DGameView.java50 private final Random mRandom; field in class:GameView
86 mRandom = new Random();
418 float size = mRandom.nextFloat() * (mMaxObstacleSize - mMinObstacleSize)
423 int edge = mRandom.nextInt(4);
427 positionY = mRandom.nextInt(getHeight());
431 positionY = mRandom.nextInt(getHeight());
434 positionX = mRandom.nextInt(getWidth());
438 positionX = mRandom.nextInt(getWidth());
447 float direction = mRandom.nextFloat() * (float) Math.PI * 2;
448 float speed = mRandom
[all...]
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
H A DMusicRetriever.java44 Random mRandom = new Random(); field in class:MusicRetriever
109 return mItems.get(mRandom.nextInt(mItems.size()));
/development/samples/ControllerSample/src/com/example/controllersample/
H A DGameView.java60 private final Random mRandom; field in class:GameView
86 mRandom = new Random();
393 float size = mRandom.nextFloat() * (mMaxObstacleSize - mMinObstacleSize)
396 int edge = mRandom.nextInt(4);
400 positionY = mRandom.nextInt(getHeight());
404 positionY = mRandom.nextInt(getHeight());
407 positionX = mRandom.nextInt(getWidth());
411 positionX = mRandom.nextInt(getWidth());
435 float direction = mRandom.nextFloat() * (float) Math.PI * 2;
436 float speed = mRandom
[all...]
/development/samples/Vault/src/com/example/android/vault/
H A DEncryptedDocument.java83 private final SecureRandom mRandom; field in class:EncryptedDocument
102 mRandom = new SecureRandom();
317 mRandom.nextBytes(section.iv);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DKube.java248 int layerID = mRandom.nextInt(9);
252 boolean direction = mRandom.nextBoolean();
253 int count = mRandom.nextInt(3) + 1;
322 Random mRandom = new Random(System.currentTimeMillis()); field in class:Kube
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DTouchPaint.java233 private final Random mRandom = new Random(); field in class:TouchPaint.PaintView
532 double direction = mRandom.nextDouble() * Math.PI * 2;
533 double dispersion = mRandom.nextGaussian() * 0.2;
/development/samples/ApiDemos/src/com/example/android/apis/os/
H A DMmsMessagingDemo.java84 private Random mRandom = new Random(); field in class:MmsMessagingDemo
161 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat";
216 final String fileName = "download." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat";
/development/samples/JetBoy/src/com/example/android/jetboy/
H A DJetBoyView.java208 private Random mRandom = new Random(); field in class:JetBoyView.JetBoyThread
1013 int drawIndex = mRandom.nextInt(4);

Completed in 2969 milliseconds