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

1234567891011>>

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dfind_min_max.cpp142 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/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dimgprocutil.h27 inline int clamp(int min, int val, int max) { argument
28 return val < min ? min : (val > max ? max : val);
29 // Note that for performance reasons, this function does *not* check if min < max!
/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 long 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 Word16 max; local
201 max = -32767;
204 if (*(tmp2 + j) >= max)
206 max = *(tmp2 + j);
/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],
/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...]
/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/packages/SystemUI/src/com/android/systemui/qs/
H A DDataUsageGraph.java56 mLimitLevel = Math.max(0, limitLevel);
57 mWarningLevel = Math.max(0, warningLevel);
58 mUsageLevel = Math.max(0, usageLevel);
59 mMaxLevel = Math.max(Math.max(Math.max(mLimitLevel, mWarningLevel), mUsageLevel), 1);
77 usageRight = Math.min(Math.max(usageRight, mMarkerWidth), w - mMarkerWidth * 2);
97 warningLeft = Math.min(Math.max(warningLeft, 0), w - mMarkerWidth);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBucketTest.java45 int max = 0; field in class:BucketTest
62 max = 0;
67 max = Math.max(max, i);
78 for (int i = 0; i < max + 100; i++) {
87 for (int i = 0; i < max + 100; i++) {
144 max = Math.max(i, max);
[all...]
/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/packages/SystemUI/src/com/android/systemui/classifier/
H A DLengthCountClassifier.java38 / Math.max(1.0f, stroke.getCount() - 2));
/frameworks/ex/framesequence/jni/utils/
H A Dmath.h20 #define max(a,b) \ macro
/frameworks/native/opengl/tools/glgen/
H A Dconvert_to_java.py28 maxLen = max(maxLen, len(defineValuePair[0]))
/frameworks/support/design/src/android/support/design/internal/
H A DBaselineLayout.java63 maxChildBaseline = Math.max(maxChildBaseline, baseline);
64 maxChildDescent = Math.max(maxChildDescent, child.getMeasuredHeight() - baseline);
66 maxWidth = Math.max(maxWidth, child.getMeasuredWidth());
67 maxHeight = Math.max(maxHeight, child.getMeasuredHeight());
72 maxHeight = Math.max(maxHeight, maxChildBaseline + maxChildDescent);
75 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight());
76 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A Dbugdroid.rs37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) {
38 return (short) (max * sigmoid(pillDistance(p1, p2, img) - rad));
41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) {
44 return (short) (max
57 static short cylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
58 return (short) (max * sigmoid(cylinderDistance(p1, p2, img) - rad));
61 static short cogCylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
64 return (short) (max
78 short max, float3 img) {
79 return (short) (max
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
H A DFlagSet.java48 this.buckets = new long[Math.max(buckets.length, minBucketCount)];
54 int max = 0;
56 max = Math.max(i, bits[i]);
58 buckets = new long[1 + (max / sBucketSize)];
133 final int max = Math.max(buckets.length, other.buckets.length);
134 for (int i = 0; i < max; i ++) {
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DProgressBarWrapper.java61 public void setMax(int max) { argument
62 mDeterminate.setMax(max);
/frameworks/rs/java/tests/RSTest_CompatLib/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/rs/java/tests/RSTest_CompatLibLegacy/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/rs/java/tests/Refocus/src/com/android/rs/test/image/
H A DRangeInverseDepthTransform.java39 return Math.max(0, Math.min(255,
46 Math.max(0, Math.min(255, value)) / 255f);
H A DRangeLinearDepthTransform.java40 return Math.max(0, Math.min(255,
46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f;

Completed in 1182 milliseconds

1234567891011>>