/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | UT_reduce.java | 118 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument 120 (new Random(seed)).nextBytes(array); in createInputArrayByte() 124 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument 125 Random rand = new Random(seed); in createInputArrayFloat() 132 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument 133 Random rand = new Random(seed); in createInputArrayInt() 140 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument 141 Random rand = new Random(seed); in createInputArrayInt() 249 private boolean addint1D_array(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint1D_array() argument 250 final int[] input = createInputArrayInt(size[0], seed, Integer.MAX_VALUE / size[0]); in addint1D_array() [all …]
|
D | UT_reduce_backward.java | 39 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument 41 (new Random(seed)).nextBytes(array); in createInputArrayByte() 45 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument 46 Random rand = new Random(seed); in createInputArrayFloat() 53 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument 54 Random rand = new Random(seed); in createInputArrayInt() 61 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument 62 Random rand = new Random(seed); in createInputArrayInt()
|
/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);
|
D | e_pv_amrwbdec.h | 106 int16 seed; /* random memory for frame erasure */ member
|
/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/base/tools/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/base/core/java/android/widget/ |
D | AdapterView.java | 1120 int seed = mSyncPosition; in findSyncPosition() local 1128 seed = Math.max(0, seed); in findSyncPosition() 1129 seed = Math.min(count - 1, seed); in findSyncPosition() 1136 int first = seed; in findSyncPosition() 1139 int last = seed; in findSyncPosition() 1158 rowId = adapter.getItemId(seed); in findSyncPosition() 1161 return seed; in findSyncPosition() 1175 seed = last; in findSyncPosition() 1181 seed = first; in findSyncPosition()
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_reduce.java | 39 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument 41 (new Random(seed)).nextBytes(array); in createInputArrayByte() 45 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument 46 Random rand = new Random(seed); in createInputArrayFloat() 53 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument 54 Random rand = new Random(seed); in createInputArrayInt() 61 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument 62 Random rand = new Random(seed); in createInputArrayInt()
|
D | UT_reduce_backward.java | 39 private byte[] createInputArrayByte(int len, int seed) { in createInputArrayByte() argument 41 (new Random(seed)).nextBytes(array); in createInputArrayByte() 45 private float[] createInputArrayFloat(int len, int seed) { in createInputArrayFloat() argument 46 Random rand = new Random(seed); in createInputArrayFloat() 53 private int[] createInputArrayInt(int len, int seed) { in createInputArrayInt() argument 54 Random rand = new Random(seed); in createInputArrayInt() 61 private int[] createInputArrayInt(int len, int seed, int eltRange) { in createInputArrayInt() argument 62 Random rand = new Random(seed); in createInputArrayInt()
|
/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/api/ |
D | GenerateTestFiles.cpp | 108 void writeJavaRandomCompatibleFloatAllocation(const string& dataType, const string& seed, 112 void writeJavaRandomCompatibleIntegerAllocation(const string& dataType, const string& seed, 315 const string seed = hashString(mJavaCheckMethodName + param.javaAllocName); in writeJavaInputAllocationDefinition() local 319 writeJavaRandomCompatibleFloatAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition() 323 writeJavaRandomCompatibleIntegerAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition() 329 << vectorSize << ", " << seed << ", " << param.minValue << ", " << param.maxValue in writeJavaInputAllocationDefinition() 336 << ", " << seed << ", false)"; in writeJavaInputAllocationDefinition() 342 const string& dataType, const string& seed, char vectorSize, in writeJavaRandomCompatibleFloatAllocation() argument 345 << "(mRS, Element.DataType." << dataType << ", " << vectorSize << ", " << seed << ", "; in writeJavaRandomCompatibleFloatAllocation() 374 const string& dataType, const string& seed, char vectorSize, in writeJavaRandomCompatibleIntegerAllocation() argument [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | PrefState.java | 60 long seed = Long.parseLong(key.substring(CAT_KEY_PREFIX.length())); in getCats() local 61 Cat cat = new Cat(mContext, seed); in getCats()
|
D | Cat.java | 45 private synchronized Random notSoRandom(long seed) { in notSoRandom() argument 48 mNotSoRandom.setSeed(seed); in notSoRandom() 141 public Cat(Context context, long seed) { in Cat() argument 143 mSeed = seed; in Cat() 148 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 | LomoishFilter.java | 170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters() local 171 mProgram.setHostValue("seed", seed); in initParameters()
|
D | DocumentaryFilter.java | 158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() }; in initParameters() local 159 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/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()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 289 /*package*/ final void makeStringBlocks(StringBlock[] seed) { in makeStringBlocks() argument 290 final int seedNum = (seed != null) ? seed.length : 0; in makeStringBlocks() 297 mStringBlocks[i] = seed[i]; in makeStringBlocks()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/ |
D | DiffUtilActivity.java | 134 private List<String> createRandomCheeseList(List<String> seed, int iterations) { in createRandomCheeseList() argument 136 output.addAll(seed); in createRandomCheeseList()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 206 public static void randomSeed(long seed) { in randomSeed() argument 207 sRandom.setSeed(seed); in randomSeed()
|
/frameworks/compile/mclinker/lib/Support/Windows/ |
D | System.inc | 44 /// srandom - set the initial seed value for future calls to random().
|