OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mRandom
(Results
1 - 25
of
81
) sorted by null
1
2
3
4
/system/security/keystore/
entropy.h
24
Entropy() :
mRandom
(-1) {}
31
int
mRandom
;
entropy.cpp
32
if (
mRandom
>= 0) {
33
close(
mRandom
);
39
mRandom
= TEMP_FAILURE_RETRY(::open(randomDevice, O_RDONLY));
40
if (
mRandom
< 0) {
48
return (readFully(
mRandom
, data, size) == size);
/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));
MonkeySourceRandom.java
100
private Random
mRandom
;
142
mRandom
= random;
401
float cls =
mRandom
.nextFloat();
405
generatePointerEvent(
mRandom
, GESTURE_TAP);
408
generatePointerEvent(
mRandom
, GESTURE_DRAG);
411
generatePointerEvent(
mRandom
, GESTURE_PINCH_OR_ZOOM);
414
generateTrackballEvent(
mRandom
);
417
generateRotationEvent(
mRandom
);
420
mQ.add(mPermissionUtil.generateRandomPermissionEvent(
mRandom
));
427
lastKey = NAV_KEYS[
mRandom
.nextInt(NAV_KEYS.length)]
[
all
...]
/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/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());
/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());
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
ChannelRecordTest.java
39
private Random
mRandom
;
47
mRandom
= Utils.createTestRandom();
126
mLatestWatchEndTimeMs += TimeUnit.SECONDS.toMillis(
mRandom
.nextInt(60) + 1);
128
long durationMs = TimeUnit.SECONDS.toMillis(
mRandom
.nextInt(60) + 1);
RecommendationUtils.java
70
private Random
mRandom
= Utils.createTestRandom();
81
mRandom
= random;
122
long channelId = channelIdList.get(
mRandom
.nextInt(channelIdList.size()));
125
latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(
mRandom
.nextInt(30) + 1);
127
long watchedDurationMs =
mRandom
.nextInt((int) maxWatchDurationMs) + 1;
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
Scheduler.java
88
private final Random
mRandom
;
92
mRandom
= random;
125
x =
mRandom
.nextInt() % modulus;
143
final int b = Math.abs(
mRandom
.nextInt());
/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());
/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/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() };
GrainFilter.java
48
private Random
mRandom
;
93
mRandom
= new Random(new Date().getTime());
127
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);
/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)];
/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);
/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/samples/browseable/Notifications/Wearable/src/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);
/frameworks/base/core/tests/coretests/src/android/util/
SparseLongArrayTest.java
44
private Random
mRandom
;
79
keys[0] = -1 *
mRandom
.nextInt(size * 500);
81
keys[i] = keys[i - 1] + 1 +
mRandom
.nextInt(1000);
90
mRandom
= new Random(12345);
/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)) {
Completed in 1313 milliseconds
1
2
3
4