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

/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp32 ssize_t amount; local
39 // we want to return amount that was skipped
51 amount = newOffset - oldOffset;
53 amount = fAsset->read(buffer, size);
54 if (amount <= 0) {
55 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
59 if (amount < 0) {
60 amount = 0;
62 return amount;
H A DTypeface.cpp81 ssize_t amount; local
89 // we want to return amount that was skipped
98 amount = newOffset - oldOffset;
102 amount = fAsset->read(buffer, size);
105 if (amount < 0)
106 amount = 0;
107 return amount;
H A DCreateJavaOutputStreamAdaptor.cpp120 size_t amount = this->doSkip(size - amountSkipped); local
121 if (0 == amount) {
123 amount = this->doRead(&tmp, 1);
124 if (0 == amount) {
129 amountSkipped += amount;
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h106 static inline int4 clamp(int4 amount, int low, int high) { argument
108 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
109 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
110 r.z = amount.z < low ? low : (amount.z > high ? high : amount
115 clamp(float4 amount, float low, float high) 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/webkit/
H A DByteArrayBuilder.java59 int amount = Math.min(length, c.mArray.length - c.mLength);
60 System.arraycopy(array, offset, c.mArray, c.mLength, amount);
61 c.mLength += amount;
62 length -= amount;
63 offset += amount;
/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);
282 float amount = (pos - startPos) / distance; local
[all...]
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;
/frameworks/base/services/java/com/android/server/power/
H A DRampAnimator.java116 final float amount = timeDelta * mRate / scale;
118 mAnimatedValue = Math.min(mAnimatedValue + amount, mTargetValue);
120 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__((overloadable, always_inline)) rsClamp(uint amount, uint low, uint high);
72 _RS_RUNTIME int __attribute__((overloadable, always_inline)) rsClamp(int amount, int low, int high);
76 _RS_RUNTIME ushort __attribute__((overloadable, always_inline)) rsClamp(ushort amount, ushort low, ushort high);
80 _RS_RUNTIME short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
84 _RS_RUNTIME uchar __attribute__((overloadable, always_inline)) rsClamp(uchar amount, uchar low, uchar high);
88 _RS_RUNTIME char __attribute__((overloadable, always_inline)) rsClamp(char amount, char low, char high);
H A Drs_cl.rsh826 * @param amount value to be clamped. Supports 1,2,3,4 components
830 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high);
843 * return start + ((stop - start) * amount);
847 _RS_RUNTIME float __attribute__((overloadable)) mix(float start, float stop, float amount);
/frameworks/compile/libbcc/lib/Renderscript/runtime/arch/
H A Dgeneric.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
21 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high);
30 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) { argument
31 return amount < low ? low : (amount > high ? high : amount);
34 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) { argument
36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount
41 clamp(float3 amount, float3 low, float3 high) argument
49 clamp(float4 amount, float4 low, float4 high) argument
58 clamp(float2 amount, float low, float high) argument
65 clamp(float3 amount, float low, float high) argument
73 clamp(float4 amount, float low, float high) argument
[all...]
H A Dx86_generic.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
21 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high);
/frameworks/native/libs/utils/
H A DVectorImpl.cpp329 ssize_t amount = new_capacity - size();
330 if (amount <= 0) {
367 void* VectorImpl::_grow(size_t where, size_t amount)
369 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
370 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
373 "[%p] _grow: where=%d, amount=%d, count=%d",
374 this, (int)where, (int)amount, (int)mCount); // caller already checked
376 const size_t new_size = mCount + amount;
397 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
408 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSiz
[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/native/include/utils/
H A DVectorImpl.h120 void* _grow(size_t where, size_t amount);
121 void _shrink(size_t where, size_t amount);
/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_cl.c785 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument
786 return start + (stop - start) * amount;
788 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument
789 return start + (stop - start) * amount;
791 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument
792 return start + (stop - start) * amount;
794 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument
795 return start + (stop - start) * amount;
797 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument
798 return start + (stop - start) * amount;
800 mix(float3 start, float3 stop, float amount) argument
803 mix(float4 start, float4 stop, float amount) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DVolumePreference.java348 public void changeVolumeBy(int amount) { argument
349 mSeekBar.incrementProgressBy(amount);
/frameworks/base/core/java/android/view/
H A DWindow.java755 * Set the amount of dim behind the window when using
757 * the default dim amount of that is selected by the Window based on
760 * @param amount The new dim amount, from 0 for no dim to 1 for full dim.
762 public void setDimAmount(float amount) { argument
764 attrs.dimAmount = amount;
1069 * @param alpha The alpha amount, 0 is completely transparent and 255 is
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DPagedView.java1242 protected void acceleratedOverScroll(float amount) { argument
1247 float f = OVERSCROLL_ACCELERATE_FACTOR * (amount / screenSize);
1257 if (amount < 0) {
1267 protected void dampedOverScroll(float amount) { argument
1270 float f = (amount / screenSize);
1281 if (amount < 0) {
1291 protected void overScroll(float amount) { argument
1292 dampedOverScroll(amount);
1361 // Only scroll and update mLastMotionX if we have moved some discrete amount. We
H A DKeyguardWidgetPager.java475 protected void overScroll(float amount) { argument
476 acceleratedOverScroll(amount);
/frameworks/base/core/java/android/widget/
H A DListView.java86 * When arrow scrolling, need a certain amount of pixels to preview next
188 * @return The maximum amount a list view will scroll in response to
906 * @param offset The amount to offset from the adapter position to scroll to.
2659 * @return The amount to preview next items when arrow srolling.
2667 * visible, with a fading edge showing below as applicable. The amount is
2674 * @return The amount to scroll. Note: this is always positive! Direction
2837 * given focus, return the selection delta and amount to scroll via
2899 // max scroll amount, we are getting it at least partially in view,
2943 * @return The amount to scroll. Note: this is always positive! Direction
2991 * Scroll the children by amount, addin
2996 scrollListItemsBy(int amount) argument
[all...]
/frameworks/base/docs/html/training/
H A Dtraining_toc.cs1058 "How to minimize the amount of power your app requires by adapting to current

Completed in 577 milliseconds