Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 54) 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/hostsidetests/securitybulletin/test-apps/CVE-2021-0685/src/android/security/cts/CVE_2021_0685/
DPocAmbiguator.java38 Random random = new Random(1234); in make() local
51 key = randomString(random); in make()
59 if (!padBundle(postReSerialize, preReSerialize.size(), minHash, random)) { in make()
62 if (!padBundle(preReSerialize, postReSerialize.size(), minHash, random)) { in make()
117 private static String randomString(Random random) { in randomString() argument
120 b.append((char) (' ' + random.nextInt('~' - ' ' + 1))); in randomString()
125 private static boolean padBundle(Bundle bundle, int size, int minHash, Random random) { in padBundle() argument
130 key = randomString(random); in padBundle()
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java126 Random random = new Random(); in generateRandomPolicy() local
130 item.setRandomExpectedValue(random); in generateRandomPolicy()
258 void setRandomExpectedValue(Random random); in setRandomExpectedValue() argument
293 public final void setRandomExpectedValue(Random random) { in setRandomExpectedValue() argument
294 mExpectedValue = getRandomExpectedValue(random); in setRandomExpectedValue()
297 protected abstract T getRandomExpectedValue(Random random); in getRandomExpectedValue() argument
417 protected Integer getRandomExpectedValue(Random random) { in getRandomExpectedValue() argument
418 return random.nextInt(50); in getRandomExpectedValue()
440 protected Long getRandomExpectedValue(Random random) { in getRandomExpectedValue() argument
441 return (long)(1000 + random.nextInt(60 * 60 * 1000)); in getRandomExpectedValue()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricSimpleTests.java312 final Random random = new Random(); in testSimpleBiometricAuth_nonConvenience() local
313 final String randomTitle = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience()
314 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience()
315 final String randomDescription = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience()
316 final String randomNegativeButtonText = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience()
360 final Random random = new Random(); in testSimpleCredentialAuth() local
361 final String randomTitle = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
362 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
363 final String randomDescription = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
/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/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/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/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/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