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

1234567891011>>

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dfind_min_max.cpp142 register 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.cpp59 void Texture::setFilterMinMag(GLenum min, GLenum mag, bool bindTexture, bool force, argument
62 if (mFirstFilter || force || min != mMinFilter || mag != mMagFilter) {
65 mMinFilter = min;
72 if (mipMap && min == GL_LINEAR) min = GL_LINEAR_MIPMAP_LINEAR;
74 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/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/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlendComposite.java193 int width = Math.min(src.getWidth(), dstIn.getWidth());
194 int height = Math.min(src.getHeight(), dstIn.getHeight());
371 result[i] = Math.min(255, src[i] + dst[i]);
383 result[3] = Math.min(255, src[3] + dst[3]);
392 result[3] = Math.min(255, src[3] + dst[3]);
406 result[3] = Math.min(255, src[3] + dst[3]);
419 result[3] = Math.min(255, src[3] + dst[3]);
429 Math.min((dst[i] << 8) / (255 - src[i]), 255);
431 result[3] = Math.min(255, src[3] + dst[3]);
440 result[i] = Math.min(sr
[all...]
/frameworks/av/media/libstagefright/tests/
H A DUtils_test.cpp83 ASSERT_EQ(min(5.6f, 6.0f), 5.6f);
84 ASSERT_EQ(min(6.0f, 5.6f), 5.6f);
85 ASSERT_EQ(min(-4.3, 8.6), -4.3);
86 ASSERT_EQ(min(8.6, -4.3), -4.3);
/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/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java69 final float scale = Math.min(sampleSize, regularScale);
74 final int srcHalfSliceH = Math.min(srcCroppedSliceH, srcH) / 2;
83 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac)));
110 final float regularScale = Math.min(
114 final float scale = Math.min(sampleSize, regularScale);
/frameworks/support/v7/palette/src/android/support/v7/graphics/
H A DColorUtils.java79 return Math.max(luminance1, luminance2) / Math.min(luminance1, luminance2);
154 final float min = Math.min(rf, Math.min(gf, bf));
155 final float deltaMaxMin = max - min;
158 float l = (max + min) / 2f;
160 if (max == min) {
227 r = Math.max(0, Math.min(255, r));
228 g = Math.max(0, Math.min(255, g));
229 b = Math.max(0, Math.min(25
[all...]
/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/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));
326 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0);
328 final float displacement = Math.max(0, Math.min(mDisplacement, 1.f)) - 0.5f;
357 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/ex/framesequence/jni/
H A DStream.cpp55 size = min(size, mPeekSize - mPeekOffset);
64 bytes_read = min(size, peek_remaining);
83 size = min(size, mRemaining);
98 size_t requested = min(size, mByteArrayLength);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dconvolve3x3.rs27 uint32_t x1 = min((int32_t)x+1, gWidth-1);
29 uint32_t y1 = min((int32_t)y+1, gHeight-1);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dconvolve3x3.rs27 uint32_t x1 = min((int32_t)x+1, gWidth-1);
29 uint32_t y1 = min((int32_t)y+1, gHeight-1);
/frameworks/base/core/java/android/hardware/
H A DConsumerIrManager.java102 * @param min The minimum transmittable frequency in this range segment.
105 public CarrierFrequencyRange(int min, int max) { argument
106 mMinFrequency = min;
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h75 static inline T min(T a, T b) { function in class:android::uirenderer::MathUtils
81 return min(max(a, minValue), maxValue);

Completed in 3235 milliseconds

1234567891011>>