Home
last modified time | relevance | path

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

/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java88 IntPropertyTest(Random seed) { in IntPropertyTest() argument
89 mValue = seed.nextInt(); in IntPropertyTest()
120 NamedPropertyTest(Random seed) { in NamedPropertyTest() argument
121 mValue = seed.nextInt(); in NamedPropertyTest()
169 InferredPropertyNameTest(Random seed) { in InferredPropertyNameTest() argument
170 mValueA = seed.nextInt(); in InferredPropertyNameTest()
171 mValueB = seed.nextInt(); in InferredPropertyNameTest()
172 mValueC = seed.nextInt(); in InferredPropertyNameTest()
205 InferredBooleanNameTest(Random seed) { in InferredBooleanNameTest() argument
206 mValueA = seed.nextBoolean(); in InferredBooleanNameTest()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSUtils.java29 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/searchui/src/android/searchuiservice/cts/
DSearchUiUtils.java60 for (int seed = 0; seed < num; seed++) { in generateSearchTargetList()
61 targets.add(generateSearchTarget(seed, in generateSearchTargetList()
73 static SearchTarget generateSearchTarget(int seed, in generateSearchTarget() argument
79 ….Builder builder = new SearchTarget.Builder(RESULT_CORPUS1, LAYOUT_TYPE_HERO, String.valueOf(seed)) in generateSearchTarget()
84 builder.setSearchAction(new SearchAction.Builder("id" + seed, "title" + seed) in generateSearchTarget()
90 builder.setShortcutInfo(new ShortcutInfo.Builder(getContext(), "id" + seed) in generateSearchTarget()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java141 String account, int seed) { in getNewCalendarValues() argument
142 String seedString = Long.toString(seed); in getNewCalendarValues()
156 values.put(Calendars.CALENDAR_ACCESS_LEVEL, (seed % 8) * 100); in getNewCalendarValues()
158 values.put(Calendars.CALENDAR_COLOR, 0xff000000 + seed); in getNewCalendarValues()
159 values.put(Calendars.VISIBLE, seed % 2); in getNewCalendarValues()
162 values.put(Calendars.CALENDAR_TIME_ZONE, TIME_ZONES[seed % TIME_ZONES.length]); in getNewCalendarValues()
163 values.put(Calendars.CAN_ORGANIZER_RESPOND, seed % 2); in getNewCalendarValues()
164 values.put(Calendars.CAN_MODIFY_TIME_ZONE, seed % 2); in getNewCalendarValues()
184 ContentValues original, int seed) { in getUpdateCalendarValuesWithOriginal() argument
186 String seedString = Long.toString(seed); in getUpdateCalendarValuesWithOriginal()
[all …]
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java48 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/
DRSUtils.java70 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 …]
DRSBaseCompute.java112 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 …]
DRsPackColorTo8888Test.java74 private void float3input(long seed, int testId) { in float3input() argument
80 RSUtils.genRandomFloats(seed, 0.0f, 1.0f, inArray, false); in float3input()
104 private void float4input(long seed, int testId) { in float4input() argument
110 RSUtils.genRandomFloats(seed, 0.0f, 1.0f, inArray, false); in float4input()
DReduceTest.java135 private static byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument
137 (new Random(seed)).nextBytes(array); in createInputArrayByte()
141 private static short[] createInputArrayHalf(int len, int seed) { in createInputArrayHalf() argument
143 RSUtils.genRandomFloat16s(seed, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, array, in createInputArrayHalf()
148 private static float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument
149 Random rand = new Random(seed); in createInputArrayFloat()
156 private static int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument
157 Random rand = new Random(seed); in createInputArrayInt()
164 private static int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument
165 Random rand = new Random(seed); in createInputArrayInt()
DDebugContext.java110 int size, Function<RenderScript, Type.Builder> TB, long seed) { in SetupAllocationCopyTests() argument
118 RN = new Random(seed); in SetupAllocationCopyTests()
/cts/tests/tests/media/src/android/media/cts/
DMediaRandomTest.java213 long seed = System.currentTimeMillis(); in testPlayerRandomAction() local
214 Log.v(TAG, "seed = " + seed); in testPlayerRandomAction()
215 Random r = new Random(seed); in testPlayerRandomAction()
282 long seed = System.currentTimeMillis(); in testRecorderRandomAction() local
283 Log.v(TAG, "seed = " + seed); in testRecorderRandomAction()
284 Random r = new Random(seed); in testRecorderRandomAction()
DMediaPlayerFlakyNetworkTest.java115 private void doPlayStreams(int seed, float probability) throws Throwable { in doPlayStreams() argument
122 Random random = new Random(seed); in doPlayStreams()
123 createHttpServer(seed, probability); in doPlayStreams()
235 private void createHttpServer(int seed, final float probability) throws Throwable { in createHttpServer() argument
236 final Random random = new Random(seed); in createHttpServer()
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DPseudoRandom.h25 PseudoRandom(int64_t seed = 99887766)
26 : mSeed(seed) in mSeed() argument
/cts/tests/tests/keystore/src/android/keystore/cts/
DCountingSecureRandom.java60 public synchronized void setSeed(byte[] seed) { in setSeed() argument
66 public void setSeed(long seed) { in setSeed() argument
DECCurves.java113 byte[] seed) { in createNistPCurveSpec() argument
115 EllipticCurve curve = new EllipticCurve(field, a, b, seed); in createNistPCurveSpec()
DTestUtils.java650 static byte[] generateLargeKatMsg(byte[] seed, int msgSizeBytes) throws Exception { in generateLargeKatMsg() argument
656 seed = digest.digest(seed); in generateLargeKatMsg()
657 int chunkSize = Math.min(seed.length, resultRemaining); in generateLargeKatMsg()
658 System.arraycopy(seed, 0, result, resultOffset, chunkSize); in generateLargeKatMsg()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java77 final long seed = new Date().getTime(); in testSplit() local
79 Random r = new Random(seed); in testSplit()
111 throw new RuntimeException("Error, seed=" + seed, t); in testSplit()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationProviderBaseTest.java72 long seed = System.currentTimeMillis(); in setUp() local
73 Log.i(TAG, "location random seed: " + seed); in setUp()
75 mRandom = new Random(seed); in setUp()
DGeofencingTest.java66 long seed = System.currentTimeMillis(); in setUp() local
67 Log.i(TAG, "location random seed: " + seed); in setUp()
DLocationManagerFineTest.java134 long seed = System.currentTimeMillis(); in setUp() local
135 Log.i(TAG, "location random seed: " + seed); in setUp()
137 mRandom = new Random(seed); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCommon.java133 long seed = 0; in order() local
134 Random generator = new Random(seed); in order()
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java91 long seed = System.currentTimeMillis(); in setUp() local
92 Log.i(TAG, "location random seed: " + seed); in setUp()
94 mRandom = new Random(seed); in setUp()
/cts/tests/simplecpu/jni/
DCpuNativeJni.cpp169 template <typename T> void randomInitArray(T* array, int len, unsigned int seed) in randomInitArray() argument
171 srand(seed); in randomInitArray()
/cts/tests/sensor/src/android/hardware/cts/
DSensorManagerStaticTest.java559 TestDataGenerator(long seed) { in TestDataGenerator() argument
560 mRandom = new Random(seed); in TestDataGenerator()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java369 TestProxyFileDescriptorCallback(int size, String seed) { in TestProxyFileDescriptorCallback() argument
370 final byte[] seedBytes = seed.getBytes(); in TestProxyFileDescriptorCallback()