/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()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AmbiguousBundlesTest.java | 97 Random random = new Random(1234); in test_android_CVE_2020_0082() 110 key = randomString(random); in test_android_CVE_2020_0082() 115 key2 = randomString(random); in test_android_CVE_2020_0082() 126 padBundle(postReSerialize, preReSerialize.size(), minHash, random); in test_android_CVE_2020_0082() 127 padBundle(preReSerialize, postReSerialize.size(), minHash, random); in test_android_CVE_2020_0082() 199 Random random = new Random(1234); in test_android_CVE_2017_13310() 212 key = randomString(random); in test_android_CVE_2017_13310() 216 padBundle(postReSerialize, preReSerialize.size(), minHash, random); in test_android_CVE_2017_13310() 217 padBundle(preReSerialize, postReSerialize.size(), minHash, random); in test_android_CVE_2017_13310() 222 key2 = makeStringToInject(random); in test_android_CVE_2017_13310() [all …]
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 145 Random random = new Random(seed); in doPlayStreams() local 148 String video = getRandomTestVideo(random, supported); in doPlayStreams() 153 doPlayMp4Stream(getRandomTestVideo(random, supported), 30000, 20000); in doPlayStreams() 157 private String getRandomTestVideo(Random random, String[] videos) { in getRandomTestVideo() argument 158 return videos[random.nextInt(videos.length)]; in getRandomTestVideo() 178 Random random = new Random(1); in doAsyncPrepareAndRelease() local 182 Thread.sleep(random.nextInt(500)); in doAsyncPrepareAndRelease() 188 Random random = new Random(1); in doRandomOperations() local 195 Thread.sleep(random.nextInt(100)); in doRandomOperations() 196 switch (random.nextInt(3)) { in doRandomOperations() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0685/src/android/security/cts/CVE_2021_0685/ |
D | PocAmbiguator.java | 38 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/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | BiometricPromptContentViewTest.java | 123 final Random random = new Random(); in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() local 124 final String randomTitle = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() 125 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() 126 final String randomDescription = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() 127 final String randomNegativeButtonText = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() 131 String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() 294 final Random random = new Random(); in testMoreOptionsButton_onlyCredential_clickButton() local 295 final String randomTitle = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_onlyCredential_clickButton() 296 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_onlyCredential_clickButton() 297 final String randomDescription = String.valueOf(random.nextInt(10000)); in testMoreOptionsButton_onlyCredential_clickButton() [all …]
|
D | BiometricSimpleTests.java | 507 final Random random = new Random(); in testSimpleBiometricAuth_nonConvenience() local 508 final String randomTitle = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience() 509 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience() 510 final String randomDescription = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience() 511 final String randomNegativeButtonText = String.valueOf(random.nextInt(10000)); in testSimpleBiometricAuth_nonConvenience() 560 final Random random = new Random(); in testSimpleCredentialAuth() local 561 final String randomTitle = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth() 562 final String randomSubtitle = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth() 563 final String randomDescription = String.valueOf(random.nextInt(10000)); in testSimpleCredentialAuth()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | LocationUtils.java | 45 public static Location createLocation(String provider, Random random) { in createLocation() argument 47 MIN_LATITUDE + random.nextDouble() * (MAX_LATITUDE - MIN_LATITUDE), in createLocation() 48 MIN_LONGITUDE + random.nextDouble() * (MAX_LONGITUDE - MIN_LONGITUDE), in createLocation() 49 MIN_ACCURACY + random.nextFloat() * (MAX_ACCURACY - MIN_ACCURACY)); in createLocation()
|
/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/nfc/src/android/nfc/tech/cts/interactive/ |
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);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 126 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/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/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/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | SeekTestPlayerListener.java | 61 Random random = new Random(mSeed); in seek() local 72 mSeekTimeUs *= random.nextBoolean() ? -1 : 1; in seek()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | AttestationTest.java | 63 SecureRandom random = new SecureRandom(); in attestationTest() local 65 random.nextBytes(challenge); in attestationTest()
|
/cts/tests/sample/src/android/sample/cts/ |
D | SampleDeviceResultTest.java | 60 private static final Random random = new Random(12345); field in SampleDeviceResultTest 105 array[i] = random.nextInt(); in createArray()
|