/frameworks/av/media/module/codecs/amrwb/dec/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()
|
/frameworks/av/media/module/codecs/amrwb/enc/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/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()
|
/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()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioCommonTypes.h | 34 static size_t hash_combine(size_t seed, size_t v) { in hash_combine() argument 35 return std::hash<size_t>{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in hash_combine() 50 const size_t seed = std::hash<Tag>{}(acl.getTag()); 53 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::none>())); 55 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::invalid>())); 57 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::indexMask>())); 59 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::layoutMask>())); 61 return hash_combine(seed, std::hash<int32_t>{}(acl.get<Tag::voiceMask>())); 63 return seed;
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
D | XmlSerializePerfTest.java | 109 private void internalTimeSerializer(Constructor<? extends XmlSerializer> ctor, int seed) in internalTimeSerializer() argument 113 serializeRandomXml(ctor, seed); in internalTimeSerializer() 119 public void timeKxml(String datasetAsString, int seed) throws Exception { in timeKxml() argument 121 internalTimeSerializer(mKxmlConstructor, seed); in timeKxml() 126 public void timeFast(String datasetAsString, int seed) throws Exception { in timeFast() argument 128 internalTimeSerializer(mFastConstructor, seed); in timeFast()
|
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbMidiPacketConverterTest.java | 174 for (long seed = 1001; seed < 5000; seed += 777) { in testDecoderLargePacketDoesNotCrash() 177 Random rnd = new Random(seed); in testDecoderLargePacketDoesNotCrash() 356 for (long seed = 234; seed < 4000; seed += 666) { in testEncoderLargePacketDoesNotCrash() 357 Random rnd = new Random(seed); in testEncoderLargePacketDoesNotCrash() 374 for (long seed = 45; seed < 3000; seed += 300) { in testEncodeDecode() 375 Random rnd = new Random(seed); in testEncodeDecode()
|
/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/native/libs/shaders/include/shaders/ |
D | shaders.h | 82 static size_t HashCombine(size_t seed, size_t val) { in HashCombine() 83 return seed ^ (val + 0x9e3779b9 + (seed << 6) + (seed >> 2)); in HashCombine()
|
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/ |
D | ColorScheme.java | 65 public ColorScheme(@ColorInt int seed, boolean isDark, Style style, double contrastLevel) { in ColorScheme() argument 66 this.mSeed = seed; in ColorScheme() 70 mProposedSeedHct = Hct.fromInt(seed); in ColorScheme() 72 seed == Color.TRANSPARENT in ColorScheme() 77 : seed)); in ColorScheme() 101 public ColorScheme(@ColorInt int seed, boolean darkTheme) { in ColorScheme() argument 102 this(seed, darkTheme, Style.TONAL_SPOT); in ColorScheme() 105 public ColorScheme(@ColorInt int seed, boolean darkTheme, Style style) { in ColorScheme() argument 106 this(seed, darkTheme, style, 0.0); in ColorScheme() 283 boolean existingSeedNearby = seeds.stream().anyMatch(seed -> { in getSeedColors() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AdapterView.java | 1147 int seed = mSyncPosition; in findSyncPosition() local 1155 seed = Math.max(0, seed); in findSyncPosition() 1156 seed = Math.min(count - 1, seed); in findSyncPosition() 1163 int first = seed; in findSyncPosition() 1166 int last = seed; in findSyncPosition() 1185 rowId = adapter.getItemId(seed); in findSyncPosition() 1188 return seed; in findSyncPosition() 1202 seed = last; in findSyncPosition() 1208 seed = first; in findSyncPosition()
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/include/timestatsproto/ |
D | TimeStatsHelper.h | 109 static size_t HashCombine(size_t seed, size_t val) { in HashCombine() argument 110 return seed ^ (val + 0x9e3779b9 + (seed << 6) + (seed >> 2)); in HashCombine()
|
/frameworks/base/services/core/java/com/android/server/powerstats/ |
D | IntervalRandomNoiseGenerator.java | 54 void reseed(long seed) { in reseed() argument 55 mDistribution.reseedRandomGenerator(seed); in reseed()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_aaudio_monkey.cpp | 274 long int seed = (long int)getNanoseconds(); // different every time by default in main() local 284 seed = atol(&arg[2]); in main() 302 srand48(seed); in main() 303 printf("seed = %ld, nextRandomDouble() = %f\n", seed, nextRandomDouble()); in main()
|
/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/services/tests/mockingservicestests/src/com/android/server/location/fudger/ |
D | LocationFudgerTest.java | 60 long seed = System.currentTimeMillis(); in setUp() local 61 Log.i(TAG, "location random seed: " + seed); in setUp() 63 mRandom = new Random(seed); in setUp()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | PrefState.java | 62 long seed = Long.parseLong(key.substring(CAT_KEY_PREFIX.length())); in getCats() local 63 Cat cat = new Cat(mContext, seed); in getCats()
|
/frameworks/rs/toolkit/test/ |
D | BufferUtils.kt | 298 fun randomByteArray(seed: Long, sizeX: Int, sizeY: Int, elementSize: Int): ByteArray { in indexOfVector() 299 val r = Random(seed) in indexOfVector() 309 seed: Long, in randomFloatArray() 315 val r = Random(seed) in randomFloatArray() 322 fun randomCube(seed: Long, cubeSize: Dimension): ByteArray { in randomCube() 323 val r = Random(seed) in randomCube() 352 fun randomYuvArray(seed: Long, sizeX: Int, sizeY: Int, format: YuvFormat): ByteArray { in randomYuvArray() 367 return randomByteArray(seed, totalSize, 1, 1) in randomYuvArray()
|
/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()
|
/frameworks/base/packages/FusedLocation/test/src/com/android/location/gnss/tests/ |
D | GnssOverlayLocationServiceTest.java | 70 long seed = System.currentTimeMillis(); in setUp() local 71 Log.i(TAG, "location seed: " + seed); in setUp() 74 mRandom = new Random(seed); in setUp()
|