/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ATResponseParserTest.java | 27 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 …]
|
D | SmsMessageBodyTest.java | 511 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/ |
D | NewDatabasePerformanceTests.java | 118 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 …]
|
D | DatabasePerformanceTests.java | 207 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 …]
|
D | DatabaseCursorTest.java | 247 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()
|
D | CursorWindowTest.java | 167 Integer r = generator.nextInt(); in createTestList()
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | WapPushTest.java | 888 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/ |
D | DriverCall.java | 64 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()
|
D | ATResponseParser.java | 59 nextInt() in nextInt() method in ATResponseParser
|
/frameworks/base/core/java/android/net/http/ |
D | RequestHandle.java | 430 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/ |
D | JsonReaderTest.java | 170 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()
|
D | Base64Test.java | 355 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/ |
D | MultipartEntity.java | 110 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/ |
D | InetAddrTest.java | 87 int index = random.nextInt(HOSTS.length); in testInetAddr()
|
D | MiscRegressionTest.java | 383 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/ |
D | MediaPlayerInvokeTest.java | 66 int val = rnd.nextInt(); in testPing()
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
D | NotificationStressTest.java | 81 Notification notification = new Notification(ICONS[mRandom.nextInt(ICONS.length)], text, in sendNotification()
|
/frameworks/base/test-runner/src/android/test/ |
D | ServiceTestCase.java | 168 mServiceId = new Random().nextInt(); in setupService()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListThrasher.java | 101 int position = mRandomizer.nextInt(getCount()); in bumpVersion()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridThrasher.java | 103 int position = mRandomizer.nextInt(getCount()); in bumpVersion()
|
/frameworks/base/services/java/com/android/server/location/ |
D | GpsXtraDownloader.java | 77 mNextServerIndex = random.nextInt(count); in GpsXtraDownloader()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerStressTest.java | 80 int size = r.nextInt(MAX_FILE_SIZE); in testMultipleDownloads()
|
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
D | SQLiteStatementTest.java | 159 int colValue = new Random().nextInt(); in verifyReferenceToPrecompiledStatementId()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 101 int x = random.nextInt(); in testFive()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 77 Integer r = generator.nextInt(); in createTestList()
|