/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ATResponseParserTest.java | 28 assertEquals(0, p.nextInt()); in testBasic() 33 p.nextInt(); in testBasic() 40 assertEquals(0, p.nextInt()); in testBasic() 41 assertEquals(1, p.nextInt()); in testBasic() 45 assertEquals(0, p.nextInt()); in testBasic() 46 assertEquals(1, p.nextInt()); in testBasic() 50 assertEquals(0, p.nextInt()); in testBasic() 51 assertEquals(1, p.nextInt()); in testBasic() 55 p.nextInt(); in testBasic() 62 assertEquals(0, p.nextInt()); in testBasic() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ProcFileReaderTest.java | 77 assertEquals(1, reader.nextInt()); in testMixedNumbersSkip() 78 assertEquals(2, reader.nextInt()); in testMixedNumbersSkip() 79 assertEquals(3, reader.nextInt()); in testMixedNumbersSkip() 83 assertEquals(4, reader.nextInt()); in testMixedNumbersSkip() 85 assertEquals(5, reader.nextInt()); in testMixedNumbersSkip() 89 assertEquals(10, reader.nextInt()); in testMixedNumbersSkip() 99 assertEquals(1, reader.nextInt()); in testBufferSize() 100 assertEquals(21, reader.nextInt()); in testBufferSize() 101 assertEquals(3, reader.nextInt()); in testBufferSize() 102 assertEquals(41, reader.nextInt()); in testBufferSize() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 87 int width = random.nextInt(512); in testAllocation_Byte3_1D() 118 int width = random.nextInt(128); in testAllocation_Byte3_2D() 119 int height = random.nextInt(128); in testAllocation_Byte3_2D() 150 int w = random.nextInt(32); in testAllocation_Byte3_3D() 151 int h = random.nextInt(32); in testAllocation_Byte3_3D() 152 int d = random.nextInt(32); in testAllocation_Byte3_3D() 183 int width = random.nextInt(512); in testAllocation_Short3_1D() 190 inArray[i] = (short)random.nextInt(); in testAllocation_Short3_1D() 217 int width = random.nextInt(128); in testAllocation_Short3_2D() 218 int height = random.nextInt(128); in testAllocation_Short3_2D() [all …]
|
D | UT_reflection3264.java | 72 unsigned((byte)r.nextInt()), in run() 73 unsigned((byte)r.nextInt()), in run() 74 unsigned((byte)r.nextInt()), in run() 75 unsigned((byte)r.nextInt())); in run() 77 usrData.x = unsigned(r.nextInt()); in run() 79 usrData.y = unsigned(r.nextInt()); in run() 88 final int dXOff = r.nextInt(); in run() 90 final int dMip = r.nextInt(); in run() 92 final int count = r.nextInt(); in run() 94 final int sXOff = r.nextInt(); in run() [all …]
|
D | UT_alloc_copy.java | 63 int width = random.nextInt(512); in allocation_copy1DRangeTo_Byte() 73 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Byte() 102 int width = random.nextInt(512); in allocation_copy1DRangeTo_Short() 109 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short() 115 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Short() 144 int width = random.nextInt(512); in allocation_copy1DRangeTo_Int() 151 inArray[i] = random.nextInt(); in allocation_copy1DRangeTo_Int() 157 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Int() 186 int width = random.nextInt(512); in allocation_copy1DRangeTo_Float() 199 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Float() [all …]
|
D | UT_math_agree.java | 142 ucv[i] = (short) rand.nextInt(0x1 << 8); in randvec_uchar() 149 sv[i] = (short) rand.nextInt(0x1 << 16); in randvec_short() 156 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort() 163 iv[i] = rand.nextInt(); in randvec_int() 170 uiv[i] = (long) rand.nextInt() - (long) Integer.MIN_VALUE; in randvec_uint() 358 short rand_uc1_0 = (short) rand.nextInt(0x1 << 8); in initializeValues() 362 short rand_uc1_1 = (short) rand.nextInt(0x1 << 8); in initializeValues() 366 short rand_ss1_0 = (short) rand.nextInt(0x1 << 16); in initializeValues() 370 short rand_ss1_1 = (short) rand.nextInt(0x1 << 16); in initializeValues() 374 int rand_us1_0 = rand.nextInt(0x1 << 16); in initializeValues() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 85 int width = random.nextInt(512); in testAllocation_Byte3_1D() 116 int width = random.nextInt(128); in testAllocation_Byte3_2D() 117 int height = random.nextInt(128); in testAllocation_Byte3_2D() 148 int w = random.nextInt(32); in testAllocation_Byte3_3D() 149 int h = random.nextInt(32); in testAllocation_Byte3_3D() 150 int d = random.nextInt(32); in testAllocation_Byte3_3D() 181 int width = random.nextInt(512); in testAllocation_Short3_1D() 188 inArray[i] = (short)random.nextInt(); in testAllocation_Short3_1D() 215 int width = random.nextInt(128); in testAllocation_Short3_2D() 216 int height = random.nextInt(128); in testAllocation_Short3_2D() [all …]
|
D | UT_reflection3264.java | 70 unsigned((byte)r.nextInt()), in run() 71 unsigned((byte)r.nextInt()), in run() 72 unsigned((byte)r.nextInt()), in run() 73 unsigned((byte)r.nextInt())); in run() 75 usrData.x = unsigned(r.nextInt()); in run() 77 usrData.y = unsigned(r.nextInt()); in run() 86 final int dXOff = r.nextInt(); in run() 88 final int dMip = r.nextInt(); in run() 90 final int count = r.nextInt(); in run() 92 final int sXOff = r.nextInt(); in run() [all …]
|
D | UT_alloc_copy.java | 61 int width = random.nextInt(512); in allocation_copy1DRangeTo_Byte() 71 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Byte() 100 int width = random.nextInt(512); in allocation_copy1DRangeTo_Short() 107 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short() 113 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Short() 142 int width = random.nextInt(512); in allocation_copy1DRangeTo_Int() 149 inArray[i] = random.nextInt(); in allocation_copy1DRangeTo_Int() 155 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Int() 184 int width = random.nextInt(512); in allocation_copy1DRangeTo_Float() 197 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Float() [all …]
|
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 …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncStorageEngineTest.java | 82 ds.successCount = r.nextInt(); in populateDayStats() 84 ds.failureCount = r.nextInt(); in populateDayStats() 109 ss.lastSuccessSource = r.nextInt(); in populateStatus() 111 ss.lastFailureSource = r.nextInt(); in populateStatus() 112 ss.lastFailureMesg = "fail_msg_" + r.nextInt(); in populateStatus() 120 lastEventInfos.add(new Pair<>(r.nextLong(), "event_" + r.nextInt())); in populateStatus() 139 stats.numSyncs = r.nextInt(); in populateStats() 140 stats.numFailures = r.nextInt(); in populateStats() 141 stats.numCancels = r.nextInt(); in populateStats() 142 stats.numSourceOther = r.nextInt(); in populateStats() [all …]
|
/frameworks/base/startop/apps/test/src/ |
D | InitCheckOverheadBenchmarks.java | 36 mStep = random.nextInt(); 37 mStep2 = random.nextInt(); 38 mStartingValue = random.nextInt(); 47 mStep = random.nextInt(); 48 mStep2 = random.nextInt(); 49 mStartingValue = random.nextInt();
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | NewDatabasePerformanceTests.java | 184 int r = random.nextInt(100000); in prepareForTest() 212 int r = random.nextInt(100000); in prepareForTest() 244 int r = random.nextInt(100000); in prepareForTest() 280 int r = random.nextInt(100000); in prepareForTest() 315 int r = random.nextInt(100000); in prepareForTest() 349 int r = random.nextInt(100000); in prepareForTest() 355 int r = random.nextInt(100000); in prepareForTest() 386 int r = random.nextInt(100000); in prepareForTest() 392 int r = random.nextInt(100000); in prepareForTest() 422 int r = random.nextInt(100000); in prepareForTest() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BinderHeavyHitterTest.java | 75 container = flatternedHeavyHitters.remove(rand.nextInt(totalHeavyHitters)); in generateRandomInput() 78 container = newContainer(rand.nextInt(maxUid), in generateRandomInput() 79 binders[rand.nextInt(binders.length)].getClass(), in generateRandomInput() 80 rand.nextInt(maxCode), 0.0f); in generateRandomInput() 83 int val = rand.nextInt(total - i); in generateRandomInput() 85 container = flatternedHeavyHitters.remove(rand.nextInt(totalHeavyHitters)); in generateRandomInput() 88 container = newContainer(rand.nextInt(maxUid), in generateRandomInput() 89 binders[rand.nextInt(binders.length)].getClass(), in generateRandomInput() 90 rand.nextInt(maxCode), 0.0f); in generateRandomInput()
|
/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/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | RandomPerfTest.java | 42 rng.nextInt(); in timeNewRandom() 51 rng.nextInt(); in timeReusedRandom() 60 rng.nextInt(); in timeReusedSecureRandom() 69 rng.nextInt(); in timeNewSecureRandom()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | TextUtils.java | 44 int base = random.nextInt(2) == 0 ? 'A' : 'a'; in randomWord() 45 result += (char)(random.nextInt(26) + base); in randomWord() 57 sb.append(stringSet[random.nextInt(setLength)]); in randomWordFromStringSet() 151 if (random.nextInt(100) < hitPercentage) { in buildParagraphListWithHitPercentage() 153 result += CACHE_HIT_STRINGS[random.nextInt(CACHE_HIT_STRINGS.length)]; in buildParagraphListWithHitPercentage() 157 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 | 911 type = rd.nextInt(3); in createRandomWspHeader() 918 add = 1 + rd.nextInt(29); in createRandomWspHeader() 921 add = 2 + rd.nextInt(10); in createRandomWspHeader() 931 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader() 944 tmpVal = rd.nextInt(255); in createRandomWspHeader() 953 tmpVal = rd.nextInt(127); in createRandomWspHeader() 993 type = rd.nextInt(4); in createRandomWspHeader() 1010 add = 1 + rd.nextInt(29); in createRandomWspHeader() 1014 add = 2 + rd.nextInt(10); in createRandomWspHeader() 1024 arr[index] = (byte) (0x80 | rd.nextInt(128)); in createRandomWspHeader() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewOnMeasurePerfTest.java | 84 FAMILIES[random.nextInt(FAMILIES.length)], 85 STYLES[random.nextInt(STYLES.length)], 86 24 + random.nextInt(32), // text size. minimum 24 87 COLORS[random.nextInt(COLORS.length)], 88 COLORS[random.nextInt(COLORS.length)]); 89 int spanLength = 1 + random.nextInt(9); // Up to 9 span length.
|
/frameworks/base/tests/graphics/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()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | Utils.java | 33 char nextChar = (char)(random.nextInt(26) + base); in getRandomWord() 78 if (random.nextInt(100) < hitPercentage) { in buildParagraphListWithHitPercentage() 80 result.append(CACHE_HIT_STRINGS[random.nextInt(CACHE_HIT_STRINGS.length)]); in buildParagraphListWithHitPercentage() 84 length += random.nextInt(PARAGRAPH_MISS_MAX_LENGTH - PARAGRAPH_MISS_MIN_LENGTH); in buildParagraphListWithHitPercentage()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DriverCall.java | 106 ret.index = p.nextInt(); in fromCLCCLine() 108 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine() 110 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine() 125 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/base/services/tests/servicestests/src/com/android/server/job/ |
D | PendingJobQueueTest.java | 532 random.nextInt(250)); in testPendingJobSorting_Random() 533 job.enqueueTime = random.nextInt(1_000_000); in testPendingJobSorting_Random() 547 createJobInfo(i).setExpedited(random.nextBoolean()), random.nextInt(250), in testPendingJobSorting_Random_namespacing() 548 "namespace" + random.nextInt(5)); in testPendingJobSorting_Random_namespacing() 549 job.enqueueTime = random.nextInt(1_000_000); in testPendingJobSorting_Random_namespacing() 571 random.nextInt(50)); in testPendingJobSortingTransitivity() 572 job.enqueueTime = random.nextInt(1_000_000); in testPendingJobSortingTransitivity() 573 job.overrideState = random.nextInt(4); in testPendingJobSortingTransitivity() 597 random.nextInt(20)); in testPendingJobSortingTransitivity_Concentrated() 598 job.enqueueTime = random.nextInt(250); in testPendingJobSortingTransitivity_Concentrated() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | TextPerfUtils.java | 89 final String str = charSet[mRandom.nextInt(charSet.length)]; in nextRandomParagraph() 113 FAMILIES[mRandom.nextInt(FAMILIES.length)], in nextRandomParagraph() 114 STYLES[mRandom.nextInt(STYLES.length)], in nextRandomParagraph() 115 24 + mRandom.nextInt(32), // text size. min 24 max 56 in nextRandomParagraph()
|