Home
last modified time | relevance | path

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

12

/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java39 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/
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
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/
DDiffUtilActivity.java46 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/
DBlackWhiteFilter.java43 private Random mRandom; field in BlackWhiteFilter
87 mRandom = new Random(new Date().getTime()); in BlackWhiteFilter()
124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters()
DDocumentaryFilter.java37 private Random mRandom; field in DocumentaryFilter
82 mRandom = new Random(new Date().getTime()); in DocumentaryFilter()
158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters()
DLomoishFilter.java37 private Random mRandom; field in LomoishFilter
122 mRandom = new Random(new Date().getTime()); in LomoishFilter()
170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters()
DGrainFilter.java48 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/
DTestEnrollmentActivity.java43 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/
DSparseLongArrayTest.java44 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/
DSoundTriggerTest.java37 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/
DAppSmsManager.java47 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/
DCustomSurfaceView.java39 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/
DWifiApConfigStoreTest.java63 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/
DStreamingTextView.java71 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/
DHeaderSet.java231 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/
DNotificationStressTest.java60 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/
DBottomSheetDynamicContent.java125 private final Random mRandom = new Random(System.currentTimeMillis()); field in BottomSheetDynamicContent.DynamicAdapter
128 mCheeses.add(Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]); in add()
DTabLayoutUsage.java48 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/
DGpsStatusTest.java38 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/
DLocationFudger.java104 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/
DNetworkDiagnostics.java512 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/
DDhcpClient.java168 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/
DSoundTriggerTestService.java57 private Random mRandom; field in SoundTriggerTestService
69 mRandom = new Random(); in SoundTriggerTestService()
503 mRandom.nextBytes(modelInfo.modelData); in createModelInfo()

12