/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | imgprocutil.h | 27 inline int clamp(int min, int val, int max) { function
|
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));
|
/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/core/java/com/android/internal/notification/ |
H A D | DemoContactNotificationScorer.java | 138 private final static int clamp(int x, int low, int high) { method in class:DemoContactNotificationScorer 147 theScore = clamp(theScore, -2 * pm, 2 * pm);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 87 static inline int4 clamp(int4 amount, int low, int high) { function 96 static inline float4 clamp(float4 amount, float low, float high) { function 105 static inline int2 clamp(int2 amount, int low, int high) { function 112 static inline float2 clamp(float2 amount, float low, float high) { function 119 static inline int clamp(int amount, int low, int high) { function 123 static inline float clamp(float amount, float low, float high) { function
|
/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/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);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 242 float newHeight = clamp(target); 250 private float clamp(float target) { method in class:ExpandHelper 439 final float newHeight = clamp(rawHeight);
|
/frameworks/base/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 1498 // Don't forget to clamp 1583 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth()); 1584 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight()); 1641 private static int clamp(int n, int my, int child) { method in class:HorizontalScrollView
|
H A D | ScrollView.java | 1486 // Don't forget to clamp 1578 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth()); 1579 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight()); 1634 private static int clamp(int n, int my, int child) { method in class:ScrollView
|
/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/base/services/java/com/android/server/ |
H A D | NotificationManagerService.java | 1627 private final static int clamp(int x, int low, int high) { method in class:NotificationManagerService 1694 notification.priority = clamp(notification.priority, Notification.PRIORITY_MIN,
|
/frameworks/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 784 return clamp(value, mScreenBrightnessRangeMinimum, mScreenBrightnessRangeMaximum); 788 return clamp(value, PowerManager.BRIGHTNESS_OFF, PowerManager.BRIGHTNESS_ON); 791 private static int clamp(int value, int min, int max) { method in class:DisplayPowerController
|
/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 2839 private static final float clamp(float value, float low, float high) { method in class:MotionEvent 2864 pc[i].x = clamp(pc[i].x, left, right); 2865 pc[i].y = clamp(pc[i].y, top, bottom);
|