Home
last modified time | relevance | path

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

12

/frameworks/ml/nn/common/random/
Drandom.cc37 static std::mt19937_64* rng = InitRngWithRandomSeed(); in New64() local
40 return (*rng)(); in New64()
44 static std::mt19937_64 rng = InitRngWithDefaultSeed(); in New64DefaultSeed() local
47 return rng(); in New64DefaultSeed()
/frameworks/base/keystore/java/android/security/keystore/
DKeyStoreCryptoOperationUtils.java98 static byte[] getRandomBytesToMixIntoKeystoreRng(SecureRandom rng, int sizeBytes) { in getRandomBytesToMixIntoKeystoreRng() argument
102 if (rng == null) { in getRandomBytesToMixIntoKeystoreRng()
103 rng = getRng(); in getRandomBytesToMixIntoKeystoreRng()
106 rng.nextBytes(result); in getRandomBytesToMixIntoKeystoreRng()
/frameworks/ml/nn/runtime/test/specs/V1_0/
Drelu_quant8_2.mod.py32 rng = d0 * d1 * d2 * d3 variable
33 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
35 output_values = (lambda r = rng: [x % 256 if x % 256 > 128 else 128 for x in range(r)])()
Drelu_float_2.mod.py32 rng = d0 * d1 * d2 * d3 variable
33 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 for x in range(r)])()
35 output_values = (lambda r = rng: [x * (x % 2) for x in range(r)])()
Drelu1_quant8_2.mod.py32 rng = d0 * d1 * d2 * d3 variable
33 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
Drelu6_quant8_2.mod.py32 rng = d0 * d1 * d2 * d3 variable
33 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
Drelu1_float_2.mod.py32 rng = d0 * d1 * d2 * d3 variable
33 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
Drelu6_float_2.mod.py32 rng = d0 * d1 * d2 * d3 variable
33 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
Dlogistic_float_2.mod.py34 rng = d0 * d1 * d2 * d3 variable
35 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 % 512 for x in range(r)])()
Dlogistic_quant8_2.mod.py34 rng = d0 * d1 * d2 * d3 variable
35 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
/frameworks/ml/nn/runtime/test/specs/V1_1/
Drelu_float_2_relaxed.mod.py33 rng = d0 * d1 * d2 * d3 variable
34 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 for x in range(r)])()
36 output_values = (lambda r = rng: [x * (x % 2) for x in range(r)])()
Drelu1_float_2_relaxed.mod.py33 rng = d0 * d1 * d2 * d3 variable
34 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
Drelu6_float_2_relaxed.mod.py33 rng = d0 * d1 * d2 * d3 variable
34 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
Dlogistic_float_2_relaxed.mod.py35 rng = d0 * d1 * d2 * d3 variable
36 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 % 512 for x in range(r)])()
/frameworks/ml/nn/runtime/test/specs/V1_2/
Drelu_v1_2.mod.py41 rng = d0 * d1 * d2 * d3 variable
42 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 for x in range(r)])()
44 output_values = (lambda r = rng: [x * (x % 2) for x in range(r)])()
Drelu1_v1_2.mod.py41 rng = d0 * d1 * d2 * d3 variable
42 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
Dlogistic_v1_2.mod.py49 rng = d0 * d1 * d2 * d3 variable
50 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 % 512 for x in range(r)])()
Drelu6_v1_2.mod.py41 rng = d0 * d1 * d2 * d3 variable
42 input_values = (lambda r = rng: [x * (x % 2 - .5) * .002 for x in range(r)])()
/frameworks/ml/nn/runtime/test/specs/V1_3/
Drelu_quant8_signed.mod.py60 rng = d0 * d1 * d2 * d3 variable
61 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
63 output_values = (lambda r = rng: [x % 256 if x % 256 > 128 else 128 for x in range(r)])()
Drelu6_quant8_signed.mod.py56 rng = d0 * d1 * d2 * d3 variable
57 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
Drelu1_quant8_signed.mod.py58 rng = d0 * d1 * d2 * d3 variable
59 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
Dlogistic_quant8_signed.mod.py54 rng = d0 * d1 * d2 * d3 variable
55 input_values = (lambda r=rng: [x % 256 for x in range(r)])()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java314 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/core/java/android/content/pm/
DVerifierDeviceIdentity.java92 static VerifierDeviceIdentity generate(Random rng) { in generate() argument
93 long identity = rng.nextLong(); in generate()
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java322 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()

12