/frameworks/ex/framesequence/jni/utils/ |
H A D | math.h | 20 #define max(a,b) \ macro
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | gmed_n.cpp | 131 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 D | find_min_max.cpp | 142 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 D | imgprocutil.h | 27 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 D | clz.h | 41 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 D | MathUtils.java | 34 * @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 D | cor_h_x.cpp | 189 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 D | cor_h_x2.cpp | 173 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 D | hp_max.cpp | 88 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 D | TableMaskFilter.java | 35 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 D | BrightnessUtils.java | 40 * 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 D | OverScroll.java | 41 * @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 D | BucketTest.java | 45 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 D | ConsumerIrManager.java | 102 * @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 D | ProtoUtils.java | 33 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 D | EditDistanceScorer.java | 54 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 D | binderTextOutputTest.cpp | 156 TypeParam max = std::numeric_limits<TypeParam>::max(); local 157 CHECK_VAL(max);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | ProgressBarWrapper.java | 61 public void setMax(int max) { argument 62 mDeterminate.setMax(max);
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AUtils.h | 60 inline static const T &max(const T &a, const T &b) { function
|
/frameworks/av/media/libstagefright/filters/ |
H A D | ColorConvert.cpp | 19 #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 D | AUtils.h | 60 inline static const T &max(const T &a, const T &b) { function
|
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/ |
H A D | AUtils.h | 60 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 D | NumericalWatcher.java | 32 public NumericalWatcher(TextView textView, int min, int max) { argument 35 mMax = max;
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | AudioPlaybackQueueItem.java | 112 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 D | RoundScrollbarRenderer.java | 67 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;
|