Searched refs:max (Results 1 - 25 of 309) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dfind_min_max.cpp142 register int min, max; local
147 max = min = *input_ptr;
154 if (*input_ptr > max)
156 max = *input_ptr;
169 *max_ptr = max;
H A Dpost_proc.h35 #define UPDATE_PV_MAXPV_MIN(p,max,min) if ((p) > max) max=(p); else if ((p) < min) min = (p);
/frameworks/base/graphics/java/android/graphics/
H A DTableMaskFilter.java35 public static TableMaskFilter CreateClipTable(int min, int max) { argument
36 return new TableMaskFilter(nativeNewClip(min, max));
44 private static native int nativeNewClip(int min, int max); argument
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dgmed_n.cpp131 Word16 max;
143 max = -32767;
146 if (sub (tmp2[j], max) >= 0)
148 max = tmp2[j];
189 register Word16 max; local
201 max = -32767;
204 if (*(tmp2 + j) >= max)
206 max = *(tmp2 + j);
/frameworks/native/libs/utils/
H A Dprimes.py39 max = 2**31 - 1 variable
40 while n < max:
/frameworks/native/services/surfaceflinger/
H A Dclz.h41 static inline T max(T a, T b) { function in namespace:android
45 static inline T max(T a, T b, T c) { function in namespace:android
46 return max(a, max(b, c));
49 static inline T max(T a, T b, T c, T d) { function in namespace:android
50 return max(a, b, max(c, d));
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dspreading.c31 * higher frequencies thr(n) = max(thr(n), sh(n)*thr(n-1))
32 * lower frequencies thr(n) = max(thr(n), sl(n)*thr(n+1))
44 pbSpreadedEnergy[i] = max(pbSpreadedEnergy[i],
49 pbSpreadedEnergy[i] = max(pbSpreadedEnergy[i],
H A Dms_stereo.c76 nrgL = max(nrgL,thrL) + 1;
79 nrgR = max(nrgR,thrR) + 1;
88 nrgL = max(nrgL,minThreshold) + 1;
92 nrgR = max(nrgR,minThreshold) + 1;
/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java50 byte[] ulawBuf, int ulawOffset, int length, int max) {
76 if (max <= 0) max = MAX_ULAW;
78 int coef = MAX_ULAW * (1 << SCALE_BITS) / max;
121 int max = 0;
125 if (pcm > max) max = pcm;
127 return max;
133 * @param max pcm value corresponding to maximum ulaw value.
135 public UlawEncoderInputStream(InputStream in, int max) { argument
49 encode(byte[] pcmBuf, int pcmOffset, byte[] ulawBuf, int ulawOffset, int length, int max) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dcor_h_x.cpp189 Word32 s, y32[L_CODE], max, tot;
197 max = 0;
207 if (L_sub (s, max) > (Word32) 0L)
208 max = s;
210 tot = L_add (tot, L_shr (max, 1));
258 Word32 max; local
269 max = 0;
296 if (s > max)
298 max = s;
302 tot += (max >>
[all...]
H A Dcor_h_x2.cpp173 Word32 s, y32[L_CODE], max, tot;
181 max = 0;
191 if (L_sub (s, max) > (Word32) 0L)
192 max = s;
194 tot = L_add (tot, L_shr (max, 1));
244 Word32 max; local
252 max = 0;
266 if (s > max)
268 max = s;
271 tot = (tot + (max >>
[all...]
H A Dhp_max.cpp88 cor_hp_max = pointer to max high-pass filtered norm. correlation (Word16)
92 cor_hp_max contains max high-pass filtered norm. correlation (Word16)
134 Word16 *cor_hp_max) // o : max high-pass filtered norm. correlation
138 Word32 max, t0, t1;
142 max = MIN_32;
154 if (L_sub (t0, max) >= 0)
156 max = t0;
181 // max/t0
182 shift1 = sub(norm_l(max), 1);
183 max16 = extract_h(L_shl(max, shift
249 Word32 max, t0, t1; local
[all...]
H A Dset_sign.cpp58 of the max correlation. Updated copyright year.
368 Word16 val, cor, k_cn, k_dn, max, max_of_all;
418 max = -1;
423 val = sub (cor, max);
427 max = cor;
433 val = sub (max, max_of_all);
437 max_of_all = max;
502 Word16 max; local
567 max = -1;
572 if (cor > max)
[all...]
/frameworks/base/core/java/android/os/
H A DFileUtils.java140 * @param max length (positive for head, negative of tail, 0 for no limit)
145 public static String readTextFile(File file, int max, String ellipsis) throws IOException { argument
153 if (max > 0 || (size > 0 && max == 0)) { // "head" mode: read the first N bytes
154 if (size > 0 && (max == 0 || size < max)) max = (int) size;
155 byte[] data = new byte[max + 1];
158 if (length <= max) return new String(data, 0, length);
159 if (ellipsis == null) return new String(data, 0, max);
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DSetTimeZonePermissionsTest.java51 int max = (mZones.length > 10) ? mZones.length : 10;
52 assertTrue("No system-defined time zones - test invalid", max > 0);
54 for (int i = 0; i < max; i++) {
/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java58 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
59 assertTrue(mTiny.getWidth() * mTiny.getHeight() * 2 < max);
66 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
67 assertTrue(mLarge.getWidth() * mLarge.getHeight() * 2 > max);
/frameworks/base/core/java/android/hardware/
H A DSensor.java201 void setRange(float max, float res) { argument
202 mMaxRange = max;
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DUT_math_agree.java201 // max reference functions
202 private float max(float v1, float v2) { method in class:UT_math_agree
205 private float[] max(float[] v1, float[] v2) { method in class:UT_math_agree
209 rv[i] = max(v1[i], v2[i]);
212 private byte max(byte v1, byte v2) { method in class:UT_math_agree
215 private byte[] max(byte[] v1, byte[] v2) { method in class:UT_math_agree
219 rv[i] = max(v1[i], v2[i]);
222 private short max(short v1, short v2) { method in class:UT_math_agree
225 private short[] max(short[] v1, short[] v2) { method in class:UT_math_agree
229 rv[i] = max(v
232 private int max(int v1, int v2) { method in class:UT_math_agree
235 private int[] max(int[] v1, int[] v2) { method in class:UT_math_agree
242 private long max(long v1, long v2) { method in class:UT_math_agree
245 private long[] max(long[] v1, long[] v2) { method in class:UT_math_agree
[all...]
/frameworks/ex/photoviewer/src/com/android/ex/photo/views/
H A DProgressBarWrapper.java61 public void setMax(int max) { argument
62 mDeterminate.setMax(max);
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DProgressBarWrapper.java61 public void setMax(int max) { argument
62 mDeterminate.setMax(max);
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectParameter.java35 public EffectParameter (int min, int max, SeekBar seekBar, TextView textView, String unit) { argument
37 mMax = max;
43 mSeekBar.setMax(max-min);
/frameworks/base/core/java/android/widget/
H A DLinearLayout.java582 mWeightSum = Math.max(0.0f, weightSum);
651 // See how tall everyone is. Also remember max width.
678 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin);
705 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin +
709 largestChildHeight = Math.max(childHeight, largestChildHeight);
743 maxWidth = Math.max(maxWidth, measuredWidth);
752 weightedMaxWidth = Math.max(weightedMaxWidth,
755 alternativeMaxWidth = Math.max(alternativeMaxWidth,
787 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight +
798 heightSize = Math.max(heightSiz
[all...]
H A DAbsSeekBar.java180 * By default, this will be a value that is derived from the max progress.
190 public synchronized void setMax(int max) { argument
191 super.setMax(max);
196 setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));
252 // The max height does not incorporate padding, whereas the height
256 int max = getMax();
257 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
345 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
346 dh = Math.max(mMinHeigh
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteGlobal.java113 return Math.max(1, value);
123 return Math.max(2, value);
/frameworks/base/core/java/android/preference/
H A DSeekBarPreference.java100 public void setMax(int max) { argument
101 if (max != mMax) {
102 mMax = max;
184 myState.max = mMax;
200 mMax = myState.max;
212 int max; field in class:SeekBarPreference.SavedState
219 max = source.readInt();
228 dest.writeInt(max);

Completed in 5067 milliseconds

1234567891011>>