Home
last modified time | relevance | path

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

/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/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/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/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/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/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/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java308 private final Random mRandom; field in DhcpClient
486 mRandom = new Random(); in DhcpClient()
575 mTransactionId = mRandom.nextInt(); in startNewTransaction()
1146 int jitter = mRandom.nextInt(2 * maxJitter) - maxJitter; in jitterTimer()
1595 sendMessageDelayed(CMD_ARP_PROBE, mRandom.nextInt(mArpFirstProbeDelayMs)); in enter()
1633 long timeout = mRandom.nextInt(mArpProbeMaxDelayMs - mArpProbeMinDelayMs) in scheduleProbe()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
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()
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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerFragment.java129 Random mRandom; field in IndividualPickerFragment
221 int wallpapersIndex = mRandom.nextInt(mWallpapers.size()); in updateDesktopDailyRotationThumbnail()
255 mRandom = new Random(); in onCreate()
/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/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DLocationAccessCheck.java142 private final Random mRandom = new Random(); field in LocationAccessCheck
406 packageToNotifyFor = packages.get(mRandom.nextInt(packages.size())); in addLocationNotificationIfNeeded()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java229 private @Mock Random mRandom; field in NetworkMonitorTest
446 when(mDependencies.getRandom()).thenReturn(mRandom); in setUp()
477 when(mRandom.nextInt()).thenReturn(0); in setUp()
1134 when(mRandom.nextInt()).thenReturn(2); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1434 when(mRandom.nextInt()).thenReturn(1);
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java494 private final Random mRandom; field in NetworkMonitor
600 mRandom = deps.getRandom(); in NetworkMonitor()
2239 mNextFallbackUrlIndex += mRandom.nextInt(); // randomly change url without memory. in nextFallbackUrl()
2248 final int idx = Math.abs(mRandom.nextInt()) % mCaptivePortalFallbackSpecs.length; in nextFallbackSpec()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java1402 private final SecureRandom mRandom = new SecureRandom(); field in ContactsProvider2
2263 String token = String.valueOf(mRandom.nextLong()); in preAuthorizeUri()