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

12

/frameworks/rs/driver/runtime/arch/
H A 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
[all...]
H A Dgeneric.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
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
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h85 static inline int4 clamp(int4 amount, int low, int high) { argument
87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
89 r.z = amount.z < low ? low : (amount.z > high ? high : amount
94 clamp(float4 amount, float low, float high) argument
103 clamp(int2 amount, int low, int high) argument
110 clamp(float2 amount, float low, float high) argument
117 clamp(int amount, int low, int high) argument
121 clamp(float amount, float low, float high) argument
[all...]
/frameworks/base/core/java/android/util/
H A DMathUtils.java35 public static int constrain(int amount, int low, int high) { argument
36 return amount < low ? low : (amount > high ? high : amount);
39 public static long constrain(long amount, long low, long high) { argument
40 return amount < low ? low : (amount > high ? high : amount);
43 public static float constrain(float amount, float low, float high) { argument
44 return amount < lo
152 lerp(float start, float stop, float amount) argument
172 lerpDeg(float start, float end, float amount) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationUtils.java46 public static float interpolate(float start, float end, float amount) { argument
47 return start * (1.0f - amount) + end * amount;
50 public static int interpolateColors(int startColor, int endColor, float amount) { argument
52 (int) interpolate(Color.alpha(startColor), Color.alpha(endColor), amount),
53 (int) interpolate(Color.red(startColor), Color.red(endColor), amount),
54 (int) interpolate(Color.green(startColor), Color.green(endColor), amount),
55 (int) interpolate(Color.blue(startColor), Color.blue(endColor), amount));
/frameworks/base/tools/aapt2/text/
H A DUtf8Iterator.cpp50 void Utf8Iterator::Skip(int amount) { argument
51 while (amount > 0 && HasNext()) {
53 --amount;
H A DUtf8Iterator.h36 void Skip(int amount);
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp53 ssize_t amount; local
60 // we want to return amount that was skipped
72 amount = newOffset - oldOffset;
74 amount = fAsset->read(buffer, size);
77 if (amount < 0) {
78 amount = 0;
80 return amount;
H A DCreateJavaOutputStreamAdaptor.cpp39 size_t amount = this->doSkip(size - amountSkipped); local
40 if (0 == amount) {
42 amount = this->doRead(&tmp, 1);
43 if (0 == amount) {
49 amountSkipped += amount;
/frameworks/base/libs/hwui/
H A DGradientCache.cpp190 float amount, uint8_t*& dst) const {
191 float oppAmount = 1.0f - amount;
192 float a = start.a * oppAmount + end.a * amount;
193 *dst++ = uint8_t(OECF(start.r * oppAmount + end.r * amount) * 255.0f);
194 *dst++ = uint8_t(OECF(start.g * oppAmount + end.g * amount) * 255.0f);
195 *dst++ = uint8_t(OECF(start.b * oppAmount + end.b * amount) * 255.0f);
200 float amount, uint8_t*& dst) const {
201 float oppAmount = 1.0f - amount;
202 float a = start.a * oppAmount + end.a * amount;
206 *d++ = (start.r * oppAmount + end.r * amount);
189 mixBytes(const FloatColor& start, const FloatColor& end, float amount, uint8_t*& dst) const argument
199 mixFloats(const FloatColor& start, const FloatColor& end, float amount, uint8_t*& dst) const argument
255 float amount = (pos - startPos) / distance; local
[all...]
H A DUvMapper.h115 static float lerp(float start, float stop, float amount) { argument
116 return start + (stop - start) * amount;
H A DCaches.cpp145 uint32_t Caches::getOverdrawColor(uint32_t amount) const {
150 if (amount < 1) amount = 1;
151 if (amount > 4) amount = 4;
154 return sOverdrawColors[overdrawColorIndex][amount - 1];
H A DGradientCache.h158 float amount, uint8_t*& dst) const;
161 float amount, uint8_t*& dst) const;
163 float amount, uint8_t*& dst) const;
/frameworks/base/tools/aapt/
H A DIndentPrinter.h13 void indent(int amount = 1) {
14 mIndent += amount;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DTouchAnimator.java28 * but can have a float input as to the amount they should be in effect. This allows
215 float amount = fraction / mFrameWidth;
216 interpolate(i, amount, target);
219 protected abstract void interpolate(int index, float amount, Object target); argument
241 protected void interpolate(int index, float amount, Object target) { argument
244 mProperty.set((T) target, firstFloat + (secondFloat - firstFloat) * amount);
259 protected void interpolate(int index, float amount, Object target) { argument
262 mProperty.set((T) target, (int) (firstFloat + (secondFloat - firstFloat) * amount));
/frameworks/base/services/core/java/com/android/server/display/
H A DRampAnimator.java148 final float amount = timeDelta * mRate / scale;
150 mAnimatedValue = Math.min(mAnimatedValue + amount, mTargetValue);
152 mAnimatedValue = Math.max(mAnimatedValue - amount, mTargetValue);
/frameworks/base/core/java/android/util/proto/
H A DEncodedBuffer.java85 * The amount of data in the last buffer.
164 public void skipRead(int amount) { argument
165 if (amount < 0) {
166 throw new RuntimeException("skipRead with negative amount=" + amount);
168 if (amount == 0) {
171 if (amount <= mChunkSize - mReadIndex) {
172 mReadIndex += amount;
174 amount -= mChunkSize - mReadIndex;
175 mReadIndex = amount
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DOrientationHelper.java172 * Offsets all children's positions by the given amount.
174 * @param amount Value to add to each child's layout parameters
176 public abstract void offsetChildren(int amount); argument
190 * @param offset offset amount
263 public void offsetChildren(int amount) {
264 mLayoutManager.offsetChildrenHorizontal(amount);
361 public void offsetChildren(int amount) {
362 mLayoutManager.offsetChildrenVertical(amount);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DOrientationHelper.java171 * Offsets all children's positions by the given amount.
173 * @param amount Value to add to each child's layout parameters
175 public abstract void offsetChildren(int amount); argument
189 * @param offset offset amount
262 public void offsetChildren(int amount) {
263 mLayoutManager.offsetChildrenHorizontal(amount);
360 public void offsetChildren(int amount) {
361 mLayoutManager.offsetChildrenVertical(amount);
/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/base/packages/Osu/src/com/android/hotspot2/utils/
H A DHTTPResponse.java38 int amount = in.read(input, offset, input.length - offset);
39 if (amount < 0) {
44 for (int n = offset; n < offset + amount; n++) {
57 offset += amount;
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java502 * @param amount the amount to lighten the color from 0 to 100. This corresponds to the L
507 public static int changeColorLightness(int baseColor, int amount) { argument
510 result[0] = Math.max(Math.min(100, result[0] + amount), 0);
564 * amount.
568 * @param amount the amount from 1 to 100 how much to modify the color
571 public static int getShiftedColor(int color, int amount) { argument
575 result[0] = Math.max(0, result[0] - amount);
577 result[0] = Math.min(100, result[0] + amount);
898 constrain(int amount, int low, int high) argument
902 constrain(float amount, float low, float high) argument
[all...]
/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java560 private static float constrain(float amount, float low, float high) { argument
561 return amount < low ? low : (amount > high ? high : amount);
564 private static int constrain(int amount, int low, int high) { argument
565 return amount < low ? low : (amount > high ? high : amount);
/frameworks/support/core-utils/java/android/support/v4/graphics/
H A DColorUtils.java516 private static float constrain(float amount, float low, float high) { argument
517 return amount < low ? low : (amount > high ? high : amount);
520 private static int constrain(int amount, int low, int high) { argument
521 return amount < low ? low : (amount > high ? high : amount);
/frameworks/support/content/tests/java/android/support/content/
H A DTestContentProvider.java342 private static int constrain(int amount, int low, int high) { argument
343 return amount < low ? low : (amount > high ? high : amount);

Completed in 933 milliseconds

12