/frameworks/support/design/base/android/support/design/widget/ |
H A D | MathUtils.java | 21 static int constrain(int amount, int low, int high) { argument 22 return amount < low ? low : (amount > high ? high : amount); 25 static float constrain(float amount, float low, float high) { argument 26 return amount < low ? low : (amount > high ? high : amount);
|
/frameworks/rs/driver/runtime/arch/ |
H A D | clamp.c | 25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 26 return amount < low ? low : (amount > high ? high : amount); \ 46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 55 r.x = amount.x < low.x ? low.x : (amount.x > high [all...] |
H A D | generic.c | 20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high); 30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 31 return amount < low ? low : (amount > high ? high : amount); \ 34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { argument 87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); 88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); 89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); 90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); 94 static inline float4 clamp(float4 amount, float low, float high) { argument 103 clamp(int2 amount, int low, int high) argument 110 clamp(float2 amount, float low, float high) argument 117 clamp(int amount, int low, int high) argument 121 clamp(float amount, float low, float high) argument [all...] |
/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioPeakingFilter.cpp | 103 void AudioPeakingFilter::getBandRange(uint32_t & low, uint32_t & high) const { 109 high = mNiquistFreq; 111 high = static_cast<uint32_t>((static_cast<uint64_t>(mNominalFrequency) * Effects_exp2(halfBW + (16 << 15))) >> 16); 112 if (CC_UNLIKELY(high > mNiquistFreq)) { 113 high = mNiquistFreq;
|
H A D | AudioEqualizer.cpp | 173 uint32_t & high) const { 177 high = mpLowShelf->getFrequency(); 180 high = mSampleRate * 500; 182 mpPeakingFilters[band - 1].getBandRange(low, high); 260 uint32_t high = mpHighShelf->getFrequency(); local 261 if (targetFreq >= high) { 268 high = freq; 274 // Now, low is right below the target and high is right above. See which one 277 high = Effects_log2(high); [all...] |
H A D | AudioEqualizer.h | 29 // The EQ is composed of a low-shelf, zero or more peaking filters and a high 145 // For the low shelf, the low bound is 0 and the high bound is the band 147 // For the high shelf, the low bound is the band frequency and the high 150 void getBandRange(int band, uint32_t & low, uint32_t & high) const; 223 // The high-shelving filter.
|
H A D | AudioPeakingFilter.h | 37 // All is left for this class to do is mapping between high-level parameters to 89 void getBandRange(uint32_t & low, uint32_t & high) const; 144 // A coefficient interpolator, used for mapping the high level parameters to
|
/frameworks/volley/src/test/java/com/android/volley/ |
H A D | RequestTest.java | 35 TestRequest high = new TestRequest(Priority.HIGH); 36 high.setSequence(sequence++); 41 assertTrue(low.compareTo(high) > 0); 42 assertTrue(high.compareTo(low) < 0); 45 assertTrue(immediate.compareTo(high) < 0);
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 201 etc1_uint32 high = (pIn[0] << 24) | (pIn[1] << 16) | (pIn[2] << 8) | pIn[3]; local 204 if (high & 2) { 206 int rBase = high >> 27; 207 int gBase = high >> 19; 208 int bBase = high >> 11; 210 r2 = convertDiff(rBase, high >> 24); 212 g2 = convertDiff(gBase, high >> 16); 214 b2 = convertDiff(bBase, high >> 8); 217 r1 = convert4To8(high >> 28); 218 r2 = convert4To8(high >> 2 234 etc1_uint32 high; member in struct:__anon1511 [all...] |
/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 38 public static int constrain(int amount, int low, int high) { argument 39 return amount < low ? low : (amount > high ? high : amount); 42 public static long constrain(long amount, long low, long high) { argument 43 return amount < low ? low : (amount > high ? high : amount); 46 public static float constrain(float amount, float low, float high) { argument 47 return amount < low ? low : (amount > high ? high : amount);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | SparseWeakArray.java | 307 int high = start + len, low = start - 1, guess; 309 while (high - low > 1) { 310 guess = (high + low) / 2; 315 high = guess; 318 if (high == start + len) 320 else if (a[high] == key) 321 return high; 323 return ~high;
|
/frameworks/base/core/java/android/animation/ |
H A D | PathKeyframes.java | 79 int high = numPoints - 1; 81 while (low <= high) { 82 int mid = (low + high) / 2; 86 high = mid - 1; 94 // now high is below the fraction and low is above the fraction 95 return interpolateInRange(fraction, high, low);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | LevelListDrawable.java | 68 public void addLevel(int low, int high, Drawable drawable) { argument 70 mLevelListState.addLevel(low, high, drawable); 120 int high = a.getInt( 127 if (high < 0) { 147 mLevelListState.addLevel(low, high, dr); 197 public void addLevel(int low, int high, Drawable drawable) { argument 200 mHighs[pos] = high;
|
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | DngUtils.h | 34 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
H A D | omxVCM4P2_DecodePadMV_PVOP.c | 111 OMX_S16 high, low, range; local 149 high = ( 32 * scaleFactor) - 1; 230 if (pDstMVCurMB[iBlk].dx > high) 239 if (pDstMVCurMB[iBlk].dy > high)
|
/frameworks/base/libs/hwui/ |
H A D | SpotShadow.h | 53 static void quicksortCirc(Vector2* points, int low, int high, const Vector2& center); 54 static void quicksortX(Vector2* points, int low, int high);
|
H A D | SpotShadow.cpp | 254 void SpotShadow::quicksortCirc(Vector2* points, int low, int high, argument 256 int i = low, j = high; 257 int p = low + (high - low) / 2; 274 if (i < high) quicksortCirc(points, i, high, center); 896 // The total pair number can be as high as umbraLength + penumbraLength.
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | AssertHelpers.java | 116 * Assert that {@code low <= value <= high} 118 public static void assertInRange(float value, float low, float high) { argument 124 value, high), 125 value <= high);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessList.java | 192 // These are the high-end OOM level limits. This is appropriate for a 258 int high = mOomMinFreeHigh[i]; 260 // Increase the high min-free levels for cached processes for 64-bit 261 if (i == 4) high = (high*3)/2; 262 else if (i == 5) high = (high*7)/4; 264 mOomMinFree[i] = (int)(low + ((high-low)*scale));
|
/frameworks/rs/api/ |
H A D | rs_core.spec | 20 RenderScript is a high-performance runtime that provides compute operations at the native level.
|
/frameworks/base/core/java/android/view/ |
H A D | GhostView.java | 238 int high = overlayViewGroup.getChildCount() - 1; 240 while (low <= high) { 241 int mid = (low + high) / 2; 248 high = mid - 1;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 252 double low = 0, high = lab[0]; 254 for (int i = 0; i < 15 && high - low > 0.00001; i++) { 255 final double l = (low + high) / 2; 264 high = l; 627 private static int constrain(int amount, int low, int high) { argument 628 return amount < low ? low : (amount > high ? high : amount);
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 516 private static float constrain(float amount, float low, float high) { argument 517 return amount < low ? low : (amount > high ? high : amount); 520 private static int constrain(int amount, int low, int high) { argument 521 return amount < low ? low : (amount > high ? high : amount);
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 62 * Value for break strategy indicating high quality line breaking, including automatic 1101 int high = getLineCount(), low = -1, guess; 1103 while (high - low > 1) { 1104 guess = (high + low) / 2; 1107 high = guess; 1124 int high = getLineCount(), low = -1, guess; 1126 while (high - low > 1) { 1127 guess = (high + low) / 2; 1130 high = guess; 1189 int high [all...] |