Home
last modified time | relevance | path

Searched refs:rng (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyGeneratorTest.java167 SecureRandom rng = new SecureRandom(); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local
173 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()
201 SecureRandom rng = new SecureRandom(); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local
206 keyGenerator.init((AlgorithmParameterSpec) null, rng); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local
295 CountingSecureRandom rng = new CountingSecureRandom(); in testAesKeySupportedSizesHelper() local
298 rng.resetCounters(); in testAesKeySupportedSizesHelper()
312 rng.resetCounters(); in testAesKeySupportedSizesHelper()
315 keyGenerator.init(spec, rng); in testAesKeySupportedSizesHelper()
318 assertEquals((i + 7) / 8, rng.getOutputSizeBytes()); in testAesKeySupportedSizesHelper()
324 keyGenerator.init(spec, rng); in testAesKeySupportedSizesHelper()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DBase64Test.java279 Random rng = new Random(32176L); in testInputStream() local
319 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testInputStream()
357 Random rng = new Random(32176L); in testOutputStream() local
397 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testOutputStream()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraDeviceSetupTest.java147 Random rng = new Random(); in testCameraDeviceSetupCreationFailure() local
148 int invalidId = rng.ints(/*streamSize=*/ 100, /*randomNumberOrigin=*/ 0, in testCameraDeviceSetupCreationFailure()