/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
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()
|
D | WifiApConfigStoreTest.java | 108 private Random mRandom; field in WifiApConfigStoreTest 142 mRandom = new Random(); in setUp() 772 index = mRandom.nextInt(TEST_CHAR_SET_AS_STRING.length()); in generateRandomString() 867 generateRandomString(mRandom.nextInt(maxLen - minLen) + minLen), in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
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()
|
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()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
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()
|
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()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtilsTests.java | 57 final Random mRandom; field in BinaryDictOffdeviceUtilsTests 62 mRandom = new Random(seed); in BinaryDictOffdeviceUtilsTests() 64 generateWords(maxUnigrams, mRandom); in BinaryDictOffdeviceUtilsTests() 163 options.put("version", Integer.toString(mRandom.nextInt())); in runTestHeaderReaderProcessorWithOneSpec() 165 final int numberOfOptionsToAdd = mRandom.nextInt() % (MAX_NUMBER_OF_OPTIONS_TO_ADD + 1); in runTestHeaderReaderProcessorWithOneSpec()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | RttChatbot.java | 47 private final Random mRandom = new Random(); field in RttChatbot 90 if (mRandom.nextDouble() < ONE_LINER_FREQUENCY) { in sendReplyMessage() 91 messageToSend = mOneLiners[mRandom.nextInt(mOneLiners.length)]; in sendReplyMessage()
|
D | TestConnectionService.java | 77 private Random mRandom = new Random(); field in TestConnectionService 445 int subjectFormat = mRandom.nextInt(3); 617 int number = mRandom.nextInt(999);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlideshowView.java | 50 private Random mRandom = new Random(); field in SlideshowView 70 mRandom); in next() 74 mRandom); in next()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | InstanceIdSequence.java | 36 private final Random mRandom = new SecureRandom(); field in InstanceIdSequence 59 return newInstanceIdInternal(1 + mRandom.nextInt(mInstanceIdMax)); in newInstanceId()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | SlideshowPage.java | 242 private final Random mRandom = new Random(); field in SlideshowPage.ShuffleSource 266 mLastIndex = mRandom.nextInt(mOrder.length); in getMediaItem() 291 Utils.swap(mOrder, i, mRandom.nextInt(i + 1)); in generateOrderArray() 294 Utils.swap(mOrder, 0, mRandom.nextInt(totalCount - 1) + 1); in generateOrderArray()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | EventLogLogger.java | 39 private final Random mRandom; field in EventLogLogger 45 mRandom = new Random(); in EventLogLogger()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkDiagnostics.java | 568 protected final Random mRandom = new Random(); field in NetworkDiagnostics.DnsUdpCheck 607 final String sixRandomDigits = String.valueOf(mRandom.nextInt(900000) + 100000); in run() 648 (byte) mRandom.nextInt(), (byte) mRandom.nextInt(), // [0-1] query ID in getDnsQueryPacket() 713 final String sixRandomDigits = String.valueOf(mRandom.nextInt(900000) + 100000); in sendDoTProbe()
|
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/ |
D | SandboxedSdkHolder.java | 51 private final Random mRandom = new SecureRandom(); field in SandboxedSdkHolder 130 int id = mRandom.nextInt(); in allocateSurfacePackageId()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | Profile.java | 67 private Random mRandom = new Random(); field in Profile.Watchdog 81 int firstDelay = 1 + mRandom.nextInt(cycleTime); in addWatchEntry()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 67 final Random mRandom; field in BinaryDictDecoderEncoderTests 77 mRandom = new Random(seed); in BinaryDictDecoderEncoderTests() 80 generateWords(maxUnigrams, mRandom); in BinaryDictDecoderEncoderTests() 576 mRandom); 578 final String word = CodePointUtils.generateWord(mRandom, codePointSet);
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | GsmCellBroadcastHandlerTest.java | 538 Random mRandom = new Random(10); field in GsmCellBroadcastHandlerTest 544 CbGeoUtils.LatLng latLng = new CbGeoUtils.LatLng(mRandom.nextFloat() % 150 + 1, in setMockCalculation() 545 mRandom.nextFloat() % 150 + 1); in setMockCalculation() 546 float accuracy = mRandom.nextFloat() % 3000 + 1; in setMockCalculation()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 325 private final Random mRandom; field in DhcpClient 511 mRandom = new Random(); in DhcpClient() 611 mTransactionId = mRandom.nextInt(); in startNewTransaction() 1198 int jitter = mRandom.nextInt(2 * maxJitter) - maxJitter; in jitterTimer() 1663 sendMessageDelayed(CMD_ARP_PROBE, mRandom.nextInt(mArpFirstProbeDelayMs)); in enter() 1701 long timeout = mRandom.nextInt(mArpProbeMaxDelayMs - mArpProbeMinDelayMs) in scheduleProbe()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerRecordingSessionWorkerExoV2.java | 157 private final Random mRandom = new Random(); field in TunerRecordingSessionWorkerExoV2 201 mRandom.setSeed(System.nanoTime()); in TunerRecordingSessionWorkerExoV2() 411 int suffix = mRandom.nextInt(); in getStorageKey()
|
D | TunerRecordingSessionWorker.java | 156 private final Random mRandom = new Random(); field in TunerRecordingSessionWorker 200 mRandom.setSeed(System.nanoTime()); in TunerRecordingSessionWorker() 408 int suffix = mRandom.nextInt(); in getStorageKey()
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | RouterAdvertisementDaemon.java | 604 private final Random mRandom = new Random(); field in RouterAdvertisementDaemon.MulticastTransmitter 651 return MIN_RTR_ADV_INTERVAL_SEC + mRandom.nextInt( in getNextMulticastTransmitDelaySec()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ViewImage.java | 79 private final Random mRandom = new Random(System.currentTimeMillis()); field in ViewImage 767 int r = mRandom.nextInt(i + 1); in generateShuffleOrder() 831 int n = mRandom.nextInt( in loadNextImage()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/ |
D | OutgoingTransportStateValidatorTest.java | 49 private final Random mRandom = new Random(); field in OutgoingTransportStateValidatorTest
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | LocationAccessCheck.java | 143 private final Random mRandom = new Random(); field in LocationAccessCheck 407 packageToNotifyFor = packages.get(mRandom.nextInt(packages.size())); in addLocationNotificationIfNeeded()
|