HomeSort by relevance Sort by last modified time
    Searched defs:mRandom (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /system/security/keystore/
entropy.h 24 Entropy() : mRandom(-1) {}
31 int mRandom;
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyEventQueue.java 28 private Random mRandom;
34 mRandom = random;
45 throttle = mRandom.nextLong();
MonkeySourceRandomScript.java 39 private Random mRandom;
68 mRandom = random;
102 mCurrentSource = mScriptSources.get(mRandom.nextInt(numSources));
  /frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/
DiffUtilActivity.java 46 private Random mRandom = new Random(System.nanoTime());
138 switch (mRandom.nextInt(3)) {
140 output.add(mRandom.nextInt(1 + output.size()), getRandomCheese(output));
144 output.remove(mRandom.nextInt(output.size()));
149 int from = mRandom.nextInt(output.size());
150 int to = mRandom.nextInt(output.size());
160 String chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)];
162 chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)];
  /frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
FakeView.java 50 final Random mRandom = new Random();
72 mPaint.setTextSize(mRandom.nextInt(40) + 10);
73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000));
74 int x = mRandom.nextInt(getWidth()) - (getWidth()/2);
75 int y = mRandom.nextInt(getHeight());
FakeBackgroundService.java 36 final Random mRandom = new Random();
51 final int VAL = mRandom.nextInt();
  /frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
ElementLayoutActivity.java 39 private Random mRandom = new Random(0);
65 switch (mRandom.nextInt(5)) {
89 int lineCnt = mRandom.nextInt(4);
95 buffer.append("Line:" + mRandom.nextInt());
103 button.setText("RadioButton:" + mRandom.nextInt());
109 button.setChecked(mRandom.nextBoolean());
115 button.setChecked(mRandom.nextBoolean());
121 chronometer.setBase(mRandom.nextLong());
  /development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
NonsenseGenerator.java 29 Random mRandom;
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)];
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
BlackWhiteFilter.java 43 private Random mRandom;
87 mRandom = new Random(new Date().getTime());
124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
DocumentaryFilter.java 37 private Random mRandom;
82 mRandom = new Random(new Date().getTime());
158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
LomoishFilter.java 37 private Random mRandom;
122 mRandom = new Random(new Date().getTime());
170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
  /frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
TestEnrollmentActivity.java 43 private Random mRandom;
51 mRandom = new Random();
64 mRandom.nextBytes(data);
109 mRandom.nextBytes(data);
  /libcore/luni/src/test/java/libcore/java/util/
OldAndroidTreeMapTest.java 30 private Random mRandom = new Random(1);
49 int val = mRandom.nextInt(1000);
83 int val = mRandom.nextInt(1000);
  /packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
ChannelRecordTest.java 34 private Random mRandom;
43 mRandom = Utils.createTestRandom();
114 mLatestWatchEndTimeMs += TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1);
116 long durationMs = TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1);
RecommendationUtils.java 71 private Random mRandom = Utils.createTestRandom();
82 mRandom = random;
123 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size()));
126 latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(mRandom.nextInt(30) + 1);
128 long watchedDurationMs = mRandom.nextInt((int) maxWatchDurationMs) + 1;
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
Dummy83BufferGenerator.java 30 final SecureRandom mRandom;
37 mRandom = new SecureRandom();
138 int randomNumber = Math.abs(mRandom.nextInt());
161 randomNumber = Math.abs(mRandom.nextInt());
  /development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
MusicRetriever.java 44 Random mRandom = new Random();
109 return mItems.get(mRandom.nextInt(mItems.size()));
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
PathsCacheActivity.java 35 private final Random mRandom = new Random();
114 for (int i = 0; i < mRandom.nextInt(20); i++) {
116 int r = mRandom.nextInt(10);
125 canvas.translate(450.0f + mRandom.nextInt(200), mRandom.nextInt(200));
130 int r = mRandom.nextInt(100);
  /frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
SoundTriggerTest.java 37 private Random mRandom = new Random();
145 mRandom.nextBytes(data);
167 mRandom.nextBytes(data);
192 mRandom.nextBytes(data);
248 mRandom.nextBytes(data);
267 mRandom.nextBytes(data);
330 mRandom.nextBytes(data);
  /frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
BottomSheetDynamicContent.java 125 private final Random mRandom = new Random(System.currentTimeMillis());
128 mCheeses.add(Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]);
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
EventLogLogger.java 39 private final Random mRandom;
45 mRandom = new Random();
  /developers/build/prebuilts/gradle/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/
AnimatedNotificationDisplayActivity.java 42 private Random mRandom;
52 mRandom = new Random(System.currentTimeMillis());
73 float endX = -mRandom.nextInt(mAnimationRange);
74 float endY = -mRandom.nextInt(mAnimationRange);
  /developers/samples/android/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/
AnimatedNotificationDisplayActivity.java 42 private Random mRandom;
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/
MediaScannerActivity.java 54 Random mRandom = new Random();
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/
GameView.java 50 private final Random mRandom;
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.nextFloat() * (mMaxObstacleSpeed - mMinObstacleSpeed
    [all...]

Completed in 868 milliseconds

1 2 3 4