Searched defs:random (Results 1 - 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
H A DNdefTagTester.java34 * {@link TagTester} for NDEF tags. It writes a semi-random NDEF tag with a random id but
66 Random random = new Random();
67 NdefRecord mimeRecord = createRandomMimeRecord(random);
99 private NdefRecord createRandomMimeRecord(Random random) { argument
102 random.nextBytes(id);
/cts/tests/tests/media/src/android/media/cts/
H A DMediaPlayerFlakyNetworkTest.java96 Random random = new Random(seed);
99 String video = getRandomTestVideo(random);
104 doPlayMp4Stream(getRandomTestVideo(random), 30000, 20000);
108 private String getRandomTestVideo(Random random) { argument
109 return TEST_VIDEOS[random.nextInt(TEST_VIDEOS.length)];
129 Random random = new Random(1);
133 Thread.sleep(random.nextInt(500));
139 Random random = new Random(1);
146 Thread.sleep(random.nextInt(100));
147 switch (random
258 FlakyHttpServerConnection(Random random, float probability) argument
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
H A DPolicySerializationTestActivity.java44 * clicks a button to generate a random policy and is then asked to reboot the device. When
119 Random random = new Random();
122 item.setRandomExpectedValue(random);
243 void setRandomExpectedValue(Random random); argument
278 public final void setRandomExpectedValue(Random random) { argument
279 mExpectedValue = getRandomExpectedValue(random);
282 protected abstract T getRandomExpectedValue(Random random); argument
394 protected Integer getRandomExpectedValue(Random random) { argument
402 int index = random.nextInt(passwordQualities.length);
441 protected Integer getRandomExpectedValue(Random random) { argument
465 getRandomExpectedValue(Random random) argument
488 getRandomExpectedValue(Random random) argument
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
H A DBackupTestActivity.java184 Random random = new Random();
185 generatePreferenceGroup1(random);
186 generatePreferenceGroup2(random);
188 generateTestFile(TEST_FILE_1, random);
189 generateTestFile(TEST_FILE_2, random);
196 private void generatePreferenceGroup1(Random random) { argument
199 editor.putInt(INT_PREF, (random.nextInt(100) + 1));
200 editor.putBoolean(BOOL_PREF, random.nextBoolean());
204 private void generatePreferenceGroup2(Random random) { argument
207 editor.putFloat(FLOAT_PREF, random
213 generateTestFile(String fileName, Random random) argument
[all...]

Completed in 141 milliseconds