Searched defs:min (Results 1 - 25 of 122) sorted by relevance

12345

/frameworks/ex/framesequence/jni/utils/
H A Dmath.h25 #define min(a,b) \ macro
/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;
/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/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/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/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/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);
/frameworks/base/core/java/android/hardware/
H A DConsumerIrManager.java98 * @param min The minimum transmittable frequency in this range segment.
101 public CarrierFrequencyRange(int min, int max) { argument
102 mMinFrequency = min;
/frameworks/native/libs/binder/tests/
H A DbinderTextOutputTest.cpp162 TypeParam min = std::numeric_limits<TypeParam>::min(); local
163 CHECK_VAL(min);
168 TypeParam min = std::numeric_limits<TypeParam>::denorm_min(); local
169 CHECK_VAL(min);
/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/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);
/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);
/frameworks/av/include/media/stagefright/foundation/
H A DAUtils.h55 inline static const T &min(const T &a, const T &b) { function
/frameworks/av/media/libeffects/testlibs/
H A DAudioFormatAdapter.h24 #define min(x,y) (((x) < (y)) ? (x) : (y)) macro
76 uint32_t numSamplesIter = min(numSamples, mMaxSamplesPerCall);
/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/av/media/libstagefright/foundation/include/foundation/
H A DAUtils.h55 inline static const T &min(const T &a, const T &b) { function
/frameworks/av/media/libstagefright/include/foundation/
H A DAUtils.h55 inline static const T &min(const T &a, const T &b) { function
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java112 private static final float clip(float value, float min, float max) { argument
113 return value < min ? min : (value < max ? value : max);
/frameworks/base/core/java/android/view/
H A DRoundScrollbarRenderer.java97 private static float clamp(float val, float min, float max) { argument
98 if (val < min) {
99 return 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/native/libs/ui/
H A DRect.cpp25 static inline int32_t min(int32_t a, int32_t b) { function in namespace:android
88 result->right = min(right, with.right);
89 result->bottom = min(bottom, with.bottom);
130 result.right = min(result.right, exclude.left);
132 result.bottom = min(result.bottom, exclude.top);
/frameworks/native/services/sensorservice/
H A DSensorFusion.cpp120 template <typename T> inline T min(T a, T b) { return a<b ? a : b; } function in namespace:android
/frameworks/av/media/libaudioclient/
H A DPlayerBase.cpp21 #define min(a, b) ((a) < (b) ? (a) : (b)) macro
139 pan = min(max(-1.0f, pan), 1.0f);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dset_sign.cpp177 Word16 val, min;
201 min = 0x7fff;
206 val = sub(dn2[j], min);
210 min = dn2[j];
252 Word16 val, min; local
280 min = 0x7fff;
285 if (dn2[j] < min)
287 min = dn2[j];
/frameworks/av/media/mtp/
H A DMtpProperty.cpp245 void MtpProperty::setFormRange(int min, int max, int step) { argument
249 mMinimumValue.u.i8 = min;
254 mMinimumValue.u.u8 = min;
259 mMinimumValue.u.i16 = min;
264 mMinimumValue.u.u16 = min;
269 mMinimumValue.u.i32 = min;
274 mMinimumValue.u.u32 = min;
279 mMinimumValue.u.i64 = min;
284 mMinimumValue.u.u64 = min;

Completed in 218 milliseconds

12345