Searched defs:max (Results 1 - 25 of 204) sorted by relevance

123456789

/frameworks/ex/framesequence/jni/utils/
H A Dmath.h20 #define max(a,b) \ macro
/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/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;
/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/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/support/compat/src/main/java/androidx/core/math/
H A DMathUtils.java34 * @param max maximum resulting value.
38 public static float clamp(float value, float min, float max) { argument
41 } else if (value > max) {
42 return max;
55 * @param max maximum resulting value.
59 public static double clamp(double value, double min, double max) { argument
62 } else if (value > max) {
63 return max;
76 * @param max maximum resulting value.
80 public static int clamp(int value, int min, 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...]
/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/base/packages/SettingsLib/src/com/android/settingslib/display/
H A DBrightnessUtils.java40 * a slight improvement to the typical gamma transfer function for displays whose max
50 * @param max The maximum acceptable value for the setting.
53 public static final int convertGammaToLinear(int val, int min, int max) { argument
64 return Math.round(MathUtils.lerp(min, max, ret / 12));
76 * a slight improvement to the typical gamma transfer function for displays whose max
86 * @param max The maximum acceptable value for the setting.
89 public static final int convertLinearToGamma(int val, int min, int max) { argument
91 final float normalizedVal = MathUtils.norm(min, max, val) * 12;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DOverScroll.java41 * @param max The maximum amount that the View can overscroll.
44 public static int dampedScroll(float amount, int max) { argument
47 float f = amount / max;
55 return Math.round(OVERSCROLL_DAMP_FACTOR * f * max);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/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/java/android/hardware/
H A DConsumerIrManager.java102 * @param max The maximum transmittable frequency in this range segment.
104 public CarrierFrequencyRange(int min, int max) { argument
106 mMaxFrequency = max;
/frameworks/base/core/java/android/util/proto/
H A DProtoUtils.java33 long min, long average, long max) {
37 proto.write(AggStats.MAX, max);
32 toAggStatsProto(ProtoOutputStream proto, long fieldId, long min, long average, long max) argument
/frameworks/base/packages/ExtServices/src/android/ext/services/autofill/
H A DEditDistanceScorer.java54 final int maxLength = Math.max(actualValueLength, userDatalength);
83 * @param max the maximum edit distance that we care about; if for example the string length
87 * the edit distance is at least as big as the {@code max} parameter
90 private static int editDistance(@NonNull String s, @NonNull String t, int max) { argument
95 if (Math.abs(s.length() - t.length()) > max) {
/frameworks/native/libs/binder/tests/
H A DbinderTextOutputTest.cpp156 TypeParam max = std::numeric_limits<TypeParam>::max(); local
157 CHECK_VAL(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/av/include/media/stagefright/foundation/
H A DAUtils.h60 inline static const T &max(const T &a, const T &b) { function
/frameworks/av/media/libstagefright/filters/
H A DColorConvert.cpp19 #ifndef max
20 #define max(a,b) ((a) > (b) ? (a) : (b)) macro
39 *r = min(262143, max(0, *r));
40 *g = min(262143, max(0, *g));
41 *b = min(262143, max(0, *b));
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DAUtils.h60 inline static const T &max(const T &a, const T &b) { function
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DAUtils.h60 inline static const T &max(const T &a, const T &b) { function
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DNumericalWatcher.java32 public NumericalWatcher(TextView textView, int min, int max) { argument
35 mMax = max;
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java112 private static final float clip(float value, float min, float max) { argument
113 return value < min ? min : (value < max ? value : max);
/frameworks/base/core/java/android/view/
H A DRoundScrollbarRenderer.java67 float currentScroll = Math.max(0, mParent.computeVerticalScrollOffset());
97 private static float clamp(float val, float min, float max) { argument
100 } else if (val > max) {
101 return max;

Completed in 191 milliseconds

123456789