Searched refs:min (Results 1 - 25 of 567) 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/base/libs/hwui/
H A DTexture.cpp45 void Texture::setFilterMinMag(GLenum min, GLenum mag, bool bindTexture, bool force, argument
48 if (mFirstFilter || force || min != mMinFilter || mag != mMagFilter) {
51 mMinFilter = min;
58 if (mipMap && min == GL_LINEAR) min = GL_LINEAR_MIPMAP_LINEAR;
60 glTexParameteri(renderTarget, GL_TEXTURE_MIN_FILTER, min);
/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.java275 int min, max;
279 min = mOriginalCapturedViewLeft - child.getWidth();
282 min = mOriginalCapturedViewLeft;
287 min = mOriginalCapturedViewLeft;
290 min = mOriginalCapturedViewLeft - child.getWidth();
294 min = mOriginalCapturedViewLeft - child.getWidth();
298 return clamp(min, left, max);
354 private static float clamp(float min, float value, float max) { argument
355 return Math.min(Math.max(min, valu
358 clamp(int min, int value, int max) argument
[all...]
/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/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardClockPositionAlgorithm.java120 progress = Math.max(0.0f, Math.min(progress, 1.0f));
128 t = Math.min(t, 1.0f);
134 t = Math.min(t, 1.0f);
157 t = Math.min(t, 1.0f);
164 t = Math.min(t, 1.0f);
175 return Math.max(0, Math.min(1, alpha));
/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/core/java/android/widget/
H A DEdgeEffect.java146 mBaseGlowScale = h > 0 ? Math.min(oh / h, 1.f) : 1.f;
148 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h));
217 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA,
269 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY);
284 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocity / 100) * 0.00015f) / 2, 1.f);
287 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA));
327 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0);
329 final float displacement = Math.max(0, Math.min(mDisplacement, 1.f)) - 0.5f;
358 final float t = Math.min((time - mStartTime) / mDuration, 1.f);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DUtils.java98 // Returns the input value x clamped to the range [min, max].
99 public static int clamp(int x, int min, int max) { argument
101 if (x < min) return min;
105 // Returns the input value x clamped to the range [min, max].
106 public static float clamp(float x, float min, float max) { argument
108 if (x < min) return min;
112 // Returns the input value x clamped to the range [min, max].
113 public static long clamp(long x, long min, lon argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java44 len = Math.min(len, mBuf.remaining());
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlendComposite.java140 int width = Math.min(src.getWidth(), dstIn.getWidth());
141 int height = Math.min(src.getHeight(), dstIn.getHeight());
208 result[i] = Math.min(255, src[i] + dst[i]);
218 result[i] = Math.min(src[i], dst[i]);
220 result[3] = Math.min(255, src[3] + dst[3]);
231 result[3] = Math.min(255, src[3] + dst[3]);
242 result[3] = Math.min(255, src[3] + dst[3] - (src[3] * dst[3]) / 255);
254 result[3] = Math.min(255, src[3] + dst[3]);
265 result[3] = Math.min(255, src[3] + dst[3]);

Completed in 1002 milliseconds

1234567891011>>