/frameworks/rs/driver/runtime/arch/ |
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.y > high.y ? high.y : amount.y); \ 52 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 54 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 55 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 56 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ 60 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \ [all …]
|
D | generic.c | 20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short hi… 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) { \ 43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC() 87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in CVT_FUNC() 88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in CVT_FUNC() 89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in CVT_FUNC() 90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in CVT_FUNC() 94 static inline float4 clamp(float4 amount, float low, float high) { in clamp() argument 96 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp() 97 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp() 98 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp() 99 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 38 public static int constrain(int amount, int low, int high) { in constrain() argument 39 return amount < low ? low : (amount > high ? high : amount); in constrain() 42 public static long constrain(long amount, long low, long high) { in constrain() argument 43 return amount < low ? low : (amount > high ? high : amount); in constrain() 46 public static float constrain(float amount, float low, float high) { in constrain() argument 47 return amount < low ? low : (amount > high ? high : amount); in constrain() 147 public static float lerp(float start, float stop, float amount) { in lerp() argument 148 return start + (stop - start) * amount; in lerp()
|
/frameworks/base/core/jni/android/graphics/ |
D | Utils.cpp | 62 ssize_t amount; in read() local 81 amount = newOffset - oldOffset; in read() 83 amount = fAsset->read(buffer, size); in read() 84 if (amount <= 0) { in read() 85 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount); in read() 89 if (amount < 0) { in read() 90 amount = 0; in read() 92 return amount; in read()
|
D | CreateJavaOutputStreamAdaptor.cpp | 38 size_t amount = this->doSkip(size - amountSkipped); in read() local 39 if (0 == amount) { in read() 41 amount = this->doRead(&tmp, 1); in read() 42 if (0 == amount) { in read() 48 amountSkipped += amount; in read()
|
/frameworks/base/libs/hwui/ |
D | GradientCache.cpp | 215 void GradientCache::mixBytes(GradientColor& start, GradientColor& end, float amount, in mixBytes() argument 217 float oppAmount = 1.0f - amount; in mixBytes() 218 const float alpha = start.a * oppAmount + end.a * amount; in mixBytes() 221 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount)); in mixBytes() 222 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount)); in mixBytes() 223 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount)); in mixBytes() 227 void GradientCache::mixFloats(GradientColor& start, GradientColor& end, float amount, in mixFloats() argument 229 float oppAmount = 1.0f - amount; in mixFloats() 230 const float a = start.a * oppAmount + end.a * amount; in mixFloats() 233 *d++ = a * (start.r * oppAmount + end.r * amount); in mixFloats() [all …]
|
D | GradientCache.h | 179 float amount, uint8_t*& dst) const; 181 void mixBytes(GradientColor& start, GradientColor& end, float amount, uint8_t*& dst) const; 182 void mixFloats(GradientColor& start, GradientColor& end, float amount, uint8_t*& dst) const;
|
D | UvMapper.h | 115 static float lerp(float start, float stop, float amount) { in lerp() argument 116 return start + (stop - start) * amount; in lerp()
|
D | Caches.cpp | 251 uint32_t Caches::getOverdrawColor(uint32_t amount) const { in getOverdrawColor() 256 if (amount < 1) amount = 1; in getOverdrawColor() 257 if (amount > 4) amount = 4; in getOverdrawColor() 258 return sOverdrawColors[mOverdrawDebugColorSet][amount - 1]; in getOverdrawColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | SwipeHelper.java | 319 private void setSwipeAmount(float amount) { in setSwipeAmount() argument 323 && (!isValidSwipeDirection(amount) || !mCallback.canChildBeDismissed(mCurrView))) { in setSwipeAmount() 326 if (Math.abs(amount) >= size) { in setSwipeAmount() 327 amount = amount > 0 ? maxScrollDistance : -maxScrollDistance; in setSwipeAmount() 329 amount = maxScrollDistance * (float) Math.sin((amount/size)*(Math.PI/2)); in setSwipeAmount() 332 setTranslation(mCurrView, amount); in setSwipeAmount() 339 private boolean isValidSwipeDirection(float amount) { in isValidSwipeDirection() argument 342 return (amount <= 0) ? mAllowSwipeTowardsEnd : mAllowSwipeTowardsStart; in isValidSwipeDirection() 344 return (amount <= 0) ? mAllowSwipeTowardsStart : mAllowSwipeTowardsEnd; in isValidSwipeDirection()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | AmbientState.java | 99 public void setOverScrollAmount(float amount, boolean onTop) { in setOverScrollAmount() argument 101 mOverScrollTopAmount = amount; in setOverScrollAmount() 103 mOverScrollBottomAmount = amount; in setOverScrollAmount()
|
D | NotificationStackScrollLayout.java | 1041 public void setOverScrollAmount(float amount, boolean onTop, boolean animate) { in setOverScrollAmount() argument 1042 setOverScrollAmount(amount, onTop, animate, true); in setOverScrollAmount() 1053 public void setOverScrollAmount(float amount, boolean onTop, boolean animate, in setOverScrollAmount() argument 1055 setOverScrollAmount(amount, onTop, animate, cancelAnimators, isRubberbanded(onTop)); in setOverScrollAmount() 1068 public void setOverScrollAmount(float amount, boolean onTop, boolean animate, in setOverScrollAmount() argument 1073 setOverScrollAmountInternal(amount, onTop, animate, isRubberbanded); in setOverScrollAmount() 1076 private void setOverScrollAmountInternal(float amount, boolean onTop, boolean animate, in setOverScrollAmountInternal() argument 1078 amount = Math.max(0, amount); in setOverScrollAmountInternal() 1080 mStateAnimator.animateOverScrollToAmount(amount, onTop, isRubberbanded); in setOverScrollAmountInternal() 1082 setOverScrolledPixels(amount / getRubberBandFactor(onTop), onTop); in setOverScrollAmountInternal() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | OrientationHelper.java | 141 public abstract void offsetChildren(int amount); in offsetChildren() argument 206 public void offsetChildren(int amount) { in createHorizontalHelper() argument 207 mLayoutManager.offsetChildrenHorizontal(amount); in createHorizontalHelper() 282 public void offsetChildren(int amount) { 283 mLayoutManager.offsetChildrenVertical(amount);
|
/frameworks/base/services/core/java/com/android/server/display/ |
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/base/tools/aapt/ |
D | IndentPrinter.h | 13 void indent(int amount = 1) { 14 mIndent += amount;
|
/frameworks/base/core/java/android/text/method/ |
D | BaseMovementMethod.java | 466 protected boolean scrollLeft(TextView widget, Spannable buffer, int amount) { in scrollLeft() argument 470 scrollX = Math.max(scrollX - getCharacterWidth(widget) * amount, minScrollX); in scrollLeft() 487 protected boolean scrollRight(TextView widget, Spannable buffer, int amount) { in scrollRight() argument 491 scrollX = Math.min(scrollX + getCharacterWidth(widget) * amount, maxScrollX); in scrollRight() 508 protected boolean scrollUp(TextView widget, Spannable buffer, int amount) { in scrollUp() argument 518 topLine = Math.max(topLine - amount + 1, 0); in scrollUp() 535 protected boolean scrollDown(TextView widget, Spannable buffer, int amount) { in scrollDown() argument 548 bottomLine = Math.min(bottomLine + amount - 1, limit); in scrollDown()
|
/frameworks/rs/scriptc/ |
D | rs_math.rsh | 61 * Clamp the value amount between low and high. 63 * @param amount The value to clamp 67 _RS_RUNTIME uint __attribute__((const, overloadable, always_inline)) rsClamp(uint amount, uint low,… 72 _RS_RUNTIME int __attribute__((const, overloadable, always_inline)) rsClamp(int amount, int low, in… 76 _RS_RUNTIME ushort __attribute__((const, overloadable, always_inline)) rsClamp(ushort amount, ushor… 80 _RS_RUNTIME short __attribute__((const, overloadable, always_inline)) rsClamp(short amount, short l… 84 _RS_RUNTIME uchar __attribute__((const, overloadable, always_inline)) rsClamp(uchar amount, uchar l… 88 _RS_RUNTIME char __attribute__((const, overloadable, always_inline)) rsClamp(char amount, char low,…
|
D | rs_core_math.rsh | 601 * @param amount value to be clamped. Supports 1,2,3,4 components 614 * @param amount value to be clamped. Supports 1,2,3,4 components 627 * @param amount value to be clamped. Supports 1,2,3,4 components 640 * @param amount value to be clamped. Supports 1,2,3,4 components 653 * @param amount value to be clamped. Supports 1,2,3,4 components 666 * @param amount value to be clamped. Supports 1,2,3,4 components 679 * @param amount value to be clamped. Supports 1,2,3,4 components 692 * @param amount value to be clamped. Supports 1,2,3,4 components 705 * @param amount value to be clamped. Supports 1,2,3,4 components 718 * @param amount value to be clamped. Supports 1,2,3,4 components [all …]
|
/frameworks/base/docs/html/training/tv/discovery/ |
D | index.jd | 24 least amount of input possible. With the amount of choice available to users, it is important for
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 226 public void changeVolumeBy(int amount) { in changeVolumeBy() argument 227 mSeekBar.incrementProgressBy(amount); in changeVolumeBy()
|
/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 793 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { in mix() argument 794 return start + (stop - start) * amount; in mix() 796 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { in mix() argument 797 return start + (stop - start) * amount; in mix() 799 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { in mix() argument 800 return start + (stop - start) * amount; in mix() 802 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { in mix() argument 803 return start + (stop - start) * amount; in mix() 805 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { in mix() argument 806 return start + (stop - start) * amount; in mix() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationPanelView.java | 741 public void onOverscrolled(float lastTouchX, float lastTouchY, int amount) { in onOverscrolled() argument 744 onQsExpansionStarted(amount); in onOverscrolled() 753 public void onOverscrollTopChanged(float amount, boolean isRubberbanded) { in onOverscrollTopChanged() argument 756 amount = 0f; in onOverscrollTopChanged() 758 float rounded = amount >= 1f ? amount : 0f; in onOverscrollTopChanged() 1723 public void setEmptyDragAmount(float amount) { in setEmptyDragAmount() argument 1730 mEmptyDragAmount = amount * factor; in setEmptyDragAmount()
|
D | ObservableScrollView.java | 148 void onOverscrolled(float lastX, float lastY, int amount); in onOverscrolled() argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 1059 private static float constrain(float amount, float low, float high) { in constrain() argument 1060 return amount < low ? low : (amount > high ? high : amount); in constrain()
|