Searched refs:min (Results 1 - 25 of 670) 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;
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/ex/framesequence/jni/utils/
H A Dmath.h25 #define min(a,b) \ macro
/frameworks/rs/java/tests/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/java/tests/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/java/tests/RsTest/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/support/design/src/android/support/design/widget/
H A DSwipeDismissBehavior.java306 int min, max;
310 min = mOriginalCapturedViewLeft - child.getWidth();
313 min = mOriginalCapturedViewLeft;
318 min = mOriginalCapturedViewLeft;
321 min = mOriginalCapturedViewLeft - child.getWidth();
325 min = mOriginalCapturedViewLeft - child.getWidth();
329 return clamp(min, left, max);
385 private static float clamp(float min, float value, float max) { argument
386 return Math.min(Math.max(min, valu
389 clamp(int min, int value, int max) argument
[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;
/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/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(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/base/packages/Osu/src/com/android/hotspot2/osu/service/
H A DSubscriptionTimer.java49 long min = Long.MAX_VALUE;
51 min = mRemediation;
54 min = Math.min(min, mPolicy);
56 return min;
96 next = Math.min(next, updateAction.nextExpiry(now));
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java120 * @return the clamped {@param value} between the provided {@param min} and {@param max}.
122 public static float clamp(float value, float min, float max) { argument
123 return Math.max(min, Math.min(max, value));
127 * @return the clamped {@param value} between the provided {@param min} and {@param max}.
129 public static int clamp(int value, int min, int max) { argument
130 return Math.max(min, Math.min(max, value));
137 return Math.max(0f, Math.min(1f, value));
141 * Scales the {@param value} to be proportionally between the {@param min} an
146 mapRange(@loatRangefrom=0.0,to=1.0) float value, float min, float max) argument
155 unmapRange(float value, float min, float max) argument
[all...]
/frameworks/base/tools/aapt2/
H A DLocale_test.cpp38 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) {
60 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) {
65 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) {
/frameworks/base/core/java/android/annotation/
H A DSize.java47 long min() default Long.MIN_VALUE;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java44 len = Math.min(len, mBuf.remaining());
/frameworks/ex/framesequence/jni/
H A DStream.cpp55 size = min(size, mPeekSize - mPeekOffset);
64 bytes_read = min(size, peek_remaining);
111 size = min(size, mRemaining);
126 size_t requested = min(size, mByteArrayLength);

Completed in 668 milliseconds

1234567891011>>