/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 [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, [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, floa 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/volley/src/test/java/com/android/volley/ |
H A D | RequestTest.java | 31 TestRequest low = new TestRequest(Priority.LOW); 32 low.setSequence(sequence++); 41 assertTrue(low.compareTo(high) > 0); 42 assertTrue(high.compareTo(low) < 0); 43 assertTrue(low.compareTo(low2) < 0); 44 assertTrue(low.compareTo(immediate) > 0);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | EbmlUtil.cpp | 55 int32_t low = u; local 56 return low !=0 ? numberOfTrailingZeros32(low)
|
/frameworks/base/core/java/android/text/ |
H A D | AndroidBidi.java | 167 for (int low = i, hi = e - 2; low < hi; low += 2, hi -= 2) { 168 int x = ld[low]; ld[low] = ld[hi]; ld[hi] = x; 169 x = ld[low+1]; ld[low+1] = ld[hi+1]; ld[hi+1] = x;
|
H A D | Layout.java | 1101 int high = getLineCount(), low = -1, guess; 1103 while (high - low > 1) { 1104 guess = (high + low) / 2; 1109 low = guess; 1112 if (low < 0) 1115 return low; 1124 int high = getLineCount(), low = -1, guess; 1126 while (high - low > 1) { 1127 guess = (high + low) / 2; 1132 low [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/core/java/android/animation/ |
H A D | PathKeyframes.java | 78 int low = 0; 81 while (low <= high) { 82 int mid = (low + high) / 2; 88 low = mid + 1; 94 // now high is below the fraction and low is above the fraction 95 return interpolateInRange(fraction, high, low);
|
/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioEqualizer.cpp | 172 void AudioEqualizer::getBandRange(int band, uint32_t & low, argument 176 low = 0; 179 low = mpHighShelf->getFrequency(); 182 mpPeakingFilters[band - 1].getBandRange(low, high); 256 uint32_t low = mpLowShelf->getFrequency(); local 257 if (targetFreq <= low) { 272 low = freq; 274 // Now, low is right below the target and high is right above. See which one 276 low = Effects_log2(low); [all...] |
H A D | AudioPeakingFilter.cpp | 103 void AudioPeakingFilter::getBandRange(uint32_t & low, uint32_t & high) const { argument 107 low = static_cast<uint32_t>((static_cast<uint64_t>(mNominalFrequency) * Effects_exp2(-halfBW + (16 << 15))) >> 16);
|
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; 221 // The low-shelving filter.
|
H A D | AudioPeakingFilter.h | 89 void getBandRange(uint32_t & low, uint32_t & high) const; 145 // the low-level biquad coefficients.
|
/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); 100 int low = 0; 118 low = a.getInt( 147 mLevelListState.addLevel(low, high, dr); 197 public void addLevel(int low, int high, Drawable drawable) { argument 199 mLows[pos] = low;
|
/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 150 low = ( (-32) * scaleFactor); 226 if ( pDstMVCurMB[iBlk].dx < low ) 235 if ( pDstMVCurMB[iBlk].dy < low )
|
/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);
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 168 etc1_uint32 low, bool second, bool flipped) { 188 int offset = ((low >> k) & 1) | ((low >> (k + 15)) & 2); 202 etc1_uint32 low = (pIn[4] << 24) | (pIn[5] << 16) | (pIn[6] << 8) | pIn[7]; local 229 decode_subblock(pOut, r1, g1, b1, tableA, low, false, flipped); 230 decode_subblock(pOut, r2, g2, b2, tableB, low, true, flipped); 235 etc1_uint32 low; member in struct:__anon1511 350 &pCompressed->low, yy + x * 4, pModifierTable); 365 &pCompressed->low, y + xx * 4, pModifierTable); 437 pCompressed->low 167 decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, etc1_uint32 low, bool second, bool flipped) argument [all...] |
/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 120 String.format("Value %s must be greater or equal to %s, but was lower", value, low), 121 value >= low);
|
/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; 313 low = guess;
|
/frameworks/base/core/java/android/view/ |
H A D | GhostView.java | 237 int low = firstGhost; 240 while (low <= high) { 241 int mid = (low + high) / 2; 246 low = mid + 1; 253 return low;
|
/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; 262 low = l; 267 return ColorUtilsFromCompat.LABToColor(low, a, b); 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/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | IntegralToString.java | 330 int low = (int) (n % 1000000000); // Extract low-order 9 digits 331 int cursor = intIntoCharArray(buf, bufLen, low); 339 * The remaining digits are (n - low) / 1,000,000,000. This 343 n = ((n - low) >>> 9) * 0x8E47CE423A2E9C6DL; 348 * low-order digit, put it in buf, and then call intIntoCharArray
|