Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DProcFileReaderTest.java139 assertEquals(1, reader.nextLong()); in testMinMax()
140 assertEquals(-1024, reader.nextLong()); in testMinMax()
141 assertEquals(Long.MAX_VALUE, reader.nextLong()); in testMinMax()
142 assertEquals(Long.MIN_VALUE, reader.nextLong()); in testMinMax()
165 assertEquals(1, reader.nextLong()); in testLargerThanBuffer()
179 assertEquals(123L, reader.nextLong()); in testOptionalLongs()
194 assertEquals(12L, reader.nextLong(true)); in testInvalidLongs()
195 assertEquals(34L, reader.nextLong(true)); in testInvalidLongs()
199 assertEquals(56L, reader.nextLong(true)); in testInvalidLongs()
200 assertEquals(78L, reader.nextLong(true)); in testInvalidLongs()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
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 …]
/frameworks/base/core/java/com/android/internal/util/
DProcFileReader.java177 public long nextLong() throws IOException { in nextLong() method in ProcFileReader
178 return nextLong(false); in nextLong()
184 public long nextLong(boolean stopAtInvalid) throws IOException { in nextLong() method in ProcFileReader
252 final long value = nextLong(); in nextInt()
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DMetrics.java100 long vss = sc.nextLong(); in sample()
101 long rss = sc.nextLong(); in sample()
102 long pss = sc.nextLong(); in sample()
/frameworks/base/core/tests/coretests/src/android/content/pm/
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
/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/
DNativeProcessesMemoryTest.java197 long vss = sc.nextLong(); in snapMemoryUsage()
198 long rss = sc.nextLong(); in snapMemoryUsage()
199 long pss = sc.nextLong(); in snapMemoryUsage()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSecureRandomUtils.java34 return RNG.nextLong(); in randomLong()
/frameworks/base/core/tests/coretests/src/android/util/
DLongSparseLongArrayTest.java94 final long key = r.nextLong(); in testFuzz()
95 final long value = r.nextLong(); in testFuzz()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DEventListTest.java71 listUnderTest.insert(getUsageEvent(random.nextLong())); in testInsertsSortedRandom()
81 final long randomTimeStamp = random.nextLong(); in testInsertsSortedWithDuplicates()
/frameworks/base/core/java/com/android/internal/os/
DProcLocksReader.java85 id = mReader.nextLong(true); // lock id in handleBlockingFileLocks()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java121 chronometer.setBase(mRandom.nextLong()); in createChronometer()
/frameworks/base/core/java/android/content/pm/
DVerifierDeviceIdentity.java94 long identity = rng.nextLong(); in generate()
/frameworks/base/keystore/java/android/security/keystore2/
DKeyStoreCryptoOperationUtils.java208 return getRng().nextLong(); in getOrMakeOperationChallenge()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_struct_field.java55 outer.l = r.nextLong(); in run()
DUT_alloc_copyPadded.java606 inArray[i] = random.nextLong(); in testAllocation_Long3_1D()
641 inArray[i] = random.nextLong(); in testAllocation_Long3_2D()
677 inArray[i] = random.nextLong(); in testAllocation_Long3_3D()
881 inArray[i] = random.nextLong(); in testAllocation_copy1DRangeTo_Long3()
1082 inArray[i] = random.nextLong(); in testAllocation_copy2DRangeTo_Long3()
1286 inArray[i] = random.nextLong(); in testAllocation_copy1DRangeToUnchecked_Long3()
DUT_math_agree.java177 lv[i] = rand.nextLong(); in randvec_long()
398 long rand_sl1_0 = rand.nextLong(); in initializeValues()
402 long rand_sl1_1 = rand.nextLong(); in initializeValues()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_struct_field.java53 outer.l = r.nextLong(); in run()
DUT_alloc_copyPadded.java604 inArray[i] = random.nextLong(); in testAllocation_Long3_1D()
639 inArray[i] = random.nextLong(); in testAllocation_Long3_2D()
675 inArray[i] = random.nextLong(); in testAllocation_Long3_3D()
879 inArray[i] = random.nextLong(); in testAllocation_copy1DRangeTo_Long3()
1080 inArray[i] = random.nextLong(); in testAllocation_copy2DRangeTo_Long3()
1284 inArray[i] = random.nextLong(); in testAllocation_copy1DRangeToUnchecked_Long3()
DUT_math_agree.java175 lv[i] = rand.nextLong(); in randvec_long()
396 long rand_sl1_0 = rand.nextLong(); in initializeValues()
400 long rand_sl1_1 = rand.nextLong(); in initializeValues()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
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()
/frameworks/base/services/core/java/com/android/server/pm/
DUserJourneyLogger.java549 final long newSessionId = ThreadLocalRandom.current().nextLong(1, Long.MAX_VALUE); in logUserJourneyBegin()
573 final long newSessionId = ThreadLocalRandom.current().nextLong(1, Long.MAX_VALUE); in startSessionForDelayedJourney()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DFakeGateKeeperService.java110 long newSid = new Random().nextLong(); in enroll()
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DSharedPreferencesStorageTest.kt51 "long" to random.nextLong(), in <lambda>()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DBitUtilsTest.java173 0, 1, -1, 23895, -908235, Long.MAX_VALUE, Long.MIN_VALUE, new Random().nextLong(), in testBitsPacking()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSmsStats.java240 proto.messageId = RANDOM.nextLong(); in getIncomingDefaultProto()
264 proto.messageId = messageId != 0L ? messageId : RANDOM.nextLong(); in getOutgoingDefaultProto()

123