Searched defs:clamp (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dimgprocutil.h27 inline int clamp(int min, int val, int max) { function
H A Dcolorspace.cpp40 static inline uint32 clamp(int32 x) { function
48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v));
49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v));
50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u));
/frameworks/support/core-utils/java/android/support/v4/math/
H A DMathUtils.java38 public static float clamp(float value, float min, float max) { method in class:MathUtils
59 public static double clamp(double value, double min, double max) { method in class:MathUtils
80 public static int clamp(int value, int min, int max) { method in class:MathUtils
/frameworks/base/core/java/android/util/
H A DRange.java173 public T clamp(T value) { method in class:Range
/frameworks/base/core/java/android/view/
H A DRoundScrollbarRenderer.java78 sweepAngle = clamp(sweepAngle, MIN_SCROLLBAR_ANGLE_SWIPE, MAX_SCROLLBAR_ANGLE_SWIPE);
82 startAngle = clamp(startAngle, -SCROLLBAR_ANGLE_RANGE / 2,
97 private static float clamp(float val, float min, float max) { method in class:RoundScrollbarRenderer
H A DMotionEvent.java3097 private static final float clamp(float value, float low, float high) { method in class:MotionEvent
3122 pc[i].x = clamp(pc[i].x, left, right);
3123 pc[i].y = clamp(pc[i].y, top, bottom);
/frameworks/native/services/sensorservice/
H A Dquat.h65 } clamp; local
71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f );
72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f );
73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f );
74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f );
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h86 static inline T clamp(T a, T minValue, T maxValue) { function in class:android::uirenderer::MathUtils
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h85 static inline int4 clamp(int4 amount, int low, int high) { function
94 static inline float4 clamp(float4 amount, float low, float high) { function
103 static inline int2 clamp(int2 amount, int low, int high) { function
110 static inline float2 clamp(float2 amount, float low, float high) { function
117 static inline int clamp(int amount, int low, int high) { function
121 static inline float clamp(float amount, float low, float high) { function
/frameworks/base/libs/hwui/
H A DGlop.h122 GLenum clamp; member in struct:android::uirenderer::Glop::Fill::TextureData
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java122 public static float clamp(float value, float min, float max) { method in class:Utilities
129 public static int clamp(int value, int min, int max) { method in class:Utilities
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DMaterial.java62 private static int clamp(int c) { method in class:Material
63 final int N = 255; // the value clamp is limiting to
89 byte v = (byte) clamp((int) (255 * (i - start) / (end - start)));
/frameworks/support/design/src/android/support/design/widget/
H A DSwipeDismissBehavior.java139 mDragDismissThreshold = clamp(0f, distance, 1f);
148 mAlphaStartSwipeDistance = clamp(0f, fraction, 1f);
157 mAlphaEndSwipeDistance = clamp(0f, fraction, 1f);
331 return clamp(min, left, max);
353 child.setAlpha(clamp(0f, 1f - distance, 1f));
387 static float clamp(float min, float value, float max) { method in class:SwipeDismissBehavior
391 static int clamp(int min, int value, int max) { method in class:SwipeDismissBehavior
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DUtils.java99 public static int clamp(int x, int min, int max) { method in class:Utils
106 public static float clamp(float x, float min, float max) { method in class:Utils
113 public static long clamp(long x, long min, long max) { method in class:Utils
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java62 public static float clamp(float v, float a, float b) { method in class:OctopusDrawable
118 vx = clamp(vx + dt_sec * ax, -MAX_VX, MAX_VX);
119 vy = clamp(vy + dt_sec * ay, -100*MAX_VY, MAX_VY);
128 point.x = clamp(point.x + dt_sec * vx, 0, scaledBounds[0]);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java197 float newHeight = clamp(target);
203 private float clamp(float target) { method in class:ExpandHelper
447 final float newHeight = clamp(rawHeight);
/frameworks/av/include/media/
H A DVolumeShaper.h93 // Local definition for clamp as std::clamp is included in C++17 only.
94 // TODO: use the std::clamp version when Android build uses C++17.
96 static constexpr const R &clamp(const R &v, const R &lo, const R &hi) { function in class:android::VolumeShaper
205 return clamp(volume, MIN_LINEAR_VOLUME /* lo */, MAX_LINEAR_VOLUME /* hi */);
392 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */);
617 mDelayXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */);
863 VS_LOG("clamp to start - begin immediately");
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java1547 // Don't forget to clamp
1632 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1633 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1690 private static int clamp(int n, int my, int child) { method in class:HorizontalScrollView
H A DScrollView.java1570 // Don't forget to clamp
1673 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1674 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1796 private static int clamp(int n, int my, int child) { method in class:ScrollView
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp122 static inline etc1_byte clamp(int x) { function
191 *q++ = clamp(r + delta);
192 *q++ = clamp(g + delta);
193 *q++ = clamp(b + delta);
311 int decodedG = clamp(g + modifier);
316 int decodedR = clamp(r + modifier);
321 int decodedB = clamp(b + modifier);
/frameworks/base/graphics/java/android/graphics/
H A DColorSpace.java1807 v[0] = clamp(v[0]);
1808 v[1] = clamp(v[1]);
1809 v[2] = clamp(v[2]);
1815 v[0] = clamp(v[0]);
1816 v[1] = clamp(v[1]);
1817 v[2] = clamp(v[2]);
1821 private static float clamp(float x) { method in class:ColorSpace.Xyz
1858 v[0] = clamp(v[0], 0.0f, 100.0f);
1859 v[1] = clamp(v[1], -128.0f, 128.0f);
1860 v[2] = clamp(
1897 private static float clamp(float x, float min, float max) { method in class:ColorSpace.Lab
3019 private double clamp(double x) { method in class:ColorSpace.Rgb
[all...]
/frameworks/base/media/java/android/media/
H A DClosedCaptionRenderer.java864 private static int clamp(int x, int min, int max) { method in class:Cea608CCParser.CCMemory
869 mRow = clamp(row, 1, MAX_ROWS);
870 mCol = clamp(col, 1, MAX_COLS);
874 mRow = clamp(row, 1, MAX_ROWS);
878 mCol = clamp(mCol + col, 1, MAX_COLS);
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java636 public static final float clamp(float f) { method in class:MLand
1145 90 + lerp(clamp(rlerp(dv, PARAMS.MAX_V, -1 * PARAMS.MAX_V)), 90, -90));
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DNestedScrollView.java1688 // Don't forget to clamp
1792 x = clamp(x, getWidth() - getPaddingRight() - getPaddingLeft(), child.getWidth());
1793 y = clamp(y, getHeight() - getPaddingBottom() - getPaddingTop(), child.getHeight());
1846 private static int clamp(int n, int my, int child) { method in class:NestedScrollView
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java4192 static int clamp(int x, int low, int high) { method in class:NotificationManagerService

Completed in 476 milliseconds