Home
last modified time | relevance | path

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

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/
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()
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 …]
DAllocationCopyToTest.java36 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 …]
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()
65 int id = random.nextInt(10); in testSendToClientBlocking1Params()
83 int id = random.nextInt(10); in testSendToClientBlocking3Params()
84 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()
DVLoadTest.java29 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 …]
DSendToClient.java28 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()
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()
DDebugContext.java431 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()
DGetElementAt.java65 Random random = new Random(0x12345678); in setupArrays() local
68 in[i] = random.nextInt(100); in setupArrays()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java122 Random random = new Random(seed); in doPlayStreams() local
125 String video = getRandomTestVideo(random, supported); in doPlayStreams()
130 doPlayMp4Stream(getRandomTestVideo(random, supported), 30000, 20000); in doPlayStreams()
134 private String getRandomTestVideo(Random random, String[] videos) { in getRandomTestVideo() argument
135 return videos[random.nextInt(videos.length)]; in getRandomTestVideo()
155 Random random = new Random(1); in doAsyncPrepareAndRelease() local
159 Thread.sleep(random.nextInt(500)); in doAsyncPrepareAndRelease()
165 Random random = new Random(1); in doRandomOperations() local
172 Thread.sleep(random.nextInt(100)); in doRandomOperations()
173 switch (random.nextInt(3)) { in doRandomOperations()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DAmbiguousBundlesTest.java93 Random random = new Random(1234); in test_android_CVE_2020_0082()
106 key = randomString(random); in test_android_CVE_2020_0082()
111 key2 = randomString(random); in test_android_CVE_2020_0082()
122 padBundle(postReSerialize, preReSerialize.size(), minHash, random); in test_android_CVE_2020_0082()
123 padBundle(preReSerialize, postReSerialize.size(), minHash, random); in test_android_CVE_2020_0082()
194 Random random = new Random(1234); in test_android_CVE_2017_13310()
207 key = randomString(random); in test_android_CVE_2017_13310()
211 padBundle(postReSerialize, preReSerialize.size(), minHash, random); in test_android_CVE_2017_13310()
212 padBundle(preReSerialize, postReSerialize.size(), minHash, random); in test_android_CVE_2017_13310()
217 key2 = makeStringToInject(random); in test_android_CVE_2017_13310()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DLocationUtils.java44 public static Location createLocation(String provider, Random random) { in createLocation() argument
46 MIN_LATITUDE + random.nextDouble() * (MAX_LATITUDE - MIN_LATITUDE), in createLocation()
47 MIN_LONGITUDE + random.nextDouble() * (MAX_LONGITUDE - MIN_LONGITUDE), in createLocation()
48 MIN_ACCURACY + random.nextFloat() * (MAX_ACCURACY - MIN_ACCURACY)); in createLocation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java122 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/framework/base/biometrics/src/android/server/biometrics/
DBiometricSimpleTests.java252 final Random random = new Random(); in testSimpleBiometricAuth() local
253 final String randomTitle = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth()
254 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth()
255 final String randomDescription = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth()
256 final String randomNegativeButtonText = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth()
303 final Random random = new Random(); in testSimpleCredentialAuth() local
304 final String randomTitle = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
305 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
306 final String randomDescription = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportWrappedKeyTest.java85 SecureRandom random = new SecureRandom(); field in ImportWrappedKeyTest
88 random.setSeed(0); in testKeyStore_ImportWrappedKey()
91 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey()
154 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_3DES()
202 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
239 random.setSeed(0); in testKeyStore_ImportWrappedKey_AES_StrongBox()
242 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_AES_StrongBox()
271 random.setSeed(0); in testKeyStore_ImportWrappedKey_AES_StrongBox()
274 random.nextBytes(keyMaterial); in testKeyStore_ImportWrappedKey_AES_StrongBox()
316 random.nextBytes(iv); in wrapKey()
[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/tests/tests/preference/src/android/preference/cts/
DPreferenceTest.java187 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/tests/tests/identity/src/android/security/identity/cts/
DAttestationTest.java60 SecureRandom random = new SecureRandom(); in attestationTest() local
61 int challengeLength = 16 + random.nextInt(16); in attestationTest()
63 random.nextBytes(challenge); in attestationTest()
/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/sample/src/android/sample/cts/
DSampleDeviceResultTest.java51 private static final Random random = new Random(12345); field in SampleDeviceResultTest
102 array[i] = random.nextInt(); in createArray()
/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/sensor/src/android/hardware/cts/helpers/sensorverification/
DInitialValueVerificationTest.java38 private static final Random random = new Random(123L); field in InitialValueVerificationTest
110 valuesWithNoise[i] = values[i] + random.nextFloat() * NOISE_STD; in addNoise()

123