Home
last modified time | relevance | path

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

123

/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_reduce.java143 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument
145 (new Random(seed)).nextBytes(array); in createInputArrayByte()
158 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument
159 return createInputArrayFloat(len, new Random(seed)); in createInputArrayFloat()
162 private float[] createInputArrayFloatWithInfs(int len, int infs, int seed) { in createInputArrayFloatWithInfs() argument
163 Random rand = new Random(seed); in createInputArrayFloatWithInfs()
170 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument
171 Random rand = new Random(seed); in createInputArrayInt()
178 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument
179 Random rand = new Random(seed); in createInputArrayInt()
[all …]
DUT_reduce_backward.java45 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument
47 (new Random(seed)).nextBytes(array); in createInputArrayByte()
51 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument
52 Random rand = new Random(seed); in createInputArrayFloat()
59 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument
60 Random rand = new Random(seed); in createInputArrayInt()
67 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument
68 Random rand = new Random(seed); in createInputArrayInt()
DUT_reflection3264.java39 private final long seed = 20170609; // arbitrary value field in UT_reflection3264
56 Random r = new Random(seed); in run()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_reduce.java145 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument
147 (new Random(seed)).nextBytes(array); in createInputArrayByte()
160 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument
161 return createInputArrayFloat(len, new Random(seed)); in createInputArrayFloat()
164 private float[] createInputArrayFloatWithInfs(int len, int infs, int seed) { in createInputArrayFloatWithInfs() argument
165 Random rand = new Random(seed); in createInputArrayFloatWithInfs()
172 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument
173 Random rand = new Random(seed); in createInputArrayInt()
180 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument
181 Random rand = new Random(seed); in createInputArrayInt()
[all …]
DUT_reduce_backward.java47 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument
49 (new Random(seed)).nextBytes(array); in createInputArrayByte()
53 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument
54 Random rand = new Random(seed); in createInputArrayFloat()
61 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument
62 Random rand = new Random(seed); in createInputArrayInt()
69 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument
70 Random rand = new Random(seed); in createInputArrayInt()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dnoise_gen_amrwb.cpp112 int16 noise_gen_amrwb(int16 * seed) in noise_gen_amrwb() argument
115 *seed = (int16)fxp_mac_16by16(*seed, 31821, 13849L); in noise_gen_amrwb()
117 return (*seed); in noise_gen_amrwb()
Dlagconceal.cpp143 int16 * seed, in lagconceal() argument
222 D = noise_gen_amrwb(seed); /* D={-1, ...,1} */ in lagconceal()
307 D = noise_gen_amrwb(seed); /* D={-1,.., 1} */ in lagconceal()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Drandom.c27 Word16 Random(Word16 * seed) in Random() argument
30 *seed = (Word16)(L_add((L_mult(*seed, 31821) >> 1), 13849L)); in Random()
31 return (*seed); in Random()
/frameworks/ml/nn/common/random/
Dguarded_philox_random.cc21 void GuardedPhiloxRandom::Init(int64 seed, int64 seed2) { in Init() argument
23 if (seed == 0 && seed2 == 0) { in Init()
25 seed = random::New64(); in Init()
29 generator_ = random::PhiloxRandom(seed, seed2); in Init()
Dphilox_random.h121 explicit PhiloxRandom(uint64 seed) { in PhiloxRandom() argument
122 key_[0] = static_cast<uint32>(seed); in PhiloxRandom()
123 key_[1] = static_cast<uint32>(seed >> 32); in PhiloxRandom()
/frameworks/ml/nn/common/operations/
DLSHProjection.cpp87 int runningSignBit(const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, float seed) { in runningSignBit() argument
93 const size_t seed_size = sizeof(seed); in runningSignBit()
99 memcpy(key.get(), &seed, seed_size); in runningSignBit()
124 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection() local
125 int bit = runningSignBit<T>(input, weight, static_cast<float>(seed)); in SparseLshProjection()
143 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in DenseLshProjection() local
144 int bit = runningSignBit<T>(input, weight, static_cast<float>(seed)); in DenseLshProjection()
174 const RunTimeOperandInfo* weight, float seed);
176 const RunTimeOperandInfo* weight, float seed);
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DDynamicIdMap.java34 public DynamicIdMap(int seed) { in DynamicIdMap() argument
35 mDynamicSeed = seed; in DynamicIdMap()
38 public void reset(int seed) { in reset() argument
41 mDynamicSeed = seed; in reset()
/frameworks/base/cmds/statsd/src/
Dhash.cpp49 uint32_t Hash32(const char *data, size_t n, uint32_t seed) { in Hash32() argument
56 uint32_t h = static_cast<uint32_t>(seed ^ n); in Hash32()
91 uint64_t Hash64(const char* data, size_t n, uint64_t seed) { in Hash64() argument
95 uint64_t h = seed ^ (n * m); in Hash64()
Dhash.h25 extern uint32_t Hash32(const char *data, size_t n, uint32_t seed);
26 extern uint64_t Hash64(const char* data, size_t n, uint64_t seed);
/frameworks/base/core/java/android/widget/
DAdapterView.java1146 int seed = mSyncPosition; in findSyncPosition() local
1154 seed = Math.max(0, seed); in findSyncPosition()
1155 seed = Math.min(count - 1, seed); in findSyncPosition()
1162 int first = seed; in findSyncPosition()
1165 int last = seed; in findSyncPosition()
1184 rowId = adapter.getItemId(seed); in findSyncPosition()
1187 return seed; in findSyncPosition()
1201 seed = last; in findSyncPosition()
1207 seed = first; in findSyncPosition()
/frameworks/av/media/libaaudio/tests/
Dtest_aaudio_monkey.cpp245 long int seed = (long int)getNanoseconds(); // different every time by default in main() local
255 seed = atol(&arg[2]); in main()
273 srand48(seed); in main()
274 printf("seed = %ld, nextRandomDouble() = %f\n", seed, nextRandomDouble()); in main()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResults.java100 private static ScanDetail[] generateNativeResults(boolean needIE, int seed, int... freqs) { in generateNativeResults() argument
104 Random r = new Random(seed + WifiTestUtil.getTestMethod().hashCode()); in generateNativeResults()
132 public static ScanDetail[] generateNativeResults(int seed, int... freqs) { in generateNativeResults() argument
133 return generateNativeResults(true, seed, freqs); in generateNativeResults()
/frameworks/rs/script_api/
DGenerateTestFiles.cpp108 void writeJavaRandomCompatibleFloatAllocation(const string& dataType, const string& seed,
112 void writeJavaRandomCompatibleIntegerAllocation(const string& dataType, const string& seed,
322 const string seed = hashString(mJavaCheckMethodName + param.javaAllocName); in writeJavaInputAllocationDefinition() local
326 writeJavaRandomCompatibleFloatAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
330 writeJavaRandomCompatibleIntegerAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
336 << vectorSize << ", " << seed << ", " << param.minValue << ", " << param.maxValue in writeJavaInputAllocationDefinition()
343 << ", " << seed << ", false)"; in writeJavaInputAllocationDefinition()
349 const string& dataType, const string& seed, char vectorSize, in writeJavaRandomCompatibleFloatAllocation() argument
352 << "(mRS, Element.DataType." << dataType << ", " << vectorSize << ", " << seed << ", "; in writeJavaRandomCompatibleFloatAllocation()
381 const string& dataType, const string& seed, char vectorSize, in writeJavaRandomCompatibleIntegerAllocation() argument
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DBlackWhiteFilter.java124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters() local
125 mProgram.setHostValue("seed", seed); in updateParameters()
DLomoishFilter.java170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters() local
171 mProgram.setHostValue("seed", seed); in initParameters()
DDocumentaryFilter.java158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters() local
159 mProgram.setHostValue("seed", seed); in initParameters()
DGrainFilter.java127 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters() local
128 mNoiseProgram.setHostValue("seed", seed); in updateParameters()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutMultithreadPerfTest.java59 final int seed = i + 1; in startBackgroundThread() local
64 util.resetRandom(seed); in startBackgroundThread()
DTextPerfUtils.java53 public void resetRandom(long seed) { in resetRandom() argument
54 mRandom = new Random(seed); in resetRandom()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextLongTextPerfTest.java71 final long seed = 1234567890; in setupEditText() local
72 Random r = new Random(seed); in setupEditText()

123