Searched refs:nextInt (Results 1 – 25 of 42) sorted by relevance
12
58 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomDoubles()59 int sign = (min >= 0) ? 1 : 1 - r.nextInt(2) * 2; // -1 or 1 in genRandomDoubles()77 array[r.nextInt(array.length)] = d; in genRandomDoubles()80 array[r.nextInt(array.length)] = min; in genRandomDoubles()81 array[r.nextInt(array.length)] = max; in genRandomDoubles()83 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles()84 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles()85 array[r.nextInt(array.length)] = Double.NEGATIVE_INFINITY; in genRandomDoubles()86 array[r.nextInt(array.length)] = Double.MIN_VALUE; in genRandomDoubles()87 array[r.nextInt(array.length)] = Double.MIN_NORMAL; in genRandomDoubles()[all …]
29 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Byte()39 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Byte()63 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Short()70 inArray[i] = (short)random.nextInt(); in test_Allocationcopy1DRangeTo_Short()76 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Short()100 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Int()107 inArray[i] = random.nextInt(); in test_Allocationcopy1DRangeTo_Int()113 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Int()137 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Float()150 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Float()[all …]
267 mSrcData[r.nextInt(mSrcData.length)] = ~0x40000000; in testAnd()268 mSrcData[r.nextInt(mSrcData.length)] = ~0x10000000; in testAnd()269 mSrcData[r.nextInt(mSrcData.length)] = ~0x02000000; in testAnd()270 mSrcData[r.nextInt(mSrcData.length)] = ~0x00c00000; in testAnd()271 mSrcData[r.nextInt(mSrcData.length)] = ~0x00010000; in testAnd()272 mSrcData[r.nextInt(mSrcData.length)] = ~0x00080000; in testAnd()273 mSrcData[r.nextInt(mSrcData.length)] = ~0x00001000; in testAnd()274 mSrcData[r.nextInt(mSrcData.length)] = ~0x00000200; in testAnd()275 mSrcData[r.nextInt(mSrcData.length)] = ~0x0000000f; in testAnd()300 mSrcData[r.nextInt(mSrcData.length)] = ~0x40000000; in testUAnd()[all …]
29 int width = random.nextInt(512); in test_rsAllocationCopy1D_Byte()31 int offset = random.nextInt(arr_len); in test_rsAllocationCopy1D_Byte()32 int count = random.nextInt(arr_len - offset); in test_rsAllocationCopy1D_Byte()74 int width = random.nextInt(512); in test_rsAllocationCopy1D_Short()76 int offset = random.nextInt(arr_len); in test_rsAllocationCopy1D_Short()77 int count = random.nextInt(arr_len - offset); in test_rsAllocationCopy1D_Short()82 inArray[i] = (short)random.nextInt(); in test_rsAllocationCopy1D_Short()121 int width = random.nextInt(512); in test_rsAllocationCopy1D_Int()123 int offset = random.nextInt(arr_len); in test_rsAllocationCopy1D_Int()124 int count = random.nextInt(arr_len - offset); in test_rsAllocationCopy1D_Int()[all …]
27 int width = random.nextInt(128);; in test_AllocationPadded_Byte3_1D()54 int width = random.nextInt(128); in test_AllocationPadded_Byte3_2D()55 int height = random.nextInt(128); in test_AllocationPadded_Byte3_2D()82 int w = random.nextInt(32); in test_AllocationPadded_Byte3_3D()83 int h = random.nextInt(32); in test_AllocationPadded_Byte3_3D()84 int d = random.nextInt(32); in test_AllocationPadded_Byte3_3D()111 int width = random.nextInt(512); in test_AllocationPadded_Short3_1D()118 inArray[i] = (short)random.nextInt(); in test_AllocationPadded_Short3_1D()141 int width = random.nextInt(128); in test_AllocationPadded_Short3_2D()142 int height = random.nextInt(128); in test_AllocationPadded_Short3_2D()[all …]
40 mRed[ct] = (short)r.nextInt(256); in createTest()41 mGreen[ct] = (short)r.nextInt(256); in createTest()42 mBlue[ct] = (short)r.nextInt(256); in createTest()43 mAlpha[ct] = (short)r.nextInt(256); in createTest()
57 int id = random.nextInt(10); in testSendToClientBlocking1Params()75 int id = random.nextInt(10); in testSendToClientBlocking3Params()76 int data = random.nextInt(); in testSendToClientBlocking3Params()
32 int width = random.nextInt(512); in testAllocationCopy2DRange()33 int height = random.nextInt(512); in testAllocationCopy2DRange()39 inArray[i] = random.nextInt(); in testAllocationCopy2DRange()
55 inArray[i] = random.nextInt(1000); in testSendToClient()80 int Id = random.nextInt(100); in testSendToClient1()
54 v |= r.nextInt(0x100); in genCubeRand()55 v |= r.nextInt(0x100) << 8; in genCubeRand()56 v |= r.nextInt(0x100) << 16; in genCubeRand()
30 tempArray[i] = random.nextInt(); in testGetAllocation()
50 inArray[i] = random.nextInt(); in testResize()
52 by[i] = (byte)r.nextInt(256); in makeYuvBuffer()55 bu[i] = (byte)r.nextInt(256); in makeYuvBuffer()58 bv[i] = (byte)r.nextInt(256); in makeYuvBuffer()
51 in[i] = random.nextInt(100); in setupArrays()
112 if (scanner.nextInt() != 0) { in isKernelProcess()208 int realUid = scanner.nextInt(); in hasRootId()209 int effectiveUid = scanner.nextInt(); in hasRootId()210 int savedSetUid = scanner.nextInt(); in hasRootId()211 int fileSystemUid = scanner.nextInt(); in hasRootId()
92 public int nextInt() { in nextInt() method in CountingSecureRandom97 public int nextInt(int n) { in nextInt() method in CountingSecureRandom
52 array[i] = (r.nextInt(max) * factor + offset); in genRandom()64 array[i * stride + j] = r.nextInt() * factor + offset; in genRandom()77 array[i * stride + j] = r.nextInt(max) * factor + offset; in genRandom()
57 by[i] = (byte)r.nextInt(256); in makeYuvBuffer()60 bu[i] = (byte)r.nextInt(256); in makeYuvBuffer()63 bv[i] = (byte)r.nextInt(256); in makeYuvBuffer()
137 return videos[random.nextInt(videos.length)]; in getRandomTestVideo()161 Thread.sleep(random.nextInt(500)); in doAsyncPrepareAndRelease()174 Thread.sleep(random.nextInt(100)); in doRandomOperations()175 switch (random.nextInt(3)) { in doRandomOperations()185 mMediaPlayer.seekTo(random.nextInt(10000)); in doRandomOperations()340 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
207 mAction = (int)(r.nextInt() % 12); in testPlayerRandomAction()208 mParam = (int)(r.nextInt() % 1000000); in testPlayerRandomAction()296 mAction = (int)(r.nextInt(14)); in testRecorderRandomAction()297 mParam = (int)(r.nextInt(1000000)); in testRecorderRandomAction()
263 switch(mGenerator.nextInt(5)) { in generateSamplingRateInUs()270 rate = maxSamplingRate * mGenerator.nextInt(10); in generateSamplingRateInUs()276 long reportLatencyUs = TimeUnit.SECONDS.toMicros(mGenerator.nextInt(5) + 1); in generateReportLatencyInUs()
206 assertEquals(1, reader.nextInt()); in testIntegersWithFractionalPartSpecified()287 assertEquals(33333, reader.nextInt()); in testBufferBoundary()300 assertEquals(33333, reader.nextInt()); in testTruncatedBufferBoundary()346 assertEquals(0, reader.nextInt()); in testLongs()349 assertEquals(1, reader.nextInt()); in testLongs()352 assertEquals(-1, reader.nextInt()); in testLongs()355 reader.nextInt(); in testLongs()361 reader.nextInt(); in testLongs()447 reader.nextInt(); in testNumberWithOctalPrefix()941 reader.nextInt(); in testFailWithPosition()
247 String key = new Integer(rand.nextInt(25)).toString(); in testTorture()251 if (rand.nextInt(100) < 85) { in testTorture()262 if (rand.nextInt(100) < 85) { in testTorture()288 String key = new Integer(rand.nextInt(25)).toString(); in testTorture2()
402 int index = random.nextInt(passwordQualities.length); in getRandomExpectedValue()442 return random.nextInt(50); in getRandomExpectedValue()466 return random.nextInt(50); in getRandomExpectedValue()489 return (long)(1000 + random.nextInt(60 * 60 * 1000)); in getRandomExpectedValue()