/frameworks/rs/driver/runtime/arch/ |
D | clamp.c | 25 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 …]
|
D | generic.c | 20 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/ |
D | rsCpuIntrinsicInlines.h | 85 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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | int128.h | 230 inline uint128 operator<<(const uint128& val, int amount) { 232 if (amount < 64) { 233 if (amount == 0) { 236 uint64 new_hi = (Uint128High64(val) << amount) | 237 (Uint128Low64(val) >> (64 - amount)); 238 uint64 new_lo = Uint128Low64(val) << amount; 240 } else if (amount < 128) { 241 return uint128(Uint128Low64(val) << (amount - 64), 0); 247 inline uint128 operator>>(const uint128& val, int amount) { 249 if (amount < 64) { [all …]
|
D | bytestream.cc | 121 void GrowingArrayByteSink::Expand(size_t amount) { // Expand by at least 50%. in Expand() argument 122 size_t new_capacity = std::max(capacity_ + amount, (3 * capacity_) / 2); in Expand()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 40 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() 204 public static float lerpDeg(float start, float end, float amount) { in lerpDeg() argument 206 return minAngle * amount + start; in lerpDeg()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationUtils.java | 50 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/base/core/jni/android/graphics/ |
D | Utils.cpp | 85 ssize_t amount; in read() local 104 amount = newOffset - oldOffset; in read() 106 amount = fAsset->read(buffer, size); in read() 109 if (amount < 0) { in read() 110 amount = 0; in read() 112 return amount; in read()
|
D | CreateJavaOutputStreamAdaptor.cpp | 72 size_t amount = this->doSkip(size - amountSkipped, env); in read() local 73 if (0 == amount) { in read() 75 amount = this->doRead(&tmp, 1, env); in read() 76 if (0 == amount) { in read() 82 amountSkipped += amount; in read()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/ |
D | OverScroll.java | 44 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/core/java/android/util/proto/ |
D | EncodedBuffer.java | 172 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/tools/aapt2/text/ |
D | Utf8Iterator.cpp | 50 void Utf8Iterator::Skip(int amount) { in Skip() argument 51 while (amount > 0 && HasNext()) { in Skip() 53 --amount; in Skip()
|
D | Utf8Iterator.h | 36 void Skip(int amount);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | TouchAnimator.java | 213 float amount = (fraction - mFrameWidth * (i - 1)) / mFrameWidth; in setValue() local 214 interpolate(i, amount, target); in setValue() 217 protected abstract void interpolate(int index, float amount, Object target); in interpolate() argument 239 protected void interpolate(int index, float amount, Object target) { in interpolate() argument 242 mProperty.set((T) target, firstFloat + (secondFloat - firstFloat) * amount); in interpolate() 257 protected void interpolate(int index, float amount, Object target) { in interpolate() argument 260 mProperty.set((T) target, (int) (firstFloat + (secondFloat - firstFloat) * amount)); in interpolate()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | OrientationHelper.java | 176 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/services/core/java/com/android/server/display/ |
D | RampAnimator.java | 148 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/text/method/ |
D | BaseMovementMethod.java | 466 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/ |
D | IndentPrinter.h | 13 void indent(int amount = 1) { 14 mIndent += amount;
|
/frameworks/base/packages/SettingsLib/AppPreference/src/com/android/settingslib/widget/apppreference/ |
D | AppPreference.java | 44 public void setProgress(int amount) { in setProgress() argument 45 mProgress = amount; in setProgress()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ContrastColorUtil.java | 518 public static int changeColorLightness(int baseColor, int amount) { in changeColorLightness() argument 521 result[0] = Math.max(Math.min(100, result[0] + amount), 0); in changeColorLightness() 570 public static int getShiftedColor(int color, int amount) { in getShiftedColor() argument 574 result[0] = Math.max(0, result[0] - amount); in getShiftedColor() 576 result[0] = Math.min(100, result[0] + amount); in getShiftedColor() 921 private static int constrain(int amount, int low, int high) { in constrain() argument 922 return amount < low ? low : (amount > high ? high : amount); in constrain() 925 private static float constrain(float amount, float low, float high) { in constrain() argument 926 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 560 private static float constrain(float amount, float low, float high) { in constrain() argument 561 return amount < low ? low : (amount > high ? high : amount); in constrain() 564 private static int constrain(int amount, int low, int high) { in constrain() argument 565 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | PulseExpansionHandler.kt | 193 private fun setEmptyDragAmount(amount: Float) { in <lambda>() 194 mEmptyDragAmount = amount in <lambda>() 195 mExpansionCallback!!.setEmptyDragAmount(amount) in <lambda>() 272 fun setEmptyDragAmount(amount: Float) in <lambda>()
|
/frameworks/base/libs/hwui/ |
D | UvMapper.h | 112 static float lerp(float start, float stop, float amount) { in lerp() argument 113 return start + (stop - start) * amount; in lerp()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/ |
D | coded_stream.h | 580 void Advance(int amount); 869 void Advance(int amount); 1266 inline void CodedInputStream::Advance(int amount) { in Advance() argument 1267 buffer_ += amount; in Advance() 1270 inline void CodedOutputStream::Advance(int amount) { in Advance() argument 1271 buffer_ += amount; in Advance() 1272 buffer_size_ -= amount; in Advance()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | AmbientState.java | 232 public void setOverScrollAmount(float amount, boolean onTop) { in setOverScrollAmount() argument 234 mOverScrollTopAmount = amount; in setOverScrollAmount() 236 mOverScrollBottomAmount = amount; in setOverScrollAmount()
|