/aosp12/frameworks/base/apct-tests/perftests/core/src/android/text/ |
H A D | NonEditableTextGenerator.java | 23 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()
|
H A D | TextPerfUtils.java | 33 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()
|
/aosp12/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
H A 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()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/fudger/ |
H A D | LocationFudgerTest.java | 54 private Random mRandom; field in LocationFudgerTest 63 mRandom = new Random(seed); in setUp() 67 mRandom); in setUp() 74 Location fine = createLocation("test", mRandom); in testCoarsen() 97 Location fine = createLocation("test", mRandom); in testCoarsen_Consistent() 112 Location fine = createLocation("test", mRandom); in testCoarsen_AvgMany() 117 finePoints.add(step(fine, mRandom.nextGaussian() * ACCURACY_M)); in testCoarsen_AvgMany() 157 double radians = mRandom.nextDouble() * 2 * Math.PI; in step()
|
/aosp12/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
H A 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()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/ |
H A D | LocationProviderManagerTest.java | 138 private Random mRandom; field in LocationProviderManagerTest 168 mRandom = new Random(seed); in setUp() 315 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Fine() 326 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Coarse() 342 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass() 359 loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass() 376 loc = createLocation(NAME, mRandom); in testGetLastLocation_Bypass() 393 Location loc = createLocation(NAME, mRandom); in testGetLastLocation_ClearOnMockRemoval() 453 loc = createLocationResult(NAME, mRandom); in testRegisterListener() 463 loc = createLocationResult(NAME, mRandom); in testRegisterListener() [all …]
|
H A D | StationaryThrottlingLocationProviderTest.java | 58 private Random mRandom; field in StationaryThrottlingLocationProviderTest 75 mRandom = new Random(seed); in setUp() 97 mDelegateProvider.reportLocation(createLocationResult("test_provider", mRandom)); in testThrottle_lowInterval() 112 mDelegateProvider.reportLocation(createLocationResult("test_provider", mRandom)); in testThrottle_stationaryExit() 134 mDelegateProvider.reportLocation(createLocationResult("test_provider", mRandom)); in testThrottle_idleExit() 160 mDelegateProvider.reportLocation(createLocationResult("test_provider", mRandom)); in testThrottle_NoInitialLocation() 191 Location l = createLocation("test_provider", mRandom); in testNoThrottle_oldLocation() 212 LocationResult loc = createLocationResult("test_provider", mRandom); in testNoThrottle_locationSettingsIgnored()
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A 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()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiLinkLayerStatsTest.java | 40 Random mRandom = new Random(); field in WifiLinkLayerStatsTest 57 int a = mRandom.nextInt(31); in bumpCounters() 58 int b = mRandom.nextInt(31); in bumpCounters() 95 int txg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight() 96 int txr = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight() 97 int txb = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight() 98 int rxg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
|
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
H A D | IpSecSpiGenerator.java | 31 private final SecureRandom mRandom; field in IpSecSpiGenerator 42 mRandom = randomnessFactory.getRandom(); in IpSecSpiGenerator() 56 if (mRandom == null) { in allocateSpi() 59 return mIpSecManager.allocateSecurityParameterIndex(sourceAddress, mRandom.nextInt()); in allocateSpi()
|
H A D | IkeSpiGenerator.java | 26 private final SecureRandom mRandom; field in IkeSpiGenerator 35 mRandom = random == null ? new SecureRandom() : random; in IkeSpiGenerator() 50 spi = mRandom.nextLong(); in allocateSpi()
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/testing/ |
H A D | RandomInputStream.java | 29 private final Random mRandom; field in RandomInputStream 40 mRandom = random; in RandomInputStream() 51 return mRandom.nextInt(BYTE_MAX_VALUE); in read() 64 for (int rnd = mRandom.nextInt(), n = Math.min(end - i, Integer.SIZE / Byte.SIZE); in read()
|
/aosp12/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
H A D | RecommendationUtils.java | 76 private Random mRandom = Utils.createTestRandom(); field in RecommendationUtils.ChannelRecordSortedMapHelper 87 mRandom = random; in resetRandom() 128 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size())); in addRandomWatchLogs() 131 latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(mRandom.nextInt(30) + 1); in addRandomWatchLogs() 133 long watchedDurationMs = mRandom.nextInt((int) maxWatchDurationMs) + 1L; in addRandomWatchLogs()
|
H A D | ChannelRecordTest.java | 37 private Random mRandom; field in ChannelRecordTest 45 mRandom = Utils.createTestRandom(); in setUp() 125 mLatestWatchEndTimeMs += TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog() 127 long durationMs = TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
H A D | RecyclerViewActivity.java | 57 private final Random mRandom = new Random(); field in RecyclerViewActivity.TestAdapter 71 Color.rgb(mRandom.nextFloat(), mRandom.nextFloat(), mRandom.nextFloat())); in onBindViewHolder()
|
/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/aosp12/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
H A D | TestEnrollmentActivity.java | 47 private Random mRandom; field in TestEnrollmentActivity 55 mRandom = new Random(); in onCreate() 69 mRandom.nextBytes(data); in onEnrollButtonClicked() 114 mRandom.nextBytes(data); in onReEnrollButtonClicked()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | SparseLongArrayTest.java | 45 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()
|
/aosp12/hardware/interfaces/biometrics/fingerprint/aidl/default/include/ |
H A D | FakeFingerprintEngine.h | 26 FakeFingerprintEngine() : mRandom(std::mt19937::default_seed) {} in FakeFingerprintEngine() 31 auto challenge = dist(mRandom); in generateChallengeImpl() 85 std::mt19937 mRandom; variable
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/cdc/ |
H A D | IsChunkBreakpointTest.java | 41 private Random mRandom; field in IsChunkBreakpointTest 46 mRandom = new Random(RANDOM_SEED); in setUp() 117 if (isChunkBreakpoint.isBreakpoint(mRandom.nextLong())) { in numberOfTrialsTillBreakpoint()
|
/aosp12/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/ |
H A D | SoundTriggerTest.java | 37 private Random mRandom = new Random(); field in SoundTriggerTest 152 mRandom.nextBytes(data); in testKeyphraseSoundModelParcelUnparcel_noKeyphrases() 174 mRandom.nextBytes(data); in testKeyphraseSoundModelParcelUnparcel_zeroKeyphrases() 201 mRandom.nextBytes(data); in testKeyphraseSoundModelParcelUnparcel_largeData() 257 mRandom.nextBytes(data); in testRecognitionEventParcelUnparcel_largeData() 276 mRandom.nextBytes(data); in testRecognitionEventParcelUnparcel_largeAudioData() 339 mRandom.nextBytes(data); in testKeyphraseRecognitionEventParcelUnparcel_largeData()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/ |
H A D | BiometricTestSessionImpl.java | 53 @NonNull private final Random mRandom; field in BiometricTestSessionImpl 126 mRandom = new Random(); in BiometricTestSessionImpl() 149 int nextRandomId = mRandom.nextInt(); in finishEnroll() 151 nextRandomId = mRandom.nextInt(); in finishEnroll()
|