Home
last modified time | relevance | path

Searched refs:nextInt (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
DATResponseParserTest.java27 assertEquals(0, p.nextInt()); in testBasic()
32 p.nextInt(); in testBasic()
39 assertEquals(0, p.nextInt()); in testBasic()
40 assertEquals(1, p.nextInt()); in testBasic()
44 assertEquals(0, p.nextInt()); in testBasic()
45 assertEquals(1, p.nextInt()); in testBasic()
49 assertEquals(0, p.nextInt()); in testBasic()
50 assertEquals(1, p.nextInt()); in testBasic()
54 p.nextInt(); in testBasic()
61 assertEquals(0, p.nextInt()); in testBasic()
[all …]
DSmsMessageBodyTest.java511 int charClass = r.nextInt(100); in testCalcLengthMixed7bit()
516 char nextChar = sCharacterClasses[charClass].charAt(r.nextInt(classLength)); in testCalcLengthMixed7bit()
/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java118 int r = random.nextInt(100000); in setUp()
150 int r = random.nextInt(100000); in setUp()
187 int r = random.nextInt(100000); in setUp()
226 int r = random.nextInt(100000); in setUp()
264 int r = random.nextInt(100000); in setUp()
303 int r = random.nextInt(100000); in setUp()
309 int r = random.nextInt(100000); in setUp()
342 int r = random.nextInt(100000); in setUp()
348 int r = random.nextInt(100000); in setUp()
381 int r = random.nextInt(100000); in setUp()
[all …]
DDatabasePerformanceTests.java207 int r = random.nextInt(100000); in setUp()
240 int r = random.nextInt(100000); in setUp()
278 int r = random.nextInt(100000); in setUp()
318 int r = random.nextInt(100000); in setUp()
357 int r = random.nextInt(100000); in setUp()
397 int r = random.nextInt(100000); in setUp()
403 int r = random.nextInt(100000); in setUp()
437 int r = random.nextInt(100000); in setUp()
443 int r = random.nextInt(100000); in setUp()
477 int r = random.nextInt(100000); in setUp()
[all …]
DDatabaseCursorTest.java247 randomString.append((random.nextInt() & 0xf) % 10); in testLargeField()
328 randomString.append((random.nextInt() & 0xf) % 10); in testManyRowsTxt()
361 randomString.append((random.nextInt() & 0xf) % 10); in testManyRowsTxtLong()
DCursorWindowTest.java167 Integer r = generator.nextInt(); in createTestList()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java888 type = rd.nextInt(3); in createRandomWspHeader()
895 add = 1 + rd.nextInt(29); in createRandomWspHeader()
898 add = 2 + rd.nextInt(10); in createRandomWspHeader()
908 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader()
921 tmpVal = rd.nextInt(255); in createRandomWspHeader()
930 tmpVal = rd.nextInt(127); in createRandomWspHeader()
970 type = rd.nextInt(4); in createRandomWspHeader()
987 add = 1 + rd.nextInt(29); in createRandomWspHeader()
991 add = 2 + rd.nextInt(10); in createRandomWspHeader()
1001 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DDriverCall.java64 ret.index = p.nextInt(); in fromCLCCLine()
66 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine()
68 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine()
83 ret.TOA = p.nextInt(); in fromCLCCLine()
DATResponseParser.java59 nextInt() in nextInt() method in ATResponseParser
/frameworks/base/core/java/android/net/http/
DRequestHandle.java430 int nextInt = rand.nextInt(); in computeCnonce() local
431 nextInt = (nextInt == Integer.MIN_VALUE) ? in computeCnonce()
432 Integer.MAX_VALUE : Math.abs(nextInt); in computeCnonce()
433 return Integer.toString(nextInt, 16); in computeCnonce()
/frameworks/base/core/tests/coretests/src/android/util/
DJsonReaderTest.java170 assertEquals(1, reader.nextInt()); in testIntegersWithFractionalPartSpecified()
251 assertEquals(33333, reader.nextInt()); in testBufferBoundary()
264 assertEquals(33333, reader.nextInt()); in testTruncatedBufferBoundary()
310 assertEquals(0, reader.nextInt()); in testLongs()
313 assertEquals(1, reader.nextInt()); in testLongs()
316 assertEquals(-1, reader.nextInt()); in testLongs()
319 reader.nextInt(); in testLongs()
325 reader.nextInt(); in testLongs()
401 reader.nextInt(); in testNumberWithOctalPrefix()
895 reader.nextInt(); in testFailWithPosition()
DBase64Test.java355 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testInputStream()
394 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testInputStream()
470 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testOutputStream()
513 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testOutputStream()
/frameworks/base/core/java/com/android/internal/http/multipart/
DMultipartEntity.java110 byte[] bytes = new byte[rand.nextInt(11) + 30]; // a random size from 30 to 40 in generateMultipartBoundary()
112 bytes[i] = MULTIPART_CHARS[rand.nextInt(MULTIPART_CHARS.length)]; in generateMultipartBoundary()
/frameworks/base/tests/CoreTests/android/core/
DInetAddrTest.java87 int index = random.nextInt(HOSTS.length); in testInetAddr()
DMiscRegressionTest.java383 byte what = (byte)random.nextInt(256); in testZipDeflateInflateStress()
384 int howMany = random.nextInt(32); in testZipDeflateInflateStress()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaPlayerInvokeTest.java66 int val = rnd.nextInt(); in testPing()
/frameworks/base/core/tests/notificationtests/src/android/app/
DNotificationStressTest.java81 Notification notification = new Notification(ICONS[mRandom.nextInt(ICONS.length)], text, in sendNotification()
/frameworks/base/test-runner/src/android/test/
DServiceTestCase.java168 mServiceId = new Random().nextInt(); in setupService()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListThrasher.java101 int position = mRandomizer.nextInt(getCount()); in bumpVersion()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridThrasher.java103 int position = mRandomizer.nextInt(getCount()); in bumpVersion()
/frameworks/base/services/java/com/android/server/location/
DGpsXtraDownloader.java77 mNextServerIndex = random.nextInt(count); in GpsXtraDownloader()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerStressTest.java80 int size = r.nextInt(MAX_FILE_SIZE); in testMultipleDownloads()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteStatementTest.java159 int colValue = new Random().nextInt(); in verifyReferenceToPrecompiledStatementId()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DBitwiseStreamsTest.java101 int x = random.nextInt(); in testFive()
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java77 Integer r = generator.nextInt(); in createTestList()

12