Home
last modified time | relevance | path

Searched refs:nextInt (Results 1 – 25 of 132) 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 …]
DUT_math_agree.java142 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/
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/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/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/base/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java84 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/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/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.java54 int a = mRandom.nextInt(31); in bumpCounters()
55 int b = mRandom.nextInt(31); in bumpCounters()
92 int txg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
93 int txr = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
94 int txb = mRandom.nextInt(100); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
95 int rxg = mRandom.nextInt(1000); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
/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()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java65 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/opt/telephony/src/java/com/android/internal/telephony/
DDriverCall.java105 ret.index = p.nextInt(); in fromCLCCLine()
107 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine()
109 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine()
124 ret.TOA = p.nextInt(); in fromCLCCLine()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java89 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()

123456