/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_reduce.java | 143 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 …]
|
D | UT_reduce_backward.java | 45 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()
|
D | UT_reflection3264.java | 39 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/ |
D | UT_reduce.java | 145 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 …]
|
D | UT_reduce_backward.java | 47 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()
|
D | UT_reflection3264.java | 41 private final long seed = 20170609; // arbitrary value field in UT_reflection3264 58 Random r = new Random(seed); in run()
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | noise_gen_amrwb.cpp | 112 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()
|
D | lagconceal.cpp | 143 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()
|
D | pvamrwbdecoder_acelp.h | 76 int16 * seed, 312 int16 noise_gen_amrwb(int16 * seed);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | random.c | 27 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/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | DynamicIdMap.java | 34 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/ml/nn/common/operations/ |
D | LSHProjection.cpp | 85 const RunTimeOperandInfo* weight, float seed) { in running_sign_bit() argument 97 memcpy(key.get(), &seed, seed_size); in running_sign_bit() 121 float seed = reinterpret_cast<float*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection() local 122 int bit = running_sign_bit(input, weight, seed); in SparseLshProjection() 136 float seed = reinterpret_cast<float*>(hash->buffer)[i * num_bits + j]; in DenseLshProjection() local 137 int bit = running_sign_bit(input, weight, seed); in DenseLshProjection()
|
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 1133 int seed = mSyncPosition; in findSyncPosition() local 1141 seed = Math.max(0, seed); in findSyncPosition() 1142 seed = Math.min(count - 1, seed); in findSyncPosition() 1149 int first = seed; in findSyncPosition() 1152 int last = seed; in findSyncPosition() 1171 rowId = adapter.getItemId(seed); in findSyncPosition() 1174 return seed; in findSyncPosition() 1188 seed = last; in findSyncPosition() 1194 seed = first; in findSyncPosition()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanResults.java | 100 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/ |
D | GenerateTestFiles.cpp | 108 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/packages/EasterEgg/src/com/android/egg/neko/ |
D | PrefState.java | 58 long seed = Long.parseLong(key.substring(CAT_KEY_PREFIX.length())); in getCats() local 59 Cat cat = new Cat(mContext, seed); in getCats()
|
D | Cat.java | 47 private synchronized Random notSoRandom(long seed) { in notSoRandom() argument 50 mNotSoRandom.setSeed(seed); in notSoRandom() 143 public Cat(Context context, long seed) { in Cat() argument 145 mSeed = seed; in Cat() 150 final Random nsr = notSoRandom(seed); in Cat()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | BlackWhiteFilter.java | 124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters() local 125 mProgram.setHostValue("seed", seed); in updateParameters()
|
D | DocumentaryFilter.java | 158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters() local 159 mProgram.setHostValue("seed", seed); in initParameters()
|
D | LomoishFilter.java | 170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters() local 171 mProgram.setHostValue("seed", seed); in initParameters()
|
D | GrainFilter.java | 127 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in updateParameters() local 128 mNoiseProgram.setHostValue("seed", seed); in updateParameters()
|
/frameworks/base/services/net/java/android/net/util/ |
D | IpUtils.java | 46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { in checksum() argument 47 int sum = seed; in checksum()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextLongTextPerfTest.java | 78 final long seed = 1234567890; in setupEditText() local 79 Random r = new Random(seed); in setupEditText()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | DynamicLayoutPerfTest.java | 93 final long seed = 1234567890; in getText() local 94 final Random r = new Random(seed); in getText()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcStress.cpp | 203 void initFrames(unsigned int seed); 551 void initFrames(unsigned int seed) in initFrames() argument 558 if (verbose) { testPrintI("initFrames seed: %u", seed); } in initFrames() 559 srand48(seed); in initFrames()
|