Home
last modified time | relevance | path

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

12

/frameworks/base/apct-tests/perftests/core/src/android/text/
DNonEditableTextGenerator.java23 private final Random mRandom; field in NonEditableTextGenerator
26 mRandom = random; in NonEditableTextGenerator()
50 mRandom); in build()
103 private final Random mRandom; field in NonEditableTextGenerator.RandomCharSequenceGenerator
106 mRandom = random; in RandomCharSequenceGenerator()
128 final int length = mRandom.nextInt(mMaxWordLength - mMinWordLength) + mMinWordLength; in buildLatinWord()
131 int base = mRandom.nextInt(2) == 0 ? 'A' : 'a'; in buildLatinWord()
132 result.append(Character.toChars(mRandom.nextInt(26) + base)); in buildLatinWord()
DTextPerfUtils.java33 private Random mRandom = new Random(0); field in TextPerfUtils
54 mRandom = new Random(seed); in resetRandom()
89 final String str = charSet[mRandom.nextInt(charSet.length)]; in nextRandomParagraph()
113 FAMILIES[mRandom.nextInt(FAMILIES.length)], in nextRandomParagraph()
114 STYLES[mRandom.nextInt(STYLES.length)], in nextRandomParagraph()
115 24 + mRandom.nextInt(32), // text size. min 24 max 56 in nextRandomParagraph()
/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/GamePerformance/src/android/gameperformance/
DCustomOpenGLView.java30 private Random mRandom; field in CustomOpenGLView
36 mRandom = new Random(); in CustomOpenGLView()
60 mRandom.nextFloat(), mRandom.nextFloat(), mRandom.nextFloat(), 1.0f); in CustomOpenGLView()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLinkLayerStatsTest.java37 Random mRandom = new Random(); field in WifiLinkLayerStatsTest
54 int a = mRandom.nextInt(31); in bumpCounters()
55 int b = mRandom.nextInt(31); in bumpCounters()
92 int txg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
93 int txr = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
94 int txb = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
95 int rxg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
DWifiApConfigStoreTest.java88 private Random mRandom; field in WifiApConfigStoreTest
128 mRandom = new Random(); in setUp()
581 index = mRandom.nextInt(TEST_CHAR_SET_AS_STRING.length()); in generateRandomString()
619 mRandom.nextInt(validLength) + WifiApConfigStore.SSID_MIN_LEN); in testSsidVerificationInValidateApWifiConfigurationCheck()
693 generateRandomString(mRandom.nextInt(maxLen - minLen) + minLen); in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck()
DWifiNativeTest.java175 @Mock private Random mRandom; field in WifiNativeTest
186 mWifiMonitor, mNwService, mPropertyService, mWifiMetrics, mHandler, mRandom); in setUp()
720 when(mRandom.nextInt()).thenReturn(TEST_SEQUENCE_NUM); in testProbeLinkSuccess()
/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()
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()
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()
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/services/tests/servicestests/src/com/android/server/job/
DJobCountTrackerTest.java42 private Random mRandom; field in JobCountTrackerTest
47 mRandom = new Random(1); // Always use the same series of pseudo random values. in setUp()
61 while (mRandom.nextDouble() < startRatio) { in maybeEnqueueJobs()
62 if (mRandom.nextDouble() < fgJobRatio) { in maybeEnqueueJobs()
72 if (mRandom.nextDouble() < stopRatio) { in maybeFinishJobs()
77 if (mRandom.nextDouble() < stopRatio) { in maybeFinishJobs()
106 final boolean isStartingFg = mRandom.nextBoolean(); in startPendingJobs()
/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/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/
DIsChunkBreakpointTest.java41 private Random mRandom; field in IsChunkBreakpointTest
46 mRandom = new Random(RANDOM_SEED); in setUp()
117 if (isChunkBreakpoint.isBreakpoint(mRandom.nextLong())) { in numberOfTrialsTillBreakpoint()
/frameworks/base/core/tests/coretests/src/android/util/
DSparseLongArrayTest.java45 private Random mRandom; field in SparseLongArrayTest
80 keys[0] = -1 * mRandom.nextInt(size * 500); in generateRandomKeys()
82 keys[i] = keys[i - 1] + 1 + mRandom.nextInt(1000); in generateRandomKeys()
91 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/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/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/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java62 private final SecureRandom mRandom; field in AppSmsManager
72 mRandom = new SecureRandom(); in AppSmsManager()
263 mRandom.nextBytes(bytes); in generateNonce()
/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.java510 private final Random mRandom = new Random(); field in NetworkDiagnostics.DnsUdpCheck
556 final String sixRandomDigits = String.valueOf(mRandom.nextInt(900000) + 100000); in run()
598 (byte) mRandom.nextInt(), (byte) mRandom.nextInt(), // [0-1] query ID in getDnsQueryPacket()

12