Home
last modified time | relevance | path

Searched refs:mRandom (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeView.java50 final Random mRandom = new Random(); field in FakeView
72 mPaint.setTextSize(mRandom.nextInt(40) + 10); in onDraw()
73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000)); in onDraw()
74 int x = mRandom.nextInt(getWidth()) - (getWidth()/2); in onDraw()
75 int y = mRandom.nextInt(getHeight()); in onDraw()
DFakeBackgroundService.java36 final Random mRandom = new Random(); field in FakeBackgroundService
51 final int VAL = mRandom.nextInt();
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathsCacheActivity.java35 private final Random mRandom = new Random(); field in PathsCacheActivity
95 for (int i = 0; i < mRandom.nextInt(20); i++) { in onDraw()
97 int r = mRandom.nextInt(10); in onDraw()
103 canvas.translate(450.0f + mRandom.nextInt(200), mRandom.nextInt(200)); in onDraw()
108 int r = mRandom.nextInt(100); in onDraw()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DBlackWhiteFilter.java46 private Random mRandom; field in BlackWhiteFilter
90 mRandom = new Random(new Date().getTime()); in BlackWhiteFilter()
127 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters()
DLomoishFilter.java40 private Random mRandom; field in LomoishFilter
125 mRandom = new Random(new Date().getTime()); in LomoishFilter()
173 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters()
DDocumentaryFilter.java40 private Random mRandom; field in DocumentaryFilter
85 mRandom = new Random(new Date().getTime()); in DocumentaryFilter()
161 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters()
DGrainFilter.java53 private Random mRandom; field in GrainFilter
98 mRandom = new Random(new Date().getTime()); in GrainFilter()
132 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters()
/frameworks/base/core/tests/notificationtests/src/android/app/
DNotificationStressTest.java51 private final Random mRandom = new Random(); field in NotificationStressTest
81 Notification notification = new Notification(ICONS[mRandom.nextInt(ICONS.length)], text, in sendNotification()
/frameworks/base/obex/javax/obex/
DHeaderSet.java212 private final SecureRandom mRandom; field in HeaderSet
234 mRandom = new SecureRandom(); in HeaderSet()
604 nonce[i] = (byte)mRandom.nextInt(); in createAuthenticationChallenge()
/frameworks/base/core/java/android/content/
DContentResolver.java182 private final Random mRandom = new Random(); // guarded by itself field in ContentResolver
1769 synchronized (mRandom) { in maybeLogQueryToEventLog()
1770 if (mRandom.nextInt(100) >= samplePercent) { in maybeLogQueryToEventLog()
1808 synchronized (mRandom) { in maybeLogUpdateToEventLog()
1809 if (mRandom.nextInt(100) >= samplePercent) { in maybeLogUpdateToEventLog()