Searched refs:seed (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dnoise_gen_amrwb.cpp47 int16 * seed seed for the random ng
112 int16 noise_gen_amrwb(int16 * seed) argument
114 /* int16 seed = 21845; */
115 *seed = (int16)fxp_mac_16by16(*seed, 31821, 13849L);
117 return (*seed);
H A Dlagconceal.cpp51 int16 * seed,
143 int16 * seed,
222 D = noise_gen_amrwb(seed); /* D={-1, ...,1} */
307 D = noise_gen_amrwb(seed); /* D={-1,.., 1} */
138 lagconceal( int16 gain_hist[], int16 lag_hist[], int16 * T0, int16 * old_T0, int16 * seed, int16 unusable_frame ) argument
H A De_pv_amrwbdec.h106 int16 seed; /* random memory for frame erasure */ member in struct:__anon391
H A Dpvamrwbdecoder_acelp.h76 int16 * seed,
312 int16 noise_gen_amrwb(int16 * seed);
H A Dpvamrwbdecoder.cpp236 dec_state->seed = 21845; /* init random with 21845 */
721 code[i] = noise_gen_amrwb(&(st->seed)) >> 3;
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Drandom.c27 Word16 Random(Word16 * seed) argument
29 /* static Word16 seed = 21845; */
30 *seed = (Word16)(L_add((L_mult(*seed, 31821) >> 1), 13849L));
31 return (*seed);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java34 public DynamicIdMap(int seed) { argument
35 mDynamicSeed = seed;
38 public void reset(int seed) { argument
41 mDynamicSeed = seed;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DAdapterViewCompat.java1008 int seed = mSyncPosition;
1015 // Pin seed to reasonable values
1016 seed = Math.max(0, seed);
1017 seed = Math.min(count - 1, seed);
1024 int first = seed;
1027 int last = seed;
1046 rowId = adapter.getItemId(seed);
1049 return seed;
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DBlackWhiteFilter.java50 "uniform vec2 seed;\n" +
78 " float dither = rand(v_texcoord + seed);\n" +
124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
125 mProgram.setHostValue("seed", seed);
H A DDocumentaryFilter.java46 "uniform vec2 seed;\n" +
65 " float dither = rand(v_texcoord + seed);\n" +
158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
159 mProgram.setHostValue("seed", seed);
H A DLomoishFilter.java46 "uniform vec2 seed;\n" +
109 " float dither = rand(v_texcoord + seed);\n" +
170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
171 mProgram.setHostValue("seed", seed);
H A DGrainFilter.java52 "uniform vec2 seed;\n" +
66 " gl_FragColor = vec4(rand(v_texcoord + seed), 0.0, 0.0, 1.0);\n" +
127 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
128 mNoiseProgram.setHostValue("seed", seed);
/frameworks/base/core/java/android/widget/
H A DAdapterView.java1096 int seed = mSyncPosition;
1103 // Pin seed to reasonable values
1104 seed = Math.max(0, seed);
1105 seed = Math.min(count - 1, seed);
1112 int first = seed;
1115 int last = seed;
1134 rowId = adapter.getItemId(seed);
1137 return seed;
[all...]
/frameworks/base/core/java/android/util/
H A DMathUtils.java177 public static void randomSeed(long seed) { argument
178 sRandom.setSeed(seed);
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java255 /*package*/ final void makeStringBlocks(StringBlock[] seed) { argument
256 final int seedNum = (seed != null) ? seed.length : 0;
263 mStringBlocks[i] = seed[i];
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp202 void initFrames(unsigned int seed);
531 // sets the seed on each pass. Defensively set it here
550 void initFrames(unsigned int seed) argument
557 if (verbose) { testPrintI("initFrames seed: %u", seed); }
558 srand48(seed);
/frameworks/compile/mclinker/include/mcld/ADT/
H A DStringHash.h140 const uint32_t seed = 131; local
144 hash_val = (hash_val * seed) + pKey[i];
/frameworks/rs/cpu_ref/linkloader/
H A Dmain.cpp93 void stub_srand(unsigned int seed) { argument
94 srand(seed);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStreamingTextView.java232 public DottySpan(int seed, int pos) { argument
233 mSeed = seed;
/frameworks/rs/api/
H A Dgen_runtime.cpp332 const string& seed, char vectorSize,
336 const string& seed, char vectorSize,
1466 string seed = hashString(mJavaCheckMethodName + param.javaAllocName); local
1470 writeJavaRandomCompatibleFloatAllocation(file, dataType, seed, vectorSize,
1474 writeJavaRandomCompatibleIntegerAllocation(file, dataType, seed, vectorSize,
1483 << vectorSize << ", " << seed << ", " << param.minValue << ", " << param.maxValue
1489 // << ", " << seed << ", " << (mTest == "limited" ? "false" : "true") << ")";
1490 << ", " << seed << ", false)"; local
1496 const string& seed, char vectorSize,
1500 << "(mRS, Element.DataType." << dataType << ", " << vectorSize << ", " << seed << ", "; local
1495 writeJavaRandomCompatibleFloatAllocation(ofstream& file, const string& dataType, const string& seed, char vectorSize, const Type& compatibleType, const Type& generatedType) const argument
1528 writeJavaRandomCompatibleIntegerAllocation(ofstream& file, const string& dataType, const string& seed, char vectorSize, const Type& compatibleType, const Type& generatedType) const argument
1533 << "(mRS, Element.DataType." << dataType << ", " << vectorSize << ", " << seed << ", "; local
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java110 * Creates RNG with self-generated seed value.
119 * Creats RNG with given initial seed value
121 * @param seed The initial seed value
123 public LoggingRng(long seed) { argument
124 super(seed);
125 Log.i(LOG_TAG, "Seeding RNG with value: " + seed);
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp793 " -s(eed) Set the random seed\n"
813 unsigned long seed = 0xdeadbeef; local
824 fprintf(stderr, "Malformed seed.\n");
828 seed = x;
850 "with \"%s -s %lu\"\n", me, seed);
852 srand(seed);
/frameworks/base/core/java/android/net/dhcp/
H A DDhcpPacket.java264 // needed to seed the IP checksum.
370 * payload) on the specified portion of a ByteBuffer. The seed
373 private int checksum(ByteBuffer buf, int seed, int start, int end) { argument
374 int sum = seed;
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
H A Dacelp.h502 Word16 Random(Word16 * seed);
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c46 static void seedRandom(unsigned long seed) argument
48 sRandomSeed = seed;

Completed in 4524 milliseconds

12