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

/frameworks/compile/libbcc/lib/ScriptCRT/
H A Dclamp.c20 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) { argument
21 return amount < low ? low : (amount > high ? high : amount);
24 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) { argument
26 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
27 r.y = amount.y < low.y ? low.y : (amount
31 clamp(float3 amount, float3 low, float3 high) argument
39 clamp(float4 amount, float4 low, float4 high) argument
48 clamp(float2 amount, float low, float high) argument
55 clamp(float3 amount, float low, float high) argument
63 clamp(float4 amount, float low, float high) argument
[all...]
H A Drs_core.c193 extern uint __attribute__((overloadable, always_inline)) rsClamp(uint amount, uint low, uint high) { argument
194 return amount < low ? low : (amount > high ? high : amount);
196 extern int __attribute__((overloadable, always_inline)) rsClamp(int amount, int low, int high) { argument
197 return amount < low ? low : (amount > high ? high : amount);
199 extern ushort __attribute__((overloadable, always_inline)) rsClamp(ushort amount, ushort low, ushort high) { argument
200 return amount < lo
202 rsClamp(short amount, short low, short high) argument
205 rsClamp(uchar amount, uchar low, uchar high) argument
208 rsClamp(char amount, char low, char high) argument
[all...]
H A Drs_cl.c756 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { argument
757 return start + (stop - start) * amount;
759 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { argument
760 return start + (stop - start) * amount;
762 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { argument
763 return start + (stop - start) * amount;
765 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { argument
766 return start + (stop - start) * amount;
768 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { argument
769 return start + (stop - start) * amount;
771 mix(float3 start, float3 stop, float amount) argument
774 mix(float4 start, float4 stop, float amount) argument
[all...]
/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/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/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.rsh725 * @param amount value to be clamped. Supports 1,2,3,4 components
729 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high);
730 _RS_RUNTIME float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
731 _RS_RUNTIME float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high);
732 _RS_RUNTIME float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high);
733 _RS_RUNTIME float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high);
734 _RS_RUNTIME float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high);
735 _RS_RUNTIME float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high);
746 * return start + ((stop - start) * amount);
750 _RS_RUNTIME float __attribute__((overloadable)) mix(float start, float stop, float amount);
[all...]
/frameworks/native/libs/utils/
H A DVectorImpl.cpp319 ssize_t amount = new_capacity - size();
320 if (amount <= 0) {
347 void* VectorImpl::_grow(size_t where, size_t amount)
349 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
350 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
353 "[%p] _grow: where=%d, amount=%d, count=%d",
354 this, (int)where, (int)amount, (int)mCount); // caller already checked
356 const size_t new_size = mCount + amount;
377 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
388 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/rs/driver/
H A DrsdRuntimeMath.cpp108 static float SC_clamp_f32(float amount, float low, float high) { argument
109 return amount < low ? low : (amount > high ? high : amount);
124 static float SC_mix_f32(float start, float stop, float amount) { argument
125 //ALOGE("lerpf %f %f %f", start, stop, amount);
126 return start + (stop - start) * amount;
/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/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.java766 * Set the amount of dim behind the window when using
768 * the default dim amount of that is selected by the Window based on
771 * @param amount The new dim amount, from 0 for no dim to 1 for full dim.
773 public void setDimAmount(float amount) { argument
775 attrs.dimAmount = amount;
1080 * @param alpha The alpha amount, 0 is completely transparent and 255 is
/frameworks/base/core/java/android/widget/
H A DListView.java83 * When arrow scrolling, need a certain amount of pixels to preview next
185 * @return The maximum amount a list view will scroll in response to
903 * @param offset The amount to offset from the adapter position to scroll to.
2560 * @return The amount to preview next items when arrow srolling.
2568 * visible, with a fading edge showing below as applicable. The amount is
2575 * @return The amount to scroll. Note: this is always positive! Direction
2728 * given focus, return the selection delta and amount to scroll via
2790 // max scroll amount, we are getting it at least partially in view,
2834 * @return The amount to scroll. Note: this is always positive! Direction
2882 * Scroll the children by amount, addin
2887 scrollListItemsBy(int amount) argument
[all...]

Completed in 945 milliseconds