/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/base/services/core/java/com/android/server/twilight/ |
H A D | TwilightState.java | 30 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 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 | 39 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 D | UvMapper.h | 115 static float lerp(float start, float stop, float amount) { argument 116 return start + (stop - start) * amount;
|
H A D | GradientCache.cpp | 196 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 D | NotificationUtils.java | 43 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 D | Utils.java | 98 /** 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 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/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | OrientationHelper.java | 172 * 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 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/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 175 lerpDeg(float start, float end, float amount) argument [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/ |
H A D | ESTHandler.java | 109 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 D | TouchAnimator.java | 28 * 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 D | DragDownHelper.java | 245 void setEmptyDragAmount(float amount); argument
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | NightModeController.java | 42 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 D | AmbientState.java | 108 public void setOverScrollAmount(float amount, boolean onTop) { argument 110 mOverScrollTopAmount = amount; 112 mOverScrollBottomAmount = 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/core/java/android/preference/ |
H A D | SeekBarVolumizer.java | 307 public void changeVolumeBy(int amount) { argument 308 mSeekBar.incrementProgressBy(amount);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 627 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 D | ListView.java | 96 * 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 D | rs_cl.c | 952 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 D | SwitchCompat.java | 389 * 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 D | Window.java | 1103 * 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
|