/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RecommendationUtils.java | 77 private Random mRandom = Utils.createTestRandom(); field in RecommendationUtils.ChannelRecordSortedMapHelper 88 mRandom = random; in resetRandom() 129 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size())); in addRandomWatchLogs() 132 latestWatchEndTimeMs += TimeUnit.MINUTES.toMillis(mRandom.nextInt(30) + 1); in addRandomWatchLogs() 134 long watchedDurationMs = mRandom.nextInt((int) maxWatchDurationMs) + 1; 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 | 78 private Random mRandom = new Random(); field in TestConnectionService 459 int subjectFormat = mRandom.nextInt(3); 631 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/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/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/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/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 138 private @Mock Random mRandom; field in NetworkMonitorTest 293 when(mDependencies.getRandom()).thenReturn(mRandom); in setUp() 317 when(mRandom.nextInt()).thenReturn(0); in setUp() 547 when(mRandom.nextInt()).thenReturn(2); in testIsCaptivePortal_OtherFallbackProbeIsPortal() 594 when(mRandom.nextInt()).thenReturn(1); in setupFallbackSpec()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 194 private final Random mRandom; field in DhcpClient 276 mRandom = new Random(); in DhcpClient() 313 mTransactionId = mRandom.nextInt(); in startNewTransaction() 762 int jitter = mRandom.nextInt(2 * maxJitter) - maxJitter; in jitterTimer()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerRecordingSessionWorker.java | 152 private final Random mRandom = new Random(); field in TunerRecordingSessionWorker 180 mRandom.setSeed(System.nanoTime()); in TunerRecordingSessionWorker() 388 int suffix = mRandom.nextInt(); in getStorageKey()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/ |
D | IndividualPickerFragment.java | 129 Random mRandom; field in IndividualPickerFragment 221 int wallpapersIndex = mRandom.nextInt(mWallpapers.size()); in updateDesktopDailyRotationThumbnail() 257 mRandom = new Random(); in onCreate()
|
/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/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 345 private final Random mRandom; field in NetworkMonitor 423 mRandom = deps.getRandom(); in NetworkMonitor() 1456 mNextFallbackUrlIndex += mRandom.nextInt(); // randomly change url without memory. in nextFallbackUrl() 1465 final int idx = Math.abs(mRandom.nextInt()) % mCaptivePortalFallbackSpecs.length; in nextFallbackSpec()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | LocationAccessCheck.java | 142 private final Random mRandom = new Random(); field in LocationAccessCheck 406 packageToNotifyFor = packages.get(mRandom.nextInt(packages.size())); in addLocationNotificationIfNeeded()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 1402 private final SecureRandom mRandom = new SecureRandom(); field in ContactsProvider2 2263 String token = String.valueOf(mRandom.nextLong()); in preAuthorizeUri()
|