/cts/libs/commonutil/src/com/android/cts/util/ |
Stat.java | 28 * Collection of statistical propertirs like average, max, min, and stddev 36 public StatResult(double average, double min, double max, double stddev, int dataCount) { 38 mMin = min; 46 * Calculate statistics properties likes average, min, max, and stddev for the given array 50 double min = data[0]; local 59 if (data[i] < min) { 60 min = data[i]; 67 return new StatResult(average, min, max, stddev, data.length); 71 * Calculate statistics properties likes average, min, max, and stddev for the given array 89 double min = median local 136 double min = data[0]; local [all...] |
/external/chromium_org/net/quic/ |
port_suggester.cc | 24 int PortSuggester::SuggestPort(int min, int max) { 34 DCHECK_LE(min, max); 35 DCHECK_GT(min, 0); 36 int range = max - min + 1; 40 previous_suggestion_ = static_cast<int>(seed_ % range) + min;
|
/external/chromium_org/third_party/skia/include/utils/ |
SkRandom.h | 49 * Returns value [min...max) as a float 51 float nextRangeF(float min, float max) { 52 return min + this->nextF() * (max - min); 65 [min, max] inclusive. 67 uint32_t nextRangeU(uint32_t min, uint32_t max) { 68 SkASSERT(min <= max); 69 uint32_t range = max - min + 1; 73 return min + this->nextU() % range; 101 in the range [min..max) [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_conference_mixer/source/ |
level_indicator.cc | 33 int32_t min = 0; local 40 if(min > speech[i]) 42 min = speech[i]; 47 if(-min > _max) 49 _max = -min;
|
/external/chromium_org/ui/gfx/geometry/ |
safe_integer_conversions_unittest.cc | 17 float min = std::numeric_limits<int>::min(); local 21 int int_min = std::numeric_limits<int>::min(); 32 EXPECT_EQ(int_min, ClampToInt(min)); 33 EXPECT_EQ(int_min, ClampToInt(min - 100)); 40 float min = std::numeric_limits<int>::min(); local 44 int int_min = std::numeric_limits<int>::min(); 55 EXPECT_EQ(int_min, ToFlooredInt(min)); 56 EXPECT_EQ(int_min, ToFlooredInt(min - 100)) 63 float min = std::numeric_limits<int>::min(); local 86 float min = std::numeric_limits<int>::min(); local [all...] |
box_f.cc | 28 void BoxF::ExpandTo(const Point3F& min, const Point3F& max) { 29 DCHECK_LE(min.x(), max.x()); 30 DCHECK_LE(min.y(), max.y()); 31 DCHECK_LE(min.z(), max.z()); 33 float min_x = std::min(x(), min.x()); 34 float min_y = std::min(y(), min.y()); 35 float min_z = std::min(z(), min.z()) [all...] |
/external/libcxx/test/utilities/time/time.duration/time.duration.literals/ |
literals1.pass.cpp | 23 minutes min = 36min; local 24 assert ( min == minutes(36)); 25 auto min2 = 36.0min; 26 assert ( min == min2 );
|
/external/skia/include/utils/ |
SkRandom.h | 49 * Returns value [min...max) as a float 51 float nextRangeF(float min, float max) { 52 return min + this->nextF() * (max - min); 65 [min, max] inclusive. 67 uint32_t nextRangeU(uint32_t min, uint32_t max) { 68 SkASSERT(min <= max); 69 uint32_t range = max - min + 1; 73 return min + this->nextU() % range; 101 in the range [min..max) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.literals/ |
literals1.pass.cpp | 23 minutes min = 36min; local 24 assert ( min == minutes(36)); 25 auto min2 = 36.0min; 26 assert ( min == min2 );
|
/external/bison/lib/ |
intprops.h | 155 arguments (including the MIN and MAX arguments) must be of the same 157 must have minimum value MIN and maximum MAX. Unsigned types should 158 use a zero MIN of the proper type. 160 These macros are tuned for constant MIN and MAX. For commutative 163 /* Return 1 if A + B would overflow in [MIN,MAX] arithmetic. 165 #define INT_ADD_RANGE_OVERFLOW(a, b, min, max) \ 167 ? (a) < (min) - (b) \ 170 /* Return 1 if A - B would overflow in [MIN,MAX] arithmetic. 172 #define INT_SUBTRACT_RANGE_OVERFLOW(a, b, min, max) \ 175 : (a) < (min) + (b) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLMeterElement.cpp | 76 return std::min(std::max(value, min()), max()); 84 double HTMLMeterElement::min() const function in class:WebCore::HTMLMeterElement 89 void HTMLMeterElement::setMin(double min) 91 setFloatingPointAttribute(minAttr, min); 96 return std::max(getFloatingPointAttribute(maxAttr, std::max(1.0, min())), min()); 106 double low = getFloatingPointAttribute(lowAttr, min()); 107 return std::min(std::max(low, min()), max()) 172 double min = this->min(); local [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
TestMin.rs | 26 return min(in, in1); 31 return min(in, in1); 36 return min(in, in1); 41 return min(in, in1); 47 return min(inV1, inV2); 52 return min(inV1, inV2); 57 return min(inV1, inV2); 62 return min(inV1, inV2); 67 return min(inV1, inV2); 72 return min(inV1, inV2) [all...] |
/external/deqp/framework/randomshaders/ |
rsgUtils.hpp | 53 inline float getQuantizedFloat (de::Random& rnd, float min, float max, float step) 55 int numSteps = (int)((max-min)/step); 56 return min + step*rnd.getInt(0, numSteps); 59 inline bool quantizeFloatRange (float& min, float& max) 63 float newMin = deFloatCeil(min*subdiv)/subdiv; 65 min = newMin; // Minimum value quantized 70 if (min <= newMax)
|
/external/iptables/extensions/ |
libxt_length.c | 28 info->min = cb->val.u16_range[0]; 42 if (info->min == info->max) 43 printf("%u", info->min); 45 printf("%u:%u", info->min, info->max); 53 if (info->min == info->max) 54 printf("%u", info->min); 56 printf("%u:%u", info->min, info->max);
|
/frameworks/native/services/surfaceflinger/ |
clz.h | 28 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));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
BigIntegers.java | 65 * Return a random BigInteger not less than 'min' and not greater than 'max' 67 * @param min the least value that may be generated 70 * @return a random BigInteger value in the range [min,max] 73 BigInteger min, 77 int cmp = min.compareTo(max); 82 throw new IllegalArgumentException("'min' may not be greater than 'max'"); 85 return min; 88 if (min.bitLength() > max.bitLength() / 2) 90 return createRandomInRange(ZERO, max.subtract(min), random).add(min); [all...] |
/external/chromium_org/third_party/webrtc/test/testsupport/metrics/ |
video_metrics.h | 34 min(std::numeric_limits<double>::max()), 35 max(std::numeric_limits<double>::min()), 40 double min; member in struct:webrtc::test::QualityMetricsResult
|
/external/webrtc/test/testsupport/metrics/ |
video_metrics.h | 31 min(std::numeric_limits<double>::max()), 32 max(std::numeric_limits<double>::min()), 37 double min; member in struct:webrtc::test::QualityMetricsResult
|
/dalvik/libdex/ |
DexCatch.cpp | 54 // Note: Signed type is important for max and min. 55 int min = 0; local 58 while (max >= min) { 59 int guess = (min + max) >> 1; 71 min = guess + 1;
|
/external/clang/test/Modules/ |
cxx-irgen.cpp | 20 int c = min(1, 2);
|
/external/deqp/framework/delibs/decpp/ |
deRandom.hpp | 48 float getFloat (float min, float max); 49 double getDouble (double min, double max); 50 int getInt (int min, int max); 79 inline float Random::getFloat (float min, float max) 81 DE_ASSERT(min <= max); 82 return min + (max-min)*getFloat(); 85 inline double Random::getDouble (double min, double max) 87 DE_ASSERT(min <= max); 88 return min + (max-min)*getDouble() [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
PartialInputStream.java | 36 return Math.min(super.available(), getBytesLeft()); 51 len = Math.min(len, getBytesLeft()); 56 n = Math.min(n, getBytesLeft()); 61 return (int)Math.min(Integer.MAX_VALUE, limit - position);
|
/external/tinyalsa/ |
tinypcminfo.c | 133 unsigned int min; local 183 min = pcm_params_get_min(params, PCM_PARAM_RATE); 185 printf(" Rate:\tmin=%uHz\tmax=%uHz\n", min, max); 186 min = pcm_params_get_min(params, PCM_PARAM_CHANNELS); 188 printf(" Channels:\tmin=%u\t\tmax=%u\n", min, max); 189 min = pcm_params_get_min(params, PCM_PARAM_SAMPLE_BITS); 191 printf(" Sample bits:\tmin=%u\t\tmax=%u\n", min, max); 192 min = pcm_params_get_min(params, PCM_PARAM_PERIOD_SIZE); 194 printf(" Period size:\tmin=%u\t\tmax=%u\n", min, max); 195 min = pcm_params_get_min(params, PCM_PARAM_PERIODS) [all...] |
/external/valgrind/main/memcheck/tests/ |
mallinfo.c | 12 static size_t check(size_t min, size_t max) 31 printf("(min = %zu, max = %zu)\n", min, max); 37 if (used < min) 43 // used should be reasonably close to min 45 if (used/5*4 > min) 74 static size_t check(size_t min, size_t max) 89 size_t min, max; local 105 min = 0; 109 min += size [all...] |
/bionic/libc/bionic/ |
hash.h | 44 #ifndef min 45 #define min(a,b) (((a)>(b))?(b):(a)) macro
|