Searched refs:amount (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/rs/driver/runtime/arch/
H A Dclamp.c25 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 Dgeneric.c20 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 DrsCpuIntrinsicInlines.h85 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 DUtils.cpp62 ssize_t amount; local
69 // we want to return amount that was skipped
81 amount = newOffset - oldOffset;
83 amount = fAsset->read(buffer, size);
84 if (amount <= 0) {
85 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
89 if (amount < 0) {
90 amount = 0;
92 return amount;
H A DCreateJavaOutputStreamAdaptor.cpp38 size_t amount = this->doSkip(size - amountSkipped); local
39 if (0 == amount) {
41 amount = this->doRead(&tmp, 1);
42 if (0 == amount) {
48 amountSkipped += amount;
/frameworks/base/core/java/android/util/
H A DMathUtils.java38 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
147 lerp(float start, float stop, float amount) argument
[all...]
/frameworks/base/tools/aapt/
H A DIndentPrinter.h13 void indent(int amount = 1) {
14 mIndent += amount;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DAmbientState.java99 public void setOverScrollAmount(float amount, boolean onTop) { argument
101 mOverScrollTopAmount = amount;
103 mOverScrollBottomAmount = amount;
H A DNotificationStackScrollLayout.java55 * A layout which handles a dynamic amount of notifications and presents them in a scrollable stack.
136 * The raw amount of the overScroll on the top, which is not rubber-banded.
141 * The raw amount of the overScroll on the bottom, which is not rubber-banded.
174 * The minimal amount of over scroll which is needed in order to switch to the quick settings
918 * @param deltaY The amount to scroll upwards, has to be positive.
919 * @return The amount of scrolling to be performed by the scroller,
920 * not handled by the overScroll amount.
951 * @param deltaY The amount to scroll downwards, has to be negative.
952 * @return The amount of scrolling to be performed by the scroller,
953 * not handled by the overScroll amount
1093 setOverScrollAmount(float amount, boolean onTop, boolean animate) argument
1105 setOverScrollAmount(float amount, boolean onTop, boolean animate, boolean cancelAnimators) argument
1120 setOverScrollAmount(float amount, boolean onTop, boolean animate, boolean cancelAnimators, boolean isRubberbanded) argument
1128 setOverScrollAmountInternal(float amount, boolean onTop, boolean animate, boolean isRubberbanded) argument
1143 notifyOverscrollTopListener(float amount, boolean isRubberbanded) argument
1167 setOverScrolledPixels(float amount, boolean onTop) argument
2447 onOverscrollTopChanged(float amount, boolean isRubberbanded) argument
[all...]
/frameworks/base/libs/hwui/
H A DGradientCache.cpp215 void GradientCache::mixBytes(GradientColor& start, GradientColor& end, float amount, argument
217 float oppAmount = 1.0f - amount;
218 const float alpha = start.a * oppAmount + end.a * amount;
221 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount));
222 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount));
223 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount));
227 void GradientCache::mixFloats(GradientColor& start, GradientColor& end, float amount, argument
229 float oppAmount = 1.0f - amount;
230 const float a = start.a * oppAmount + end.a * amount;
233 *d++ = a * (start.r * oppAmount + end.r * amount);
281 float amount = (pos - startPos) / distance; local
[all...]
H A DUvMapper.h115 static float lerp(float start, float stop, float amount) { argument
116 return start + (stop - start) * amount;
H A DGradientCache.h179 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;
H A DCaches.cpp251 uint32_t Caches::getOverdrawColor(uint32_t amount) const {
256 if (amount < 1) amount = 1;
257 if (amount > 4) amount = 4;
258 return sOverdrawColors[mOverdrawDebugColorSet][amount - 1];
H A DCaches.h161 * amount of overdraw (1 for 1x, 2 for 2x, etc.)
163 uint32_t getOverdrawColor(uint32_t amount) const;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DSwipeHelper.java318 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/v7/recyclerview/src/android/support/v7/widget/
H A DOrientationHelper.java137 * 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/services/core/java/com/android/server/display/
H A DRampAnimator.java148 final float amount = timeDelta * mRate / scale;
150 mAnimatedValue = Math.min(mAnimatedValue + amount, mTargetValue);
152 mAnimatedValue = Math.max(mAnimatedValue - amount, mTargetValue);
/frameworks/rs/scriptc/
H A Drs_math.rsh61 * 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, uint high);
72 _RS_RUNTIME int __attribute__((const, overloadable, always_inline)) rsClamp(int amount, int low, int high);
76 _RS_RUNTIME ushort __attribute__((const, overloadable, always_inline)) rsClamp(ushort amount, ushort low, ushort high);
80 _RS_RUNTIME short __attribute__((const, overloadable, always_inline)) rsClamp(short amount, short low, short high);
84 _RS_RUNTIME uchar __attribute__((const, overloadable, always_inline)) rsClamp(uchar amount, uchar low, uchar high);
88 _RS_RUNTIME char __attribute__((const, overloadable, always_inline)) rsClamp(char amount, char low, char high);
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java462 * @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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DObservableScrollView.java148 void onOverscrolled(float lastX, float lastY, int amount); argument
H A DNotificationPanelView.java805 public void onOverscrolled(float lastTouchX, float lastTouchY, int amount) { argument
809 onQsExpansionStarted(amount);
817 public void onOverscrollTopChanged(float amount, boolean isRubberbanded) { argument
820 amount = 0f;
822 float rounded = amount >= 1f ? amount : 0f;
1883 public void setEmptyDragAmount(float amount) { argument
1890 mEmptyDragAmount = amount * factor;
/frameworks/base/core/java/android/preference/
H A DSeekBarVolumizer.java267 public void changeVolumeBy(int amount) { argument
268 mSeekBar.incrementProgressBy(amount);
/frameworks/rs/driver/runtime/
H A Drs_cl.c793 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument
794 return start + (stop - start) * amount;
796 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument
797 return start + (stop - start) * amount;
799 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument
800 return start + (stop - start) * amount;
802 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument
803 return start + (stop - start) * amount;
805 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument
806 return start + (stop - start) * amount;
808 mix(float3 start, float3 stop, float amount) argument
811 mix(float4 start, float4 stop, float amount) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDragDownHelper.java229 void setEmptyDragAmount(float amount); argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java305 * Set the amount of horizontal padding between the switch and the associated text.
315 * Get the amount of horizontal padding between the switch and the associated text.
1064 private static float constrain(float amount, float low, float high) { argument
1065 return amount < low ? low : (amount > high ? high : amount);

Completed in 595 milliseconds

12