Home
last modified time | relevance | path

Searched refs:mRandom (Results 1 – 11 of 11) 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
109 for (int i = 0; i < mRandom.nextInt(20); i++) { in onDraw()
111 int r = mRandom.nextInt(10); in onDraw()
120 canvas.translate(450.0f + mRandom.nextInt(200), mRandom.nextInt(200)); in onDraw()
125 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/services/java/com/android/server/location/
DLocationFudger.java107 private final SecureRandom mRandom = new SecureRandom(); field in LocationFudger
305 return mRandom.nextGaussian() * mStandardDeviationInMeters; in nextOffsetLocked()
/frameworks/base/core/java/android/content/
DContentResolver.java224 private final Random mRandom = new Random(); // guarded by itself field in ContentResolver
1837 synchronized (mRandom) { in maybeLogQueryToEventLog()
1838 if (mRandom.nextInt(100) >= samplePercent) { in maybeLogQueryToEventLog()
1876 synchronized (mRandom) { in maybeLogUpdateToEventLog()
1877 if (mRandom.nextInt(100) >= samplePercent) { in maybeLogUpdateToEventLog()