/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | ElementLayoutActivity.java | 39 private Random mRandom = new Random(0); field in ElementLayoutActivity 65 switch (mRandom.nextInt(5)) { in onCreate() 89 int lineCnt = mRandom.nextInt(4); in createTextView() 95 buffer.append("Line:" + mRandom.nextInt()); in createTextView() 103 button.setText("RadioButton:" + mRandom.nextInt()); in createRadioButton() 109 button.setChecked(mRandom.nextBoolean()); in createToggleButton() 115 button.setChecked(mRandom.nextBoolean()); in createSwitch() 121 chronometer.setBase(mRandom.nextLong()); in createChronometer()
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeView.java | 50 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()
|
D | FakeBackgroundService.java | 36 final Random mRandom = new Random(); field in FakeBackgroundService 51 final int VAL = mRandom.nextInt();
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PathsCacheActivity.java | 35 private final Random mRandom = new Random(); field in PathsCacheActivity 114 for (int i = 0; i < mRandom.nextInt(20); i++) { in onDraw() 116 int r = mRandom.nextInt(10); in onDraw() 125 canvas.translate(450.0f + mRandom.nextInt(200), mRandom.nextInt(200)); in onDraw() 130 int r = mRandom.nextInt(100); in onDraw()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/ |
D | DiffUtilActivity.java | 46 private Random mRandom = new Random(System.nanoTime()); field in DiffUtilActivity 138 switch (mRandom.nextInt(3)) { in createRandomCheeseList() 140 output.add(mRandom.nextInt(1 + output.size()), getRandomCheese(output)); in createRandomCheeseList() 144 output.remove(mRandom.nextInt(output.size())); in createRandomCheeseList() 149 int from = mRandom.nextInt(output.size()); in createRandomCheeseList() 150 int to = mRandom.nextInt(output.size()); in createRandomCheeseList() 160 String chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in getRandomCheese() 162 chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in getRandomCheese()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | BlackWhiteFilter.java | 43 private Random mRandom; field in BlackWhiteFilter 87 mRandom = new Random(new Date().getTime()); in BlackWhiteFilter() 124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters()
|
D | DocumentaryFilter.java | 37 private Random mRandom; field in DocumentaryFilter 82 mRandom = new Random(new Date().getTime()); in DocumentaryFilter() 158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters()
|
D | LomoishFilter.java | 37 private Random mRandom; field in LomoishFilter 122 mRandom = new Random(new Date().getTime()); in LomoishFilter() 170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters()
|
D | GrainFilter.java | 48 private Random mRandom; field in GrainFilter 93 mRandom = new Random(new Date().getTime()); in GrainFilter() 127 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters()
|
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
D | TestEnrollmentActivity.java | 43 private Random mRandom; field in TestEnrollmentActivity 51 mRandom = new Random(); in onCreate() 64 mRandom.nextBytes(data); in onEnrollButtonClicked() 109 mRandom.nextBytes(data); in onReEnrollButtonClicked()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | SparseLongArrayTest.java | 44 private Random mRandom; field in SparseLongArrayTest 79 keys[0] = -1 * mRandom.nextInt(size * 500); in generateRandomKeys() 81 keys[i] = keys[i - 1] + 1 + mRandom.nextInt(1000); in generateRandomKeys() 90 mRandom = new Random(12345); in setUp()
|
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/ |
D | SoundTriggerTest.java | 37 private Random mRandom = new Random(); field in SoundTriggerTest 145 mRandom.nextBytes(data); in testKeyphraseSoundModelParcelUnparcel_noKeyphrases() 167 mRandom.nextBytes(data); in testKeyphraseSoundModelParcelUnparcel_zeroKeyphrases() 192 mRandom.nextBytes(data); in testKeyphraseSoundModelParcelUnparcel_largeData() 248 mRandom.nextBytes(data); in testRecognitionEventParcelUnparcel_largeData() 267 mRandom.nextBytes(data); in testRecognitionEventParcelUnparcel_largeAudioData() 330 mRandom.nextBytes(data); in testKeyphraseRecognitionEventParcelUnparcel_largeData()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | AppSmsManager.java | 47 private final SecureRandom mRandom; field in AppSmsManager 57 mRandom = new SecureRandom(); in AppSmsManager() 151 mRandom.nextBytes(bytes); in generateNonce()
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 39 private final static Random mRandom = new Random(); field in CustomSurfaceView 139 int x = mRandom.nextInt(canvas.getWidth() - textWidth); in invalidateSurface() 140 int y = textSize + mRandom.nextInt(canvas.getHeight() - textSize); in invalidateSurface()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiApConfigStoreTest.java | 63 Random mRandom; field in WifiApConfigStoreTest 82 mRandom = new Random(); in setUp() 243 index = mRandom.nextInt(TEST_CHAR_SET_AS_STRING.length()); in generateRandomString() 273 mRandom.nextInt(validLength) + WifiApConfigStore.SSID_MIN_LEN); in testSsidVerificationInValidateApWifiConfigurationCheck() 341 generateRandomString(mRandom.nextInt(maxLen - minLen) + minLen); in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | StreamingTextView.java | 71 final Random mRandom = new Random(); field in StreamingTextView 255 mRandom.setSeed(mSeed); in draw() 266 paint.setAlpha((mRandom.nextInt(4) + 1) * 63); in draw() 268 if (mRandom.nextBoolean()) { in draw()
|
/frameworks/base/obex/javax/obex/ |
D | HeaderSet.java | 231 private SecureRandom mRandom = null; field in HeaderSet 682 if(mRandom == null) { in createAuthenticationChallenge() 683 mRandom = new SecureRandom(); in createAuthenticationChallenge() 686 nonce[i] = (byte)mRandom.nextInt(); in createAuthenticationChallenge()
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
D | NotificationStressTest.java | 60 private final Random mRandom = new Random(); field in NotificationStressTest 119 .setSmallIcon(ICONS[mRandom.nextInt(ICONS.length)]) in sendNotification()
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
D | BottomSheetDynamicContent.java | 125 private final Random mRandom = new Random(System.currentTimeMillis()); field in BottomSheetDynamicContent.DynamicAdapter 128 mCheeses.add(Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]); in add()
|
D | TabLayoutUsage.java | 48 private final Random mRandom = new Random(); field in TabLayoutUsage 72 String cheese = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in addTab()
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | GpsStatusTest.java | 38 private final Random mRandom = new Random(); field in GpsStatusTest 291 return mRandom.nextInt(MAX_VALUE) + 1; in generateInt() 320 if (mRandom.nextBoolean()) { in generateMask()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationFudger.java | 104 private final SecureRandom mRandom = new SecureRandom(); field in LocationFudger 302 return mRandom.nextGaussian() * mStandardDeviationInMeters; in nextOffsetLocked()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkDiagnostics.java | 512 private final Random mRandom = new Random(); field in NetworkDiagnostics.DnsUdpCheck 557 final String sixRandomDigits = String.valueOf(mRandom.nextInt(900000) + 100000); in run() 599 (byte) mRandom.nextInt(), (byte) mRandom.nextInt(), // [0-1] query ID in getDnsQueryPacket()
|
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpClient.java | 168 private final Random mRandom; field in DhcpClient 248 mRandom = new Random(); in DhcpClient() 285 mTransactionId = mRandom.nextInt(); in startNewTransaction() 728 int jitter = mRandom.nextInt(2 * maxJitter) - maxJitter; in jitterTimer()
|
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerTestService.java | 57 private Random mRandom; field in SoundTriggerTestService 69 mRandom = new Random(); in SoundTriggerTestService() 503 mRandom.nextBytes(modelInfo.modelData); in createModelInfo()
|