Home
last modified time | relevance | path

Searched refs:nextLong (Results 1 – 25 of 37) sorted by relevance

12

/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DProcFileReaderTest.java124 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 DFileRotatorTest.java339 currentTime += Math.abs(random.nextLong()) % DAY_IN_MILLIS; in testFuzz()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java83 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 DProcFileReader.java170 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 DMetrics.java100 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 DVerifierDeviceIdentityTest.java148 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 DNativeProcessesMemoryTest.java197 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 DLongSparseLongArrayTest.java85 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 DSecureRandomUtils.java34 return RNG.nextLong(); in randomLong()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/usage/
H A DEventListTest.java71 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 DProcLocksReader.java84 id = mReader.nextLong(true); // lock id in handleBlockingFileLocks()
/aosp14/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java121 chronometer.setBase(mRandom.nextLong()); in createChronometer()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DVerifierDeviceIdentity.java94 long identity = rng.nextLong(); in generate()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DKeyStoreCryptoOperationUtils.java214 return getRng().nextLong(); in getOrMakeOperationChallenge()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/wakeups/
H A DCpuWakeupStatsTest.java96 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 DWakingActivityHistoryTest.java266 final long time = random.nextLong(firstTime + mTestRetention + 100, in deletesActivityPastRetention()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserJourneyLogger.java545 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 DPackageManagerShellCommandDataLoader.java144 private static AtomicLong sGlobalSalt = new AtomicLong((new SecureRandom()).nextLong());
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DFakeGateKeeperService.java110 long newSid = new Random().nextLong(); in enroll()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DBitUtilsTest.java173 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 DDexMetadataHelper.java248 jsonVersionCode = reader.nextLong(); in validateDexMetadataManifest()
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DRemoteBugreportManager.java208 nonce = mRng.nextLong(); in requestBugreport()
/aosp14/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DCaptivePortalLoginActivity.java333 private final String mBrowserBailOutToken = Long.toString(new Random().nextLong());
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DKeySyncTask.java412 long counter = new SecureRandom().nextLong(); in generateAndStoreCounterId()
/aosp14/frameworks/base/core/java/android/util/
H A DJsonReader.java480 public long nextLong() throws IOException { in nextLong() method in JsonReader

12