/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSUtils.java | 29 public static void genRandom(long seed, int factor, int offset, float array[]) { in genRandom() argument 30 Random r = new Random(seed); in genRandom() 36 public static void genRandom(long seed, int factor, int offset, float array[], in genRandom() argument 38 Random r = new Random(seed); in genRandom() 49 public static void genRandom(long seed, int max, int factor, int offset, int array[]) { in genRandom() argument 50 Random r = new Random(seed); in genRandom() 56 public static void genRandom(long seed, int factor, int offset, int array[], in genRandom() argument 58 Random r = new Random(seed); in genRandom() 69 public static void genRandom(long seed, int max, int factor, int offset, int array[], in genRandom() argument 71 Random r = new Random(seed); in genRandom()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | CalendarTest.java | 140 String account, int seed) { in getNewCalendarValues() argument 141 String seedString = Long.toString(seed); in getNewCalendarValues() 155 values.put(Calendars.CALENDAR_ACCESS_LEVEL, (seed % 8) * 100); in getNewCalendarValues() 157 values.put(Calendars.CALENDAR_COLOR, 0xff000000 + seed); in getNewCalendarValues() 158 values.put(Calendars.VISIBLE, seed % 2); in getNewCalendarValues() 161 values.put(Calendars.CALENDAR_TIME_ZONE, TIME_ZONES[seed % TIME_ZONES.length]); in getNewCalendarValues() 162 values.put(Calendars.CAN_ORGANIZER_RESPOND, seed % 2); in getNewCalendarValues() 163 values.put(Calendars.CAN_MODIFY_TIME_ZONE, seed % 2); in getNewCalendarValues() 183 ContentValues original, int seed) { in getUpdateCalendarValuesWithOriginal() argument 185 String seedString = Long.toString(seed); in getUpdateCalendarValuesWithOriginal() [all …]
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSUtils.java | 48 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument 50 Random r = new Random(seed); in genRandomDoubles() 99 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument 101 Random r = new Random(seed); in genRandomFloats() 150 public static void genRandomInts(long seed, int min, int max, int array[]) { in genRandomInts() argument 151 Random r = new Random(seed); in genRandomInts() 164 public static void genRandomLongs(long seed, long array[], boolean signed, int numberOfBits) { in genRandomLongs() argument 167 Random r = new Random(seed); in genRandomLongs() 187 public static void genRandomInts(long seed, int array[], boolean signed, int numberOfBits) { in genRandomInts() argument 189 genRandomLongs(seed, longs, signed, numberOfBits); in genRandomInts() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RSUtils.java | 70 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument 72 Random r = new Random(seed); in genRandomDoubles() 121 public static void genRandomFloats(long seed, float min, float max, float array[], in genRandomFloats() argument 123 Random r = new Random(seed); in genRandomFloats() 168 public static void genRandomFloat16s(long seed, double minDoubleValue, double maxDoubleValue, in genRandomFloat16s() argument 218 Random r = new Random(seed); in genRandomFloat16s() 255 public static void genRandomInts(long seed, int min, int max, int array[]) { in genRandomInts() argument 256 Random r = new Random(seed); in genRandomInts() 269 public static void genRandomLongs(long seed, long array[], boolean signed, int numberOfBits) { in genRandomLongs() argument 272 Random r = new Random(seed); in genRandomLongs() [all …]
|
D | RSBaseCompute.java | 112 int size, long seed, boolean includeExtremes) { in createRandomAllocation() argument 121 RSUtils.genRandomDoubles(seed, min, max, inArray, includeExtremes); in createRandomAllocation() 128 RSUtils.genRandomFloats(seed, min, max, inArray, includeExtremes); in createRandomAllocation() 134 RSUtils.genRandomFloat16s(seed, min, max, inArray, includeExtremes); in createRandomAllocation() 138 RSUtils.genRandomLongs(seed, inArray, true, 63); in createRandomAllocation() 142 RSUtils.genRandomLongs(seed, inArray, false, 64); in createRandomAllocation() 146 RSUtils.genRandomInts(seed, inArray, true, 31); in createRandomAllocation() 150 RSUtils.genRandomInts(seed, inArray, false, 32); in createRandomAllocation() 154 RSUtils.genRandomShorts(seed, inArray, true, 15); in createRandomAllocation() 158 RSUtils.genRandomShorts(seed, inArray, false, 16); in createRandomAllocation() [all …]
|
D | RsPackColorTo8888Test.java | 68 private void float3input(long seed, int testId) { in float3input() argument 74 RSUtils.genRandomFloats(seed, 0.0f, 1.0f, inArray, false); in float3input() 95 private void float4input(long seed, int testId) { in float4input() argument 101 RSUtils.genRandomFloats(seed, 0.0f, 1.0f, inArray, false); in float4input()
|
D | ReduceTest.java | 129 private static byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument 131 (new Random(seed)).nextBytes(array); in createInputArrayByte() 135 private static short[] createInputArrayHalf(int len, int seed) { in createInputArrayHalf() argument 137 RSUtils.genRandomFloat16s(seed, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, array, in createInputArrayHalf() 142 private static float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument 143 Random rand = new Random(seed); in createInputArrayFloat() 150 private static int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument 151 Random rand = new Random(seed); in createInputArrayInt() 158 private static int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument 159 Random rand = new Random(seed); in createInputArrayInt()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRandomTest.java | 198 long seed = System.currentTimeMillis(); in testPlayerRandomAction() local 199 Log.v(TAG, "seed = " + seed); in testPlayerRandomAction() 200 Random r = new Random(seed); in testPlayerRandomAction() 267 long seed = System.currentTimeMillis(); in testRecorderRandomAction() local 268 Log.v(TAG, "seed = " + seed); in testRecorderRandomAction() 269 Random r = new Random(seed); in testRecorderRandomAction()
|
D | MediaPlayerFlakyNetworkTest.java | 108 private void doPlayStreams(int seed, float probability) throws Throwable { in doPlayStreams() argument 115 Random random = new Random(seed); in doPlayStreams() 116 createHttpServer(seed, probability); in doPlayStreams() 228 private void createHttpServer(int seed, final float probability) throws Throwable { in createHttpServer() argument 229 final Random random = new Random(seed); in createHttpServer()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CountingSecureRandom.java | 60 public synchronized void setSeed(byte[] seed) { in setSeed() argument 66 public void setSeed(long seed) { in setSeed() argument
|
D | ECCurves.java | 113 byte[] seed) { in createNistPCurveSpec() argument 115 EllipticCurve curve = new EllipticCurve(field, a, b, seed); in createNistPCurveSpec()
|
D | TestUtils.java | 572 static byte[] generateLargeKatMsg(byte[] seed, int msgSizeBytes) throws Exception { in generateLargeKatMsg() argument 578 seed = digest.digest(seed); in generateLargeKatMsg() 579 int chunkSize = Math.min(seed.length, resultRemaining); in generateLargeKatMsg() 580 System.arraycopy(seed, 0, result, resultOffset, chunkSize); in generateLargeKatMsg()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Common.java | 133 long seed = 0; in order() local 134 Random generator = new Random(seed); in order()
|
/cts/tests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 169 template <typename T> void randomInitArray(T* array, int len, unsigned int seed) in randomInitArray() argument 171 srand(seed); in randomInitArray()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 559 TestDataGenerator(long seed) { in TestDataGenerator() argument 560 mRandom = new Random(seed); in TestDataGenerator()
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 33456 long seed 36407 private final byte[] seed 76732 private transient int[] seed 98005 private byte[] seed 99447 private byte[] seed 99572 private byte[] seed 99636 byte[] seed 99671 byte[] seed
|