Home
last modified time | relevance | path

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

1234

/frameworks/rs/driver/runtime/arch/
Dclamp.c25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
26 return amount < low ? low : (amount > high ? high : amount); \
46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
55 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
56 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
57 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
61 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/toolkit/
DUtils.h92 inline int4 clamp(int4 amount, int low, int high) { in clamp() argument
94 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
95 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
96 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
97 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
101 inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
103 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
104 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
105 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
106 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
DBlend.cpp78 static inline uchar4 convertClipped(TI amount) { in convertClipped() argument
79 return uchar4 { static_cast<uchar>(amount.x > 255 ? 255 : amount.x), in convertClipped()
80 static_cast<uchar>(amount.y > 255 ? 255 : amount.y), in convertClipped()
81 static_cast<uchar>(amount.z > 255 ? 255 : amount.z), in convertClipped()
82 static_cast<uchar>(amount.w > 255 ? 255 : amount.w)}; in convertClipped()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicInlines.h85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC()
87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in CVT_FUNC()
88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in CVT_FUNC()
89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in CVT_FUNC()
90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in CVT_FUNC()
94 static inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
96 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
97 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
98 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
99 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
DrsCpuIntrinsicBlend.cpp114 static inline uchar4 convertClipped(TI amount) { in convertClipped() argument
115 return uchar4 { static_cast<uchar>(amount.x > 255 ? 255 : amount.x), in convertClipped()
116 static_cast<uchar>(amount.y > 255 ? 255 : amount.y), in convertClipped()
117 static_cast<uchar>(amount.z > 255 ? 255 : amount.z), in convertClipped()
118 static_cast<uchar>(amount.w > 255 ? 255 : amount.w)}; in convertClipped()
/frameworks/base/core/java/android/util/
DMathUtils.java40 public static int constrain(int amount, int low, int high) { in constrain() argument
41 return amount < low ? low : (amount > high ? high : amount); in constrain()
44 public static long constrain(long amount, long low, long high) { in constrain() argument
45 return amount < low ? low : (amount > high ? high : amount); in constrain()
49 public static float constrain(float amount, float low, float high) { in constrain() argument
50 return amount < low ? low : (amount > high ? high : amount); in constrain()
164 public static float lerp(float start, float stop, float amount) { in lerp() argument
165 return start + (stop - start) * amount; in lerp()
168 public static float lerp(int start, int stop, float amount) { in lerp() argument
169 return lerp((float) start, (float) stop, amount); in lerp()
[all …]
/frameworks/base/native/graphics/jni/
Daassetstreamadaptor.cpp83 ssize_t amount; in read() local
103 amount = newOffset - oldOffset; in read()
105 amount = AAsset_read(mAAsset, buffer, size); in read()
108 if (amount < 0) { in read()
109 amount = 0; in read()
111 return amount; in read()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationUtils.java50 public static float interpolate(float start, float end, float amount) { in interpolate() argument
51 return start * (1.0f - amount) + end * amount; in interpolate()
54 public static int interpolateColors(int startColor, int endColor, float amount) { in interpolateColors() argument
56 (int) interpolate(Color.alpha(startColor), Color.alpha(endColor), amount), in interpolateColors()
57 (int) interpolate(Color.red(startColor), Color.red(endColor), amount), in interpolateColors()
58 (int) interpolate(Color.green(startColor), Color.green(endColor), amount), in interpolateColors()
59 (int) interpolate(Color.blue(startColor), Color.blue(endColor), amount)); in interpolateColors()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DNetworkStatsUtils.java90 public static int constrain(int amount, int low, int high) { in constrain() argument
92 return amount < low ? low : (amount > high ? high : amount); in constrain()
98 public static long constrain(long amount, long low, long high) { in constrain() argument
100 return amount < low ? low : (amount > high ? high : amount); in constrain()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLightRevealScrim.kt31 fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) in setRevealAmountOnScrim()
70 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) { in setRevealAmountOnScrim()
71 val interpolatedAmount = INTERPOLATOR.getInterpolation(amount) in setRevealAmountOnScrim()
79 1f - getPercentPastThreshold(amount, FADE_END_COLOR_OUT_THRESHOLD) in setRevealAmountOnScrim()
101 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) { in setRevealAmountOnScrim()
102 val interpolatedAmount = interpolator.getInterpolation(amount) in setRevealAmountOnScrim()
166 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) { in setRevealAmountOnScrim()
169 val fadeAmount = getPercentPastThreshold(amount, 0.5f) in setRevealAmountOnScrim()
170 val radius = startRadius + ((endRadius - startRadius) * amount) in setRevealAmountOnScrim()
171 scrim.interpolatedRevealAmount = amount in setRevealAmountOnScrim()
[all …]
/frameworks/base/libs/hwui/jni/
DUtils.cpp88 ssize_t amount; in read() local
107 amount = newOffset - oldOffset; in read()
109 amount = fAsset->read(buffer, size); in read()
112 if (amount < 0) { in read()
113 amount = 0; in read()
115 return amount; in read()
DCreateJavaOutputStreamAdaptor.cpp73 size_t amount = this->doSkip(size - amountSkipped, env); in read() local
74 if (0 == amount) { in read()
76 amount = this->doRead(&tmp, 1, env); in read()
77 if (0 == amount) { in read()
83 amountSkipped += amount; in read()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DOverScroll.java44 public static int dampedScroll(float amount, int max) { in dampedScroll() argument
45 if (Float.compare(amount, 0) == 0) return 0; in dampedScroll()
47 float f = amount / max; in dampedScroll()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DOverScroll.java44 public static int dampedScroll(float amount, int max) { in dampedScroll() argument
45 if (Float.compare(amount, 0) == 0) return 0; in dampedScroll()
47 float f = amount / max; in dampedScroll()
/frameworks/base/tools/aapt2/text/
DUtf8Iterator.cpp50 void Utf8Iterator::Skip(int amount) { in Skip() argument
51 while (amount > 0 && HasNext()) { in Skip()
53 --amount; in Skip()
/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java172 public void skipRead(int amount) { in skipRead() argument
173 if (amount < 0) { in skipRead()
174 throw new RuntimeException("skipRead with negative amount=" + amount); in skipRead()
176 if (amount == 0) { in skipRead()
179 if (amount <= mChunkSize - mReadIndex) { in skipRead()
180 mReadIndex += amount; in skipRead()
182 amount -= mChunkSize - mReadIndex; in skipRead()
183 mReadIndex = amount % mChunkSize; in skipRead()
186 mReadBufIndex += (amount / mChunkSize); in skipRead()
188 mReadBufIndex += 1 + (amount / mChunkSize); in skipRead()
/frameworks/base/services/core/java/com/android/server/uri/
DUriMetricsHelper.java60 void reportPersistentUriFlushed(int amount) { in reportPersistentUriFlushed() argument
63 amount in reportPersistentUriFlushed()
86 final int amount = perUidCount.valueAt(i); in reportPersistentUriPermissionsPerPackage() local
92 amount in reportPersistentUriPermissionsPerPackage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTouchAnimator.java226 float amount = (fraction - mFrameWidth * (i - 1)) / mFrameWidth; in setValue() local
227 interpolate(i, amount, target); in setValue()
230 protected abstract void interpolate(int index, float amount, Object target); in interpolate() argument
252 protected void interpolate(int index, float amount, Object target) { in interpolate() argument
255 mProperty.set((T) target, firstFloat + (secondFloat - firstFloat) * amount); in interpolate()
270 protected void interpolate(int index, float amount, Object target) { in interpolate() argument
273 mProperty.set((T) target, (int) (firstFloat + (secondFloat - firstFloat) * amount)); in interpolate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanel.kt258 fun stretchBy(finalPosition: Float?, amount: Float) { in stretchBy()
259 val stretchedAmount = amount * ((finalPosition ?: 0f) - restingPosition) in stretchBy()
329 amount = horizontalTranslationStretchAmount in setStretch()
333 amount = arrowStretchAmount in setStretch()
337 amount = arrowStretchAmount in setStretch()
341 amount = arrowAlphaStretchAmount in setStretch()
345 amount = backgroundAlphaStretchAmount in setStretch()
349 amount = backgroundWidthStretchAmount in setStretch()
353 amount = backgroundHeightStretchAmount in setStretch()
357 amount = edgeCornerStretchAmount in setStretch()
[all …]
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/
DBackgroundBlurActivity.kt156 fun setDimAmount(amount: Float) { in <lambda>()
158 mDimAmountWithBlur = amount in <lambda>()
160 mDimAmountNoBlur = amount in <lambda>()
162 (findViewById(R.id.dim_amount) as TextView).setText("%.2f".format(amount)) in <lambda>()
163 window.getAttributes().dimAmount = amount in <lambda>()
/frameworks/base/core/java/com/android/internal/widget/
DOrientationHelper.java176 public abstract void offsetChildren(int amount); in offsetChildren() argument
263 public void offsetChildren(int amount) { in createHorizontalHelper() argument
264 mLayoutManager.offsetChildrenHorizontal(amount); in createHorizontalHelper()
361 public void offsetChildren(int amount) {
362 mLayoutManager.offsetChildrenVertical(amount);
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DLightRevealScrimViewBinder.kt32 viewModel.revealAmount.collect { amount -> revealScrim.revealAmount = amount } in <lambda>() method
/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/base/tools/aapt/
DIndentPrinter.h13 void indent(int amount = 1) {
14 mIndent += amount;

1234