Home
last modified time | relevance | path

Searched refs:amount (Results 1 – 25 of 113) sorted by relevance

12345

/frameworks/rs/driver/runtime/arch/
Dclamp.c20 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
21 return amount < low ? low : (amount > high ? high : amount); \
40 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
42 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
43 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
47 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
49 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
50 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
51 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
55 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
[all …]
Dgeneric.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short hi…
30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
31 return amount < low ? low : (amount > high ? high : amount); \
34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicInlines.h87 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC()
89 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in CVT_FUNC()
90 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in CVT_FUNC()
91 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in CVT_FUNC()
92 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in CVT_FUNC()
96 static inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
98 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
99 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
100 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
101 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
/frameworks/base/core/java/android/util/
DMathUtils.java38 public static int constrain(int amount, int low, int high) { in constrain() argument
39 return amount < low ? low : (amount > high ? high : amount); in constrain()
42 public static long constrain(long amount, long low, long high) { in constrain() argument
43 return amount < low ? low : (amount > high ? high : amount); in constrain()
46 public static float constrain(float amount, float low, float high) { in constrain() argument
47 return amount < low ? low : (amount > high ? high : amount); in constrain()
147 public static float lerp(float start, float stop, float amount) { in lerp() argument
148 return start + (stop - start) * amount; in lerp()
/frameworks/base/core/jni/android/graphics/
DUtils.cpp63 ssize_t amount; in read() local
82 amount = newOffset - oldOffset; in read()
84 amount = fAsset->read(buffer, size); in read()
85 if (amount <= 0) { in read()
86 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount); in read()
90 if (amount < 0) { in read()
91 amount = 0; in read()
93 return amount; in read()
DCreateJavaOutputStreamAdaptor.cpp38 size_t amount = this->doSkip(size - amountSkipped); in read() local
39 if (0 == amount) { in read()
41 amount = this->doRead(&tmp, 1); in read()
42 if (0 == amount) { in read()
48 amountSkipped += amount; in read()
/frameworks/base/libs/hwui/
DGradientCache.cpp215 void GradientCache::mixBytes(GradientColor& start, GradientColor& end, float amount, in mixBytes() argument
217 float oppAmount = 1.0f - amount; in mixBytes()
218 const float alpha = start.a * oppAmount + end.a * amount; in mixBytes()
221 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount)); in mixBytes()
222 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount)); in mixBytes()
223 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount)); in mixBytes()
227 void GradientCache::mixFloats(GradientColor& start, GradientColor& end, float amount, in mixFloats() argument
229 float oppAmount = 1.0f - amount; in mixFloats()
230 const float a = start.a * oppAmount + end.a * amount; in mixFloats()
233 *d++ = a * (start.r * oppAmount + end.r * amount); in mixFloats()
[all …]
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;
DUvMapper.h115 static float lerp(float start, float stop, float amount) { in lerp() argument
116 return start + (stop - start) * amount; in lerp()
DCaches.cpp243 uint32_t Caches::getOverdrawColor(uint32_t amount) const { in getOverdrawColor()
248 if (amount < 1) amount = 1; in getOverdrawColor()
249 if (amount > 4) amount = 4; in getOverdrawColor()
250 return sOverdrawColors[mOverdrawDebugColorSet][amount - 1]; in getOverdrawColor()
DCaches.h156 uint32_t getOverdrawColor(uint32_t amount) const;
/frameworks/base/services/java/com/android/server/power/
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/java/android/text/method/
DBaseMovementMethod.java466 protected boolean scrollLeft(TextView widget, Spannable buffer, int amount) { in scrollLeft() argument
470 scrollX = Math.max(scrollX - getCharacterWidth(widget) * amount, minScrollX); in scrollLeft()
487 protected boolean scrollRight(TextView widget, Spannable buffer, int amount) { in scrollRight() argument
491 scrollX = Math.min(scrollX + getCharacterWidth(widget) * amount, maxScrollX); in scrollRight()
508 protected boolean scrollUp(TextView widget, Spannable buffer, int amount) { in scrollUp() argument
518 topLine = Math.max(topLine - amount + 1, 0); in scrollUp()
535 protected boolean scrollDown(TextView widget, Spannable buffer, int amount) { in scrollDown() argument
548 bottomLine = Math.min(bottomLine + amount - 1, limit); in scrollDown()
/frameworks/rs/scriptc/
Drs_math.rsh61 * Clamp the value amount between low and high.
63 * @param amount The value to clamp
67 _RS_RUNTIME uint __attribute__((const, overloadable, always_inline)) rsClamp(uint amount, uint low,…
72 _RS_RUNTIME int __attribute__((const, overloadable, always_inline)) rsClamp(int amount, int low, in…
76 _RS_RUNTIME ushort __attribute__((const, overloadable, always_inline)) rsClamp(ushort amount, ushor…
80 _RS_RUNTIME short __attribute__((const, overloadable, always_inline)) rsClamp(short amount, short l…
84 _RS_RUNTIME uchar __attribute__((const, overloadable, always_inline)) rsClamp(uchar amount, uchar l…
88 _RS_RUNTIME char __attribute__((const, overloadable, always_inline)) rsClamp(char amount, char low,…
Drs_cl.rsh859 * @param amount value to be clamped. Supports 1,2,3,4 components
865 _RS_RUNTIME float __attribute__((const, overloadable)) clamp(float amount, float low, float high);
870 extern T __attribute__((overloadable)) clamp(T amount, T low, T high); \
871 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high); \
872 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high); \
873 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high); \
874 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high); \
875 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high); \
876 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high)
901 * return start + ((stop - start) * amount);
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c790 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) { in mix() argument
791 return start + (stop - start) * amount; in mix()
793 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) { in mix() argument
794 return start + (stop - start) * amount; in mix()
796 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) { in mix() argument
797 return start + (stop - start) * amount; in mix()
799 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) { in mix() argument
800 return start + (stop - start) * amount; in mix()
802 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) { in mix() argument
803 return start + (stop - start) * amount; in mix()
[all …]
/frameworks/base/core/java/android/preference/
DVolumePreference.java395 public void changeVolumeBy(int amount) { in changeVolumeBy() argument
396 mSeekBar.incrementProgressBy(amount); in changeVolumeBy()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DPagedView.java1332 protected void acceleratedOverScroll(float amount) { in acceleratedOverScroll() argument
1337 float f = OVERSCROLL_ACCELERATE_FACTOR * (amount / screenSize); in acceleratedOverScroll()
1347 if (amount < 0) { in acceleratedOverScroll()
1357 protected void dampedOverScroll(float amount) { in dampedOverScroll() argument
1360 float f = (amount / screenSize); in dampedOverScroll()
1371 if (amount < 0) { in dampedOverScroll()
1381 protected void overScroll(float amount) { in overScroll() argument
1382 dampedOverScroll(amount); in overScroll()
/frameworks/base/core/java/android/view/
DWindow.java775 public void setDimAmount(float amount) { in setDimAmount() argument
777 attrs.dimAmount = amount; in setDimAmount()
/frameworks/base/docs/html/guide/topics/resources/
Danimation-resource.jd48 background color or alpha value, over a set amount of time.</p>
132 <dd>Animates a specific property of an object over a specific amount of time. Represents
178 <em>int</em>. The amount of milliseconds the animation delays after
220 <dd>Performs an animation over a specified amount of time.
252 <em>int</em>. The amount of milliseconds the animation delays after
704 <dd><em>Float</em>. The amount of tension to apply (default is 2).</dd>
713 <dd><em>Float</em>. The amount of tension to apply (default is 2).</dd>
715 <dd><em>Float</em>. The amount by which to multiply the tension (default is
745 <dd><em>Float</em>. The amount of tension to apply (default is 2).</dd>
/frameworks/base/docs/html/guide/components/
Dindex.jd27 does the minimum amount of work. Any potentially long task that may hang your application should be
/frameworks/base/docs/html/tools/help/
Dzipalign.jd14 The benefit is a reduction in the amount of RAM consumed
/frameworks/base/docs/html/tools/debugging/
Dsystrace.jd76 <p>The {@code systrace} tool can generate a potentially huge amount of data from applications
77 and system sources. To limit the amount of data the tool collects and make the data more relevant
81 <li>Limit the amount of time covered by the trace with the {@code -t, --time} option. The default
Ddebugging-memory.jd80 <dd>The amount of memory reclaimed from this garbage collection.</dd>
86 <dd>Externally allocated memory on API level 10 and lower (amount of allocated memory) / (limit at
202 that are shared with other processes contribute to the PSS value only in proportion to the amount
277 <p>The <code>Heap Alloc</code> is the amount of memory that the Dalvik and native heap allocators k…
307 this is the amount of RAM that will be released back to the system when your process is destroyed.
424 <li>The <strong>Dominator tree</strong> shows a list of objects organized by the amount
/frameworks/base/docs/html/design/style/
Dmetrics-grids.jd39 <p>Devices vary in the amount of density-independent pixels (dp) they can display.</p>

12345