/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/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/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/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/src/android/net/dhcp/ |
D | DhcpClient.java | 308 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/ |
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()
|
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()
|
/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() 255 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/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/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 229 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/ |
D | NetworkMonitor.java | 494 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/ |
D | ContactsProvider2.java | 1402 private final SecureRandom mRandom = new SecureRandom(); field in ContactsProvider2 2263 String token = String.valueOf(mRandom.nextLong()); in preAuthorizeUri()
|