/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); \ 45 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 47 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 48 r.y = amount.y < low.y ? low.y : (amount [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 [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 94 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/base/core/jni/android/graphics/ |
H A D | Utils.cpp | 53 ssize_t amount; local 60 // we want to return amount that was skipped 72 amount = newOffset - oldOffset; 74 amount = fAsset->read(buffer, size); 75 if (amount <= 0) { 76 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount); 80 if (amount < 0) { 81 amount = 0; 83 return amount;
|
H A D | CreateJavaOutputStreamAdaptor.cpp | 37 size_t amount = this->doSkip(size - amountSkipped); local 38 if (0 == amount) { 40 amount = this->doRead(&tmp, 1); 41 if (0 == amount) { 47 amountSkipped += amount;
|
/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 < lo 155 lerp(float start, float stop, float amount) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | IndentPrinter.h | 13 void indent(int amount = 1) { 14 mIndent += amount;
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 208 void GradientCache::mixBytes(GradientColor& start, GradientColor& end, float amount, argument 210 float oppAmount = 1.0f - amount; 211 const float alpha = start.a * oppAmount + end.a * amount; 214 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount)); 215 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount)); 216 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount)); 220 void GradientCache::mixFloats(GradientColor& start, GradientColor& end, float amount, argument 222 float oppAmount = 1.0f - amount; 223 const float a = start.a * oppAmount + end.a * amount; 226 *d++ = a * (start.r * oppAmount + end.r * amount); 274 float amount = (pos - startPos) / distance; local [all...] |
H A D | UvMapper.h | 115 static float lerp(float start, float stop, float amount) { argument 116 return start + (stop - start) * amount;
|
H A D | Caches.cpp | 158 uint32_t Caches::getOverdrawColor(uint32_t amount) const { 163 if (amount < 1) amount = 1; 164 if (amount > 4) amount = 4; 167 return sOverdrawColors[overdrawColorIndex][amount - 1];
|
H A D | GradientCache.h | 172 float amount, uint8_t*& dst) const; 174 void mixBytes(GradientColor& start, GradientColor& end, float amount, uint8_t*& dst) const; 175 void mixFloats(GradientColor& start, GradientColor& end, float amount, uint8_t*& dst) const;
|
H A D | Caches.h | 116 * amount of overdraw (1 for 1x, 2 for 2x, etc.) 118 uint32_t getOverdrawColor(uint32_t amount) const;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | SwipeHelper.java | 318 private void setSwipeAmount(float amount) { argument 322 && (!isValidSwipeDirection(amount) || !mCallback.canChildBeDismissed(mCurrView))) { 325 if (Math.abs(amount) >= size) { 326 amount = amount > 0 ? maxScrollDistance : -maxScrollDistance; 328 amount = maxScrollDistance * (float) Math.sin((amount/size)*(Math.PI/2)); 331 setTranslation(mCurrView, amount); 338 private boolean isValidSwipeDirection(float amount) { argument 341 return (amount < [all...] |
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 289 private static float constrain(float amount, float low, float high) { argument 290 return amount < low ? low : (amount > high ? high : amount); 293 private static int constrain(int amount, int low, int high) { argument 294 return amount < low ? low : (amount > high ? high : amount);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | OrientationHelper.java | 137 * Offsets all children's positions by the given amount. 139 * @param amount Value to add to each child's layout parameters 141 public abstract void offsetChildren(int amount); argument 155 * @param offset offset amount 206 public void offsetChildren(int amount) { 207 mLayoutManager.offsetChildrenHorizontal(amount); 282 public void offsetChildren(int amount) { 283 mLayoutManager.offsetChildrenVertical(amount);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | AmbientState.java | 109 public void setOverScrollAmount(float amount, boolean onTop) { argument 111 mOverScrollTopAmount = amount; 113 mOverScrollBottomAmount = amount;
|
H A D | NotificationStackScrollLayout.java | 60 * A layout which handles a dynamic amount of notifications and presents them in a scrollable stack. 142 * The raw amount of the overScroll on the top, which is not rubber-banded. 147 * The raw amount of the overScroll on the bottom, which is not rubber-banded. 179 * The minimal amount of over scroll which is needed in order to switch to the quick settings 995 * @param deltaY The amount to scroll upwards, has to be positive. 996 * @return The amount of scrolling to be performed by the scroller, 997 * not handled by the overScroll amount. 1028 * @param deltaY The amount to scroll downwards, has to be negative. 1029 * @return The amount of scrolling to be performed by the scroller, 1030 * not handled by the overScroll amount 1170 setOverScrollAmount(float amount, boolean onTop, boolean animate) argument 1182 setOverScrollAmount(float amount, boolean onTop, boolean animate, boolean cancelAnimators) argument 1197 setOverScrollAmount(float amount, boolean onTop, boolean animate, boolean cancelAnimators, boolean isRubberbanded) argument 1205 setOverScrollAmountInternal(float amount, boolean onTop, boolean animate, boolean isRubberbanded) argument 1220 notifyOverscrollTopListener(float amount, boolean isRubberbanded) argument 1244 setOverScrolledPixels(float amount, boolean onTop) argument 2905 onOverscrollTopChanged(float amount, boolean isRubberbanded) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | RampAnimator.java | 148 final float amount = timeDelta * mRate / scale; 150 mAnimatedValue = Math.min(mAnimatedValue + amount, mTargetValue); 152 mAnimatedValue = Math.max(mAnimatedValue - amount, mTargetValue);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | OMAConstants.java | 77 int amount = in.read(octets, offset, octets.length - offset); 78 if (amount <= 0) 80 offset += amount;
|
/frameworks/base/core/java/android/text/method/ |
H A D | BaseMovementMethod.java | 462 * @param amount The number of characters to scroll by. Must be at least 1. 466 protected boolean scrollLeft(TextView widget, Spannable buffer, int amount) { argument 470 scrollX = Math.max(scrollX - getCharacterWidth(widget) * amount, minScrollX); 483 * @param amount The number of characters to scroll by. Must be at least 1. 487 protected boolean scrollRight(TextView widget, Spannable buffer, int amount) { argument 491 scrollX = Math.min(scrollX + getCharacterWidth(widget) * amount, maxScrollX); 504 * @param amount The number of lines to scroll by. Must be at least 1. 508 protected boolean scrollUp(TextView widget, Spannable buffer, int amount) { argument 518 topLine = Math.max(topLine - amount + 1, 0); 531 * @param amount Th 535 scrollDown(TextView widget, Spannable buffer, int amount) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
H A D | TestDriver.java | 156 int amount = in.read(payload, position, length - position); 157 if ( amount <= 0 ) { 158 throw new EOFException("Got " + amount); 160 position += amount;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ObservableScrollView.java | 148 void onOverscrolled(float lastX, float lastY, int amount); argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsHelper.java | 464 double amount = mMinDrainedPower - mComputedPower; 466 BatterySipper bs = new BatterySipper(DrainType.UNACCOUNTED, null, amount); 474 mMaxPower = Math.max(mMaxPower, amount); 476 double amount = mComputedPower - mMaxDrainedPower; 479 BatterySipper bs = new BatterySipper(DrainType.OVERCOUNTED, null, amount); 485 mMaxPower = Math.max(mMaxPower, amount);
|
/frameworks/rs/driver/runtime/ |
H A D | rs_cl.c | 796 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument 797 return start + (stop - start) * amount; 799 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument 800 return start + (stop - start) * amount; 802 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument 803 return start + (stop - start) * amount; 805 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument 806 return start + (stop - start) * amount; 808 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument 809 return start + (stop - start) * amount; 811 mix(float3 start, float3 stop, float amount) argument 814 mix(float4 start, float4 stop, float amount) argument [all...] |