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

/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp48 ssize_t amount; local
55 // we want to return amount that was skipped
67 amount = newOffset - oldOffset;
69 amount = fAsset->read(buffer, size);
70 if (amount <= 0) {
71 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
75 if (amount < 0) {
76 amount = 0;
78 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;
H A DTypeface.cpp101 ssize_t amount; local
109 // we want to return amount that was skipped
118 amount = newOffset - oldOffset;
122 amount = fAsset->read(buffer, size);
125 if (amount < 0)
126 amount = 0;
127 return 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.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);
282 float amount = (pos - startPos) / distance; local
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h87 static inline int4 clamp(int4 amount, int low, int high) { argument
89 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
90 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
91 r.z = amount.z < low ? low : (amount.z > high ? high : amount
96 clamp(float4 amount, float low, float high) argument
105 clamp(int2 amount, int low, int high) argument
112 clamp(float2 amount, float low, float high) argument
119 clamp(int amount, int low, int high) argument
123 clamp(float amount, float low, float high) argument
[all...]
/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
147 lerp(float start, float stop, float amount) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DVolumePreference.java395 public void changeVolumeBy(int amount) { argument
396 mSeekBar.incrementProgressBy(amount);
/frameworks/rs/driver/runtime/
H A Drs_cl.c790 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument
791 return start + (stop - start) * amount;
793 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument
794 return start + (stop - start) * amount;
796 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument
797 return start + (stop - start) * amount;
799 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument
800 return start + (stop - start) * amount;
802 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument
803 return start + (stop - start) * amount;
805 mix(float3 start, float3 stop, float amount) argument
808 mix(float4 start, float4 stop, float amount) argument
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardWidgetPager.java490 protected void overScroll(float amount) { argument
491 acceleratedOverScroll(amount);
H A DPagedView.java1332 protected void acceleratedOverScroll(float amount) { argument
1337 float f = OVERSCROLL_ACCELERATE_FACTOR * (amount / screenSize);
1347 if (amount < 0) {
1357 protected void dampedOverScroll(float amount) { argument
1360 float f = (amount / screenSize);
1371 if (amount < 0) {
1381 protected void overScroll(float amount) { argument
1382 dampedOverScroll(amount);
1442 // Only scroll and update mLastMotionX if we have moved some discrete amount. We
2736 // Make the scroll amount matc
[all...]
/frameworks/base/core/java/android/view/
H A DWindow.java768 * Set the amount of dim behind the window when using
770 * the default dim amount of that is selected by the Window based on
773 * @param amount The new dim amount, from 0 for no dim to 1 for full dim.
775 public void setDimAmount(float amount) { argument
777 attrs.dimAmount = amount;
1082 * @param alpha The alpha amount, 0 is completely transparent and 255 is
/frameworks/base/core/java/android/widget/
H A DListView.java88 * When arrow scrolling, need a certain amount of pixels to preview next
190 * @return The maximum amount a list view will scroll in response to
922 * @param offset The amount to offset from the adapter position to scroll to.
2675 * @return The amount to preview next items when arrow srolling.
2683 * visible, with a fading edge showing below as applicable. The amount is
2690 * @return The amount to scroll. Note: this is always positive! Direction
2853 * given focus, return the selection delta and amount to scroll via
2915 // max scroll amount, we are getting it at least partially in view,
2959 * @return The amount to scroll. Note: this is always positive! Direction
3007 * Scroll the children by amount, addin
3012 scrollListItemsBy(int amount) argument
[all...]

Completed in 351 milliseconds