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

12

/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/driver/
H A DrsdIntrinsicInlines.h86 static inline int4 clamp(int4 amount, int low, int high) { argument
88 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
89 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
90 r.z = amount.z < low ? low : (amount.z > high ? high : amount
95 clamp(float4 amount, float low, float high) argument
[all...]
H A DrsdRuntimeMath.cpp104 static float SC_clamp_f32(float amount, float low, float high) { argument
105 return amount < low ? low : (amount > high ? high : amount);
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdIntrinsicInlines.h86 static inline int4 clamp(int4 amount, int low, int high) { argument
88 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
89 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
90 r.z = amount.z < low ? low : (amount.z > high ? high : amount
95 clamp(float4 amount, float low, float high) argument
[all...]
H A DrsdRuntimeMath.cpp107 static float SC_clamp_f32(float amount, float low, float high) { argument
108 return amount < low ? low : (amount > high ? high : 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/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/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...]
/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/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp77 int amount = 0; local
80 amount = read(fd, ptr, MAPS_FILE_SIZE);
81 if (amount <= 0) {
87 header.mapSize += amount;
/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.rsh802 * @param amount value to be clamped. Supports 1,2,3,4 components
806 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high);
819 * return start + ((stop - start) * amount);
823 _RS_RUNTIME float __attribute__((overloadable)) mix(float start, float stop, float amount);
/frameworks/support/renderscript/v8/rs_support/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.rsh802 * @param amount value to be clamped. Supports 1,2,3,4 components
806 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high);
819 * return start + ((stop - start) * amount);
823 _RS_RUNTIME float __attribute__((overloadable)) mix(float start, float stop, float amount);
/frameworks/base/libs/hwui/
H A DGradientCache.cpp217 float amount = (pos - start) / distance; local
218 float oppAmount = 1.0f - amount;
220 const float alpha = startA * oppAmount + endA * amount;
222 *p++ = uint8_t(a * (startR * oppAmount + endR * amount));
223 *p++ = uint8_t(a * (startG * oppAmount + endG * amount));
224 *p++ = uint8_t(a * (startB * oppAmount + endB * amount));
/frameworks/native/libs/utils/
H A DVectorImpl.cpp329 ssize_t amount = new_capacity - size();
330 if (amount <= 0) {
357 void* VectorImpl::_grow(size_t where, size_t amount)
359 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
360 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
363 "[%p] _grow: where=%d, amount=%d, count=%d",
364 this, (int)where, (int)amount, (int)mCount); // caller already checked
366 const size_t new_size = mCount + amount;
387 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
398 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.h119 void* _grow(size_t where, size_t amount);
120 void _shrink(size_t where, size_t amount);
/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_cl.c724 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument
725 return start + (stop - start) * amount;
727 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument
728 return start + (stop - start) * amount;
730 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument
731 return start + (stop - start) * amount;
733 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument
734 return start + (stop - start) * amount;
736 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument
737 return start + (stop - start) * amount;
739 mix(float3 start, float3 stop, float amount) argument
742 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 DKeyguardWidgetPager.java463 protected void overScroll(float amount) { argument
464 acceleratedOverScroll(amount);
H A DPagedView.java1240 protected void acceleratedOverScroll(float amount) { argument
1245 float f = OVERSCROLL_ACCELERATE_FACTOR * (amount / screenSize);
1255 if (amount < 0) {
1265 protected void dampedOverScroll(float amount) { argument
1268 float f = (amount / screenSize);
1279 if (amount < 0) {
1289 protected void overScroll(float amount) { argument
1290 dampedOverScroll(amount);
1356 // Only scroll and update mLastMotionX if we have moved some discrete amount. We

Completed in 7187 milliseconds

12