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

/packages/apps/Contacts/src/com/android/contacts/util/
H A DMoreMath.java27 public static int clamp(int input, int lowerBound, int upperBound) { method in class:MoreMath
37 public static float clamp(float input, float lowerBound, float upperBound) { method in class:MoreMath
47 public static double clamp(double input, double lowerBound, double upperBound) { method in class:MoreMath
/packages/apps/Gallery2/jni/filters/
H A Dcontrast.c20 unsigned char clamp(int c) function
50 rgb[RED] = clamp((int)(m*rgb[RED]+c));
51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c));
52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c));
/packages/apps/Camera2/src/com/android/camera/crop/
H A DGeometryMathUtils.java49 public static float clamp(float i, float low, float high) { method in class:GeometryMathUtils
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
/packages/apps/Gallery2/gallerycommon/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
/packages/apps/Launcher3/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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java98 public static float clamp(float i, float low, float high) { method in class:GeometryMathUtils
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java320 public static int clamp(int x, int min, int max) { method in class:Util
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DMediaItemView.java460 startIdx = clamp(startIdx, 0, mNumberOfThumbnails - 1);
461 endIdx = clamp(endIdx, 0, mNumberOfThumbnails - 1);
536 private static int clamp(int v, int low, int high) { method in class:MediaItemView
H A DHorizontalScrollView.java1521 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1522 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1579 private static int clamp(int n, int my, int child) { method in class:HorizontalScrollView
/packages/apps/Browser/src/com/android/browser/view/
H A DScrollerView.java1831 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1832 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1839 private int clamp(int n, int my, int child) { method in class:ScrollerView
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java371 public static int clamp(int x, int min, int max) { method in class:Util
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java391 public static int clamp(int x, int min, int max) { method in class:CameraUtil
397 public static float clamp(float x, float min, float max) { method in class:CameraUtil

Completed in 680 milliseconds