Home
last modified time | relevance | path

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

12

/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_reduce.java118 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 …]
DUT_reduce_backward.java39 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/
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()
Dpvamrwbdecoder_acelp.h76 int16 * seed,
312 int16 noise_gen_amrwb(int16 * seed);
De_pv_amrwbdec.h106 int16 seed; /* random memory for frame erasure */ member
/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/base/tools/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/core/java/android/widget/
DAdapterView.java1120 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/
DUT_reduce.java39 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()
DUT_reduce_backward.java39 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/
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/api/
DGenerateTestFiles.cpp108 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/
DPrefState.java60 long seed = Long.parseLong(key.substring(CAT_KEY_PREFIX.length())); in getCats() local
61 Cat cat = new Cat(mContext, seed); in getCats()
DCat.java45 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/
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/services/net/java/android/net/util/
DIpUtils.java46 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/
DhwcStress.cpp203 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/
DAssetManager.java289 /*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/
DDiffUtilActivity.java134 private List<String> createRandomCheeseList(List<String> seed, int iterations) { in createRandomCheeseList() argument
136 output.addAll(seed); in createRandomCheeseList()
/frameworks/base/core/java/android/util/
DMathUtils.java206 public static void randomSeed(long seed) { in randomSeed() argument
207 sRandom.setSeed(seed); in randomSeed()
/frameworks/compile/mclinker/lib/Support/Windows/
DSystem.inc44 /// srandom - set the initial seed value for future calls to random().

12