Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiLinkLayerStatsTest.java40 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()
DWifiApConfigStoreTest.java108 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/
DIpSecSpiGenerator.java31 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()
DIkeSpiGenerator.java26 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/
DRecommendationUtils.java76 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()
DChannelRecordTest.java37 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/
DBinaryDictOffdeviceUtilsTests.java57 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/
DRttChatbot.java47 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()
DTestConnectionService.java77 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/
DSlideshowView.java50 private Random mRandom = new Random(); field in SlideshowView
70 mRandom); in next()
74 mRandom); in next()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DInstanceIdSequence.java36 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/
DSlideshowPage.java242 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/
DEventLogLogger.java39 private final Random mRandom; field in EventLogLogger
45 mRandom = new Random(); in EventLogLogger()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkDiagnostics.java568 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/
DSandboxedSdkHolder.java51 private final Random mRandom = new SecureRandom(); field in SandboxedSdkHolder
130 int id = mRandom.nextInt(); in allocateSurfacePackageId()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java67 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/
DBinaryDictDecoderEncoderTests.java67 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/
DGsmCellBroadcastHandlerTest.java538 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/
DDhcpClient.java325 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/
DTunerRecordingSessionWorkerExoV2.java157 private final Random mRandom = new Random(); field in TunerRecordingSessionWorkerExoV2
201 mRandom.setSeed(System.nanoTime()); in TunerRecordingSessionWorkerExoV2()
411 int suffix = mRandom.nextInt(); in getStorageKey()
DTunerRecordingSessionWorker.java156 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/
DRouterAdvertisementDaemon.java604 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/
DViewImage.java79 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/
DOutgoingTransportStateValidatorTest.java49 private final Random mRandom = new Random(); field in OutgoingTransportStateValidatorTest
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java143 private final Random mRandom = new Random(); field in LocationAccessCheck
407 packageToNotifyFor = packages.get(mRandom.nextInt(packages.size())); in addLocationNotificationIfNeeded()

12