Searched refs:min (Results 1 - 25 of 829) sorted by relevance

1234567891011>>

/frameworks/support/core-utils/java/android/support/v4/math/
H A DMathUtils.java33 * @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 Dfind_min_max.cpp142 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 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/native/services/surfaceflinger/
H A Dclz.h28 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 Dscalar.h26 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 DDepthImage.java95 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/ex/framesequence/jni/utils/
H A Dmath.h25 #define min(a,b) \ macro
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_bug_char.java40 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 DUT_math_agree.java148 // 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/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A DUT_bug_char.java40 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 DUT_math_agree.java148 // 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/RsTest/src/com/android/rs/test/
H A DUT_bug_char.java39 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 DUT_math_agree.java180 // 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/rs/tests/java_api/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;
/frameworks/base/core/java/com/android/internal/util/
H A DTokenBucket.java56 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 DEffectParameter.java35 public EffectParameter (int min, int max, SeekBar seekBar, TextView textView, String unit) { argument
36 mMin = min;
43 mSeekBar.setMax(max-min);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
H A DLongStatsCollector.java26 * 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 DColorConvert.cpp22 #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));
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java73 final float scale = Math.min(sampleSize, regularScale);
78 final int srcHalfSliceH = Math.min(srcCroppedSliceH, srcH) / 2;
87 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac)));
114 final float regularScale = Math.min(
118 final float scale = Math.min(sampleSize, regularScale);
/frameworks/rs/cpp/
H A DSampler.cpp33 Sampler::Sampler(sp<RS> rs, void* id, RsSamplerValue min, RsSamplerValue mag, argument
37 RsSamplerValue mMin = min;
64 sp<Sampler> Sampler::create(const sp<RS>& rs, RsSamplerValue min, RsSamplerValue mag, argument
67 void* id = RS::dispatch->SamplerCreate(rs->getContext(), min, mag, wrapS, wrapT,
69 return new Sampler(rs, id, min, mag, wrapS, wrapT, anisotropy);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DSeekBarPreference.java41 * Other SeekBar specific attributes (e.g. {@code title, summary, defaultValue, min, max}) can be
124 * to perform the same steps by changing min/max to max/min as following:
194 public void setMin(int min) { argument
195 if (min > mMax) {
196 min = mMax;
198 if (min != mMin) {
199 mMin = min;
235 mSeekBarIncrement = Math.min(mMax - mMin, Math.abs(seekBarIncrement));
306 myState.min
336 int min; field in class:SeekBarPreference.SavedState
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlendComposite.java92 alpha = Math.min(alpha, 1.0f);
141 int width = Math.min(src.getWidth(), dstIn.getWidth());
142 int height = Math.min(src.getHeight(), dstIn.getHeight());
209 result[i] = Math.min(255, src[i] + dst[i]);
219 result[i] = Math.min(src[i], dst[i]);
221 result[3] = Math.min(255, src[3] + dst[3]);
232 result[3] = Math.min(255, src[3] + dst[3]);
243 result[3] = Math.min(255, src[3] + dst[3] - (src[3] * dst[3]) / 255);
255 result[3] = Math.min(255, src[3] + dst[3]);
266 result[3] = Math.min(25
[all...]

Completed in 625 milliseconds

1234567891011>>