/frameworks/opt/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 …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ProcFileReaderTest.java | 62 assertEquals(1, reader.nextInt()); in testMixedNumbersSkip() 63 assertEquals(2, reader.nextInt()); in testMixedNumbersSkip() 64 assertEquals(3, reader.nextInt()); in testMixedNumbersSkip() 68 assertEquals(4, reader.nextInt()); in testMixedNumbersSkip() 70 assertEquals(5, reader.nextInt()); in testMixedNumbersSkip() 74 assertEquals(10, reader.nextInt()); in testMixedNumbersSkip() 83 assertEquals(1, reader.nextInt()); in testBufferSize() 84 assertEquals(21, reader.nextInt()); in testBufferSize() 85 assertEquals(3, reader.nextInt()); in testBufferSize() 86 assertEquals(41, reader.nextInt()); in testBufferSize() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 84 int width = random.nextInt(512); in testAllocation_Byte3_1D() 115 int width = random.nextInt(128); in testAllocation_Byte3_2D() 116 int height = random.nextInt(128); in testAllocation_Byte3_2D() 147 int w = random.nextInt(32); in testAllocation_Byte3_3D() 148 int h = random.nextInt(32); in testAllocation_Byte3_3D() 149 int d = random.nextInt(32); in testAllocation_Byte3_3D() 180 int width = random.nextInt(512); in testAllocation_Short3_1D() 187 inArray[i] = (short)random.nextInt(); in testAllocation_Short3_1D() 214 int width = random.nextInt(128); in testAllocation_Short3_2D() 215 int height = random.nextInt(128); in testAllocation_Short3_2D() [all …]
|
D | UT_alloc_copy.java | 59 int width = random.nextInt(512); in allocation_copy1DRangeTo_Byte() 69 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Byte() 98 int width = random.nextInt(512); in allocation_copy1DRangeTo_Short() 105 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short() 111 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Short() 140 int width = random.nextInt(512); in allocation_copy1DRangeTo_Int() 147 inArray[i] = random.nextInt(); in allocation_copy1DRangeTo_Int() 153 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Int() 182 int width = random.nextInt(512); in allocation_copy1DRangeTo_Float() 195 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Float() [all …]
|
D | UT_math_agree.java | 113 ucv[i] = (short)rand.nextInt(0x1 << 8); in randvec_uchar() 119 sv[i] = (short)rand.nextInt(0x1 << 16); in randvec_short() 125 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort() 131 iv[i] = rand.nextInt(); in randvec_int() 137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE; in randvec_uint() 302 short rand_uc1_0 = (short)rand.nextInt(0x1 << 8); in initializeValues() 306 short rand_uc1_1 = (short)rand.nextInt(0x1 << 8); in initializeValues() 310 short rand_ss1_0 = (short)rand.nextInt(0x1 << 16); in initializeValues() 314 short rand_ss1_1 = (short)rand.nextInt(0x1 << 16); in initializeValues() 318 int rand_us1_0 = rand.nextInt(0x1 << 16); in initializeValues() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 84 int width = random.nextInt(512); in testAllocation_Byte3_1D() 115 int width = random.nextInt(128); in testAllocation_Byte3_2D() 116 int height = random.nextInt(128); in testAllocation_Byte3_2D() 147 int w = random.nextInt(32); in testAllocation_Byte3_3D() 148 int h = random.nextInt(32); in testAllocation_Byte3_3D() 149 int d = random.nextInt(32); in testAllocation_Byte3_3D() 180 int width = random.nextInt(512); in testAllocation_Short3_1D() 187 inArray[i] = (short)random.nextInt(); in testAllocation_Short3_1D() 214 int width = random.nextInt(128); in testAllocation_Short3_2D() 215 int height = random.nextInt(128); in testAllocation_Short3_2D() [all …]
|
D | UT_alloc_copy.java | 59 int width = random.nextInt(512); in allocation_copy1DRangeTo_Byte() 69 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Byte() 98 int width = random.nextInt(512); in allocation_copy1DRangeTo_Short() 105 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short() 111 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Short() 140 int width = random.nextInt(512); in allocation_copy1DRangeTo_Int() 147 inArray[i] = random.nextInt(); in allocation_copy1DRangeTo_Int() 153 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Int() 182 int width = random.nextInt(512); in allocation_copy1DRangeTo_Float() 195 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Float() [all …]
|
D | UT_math_agree.java | 113 ucv[i] = (short)rand.nextInt(0x1 << 8); in randvec_uchar() 119 sv[i] = (short)rand.nextInt(0x1 << 16); in randvec_short() 125 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort() 131 iv[i] = rand.nextInt(); in randvec_int() 137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE; in randvec_uint() 302 short rand_uc1_0 = (short)rand.nextInt(0x1 << 8); in initializeValues() 306 short rand_uc1_1 = (short)rand.nextInt(0x1 << 8); in initializeValues() 310 short rand_ss1_0 = (short)rand.nextInt(0x1 << 16); in initializeValues() 314 short rand_ss1_1 = (short)rand.nextInt(0x1 << 16); in initializeValues() 318 int rand_us1_0 = rand.nextInt(0x1 << 16); in initializeValues() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | NewDatabasePerformanceTests.java | 117 int r = random.nextInt(100000); in setUp() 149 int r = random.nextInt(100000); in setUp() 186 int r = random.nextInt(100000); in setUp() 225 int r = random.nextInt(100000); in setUp() 263 int r = random.nextInt(100000); in setUp() 302 int r = random.nextInt(100000); in setUp() 308 int r = random.nextInt(100000); in setUp() 341 int r = random.nextInt(100000); in setUp() 347 int r = random.nextInt(100000); in setUp() 380 int r = random.nextInt(100000); in setUp() [all …]
|
D | DatabasePerformanceTests.java | 208 int r = random.nextInt(100000); in setUp() 241 int r = random.nextInt(100000); in setUp() 279 int r = random.nextInt(100000); in setUp() 319 int r = random.nextInt(100000); in setUp() 358 int r = random.nextInt(100000); in setUp() 398 int r = random.nextInt(100000); in setUp() 404 int r = random.nextInt(100000); in setUp() 438 int r = random.nextInt(100000); in setUp() 444 int r = random.nextInt(100000); in setUp() 478 int r = random.nextInt(100000); in setUp() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | TextUtils.java | 31 int base = random.nextInt(2) == 0 ? 'A' : 'a'; in randomWord() 32 result += (char)(random.nextInt(26) + base); in randomWord() 79 if (random.nextInt(100) < hitPercentage) { in buildParagraphListWithHitPercentage() 81 result += CACHE_HIT_STRINGS[random.nextInt(CACHE_HIT_STRINGS.length)]; in buildParagraphListWithHitPercentage() 85 length += random.nextInt(PARAGRAPH_MISS_MAX_LENGTH - PARAGRAPH_MISS_MIN_LENGTH); in buildParagraphListWithHitPercentage()
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | WapPushTest.java | 907 type = rd.nextInt(3); in createRandomWspHeader() 914 add = 1 + rd.nextInt(29); in createRandomWspHeader() 917 add = 2 + rd.nextInt(10); in createRandomWspHeader() 927 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader() 940 tmpVal = rd.nextInt(255); in createRandomWspHeader() 949 tmpVal = rd.nextInt(127); in createRandomWspHeader() 989 type = rd.nextInt(4); in createRandomWspHeader() 1006 add = 1 + rd.nextInt(29); in createRandomWspHeader() 1010 add = 2 + rd.nextInt(10); in createRandomWspHeader() 1020 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader() [all …]
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeView.java | 72 mPaint.setTextSize(mRandom.nextInt(40) + 10); in onDraw() 73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000)); in onDraw() 74 int x = mRandom.nextInt(getWidth()) - (getWidth()/2); in onDraw() 75 int y = mRandom.nextInt(getHeight()); in onDraw()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/ |
D | DiffUtilActivity.java | 138 switch (mRandom.nextInt(3)) { in createRandomCheeseList() 140 output.add(mRandom.nextInt(1 + output.size()), getRandomCheese(output)); in createRandomCheeseList() 144 output.remove(mRandom.nextInt(output.size())); in createRandomCheeseList() 149 int from = mRandom.nextInt(output.size()); in createRandomCheeseList() 150 int to = mRandom.nextInt(output.size()); in createRandomCheeseList() 160 String chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in getRandomCheese() 162 chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in getRandomCheese()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PathsCacheActivity.java | 114 for (int i = 0; i < mRandom.nextInt(20); i++) { in onDraw() 116 int r = mRandom.nextInt(10); in onDraw() 125 canvas.translate(450.0f + mRandom.nextInt(200), mRandom.nextInt(200)); in onDraw() 130 int r = mRandom.nextInt(100); in onDraw()
|
D | PathDestructionActivity.java | 78 int red = r.nextInt(255); in getRandomColor() 79 int green = r.nextInt(255); in getRandomColor() 80 int blue = r.nextInt(255); in getRandomColor()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanResults.java | 72 r.nextInt(256), r.nextInt(256), r.nextInt(256), in generateBssid() 73 r.nextInt(256), r.nextInt(256), r.nextInt(256)); in generateBssid() 109 int rssi = r.nextInt(40) - 99; // -99 to -60 in generateNativeResults()
|
/frameworks/opt/telephony/src/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()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | ElementLayoutActivity.java | 65 switch (mRandom.nextInt(5)) { in onCreate() 89 int lineCnt = mRandom.nextInt(4); in createTextView() 95 buffer.append("Line:" + mRandom.nextInt()); in createTextView() 103 button.setText("RadioButton:" + mRandom.nextInt()); in createRadioButton()
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
D | OpReorderTest.java | 182 randOp(nextInt(random, nextInt(random, 4))); in testRandom() 252 int s = nextInt(random, updatedItemCount - 1); in randOp() 253 int len = Math.max(1, nextInt(random, updatedItemCount - s)); in randOp() 258 int s = updatedItemCount == 0 ? 0 : nextInt(random, updatedItemCount); in randOp() 259 add(s, nextInt(random, 50)); in randOp() 263 int from = nextInt(random, updatedItemCount); in randOp() 266 to = nextInt(random, updatedItemCount); in randOp() 273 s = nextInt(random, updatedItemCount - 1); in randOp() 274 int len = Math.max(1, nextInt(random, updatedItemCount - s)); in randOp() 281 int nextInt(Random random, int n) { in nextInt() method in OpReorderTest [all …]
|
D | AdapterHelperTest.java | 848 randomTest(random, Math.max(40, 10 + nextInt(random, i))); in testRandom() 862 final int start = nextInt(random, count - 1); in randomTest() 863 final int layoutCount = Math.max(1, nextInt(random, count - start)); in randomTest() 867 final int op = nextInt(random, 5); in randomTest() 871 int s = nextInt(random, mTestAdapter.mItems.size() - 1); in randomTest() 872 int len = Math.max(1, nextInt(random, mTestAdapter.mItems.size() - s)); in randomTest() 878 nextInt(random, mTestAdapter.mItems.size()); in randomTest() 879 add(s, nextInt(random, 50)); in randomTest() 883 int from = nextInt(random, mTestAdapter.mItems.size()); in randomTest() 886 to = nextInt(random, mTestAdapter.mItems.size()); in randomTest() [all …]
|
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | UT_math_agree.java | 140 ucv[i] = (short) rand.nextInt(0x1 << 8); in randvec_uchar() 147 sv[i] = (short) rand.nextInt(0x1 << 16); in randvec_short() 154 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort() 161 iv[i] = rand.nextInt(); in randvec_int() 168 uiv[i] = (long) rand.nextInt() - (long) Integer.MIN_VALUE; in randvec_uint() 356 short rand_uc1_0 = (short) rand.nextInt(0x1 << 8); in initializeValues() 360 short rand_uc1_1 = (short) rand.nextInt(0x1 << 8); in initializeValues() 364 short rand_ss1_0 = (short) rand.nextInt(0x1 << 16); in initializeValues() 368 short rand_ss1_1 = (short) rand.nextInt(0x1 << 16); in initializeValues() 372 int rand_us1_0 = rand.nextInt(0x1 << 16); in initializeValues() [all …]
|
D | UT_struct_field.java | 34 innerOne.x = r.nextInt(); in makeInnerOne() 35 innerOne.y = r.nextInt(); in makeInnerOne() 42 innerTwo.z = (byte)r.nextInt(); in makeInnerTwo()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | DynamicLayoutPerfTest.java | 99 final int wordCount = 5 + r.nextInt(20); in getText() 101 final int replacedWordIndex = containsReplacementSpan ? r.nextInt(wordCount) : -1; in getText() 104 final int wordLength = 1 + r.nextInt(10); in getText() 106 char c = ALPHABETS.charAt(r.nextInt(ALPHABETS.length())); in getText()
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | DiffUtilTest.java | 282 int op = sRand.nextInt(5); in testRandom() 285 add(sRand.nextInt(mAfter.size() + 1)); in testRandom() 289 delete(sRand.nextInt(mAfter.size())); in testRandom() 295 move(sRand.nextInt(mAfter.size()), sRand.nextInt(mAfter.size())); in testRandom() 301 update(sRand.nextInt(mAfter.size())); in testRandom() 307 updateWithPayload(sRand.nextInt(mAfter.size())); in testRandom()
|