Searched defs:clamp (Results 1 - 16 of 16) 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/base/core/java/android/util/
H A DRange.java173 public T clamp(T value) { method in class:Range
/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.h80 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/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/av/media/libstagefright/yuv/
H A DYUVImage.cpp367 uint8_t clamp(uint8_t v, uint8_t minValue, uint8_t maxValue) { function in namespace:android
381 *r = clamp(*r, 0, 255);
382 *g = clamp(*g, 0, 255);
383 *b = clamp(*b, 0, 255);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java199 float newHeight = clamp(target);
205 private float clamp(float target) { method in class:ExpandHelper
438 final float newHeight = clamp(rawHeight);
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java1506 // Don't forget to clamp
1591 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1592 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1649 private static int clamp(int n, int my, int child) { method in class:HorizontalScrollView
H A DScrollView.java1520 // Don't forget to clamp
1623 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1624 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1720 private static int clamp(int n, int my, int child) { method in class:ScrollView
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DLLand.java411 public static final float clamp(float f) { method in class:LLand
790 90 + lerp(clamp(rlerp(dv, PARAMS.MAX_V, -1 * PARAMS.MAX_V)), 90, -90));
/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/media/java/android/media/
H A DClosedCaptionRenderer.java684 private static int clamp(int x, int min, int max) { method in class:CCParser.CCMemory
689 mRow = clamp(row, 1, MAX_ROWS);
690 mCol = clamp(col, 1, MAX_COLS);
694 mRow = clamp(row, 1, MAX_ROWS);
698 mCol = clamp(mCol + col, 1, MAX_COLS);
/frameworks/base/core/java/android/view/
H A DMotionEvent.java2874 private static final float clamp(float value, float low, float high) { method in class:MotionEvent
2899 pc[i].x = clamp(pc[i].x, left, right);
2900 pc[i].y = clamp(pc[i].y, top, bottom);
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java1805 notification.priority = clamp(notification.priority, Notification.PRIORITY_MIN,
2439 static int clamp(int x, int low, int high) { method in class:NotificationManagerService

Completed in 482 milliseconds