Searched refs:rng (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/keystore/java/android/security/keystore2/ |
D | KeyStoreCryptoOperationUtils.java | 163 static byte[] getRandomBytesToMixIntoKeystoreRng(SecureRandom rng, int sizeBytes) { in getRandomBytesToMixIntoKeystoreRng() argument 167 if (rng == null) { in getRandomBytesToMixIntoKeystoreRng() 168 rng = getRng(); in getRandomBytesToMixIntoKeystoreRng() 171 rng.nextBytes(result); in getRandomBytesToMixIntoKeystoreRng()
|
/frameworks/base/tools/codegen/src/com/android/codegen/ |
D | FileInfo.kt | 143 … val range: ClosedRange<Int> = ast.range.get()!!.let { rng -> rng.begin.line-1..rng.end.line-1 }, in <lambda>() method 231 var generatedCode = classBounds.generatedCodeRange?.let { rng -> in <lambda>() method 233 rng.start, rng.endInclusive+1)) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerBaseTest.java | 314 protected byte[] generateData(int size, DataType type, Random rng) { in generateData() argument 326 if (rng == null) { in generateData() 327 rng = new LoggingRng(); in generateData() 331 result[i] = (byte) (min + rng.nextInt(max - min + 1)); in generateData() 618 Random rng = new LoggingRng(); in createFileOnSD() local 619 byte[] chunkSizeData = generateData(nextChunkSize, type, rng); in createFileOnSD() 626 randomData = generateData(nextChunkSize, type, rng); in createFileOnSD()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoService.java | 101 final Random rng = new Random(); in triggerFoodResponse() local 102 if (rng.nextFloat() <= CAT_CAPTURE_PROB) { in triggerFoodResponse() 113 if (cats.size() == 0 || rng.nextFloat() <= new_cat_prob) { in triggerFoodResponse()
|
D | NekoControlsService.kt | 76 private val rng = Random() constant in com.android.egg.neko.NekoControlsService 116 return Icon.createWithResource(resources, Cat.chooseP(rng, P_TOY_ICONS, 4)) in randomToyIcon()
|
/frameworks/base/core/java/android/content/pm/ |
D | VerifierDeviceIdentity.java | 93 static VerifierDeviceIdentity generate(Random rng) { in generate() argument 94 long identity = rng.nextLong(); in generate()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 322 Random rng = new Random(32176L); in testInputStream() local 362 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testInputStream() 401 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testInputStream() 437 Random rng = new Random(32176L); in testOutputStream() local 477 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testOutputStream() 520 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testOutputStream()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordManager.java | 1345 SecureRandom rng = new SecureRandom(); in generateHandle() local 1348 result = rng.nextLong(); in generateHandle()
|