Home
last modified time | relevance | path

Searched refs:sRandom (Results 1 – 9 of 9) sorted by relevance

/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DProvisionedKeyTest.java37 private static final Random sRandom = new Random(); field in ProvisionedKeyTest
40 int length = 16 + sRandom.nextInt(112); in randBytes()
42 sRandom.nextBytes(bytes); in randBytes()
53 key.clientUid = sRandom.nextInt(); in randomKey()
54 key.keyId = sRandom.nextInt(); in randomKey()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/spe/logging/
DJobSchedulingLogger.java38 private static final Random sRandom = new Random(); field in JobSchedulingLogger
125 return sRandom.nextInt(MAX_PERCENTAGE) < loggingRatio; in shouldLog()
DJobServiceLogger.java74 private static final Random sRandom = new Random(); field in JobServiceLogger
531 return sRandom.nextInt(MAX_PERCENTAGE) < loggingRatio; in shouldLog()
/packages/services/Mms/src/com/android/mms/service/metrics/
DPersistMmsAtomsStorage.java57 private static final SecureRandom sRandom = new SecureRandom(); field in PersistMmsAtomsStorage
290 int insertAt = sRandom.nextInt(maxSize); in insertAtRandomPlace()
294 int insertAt = sRandom.nextInt(storage_size); in insertAtRandomPlace()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java63 public static Random sRandom = new Random(SystemClock.uptimeMillis()); field in SpeedMeasurementController
321 sRandom.nextBytes(buffer); in run()
400 sRandom.nextBytes(buffer); in run()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java97 private static final Random sRandom = new Random(); field in SimContactDaoTests
526 final int emailCount = sRandom.nextInt(10); in appendCreateContact()
527 final int phoneCount = sRandom.nextInt(5); in appendCreateContact()
746 AREA_CODES[sRandom.nextInt(AREA_CODES.length)], in randomPhone()
747 sRandom.nextInt(100)); in randomPhone()
752 1000 + sRandom.nextInt(1000)); in randomEmail()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java90 private static final Random sRandom = new Random(); field in ApConfigUtil
570 return availableSafeFreqs.get(sRandom.nextInt(availableSafeFreqs.size())); in chooseApChannel()
574 sRandom.nextInt(availableUnsafeFreqs.size())); in chooseApChannel()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java82 public static Random sRandom = new Random(SystemClock.uptimeMillis()); field in Helpers
512 sequence += sRandom.nextInt(magnitude) + 1; in generateAvailableFilenameLocked()
DDownloadInfo.java275 return delay + Helpers.sRandom.nextInt((int) (delay / 2)); in fuzzDelay()