/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationCopyPaddedTest.java | 26 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() 54 Random random = new Random(0x172d8ab9); in test_AllocationPadded_Byte3_2D() local 55 int width = random.nextInt(128); in test_AllocationPadded_Byte3_2D() 56 int height = random.nextInt(128); in test_AllocationPadded_Byte3_2D() 61 random.nextBytes(inArray); in test_AllocationPadded_Byte3_2D() 83 Random random = new Random(0x172d8ab9); in test_AllocationPadded_Byte3_3D() local 84 int w = random.nextInt(32); in test_AllocationPadded_Byte3_3D() 85 int h = random.nextInt(32); in test_AllocationPadded_Byte3_3D() [all …]
|
D | AllocationCopyToTest.java | 36 Random random = new Random(0x172d8ab9); in test_Allocationcopy1DRangeTo_Byte() local 37 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Byte() 42 random.nextBytes(inArray); in test_Allocationcopy1DRangeTo_Byte() 47 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Byte() 70 Random random = new Random(0x172d8ab9); in test_Allocationcopy1DRangeTo_Short_Helper() local 71 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Short_Helper() 78 inArray[i] = (short)random.nextInt(); in test_Allocationcopy1DRangeTo_Short_Helper() 84 int offset = random.nextInt(arr_len); in test_Allocationcopy1DRangeTo_Short_Helper() 118 Random random = new Random(0x172d8ab9); in test_Allocationcopy1DRangeTo_Int() local 119 int width = random.nextInt(512); in test_Allocationcopy1DRangeTo_Int() [all …]
|
D | RsAllocationCopyTest.java | 28 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 …]
|
D | SendToClientBlockingTest.java | 28 private Random random; field in SendToClientBlockingTest 36 random = new Random(); in setUp() 65 int id = random.nextInt(10); in testSendToClientBlocking1Params() 83 int id = random.nextInt(10); in testSendToClientBlocking3Params() 84 int data = random.nextInt(); in testSendToClientBlocking3Params()
|
D | AllocationCopy2DRangeTest.java | 31 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()
|
D | VLoadTest.java | 29 private static java.util.Random random = new java.util.Random(); field in VLoadTest 36 random.setSeed(10); in setUp() 64 int x = random.nextInt(w); in createWalk() 178 random.nextBytes(t); in randomByteArray() 186 t[i] = (short)(random.nextInt() & 0xffff); in randomShortArray() 195 t[i] = random.nextInt(); in randomIntArray() 204 t[i] = random.nextLong(); in randomLongArray() 341 tmp[i] = random.nextFloat(); in testVload_float() 353 tmp[i] = random.nextFloat(); in testVload_float_relaxed() 365 tmp[i] = random.nextDouble(); in testVload_double() [all …]
|
D | SendToClient.java | 28 private static Random random = new Random(); field in SendToClient 63 inArray[i] = random.nextInt(1000); in testSendToClient() 88 int Id = random.nextInt(100); in testSendToClient1()
|
D | GetAllocationTest.java | 27 Random random = new Random(0x827492ab); in testGetAllocation() local 30 tempArray[i] = random.nextInt(); in testGetAllocation()
|
D | AllocationResize.java | 46 Random random = new Random(0x12345678); in testResize() local 50 inArray[i] = random.nextInt(); in testResize()
|
D | DebugContext.java | 431 Random random = new Random(0x172d8ac1); in testDebugContextRsAllocationCopy2D_Short_WrongD() local 432 int width = random.nextInt(128); in testDebugContextRsAllocationCopy2D_Short_WrongD() 433 int height = random.nextInt(128); in testDebugContextRsAllocationCopy2D_Short_WrongD() 434 int xOff = random.nextInt(width); in testDebugContextRsAllocationCopy2D_Short_WrongD() 435 int yOff = random.nextInt(height); in testDebugContextRsAllocationCopy2D_Short_WrongD() 436 int xCount = random.nextInt(width - xOff); in testDebugContextRsAllocationCopy2D_Short_WrongD() 437 int yCount = random.nextInt(height - yOff); in testDebugContextRsAllocationCopy2D_Short_WrongD()
|
D | GetElementAt.java | 65 Random random = new Random(0x12345678); in setupArrays() local 68 in[i] = random.nextInt(100); in setupArrays()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 119 Random random = new Random(seed); in doPlayStreams() local 122 String video = getRandomTestVideo(random, supported); in doPlayStreams() 127 doPlayMp4Stream(getRandomTestVideo(random, supported), 30000, 20000); in doPlayStreams() 131 private String getRandomTestVideo(Random random, String[] videos) { in getRandomTestVideo() argument 132 return videos[random.nextInt(videos.length)]; in getRandomTestVideo() 152 Random random = new Random(1); in doAsyncPrepareAndRelease() local 156 Thread.sleep(random.nextInt(500)); in doAsyncPrepareAndRelease() 162 Random random = new Random(1); in doRandomOperations() local 169 Thread.sleep(random.nextInt(100)); in doRandomOperations() 170 switch (random.nextInt(3)) { in doRandomOperations() [all …]
|
D | EncoderTest.java | 211 InputStream istream, int mode, long timeUs, Random random) { in queueInputBuffer() argument 238 int next = random.nextInt(); in queueInputBuffer() 239 buffer.putInt(random.nextInt()); in queueInputBuffer() 331 Random random = new Random(startSeed); in testEncoder() local 381 codec, codecInputBuffers, index, istream, mode, timeUs, random); in testEncoder()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AmbiguousBundlesTest.java | 55 Random random = new Random(1234); in test_android_CVE_2017_13310() 68 key = randomString(random); in test_android_CVE_2017_13310() 72 padBundle(postReSerialize, preReSerialize.size(), minHash, random); in test_android_CVE_2017_13310() 73 padBundle(preReSerialize, postReSerialize.size(), minHash, random); in test_android_CVE_2017_13310() 78 key2 = makeStringToInject(random); in test_android_CVE_2017_13310() 105 private String makeStringToInject(Random random) { in test_android_CVE_2017_13310() 115 paddingVal = random.nextInt(); in test_android_CVE_2017_13310() 164 Random random = new Random(1234); in test_android_CVE_2018_9339() 177 key = randomString(random); in test_android_CVE_2018_9339() 182 padBundle(postReSerialize, preReSerialize.size() + 1, minHash, random); in test_android_CVE_2018_9339() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 122 Random random = new Random(); in generateRandomPolicy() local 125 item.setRandomExpectedValue(random); in generateRandomPolicy() 246 void setRandomExpectedValue(Random random); in setRandomExpectedValue() argument 281 public final void setRandomExpectedValue(Random random) { in setRandomExpectedValue() argument 282 mExpectedValue = getRandomExpectedValue(random); in setRandomExpectedValue() 285 protected abstract T getRandomExpectedValue(Random random); in getRandomExpectedValue() argument 397 protected Integer getRandomExpectedValue(Random random) { in getRandomExpectedValue() argument 405 int index = random.nextInt(passwordQualities.length); in getRandomExpectedValue() 444 protected Integer getRandomExpectedValue(Random random) { in getRandomExpectedValue() argument 445 return random.nextInt(50); in getRandomExpectedValue() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ImportWrappedKeyTest.java | 84 SecureRandom random = new SecureRandom(); field in ImportWrappedKeyTest 87 random.setSeed(0); in testKeyStore_ImportWrappedKey() 90 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey() 153 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_3DES() 201 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_3DES_StrongBox() 238 random.setSeed(0); in testKeyStore_ImportWrappedKey_AES_StrongBox() 241 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_AES_StrongBox() 270 random.setSeed(0); in testKeyStore_ImportWrappedKey_AES_StrongBox() 273 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_AES_StrongBox() 315 random.nextBytes(iv); in wrapKey() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NdefTagTester.java | 66 Random random = new Random(); in writeTag() local 67 NdefRecord mimeRecord = createRandomMimeRecord(random); in writeTag() 99 private NdefRecord createRandomMimeRecord(Random random) { 102 random.nextBytes(id);
|
D | MifareUltralightTagTester.java | 50 Random random = new Random(); in writeTag() local 57 random.nextBytes(onePage); in writeTag()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceTest.java | 187 String key = "" + Math.random(); in testPersistInt() 204 String key = "" + Math.random(); in testPersistBoolean() 222 String key = "" + Math.random(); in testPersistString() 240 String key = "" + Math.random(); in testPersistStringSet() 258 String key = "" + Math.random(); in testPersistFloat() 276 String key = "" + Math.random(); in testPersistLong()
|
/cts/apps/CtsVerifier/assets/scripts/power_monitors/ |
D | _dummy.py | 77 import random 81 values = [ random.gauss(base[(self._sequence-1)%4], 0.0005) for _ in range(100)]
|
/cts/tests/sample/src/android/sample/cts/ |
D | SampleDeviceResultTest.java | 51 private static final Random random = new Random(12345); field in SampleDeviceResultTest 102 array[i] = random.nextInt(); in createArray()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | BiometricTest.java | 275 final Random random = new Random(); in showInstructionDialogForStringsTest() local 277 mRandomTitle = String.valueOf(random.nextInt(1000)); in showInstructionDialogForStringsTest() 278 mRandomSubtitle = String.valueOf(random.nextInt(1000)); in showInstructionDialogForStringsTest() 279 mRandomDescription = String.valueOf(random.nextInt(1000)); in showInstructionDialogForStringsTest() 280 mRandomNegativeButtonText = String.valueOf(random.nextInt(1000)); in showInstructionDialogForStringsTest()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseCursorTest.java | 263 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/tools/utils/ |
D | certificates.py | 16 import random 62 cert.set_serial_number(random.randint(0, 2**20))
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | InitialValueVerificationTest.java | 38 private static final Random random = new Random(123L); field in InitialValueVerificationTest 110 valuesWithNoise[i] = values[i] + random.nextFloat() * NOISE_STD; in addNoise()
|