OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mRandom
(Results
1 - 25
of
42
) sorted by null
1
2
/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/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();
/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/core/tests/notificationtests/src/android/app/
NotificationStressTest.java
51
private final Random
mRandom
= new Random();
81
Notification notification = new Notification(ICONS[
mRandom
.nextInt(ICONS.length)], text,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
BlackWhiteFilter.java
46
private Random
mRandom
;
90
mRandom
= new Random(new Date().getTime());
127
float seed[] = {
mRandom
.nextFloat(),
mRandom
.nextFloat() };
DocumentaryFilter.java
40
private Random
mRandom
;
85
mRandom
= new Random(new Date().getTime());
161
float seed[] = {
mRandom
.nextFloat(),
mRandom
.nextFloat() };
LomoishFilter.java
40
private Random
mRandom
;
125
mRandom
= new Random(new Date().getTime());
173
float seed[] = {
mRandom
.nextFloat(),
mRandom
.nextFloat() };
GrainFilter.java
53
private Random
mRandom
;
98
mRandom
= new Random(new Date().getTime());
132
float seed[] = {
mRandom
.nextFloat(),
mRandom
.nextFloat() };
/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);
/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);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
EventLogLogger.java
39
private final Random
mRandom
;
45
mRandom
= new Random();
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
VideoEncoderDecoderTest.java
78
private Random
mRandom
;
85
mRandom
= new Random(now);
95
mRandom
= null;
395
int w =
mRandom
.nextInt(mVideoWidth);
396
int h =
mRandom
.nextInt(mVideoHeight);
/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
...]
/frameworks/base/obex/javax/obex/
HeaderSet.java
212
private final SecureRandom
mRandom
;
234
mRandom
= new SecureRandom();
606
nonce[i] = (byte)
mRandom
.nextInt();
/frameworks/base/services/java/com/android/server/location/
LocationFudger.java
107
private final SecureRandom
mRandom
= new SecureRandom();
305
return
mRandom
.nextGaussian() * mStandardDeviationInMeters;
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/
StreamItemPopulatorActivity.java
119
private Random
mRandom
;
125
mRandom
= new Random(System.currentTimeMillis());
302
return Math.abs(
mRandom
.nextInt()) % max;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
SlideshowView.java
50
private Random
mRandom
= new Random();
70
mRandom
);
74
mRandom
);
/packages/apps/Mms/tests/src/com/android/mms/
RecyclerTest.java
65
private Random
mRandom
= new Random();
133
int wordsInMessage =
mRandom
.nextInt(9) + 1; // up to 10 words in the message
136
msg.append(mWords.get(
mRandom
.nextInt(mWordCount)) + " ");
190
mRecipients.get(
mRandom
.nextInt(mRecipientCnt)),
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
SparseTableTests.java
37
private final Random
mRandom
;
50
mRandom
= new Random(seed);
72
if (
mRandom
.nextInt(100) < prop) {
73
mRandomIndex.set(i,
mRandom
.nextInt());
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
FileUtil.java
41
private static final Random
mRandom
= new Random(0);
52
int val =
mRandom
.nextInt();
Completed in 648 milliseconds
1
2