/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 85 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/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 122 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/native/services/sensorservice/ |
H A D | quat.h | 65 } 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/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 199 float newHeight = clamp(target); 205 private float clamp(float target) { method in class:ExpandHelper 438 final float newHeight = clamp(rawHeight);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | LLand.java | 411 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/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.java | 99 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/services/core/java/com/android/server/notification/ |
H A D | NotificationManagerService.java | 1805 notification.priority = clamp(notification.priority, Notification.PRIORITY_MIN, 2439 static int clamp(int x, int low, int high) { method in class:NotificationManagerService
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 40 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));
|
H A D | imgprocutil.h | 27 inline int clamp(int min, int val, int max) { function
|
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 80 static inline T clamp(T a, T minValue, T maxValue) { function in class:android::uirenderer::MathUtils
|
/frameworks/base/media/java/android/media/ |
H A D | ClosedCaptionRenderer.java | 684 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/util/ |
H A D | Range.java | 173 public T clamp(T value) { method in class:Range
|
/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 2874 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/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 1506 // 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 D | ScrollView.java | 1520 // 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/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 367 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);
|