Home
last modified time | relevance | path

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

123456

/frameworks/opt/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 …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DProcFileReaderTest.java62 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/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_alloc_copyPadded.java87 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 …]
DUT_alloc_copy.java63 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 …]
DUT_reflection3264.java72 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 …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copyPadded.java84 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 …]
DUT_alloc_copy.java59 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 …]
DUT_math_agree.java113 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/RSUnitTests/src/com/android/rs/unittest/
DUT_alloc_copyPadded.java85 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 …]
DUT_alloc_copy.java61 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 …]
DUT_reflection3264.java70 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 …]
DUT_math_agree.java140 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/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java184 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/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java907 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/
DFakeView.java72 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/tests/UiBench/src/com/android/test/uibench/
DTextUtils.java44 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/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/util/
DDiffUtilActivity.java139 switch (mRandom.nextInt(3)) { in createRandomCheeseList()
141 output.add(mRandom.nextInt(1 + output.size()), getRandomCheese(output)); in createRandomCheeseList()
145 output.remove(mRandom.nextInt(output.size())); in createRandomCheeseList()
150 int from = mRandom.nextInt(output.size()); in createRandomCheeseList()
151 int to = mRandom.nextInt(output.size()); in createRandomCheeseList()
161 String chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in getRandomCheese()
163 chosen = Cheeses.sCheeseStrings[mRandom.nextInt(Cheeses.sCheeseStrings.length)]; in getRandomCheese()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathsCacheActivity.java114 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/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java88 FAMILIES[random.nextInt(FAMILIES.length)],
89 STYLES[random.nextInt(STYLES.length)],
90 24 + random.nextInt(32), // text size. minimum 24
91 COLORS[random.nextInt(COLORS.length)],
92 COLORS[random.nextInt(COLORS.length)]);
93 int spanLength = 1 + random.nextInt(9); // Up to 9 span length.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResults.java72 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()
DWifiLinkLayerStatsTest.java51 int a = mRandom.nextInt(31); in bumpCounters()
52 int b = mRandom.nextInt(31); in bumpCounters()
89 int txg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
90 int txr = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
91 int txb = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
92 int rxg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
DSparseIntArrayTest.kt170 assertEquals(1, iterator.nextInt()) in <lambda>()
172 assertEquals(2, iterator.nextInt()) in <lambda>()
174 assertEquals(6, iterator.nextInt()) in <lambda>()
188 assertEquals(11, iterator.nextInt()) in <lambda>()
190 assertEquals(22, iterator.nextInt()) in <lambda>()
192 assertEquals(66, iterator.nextInt()) in <lambda>()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java69 mBuffer[i] = ALPHABET.charAt(mRandom.nextInt(ALPHABET_LENGTH)); in nextRandomParagraph()
84 FAMILIES[mRandom.nextInt(FAMILIES.length)], in nextRandomParagraph()
85 STYLES[mRandom.nextInt(STYLES.length)], in nextRandomParagraph()
86 24 + mRandom.nextInt(32), // text size. min 24 max 56 in nextRandomParagraph()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDriverCall.java89 ret.index = p.nextInt(); in fromCLCCLine()
91 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine()
93 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine()
108 ret.TOA = p.nextInt(); in fromCLCCLine()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java33 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()

123456