/frameworks/support/core-utils/java/android/support/v4/math/ |
H A D | MathUtils.java | 33 * @param min minimum resulting value. 38 public static float clamp(float value, float min, float max) { argument 39 if (value < min) { 40 return min; 54 * @param min minimum resulting value. 59 public static double clamp(double value, double min, double max) { argument 60 if (value < min) { 61 return min; 75 * @param min minimum resulting value. 80 public static int clamp(int value, int min, in argument [all...] |
/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; 158 else if (*input_ptr < min) 160 min = *input_ptr; 170 *min_ptr = min;
|
H A D | post_proc.h | 35 #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 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/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/native/services/surfaceflinger/ |
H A D | clz.h | 28 static inline T min(T a, T b) { function in namespace:android 32 static inline T min(T a, T b, T c) { function in namespace:android 33 return min(a, min(b, c)); 36 static inline T min(T a, T b, T c, T d) { function in namespace:android 37 return min(a, b, min(c, d));
|
/frameworks/native/libs/math/include/math/ |
H A D | scalar.h | 26 return T(std::min(T(1), std::max(T(0), v))); 30 static constexpr T clamp(T v, T min, T max) noexcept { 31 return T(std::min(max, std::max(min, v)));
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | DepthImage.java | 95 public float min; field in class:DepthImage.MinMax 98 public MinMax(float min, float max) { argument 99 this.min = min; 103 public static MinMax create(float min, float max) { argument 104 return new MinMax(min, max); 109 float min = array[0]; 110 float max = min; 113 if (x < min) { 114 min [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | min.rs | 27 res_uc_2 = min(src1_uc_2, src2_uc_2);
|
H A D | reduce_backward.rs | 42 IndexedVal min, max; 46 accum->min.val = posInf; 47 accum->min.idx = -1; 57 if (me.val <= accum->min.val) 58 accum->min = me; 65 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 66 accum->min = val->min; [all...] |
H A D | bug_char.rs | 35 temp_sc1 = min( rand_sc1_0, rand_sc1_1 ); 42 temp_sc2 = min( rand_sc2_0, rand_sc2_1 );
|
H A D | UT_bug_char.java | 39 private byte min(byte v1, byte v2) { method in class:UT_bug_char 43 private byte[] min(byte[] v1, byte[] v2) { method in class:UT_bug_char 47 rv[i] = min(v1[i], v2[i]); 67 // Set results for min 68 s.set_min_rand_sc1_sc1(min(rand_sc1_0, rand_sc1_1)); 69 byte[] min_rand_sc2_raw = min(rand_sc2_0, rand_sc2_1);
|
H A D | UT_math_agree.java | 180 // min reference functions 181 private float min(float v1, float v2) { method in class:UT_math_agree 185 private float[] min(float[] v1, float[] v2) { method in class:UT_math_agree 189 rv[i] = min(v1[i], v2[i]); 193 private byte min(byte v1, byte v2) { method in class:UT_math_agree 197 private byte[] min(byte[] v1, byte[] v2) { method in class:UT_math_agree 201 rv[i] = min(v1[i], v2[i]); 205 private short min(short v1, short v2) { method in class:UT_math_agree 209 private short[] min(short[] v1, short[] v2) { method in class:UT_math_agree 213 rv[i] = min(v 217 private int min(int v1, int v2) { method in class:UT_math_agree 221 private int[] min(int[] v1, int[] v2) { method in class:UT_math_agree 229 private long min(long v1, long v2) { method in class:UT_math_agree 233 private long[] min(long[] v1, long[] v2) { method in class:UT_math_agree [all...] |
/frameworks/ex/framesequence/jni/utils/ |
H A D | math.h | 25 #define min(a,b) \ macro
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_bug_char.java | 40 private byte min(byte v1, byte v2) { method in class:UT_bug_char 43 private byte[] min(byte[] v1, byte[] v2) { method in class:UT_bug_char 47 rv[i] = min(v1[i], v2[i]); 67 // Set results for min 68 s.set_min_rand_sc1_sc1(min(rand_sc1_0, rand_sc1_1)); 69 byte[] min_rand_sc2_raw = min(rand_sc2_0, rand_sc2_1);
|
H A D | UT_math_agree.java | 148 // min reference functions 149 private float min(float v1, float v2) { method in class:UT_math_agree 152 private float[] min(float[] v1, float[] v2) { method in class:UT_math_agree 156 rv[i] = min(v1[i], v2[i]); 159 private byte min(byte v1, byte v2) { method in class:UT_math_agree 162 private byte[] min(byte[] v1, byte[] v2) { method in class:UT_math_agree 166 rv[i] = min(v1[i], v2[i]); 169 private short min(short v1, short v2) { method in class:UT_math_agree 172 private short[] min(short[] v1, short[] v2) { method in class:UT_math_agree 176 rv[i] = min(v 179 private int min(int v1, int v2) { method in class:UT_math_agree 182 private int[] min(int[] v1, int[] v2) { method in class:UT_math_agree 189 private long min(long v1, long v2) { method in class:UT_math_agree 192 private long[] min(long[] v1, long[] v2) { method in class:UT_math_agree [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
H A D | UT_bug_char.java | 41 private byte min(byte v1, byte v2) { method in class:UT_bug_char 45 private byte[] min(byte[] v1, byte[] v2) { method in class:UT_bug_char 49 rv[i] = min(v1[i], v2[i]); 69 // Set results for min 70 s.set_min_rand_sc1_sc1(min(rand_sc1_0, rand_sc1_1)); 71 byte[] min_rand_sc2_raw = min(rand_sc2_0, rand_sc2_1);
|
H A D | UT_math_agree.java | 182 // min reference functions 183 private float min(float v1, float v2) { method in class:UT_math_agree 187 private float[] min(float[] v1, float[] v2) { method in class:UT_math_agree 191 rv[i] = min(v1[i], v2[i]); 195 private byte min(byte v1, byte v2) { method in class:UT_math_agree 199 private byte[] min(byte[] v1, byte[] v2) { method in class:UT_math_agree 203 rv[i] = min(v1[i], v2[i]); 207 private short min(short v1, short v2) { method in class:UT_math_agree 211 private short[] min(short[] v1, short[] v2) { method in class:UT_math_agree 215 rv[i] = min(v 219 private int min(int v1, int v2) { method in class:UT_math_agree 223 private int[] min(int[] v1, int[] v2) { method in class:UT_math_agree 231 private long min(long v1, long v2) { method in class:UT_math_agree 235 private long[] min(long[] v1, long[] v2) { method in class:UT_math_agree [all...] |
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/ |
H A D | RangeInverseDepthTransform.java | 39 return Math.max(0, Math.min(255, 46 Math.max(0, Math.min(255, value)) / 255f);
|
H A D | RangeLinearDepthTransform.java | 40 return Math.max(0, Math.min(255, 46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f;
|
/frameworks/support/paging/runtime/src/androidTest/java/android/arch/paging/ |
H A D | ListDataSource.java | 35 int endExclusive = Math.min(mList.size(), startPosition + count);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | TokenBucket.java | 56 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); 73 mAvailable = Math.min(tokens, mCapacity); 121 mAvailable = Math.min(mCapacity, mAvailable + diff);
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | EffectParameter.java | 35 public EffectParameter (int min, int max, SeekBar seekBar, TextView textView, String unit) { argument 36 mMin = min; 43 mSeekBar.setMax(max-min);
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
H A D | LongStatsCollector.java | 26 * Class that collect a series of longs and produces the median, min and max values. 63 mMin = Math.min(mMin, value); 74 private Stats(int samples, long min, long max, double median) { argument 76 mMin = min;
|
/frameworks/av/media/libstagefright/filters/ |
H A D | ColorConvert.cpp | 22 #ifndef min 23 #define min(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));
|