Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopyToTest.java28 Random random = new Random(0x172d8ab9); in test_Allocationcopy1DRangeTo_Byte() local
29 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Byte()
34 random.nextBytes(inArray); in test_Allocationcopy1DRangeTo_Byte()
39 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Byte()
62 Random random = new Random(0x172d8ab9); in test_Allocationcopy1DRangeTo_Short() local
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()
99 Random random = new Random(0x172d8ab9); in test_Allocationcopy1DRangeTo_Int() local
100 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Int()
[all …]
DAllocationCopyPaddedTest.java26 Random random = new Random(0x172d8ab9); in test_AllocationPadded_Byte3_1D() local
27 int width = random.nextInt(128);; in test_AllocationPadded_Byte3_1D()
32 random.nextBytes(inArray); in test_AllocationPadded_Byte3_1D()
53 Random random = new Random(0x172d8ab9); in test_AllocationPadded_Byte3_2D() local
54 int width = random.nextInt(128); in test_AllocationPadded_Byte3_2D()
55 int height = random.nextInt(128); in test_AllocationPadded_Byte3_2D()
60 random.nextBytes(inArray); in test_AllocationPadded_Byte3_2D()
81 Random random = new Random(0x172d8ab9); in test_AllocationPadded_Byte3_3D() local
82 int w = random.nextInt(32); in test_AllocationPadded_Byte3_3D()
83 int h = random.nextInt(32); in test_AllocationPadded_Byte3_3D()
[all …]
DrsAllocationCopyTest.java28 Random random = new Random(0x172d8ab9); in test_rsAllocationCopy1D_Byte() local
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()
36 random.nextBytes(inArray); in test_rsAllocationCopy1D_Byte()
73 Random random = new Random(0x172d8ab9); in test_rsAllocationCopy1D_Short() local
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()
[all …]
DSendToClientBlockingTest.java28 private Random random; field in SendToClientBlockingTest
36 random = new Random(); in setUp()
57 int id = random.nextInt(10); in testSendToClientBlocking1Params()
75 int id = random.nextInt(10); in testSendToClientBlocking3Params()
76 int data = random.nextInt(); in testSendToClientBlocking3Params()
DAllocationCopy2DRangeTest.java31 Random random = new Random(0x172d8ab9); in testAllocationCopy2DRange() local
32 int width = random.nextInt(512); in testAllocationCopy2DRange()
33 int height = random.nextInt(512); in testAllocationCopy2DRange()
39 inArray[i] = random.nextInt(); in testAllocationCopy2DRange()
DSendToClient.java28 private static Random random = new Random(); field in SendToClient
55 inArray[i] = random.nextInt(1000); in testSendToClient()
80 int Id = random.nextInt(100); in testSendToClient1()
DVLoadTest.java29 private static java.util.Random random = new java.util.Random(); field in VLoadTest
36 random.setSeed(10); in setUp()
50 int x = random.nextInt(w); in createWalk()
164 random.nextBytes(t); in randomByteArray()
172 t[i] = (short)(random.nextInt() & 0xffff); in randomShortArray()
181 t[i] = random.nextInt(); in randomIntArray()
190 t[i] = random.nextLong(); in randomLongArray()
327 tmp[i] = random.nextFloat(); in testVload_float()
339 tmp[i] = random.nextFloat(); in testVload_float_relaxed()
351 tmp[i] = random.nextDouble(); in testVload_double()
[all …]
DGetAllocationTest.java27 Random random = new Random(0x827492ab); in testGetAllocation() local
30 tempArray[i] = random.nextInt(); in testGetAllocation()
DAllocationResize.java46 Random random = new Random(0x12345678); in testResize() local
50 inArray[i] = random.nextInt(); in testResize()
DGetElementAt.java48 Random random = new Random(0x12345678); in setupArrays() local
51 in[i] = random.nextInt(100); in setupArrays()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java124 Random random = new Random(seed); in doPlayStreams() local
127 String video = getRandomTestVideo(random, supported); in doPlayStreams()
132 doPlayMp4Stream(getRandomTestVideo(random, supported), 30000, 20000); in doPlayStreams()
136 private String getRandomTestVideo(Random random, String[] videos) { in getRandomTestVideo() argument
137 return videos[random.nextInt(videos.length)]; in getRandomTestVideo()
157 Random random = new Random(1); in doAsyncPrepareAndRelease() local
161 Thread.sleep(random.nextInt(500)); in doAsyncPrepareAndRelease()
167 Random random = new Random(1); in doRandomOperations() local
174 Thread.sleep(random.nextInt(100)); in doRandomOperations()
175 switch (random.nextInt(3)) { in doRandomOperations()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java184 Random random = new Random(); in doInBackground() local
185 generatePreferenceGroup1(random); in doInBackground()
186 generatePreferenceGroup2(random); in doInBackground()
188 generateTestFile(TEST_FILE_1, random); in doInBackground()
189 generateTestFile(TEST_FILE_2, random); in doInBackground()
196 private void generatePreferenceGroup1(Random random) { in generatePreferenceGroup1() argument
199 editor.putInt(INT_PREF, (random.nextInt(100) + 1)); in generatePreferenceGroup1()
200 editor.putBoolean(BOOL_PREF, random.nextBoolean()); in generatePreferenceGroup1()
204 private void generatePreferenceGroup2(Random random) { in generatePreferenceGroup2() argument
207 editor.putFloat(FLOAT_PREF, random.nextFloat()); in generatePreferenceGroup2()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java119 Random random = new Random(); in generateRandomPolicy() local
122 item.setRandomExpectedValue(random); in generateRandomPolicy()
243 void setRandomExpectedValue(Random random); in setRandomExpectedValue() argument
278 public final void setRandomExpectedValue(Random random) { in setRandomExpectedValue() argument
279 mExpectedValue = getRandomExpectedValue(random); in setRandomExpectedValue()
282 protected abstract T getRandomExpectedValue(Random random); in getRandomExpectedValue() argument
394 protected Integer getRandomExpectedValue(Random random) { in getRandomExpectedValue() argument
402 int index = random.nextInt(passwordQualities.length); in getRandomExpectedValue()
441 protected Integer getRandomExpectedValue(Random random) { in getRandomExpectedValue() argument
442 return random.nextInt(50); in getRandomExpectedValue()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
DNdefTagTester.java66 Random random = new Random(); in writeTag() local
67 NdefRecord mimeRecord = createRandomMimeRecord(random); in writeTag()
99 private NdefRecord createRandomMimeRecord(Random random) {
102 random.nextBytes(id);
DMifareUltralightTagTester.java50 Random random = new Random(); in writeTag() local
57 random.nextBytes(onePage); in writeTag()
/cts/apps/CtsVerifier/assets/scripts/power_monitors/
D_dummy.py77 import random
81 values = [ random.gauss(base[(self._sequence-1)%4], 0.0005) for _ in range(100)]
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java184 String key = "" + Math.random(); in testPersistInt()
201 String key = "" + Math.random(); in testPersistBoolean()
219 String key = "" + Math.random(); in testPersistString()
237 String key = "" + Math.random(); in testPersistFloat()
255 String key = "" + Math.random(); in testPersistLong()
/cts/tests/tests/tv/src/android/media/tv/cts/
DBundledTvInputServiceTest.java161 Random random = new Random(); in testTuneStress() local
164 mPassthroughInputList.get(random.nextInt(mPassthroughInputList.size())); in testTuneStress()
173 if (random.nextBoolean()) { in testTuneStress()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java274 Random random = new Random(); in checkPing() local
275 random.nextBytes(packet); in checkPing()
287 int port = random.nextInt(65534) + 1; in checkPing()
416 Random random = new Random(); in checkUdpEcho() local
417 byte[] data = new byte[random.nextInt(1650)]; in checkUdpEcho()
418 random.nextBytes(data); in checkUdpEcho()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseCursorTest.java263 Random random = new Random(System.currentTimeMillis()); in testLargeField() local
266 randomString.append((random.nextInt() & 0xf) % 10); in testLargeField()
351 Random random = new Random(System.currentTimeMillis()); in testManyRowsTxt() local
354 randomString.append((random.nextInt() & 0xf) % 10); in testManyRowsTxt()
383 Random random = new Random(System.currentTimeMillis()); in testManyRowsTxtLong() local
386 randomString.append((random.nextInt() & 0xf) % 10); in testManyRowsTxtLong()
/cts/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java101 int port = (int) (Math.random() * 2048); in sendPing()
161 byte[] packet = pingPacket((int) (Math.random() * (MAX_SIZE - ICMP_HEADER_SIZE))); in testLoopbackPing()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DTrivialPlayer.java63 (short)(((Math.random() * 2.0) - 1.0) * (double)Short.MAX_VALUE/2.0); in TrivialPlayer()
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
DFileUtil.java276 Random random = new Random(0); in doRandomReadTest() local
281 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()
330 Random random = new Random(0); in doRandomWriteTest() local
334 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimationActivity.java252 int red = (int)(Math.random() * 255); in addBall()
253 int green = (int)(Math.random() * 255); in addBall()
254 int blue = (int)(Math.random() * 255); in addBall()
/cts/suite/audio_quality/test_description/processing/
Dgen_random.py33 randomSignal = np.random.normal(scale = peakAmpl * 2 / 3, size=samples)

12