/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | ProcFileReaderTest.java | 124 assertEquals(1, reader.nextLong()); in testMinMax() 125 assertEquals(-1024, reader.nextLong()); in testMinMax() 148 assertEquals(1, reader.nextLong()); in testLargerThanBuffer() 161 assertEquals(123L, reader.nextLong()); in testOptionalLongs() 175 assertEquals(12L, reader.nextLong(true)); in testInvalidLongs() 176 assertEquals(34L, reader.nextLong(true)); in testInvalidLongs() 189 assertEquals(1L, reader.nextLong()); in testConsecutiveDelimiters() 190 assertEquals(2L, reader.nextLong()); in testConsecutiveDelimiters() 191 assertEquals(3L, reader.nextLong()); in testConsecutiveDelimiters() 192 assertEquals(4L, reader.nextLong()); in testConsecutiveDelimiters() [all …]
|
H A D | FileRotatorTest.java | 339 currentTime += Math.abs(random.nextLong()) % DAY_IN_MILLIS; in testFuzz()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
H A D | SyncStorageEngineTest.java | 83 ds.successTime = r.nextLong(); in populateDayStats() 85 ds.failureTime = r.nextLong(); in populateDayStats() 108 ss.lastSuccessTime = r.nextLong(); in populateStatus() 110 ss.lastFailureTime = r.nextLong(); in populateStatus() 113 ss.initialFailureTime = r.nextLong(); in populateStatus() 116 ss.addPeriodicSyncTime(r.nextLong()); in populateStatus() 120 lastEventInfos.add(new Pair<>(r.nextLong(), "event_" + r.nextInt())); in populateStatus() 123 ss.lastTodayResetTime = r.nextLong(); in populateStatus() 128 ss.perSourceLastSuccessTimes[j] = r.nextLong(); in populateStatus() 131 ss.perSourceLastFailureTimes[j] = r.nextLong(); in populateStatus() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | ProcFileReader.java | 170 public long nextLong() throws IOException { in nextLong() method in ProcFileReader 171 return nextLong(false); in nextLong() 177 public long nextLong(boolean stopAtInvalid) throws IOException { in nextLong() method in ProcFileReader 245 final long value = nextLong(); in nextInt()
|
/aosp14/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/ |
H A D | Metrics.java | 100 long vss = sc.nextLong(); in sample() 101 long rss = sc.nextLong(); in sample() 102 long pss = sc.nextLong(); in sample()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | VerifierDeviceIdentityTest.java | 148 public void setNextLong(long nextLong) { in setNextLong() argument 149 mNextLong = nextLong; in setNextLong() 153 public long nextLong() { in nextLong() method in VerifierDeviceIdentityTest.MockRandom
|
/aosp14/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/ |
H A D | NativeProcessesMemoryTest.java | 197 long vss = sc.nextLong(); in snapMemoryUsage() 198 long rss = sc.nextLong(); in snapMemoryUsage() 199 long pss = sc.nextLong(); in snapMemoryUsage()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LongSparseLongArrayTest.java | 85 final long key = r.nextLong(); in testFuzz() 86 final long value = r.nextLong(); in testFuzz()
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | SecureRandomUtils.java | 34 return RNG.nextLong(); in randomLong()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/usage/ |
H A D | EventListTest.java | 71 listUnderTest.insert(getUsageEvent(random.nextLong())); in testInsertsSortedRandom() 81 final long randomTimeStamp = random.nextLong(); in testInsertsSortedWithDuplicates()
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | ProcLocksReader.java | 84 id = mReader.nextLong(true); // lock id in handleBlockingFileLocks()
|
/aosp14/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
H A D | ElementLayoutActivity.java | 121 chronometer.setBase(mRandom.nextLong()); in createChronometer()
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | VerifierDeviceIdentity.java | 94 long identity = rng.nextLong(); in generate()
|
/aosp14/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | KeyStoreCryptoOperationUtils.java | 214 return getRng().nextLong(); in getOrMakeOperationChallenge()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/wakeups/ |
H A D | CpuWakeupStatsTest.java | 96 final long delta = mRandom.nextLong(retention); in removesOldWakeups() 107 final long now = mRandom.nextLong(retention + 1, 100 * retention); in removesOldWakeups() 153 final long wakeupTime = mRandom.nextLong(123456); in irqAttributionAllCombinations()
|
H A D | WakingActivityHistoryTest.java | 266 final long time = random.nextLong(firstTime + mTestRetention + 100, in deletesActivityPastRetention()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserJourneyLogger.java | 545 final long newSessionId = ThreadLocalRandom.current().nextLong(1, Long.MAX_VALUE); in logUserJourneyBegin() 569 final long newSessionId = ThreadLocalRandom.current().nextLong(1, Long.MAX_VALUE); in startSessionForDelayedJourney()
|
H A D | PackageManagerShellCommandDataLoader.java | 144 private static AtomicLong sGlobalSalt = new AtomicLong((new SecureRandom()).nextLong());
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | FakeGateKeeperService.java | 110 long newSid = new Random().nextLong(); in enroll()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | BitUtilsTest.java | 173 0, 1, -1, 23895, -908235, Long.MAX_VALUE, Long.MIN_VALUE, new Random().nextLong(), in testBitsPacking()
|
/aosp14/frameworks/base/core/java/android/content/pm/dex/ |
H A D | DexMetadataHelper.java | 248 jsonVersionCode = reader.nextLong(); in validateDexMetadataManifest()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | RemoteBugreportManager.java | 208 nonce = mRng.nextLong(); in requestBugreport()
|
/aosp14/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
H A D | CaptivePortalLoginActivity.java | 333 private final String mBrowserBailOutToken = Long.toString(new Random().nextLong());
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | KeySyncTask.java | 412 long counter = new SecureRandom().nextLong(); in generateAndStoreCounterId()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 480 public long nextLong() throws IOException { in nextLong() method in JsonReader
|