Searched defs:amount (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/support/design/base/android/support/design/widget/
H A DMathUtils.java21 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/base/services/core/java/com/android/server/twilight/
H A DTwilightState.java30 TwilightState(boolean isNight, float amount) { argument
32 mAmount = amount;
43 * For twilight affects that change gradually over time, this is the amount they
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp53 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 DCreateJavaOutputStreamAdaptor.cpp39 size_t amount = this->doSkip(size - amountSkipped); local
40 if (0 == amount) {
42 amount = this->doRead(&tmp, 1);
43 if (0 == amount) {
49 amountSkipped += amount;
/frameworks/base/libs/hwui/
H A DUvMapper.h115 static float lerp(float start, float stop, float amount) { argument
116 return start + (stop - start) * amount;
H A DGradientCache.cpp196 void GradientCache::mixBytes(GradientColor& start, GradientColor& end, float amount, argument
198 float oppAmount = 1.0f - amount;
199 const float alpha = start.a * oppAmount + end.a * amount;
202 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount));
203 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount));
204 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount));
208 void GradientCache::mixFloats(GradientColor& start, GradientColor& end, float amount, argument
210 float oppAmount = 1.0f - amount;
211 const float a = start.a * oppAmount + end.a * amount;
214 *d++ = a * (start.r * oppAmount + end.r * amount);
262 float amount = (pos - startPos) / distance; local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationUtils.java43 public static float interpolate(float start, float end, float amount) { argument
44 return start * (1.0f - amount) + end * amount;
47 public static int interpolateColors(int startColor, int endColor, float amount) { argument
49 (int) interpolate(Color.alpha(startColor), Color.alpha(endColor), amount),
50 (int) interpolate(Color.red(startColor), Color.red(endColor), amount),
51 (int) interpolate(Color.green(startColor), Color.green(endColor), amount),
52 (int) interpolate(Color.blue(startColor), Color.blue(endColor), amount));
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DUtils.java98 /** Formats the ratio of amount/total as a percentage. */
99 public static String formatPercentage(long amount, long total) { argument
100 return formatPercentage(((double) amount) / total);
/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/support/v7/recyclerview/src/android/support/v7/widget/
H A DOrientationHelper.java172 * Offsets all children's positions by the given amount.
174 * @param amount Value to add to each child's layout parameters
176 public abstract void offsetChildren(int amount); argument
190 * @param offset offset amount
263 public void offsetChildren(int amount) {
264 mLayoutManager.offsetChildrenHorizontal(amount);
361 public void offsetChildren(int amount) {
362 mLayoutManager.offsetChildrenVertical(amount);
/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/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
155 lerp(float start, float stop, float amount) argument
175 lerpDeg(float start, float end, float amount) argument
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/
H A DESTHandler.java109 private static String indent(int amount) { argument
110 char[] indent = new char[amount * 2];
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DTouchAnimator.java28 * but can have a float input as to the amount they should be in effect. This allows
215 float amount = fraction / mFrameWidth;
216 interpolate(i, amount, target);
219 protected abstract void interpolate(int index, float amount, Object target); argument
241 protected void interpolate(int index, float amount, Object target) { argument
244 mProperty.set((T) target, firstFloat + (secondFloat - firstFloat) * amount);
259 protected void interpolate(int index, float amount, Object target) { argument
262 mProperty.set((T) target, (int) (firstFloat + (secondFloat - firstFloat) * amount));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDragDownHelper.java245 void setEmptyDragAmount(float amount); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DObservableScrollView.java148 void onOverscrolled(float lastX, float lastY, int amount); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNightModeController.java42 private static final String EXTRA_AMOUNT = "amount";
219 private float[] scaleValues(float[] identityMatrix, float[] nightValues, float amount) { argument
222 values[i] = MathUtils.lerp(identityMatrix[i], nightValues[i], amount);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DAmbientState.java108 public void setOverScrollAmount(float amount, boolean onTop) { argument
110 mOverScrollTopAmount = amount;
112 mOverScrollBottomAmount = amount;
/frameworks/support/v4/java/android/support/v4/graphics/
H A DColorUtils.java516 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/preference/
H A DSeekBarVolumizer.java307 public void changeVolumeBy(int amount) { argument
308 mSeekBar.incrementProgressBy(amount);
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java627 private static int constrain(int amount, int low, int high) { argument
628 return amount < low ? low : (amount > high ? high : amount);
/frameworks/base/core/java/android/widget/
H A DListView.java96 * When arrow scrolling, need a certain amount of pixels to preview next
201 * @return The maximum amount a list view will scroll in response to
935 * @param offset The amount to offset from the adapter position to scroll to.
2810 * @return The amount to preview next items when arrow srolling.
2818 * visible, with a fading edge showing below as applicable. The amount is
2825 * @return The amount to scroll. Note: this is always positive! Direction
2988 * given focus, return the selection delta and amount to scroll via
3050 // max scroll amount, we are getting it at least partially in view,
3094 * @return The amount to scroll. Note: this is always positive! Direction
3142 * Scroll the children by amount, addin
3147 scrollListItemsBy(int amount) argument
[all...]
/frameworks/rs/driver/runtime/
H A Drs_cl.c952 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument
953 return start + (stop - start) * amount;
955 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument
956 return start + (stop - start) * amount;
958 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument
959 return start + (stop - start) * amount;
961 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument
962 return start + (stop - start) * amount;
964 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument
965 return start + (stop - start) * amount;
967 mix(float3 start, float3 stop, float amount) argument
970 mix(float4 start, float4 stop, float amount) argument
2076 mix(half start, half stop, half amount) argument
2079 mix(half2 start, half2 stop, half2 amount) argument
2082 mix(half3 start, half3 stop, half3 amount) argument
2085 mix(half4 start, half4 stop, half4 amount) argument
2088 mix(half2 start, half2 stop, half amount) argument
2091 mix(half3 start, half3 stop, half amount) argument
2094 mix(half4 start, half4 stop, half amount) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java389 * Set the amount of horizontal padding between the switch and the associated text.
401 * Get the amount of horizontal padding between the switch and the associated text.
1424 private static float constrain(float amount, float low, float high) { argument
1425 return amount < low ? low : (amount > high ? high : amount);
/frameworks/base/core/java/android/view/
H A DWindow.java1103 * Set the amount of dim behind the window when using
1105 * the default dim amount of that is selected by the Window based on
1108 * @param amount The new dim amount, from 0 for no dim to 1 for full dim.
1110 public void setDimAmount(float amount) { argument
1112 attrs.dimAmount = amount;
1479 * @param alpha The alpha amount, 0 is completely transparent and 255 is

Completed in 1976 milliseconds

12