/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | MoreMath.java | 27 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 D | exposure.c | 31 rgb[RED] = clamp((255*(rgb[RED]))/m); 32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m); 33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m);
|
H A D | contrast.c | 20 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));
|
H A D | hue.c | 38 rgb[RED] = clamp((int)rf); 39 rgb[GREEN] = clamp((int)gf); 40 rgb[BLUE] = clamp((int)bf);
|
H A D | fx.c | 80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); 81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); 82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db));
|
H A D | filters.h | 46 __inline__ unsigned char clamp(int c);
|
H A D | wbalance.c | 164 rgb[RED] = clamp(Rc); 165 rgb[GREEN] = clamp(Gc); 166 rgb[BLUE] = clamp(Bc);
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
H A D | AlphaAnimation.java | 45 mCurrentAlpha = Utils.clamp(mStartAlpha
|
H A D | Animation.java | 84 float x = Utils.clamp((float) elapse / mDuration, 0f, 1f);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | FadeTexture.java | 75 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | Paper.java | 136 mValue = Utils.clamp(mValue + deltaDistance, -1.0f, 1.0f); 146 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR, 155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f);
|
H A D | ScrollerHelper.java | 89 int newPosition = Utils.clamp(finalPosition + distance, min, max);
|
H A D | TiledScreenNail.java | 204 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | EyePosition.java | 134 mX = Utils.clamp((x * USER_ANGEL_COS / glength 137 mY = -Utils.clamp((y * USER_ANGEL_COS / glength 173 mX = Utils.clamp((float) (mX + x * t / Math.hypot(mZ, mX)), 175 mY = Utils.clamp((float) (mY + y * t / Math.hypot(mZ, mY)),
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | convolve3x3.rs | 65 p20 = clamp(p20, 0.f, 1.f);
|
H A D | grad.rs | 107 float t = clamp(x*grad->dx+y*grad->dy+grad->off,0.f,1.0f); 116 uchar4 out = rsPackColorTo8888(clamp(pixel, 0.f, 1.0f));
|
H A D | vignette.rs | 76 uchar4 out = rsPackColorTo8888(clamp(wsum, 0.f, 1.0f));
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
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
|
H A D | CropMath.java | 90 * @param imageBound the rectangle to clamp edge points to. 91 * @param array an array of points to clamp to the rectangle, gets set to 98 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right); 99 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom);
|
H A D | GeometryMathUtils.java | 49 public static float clamp(float i, float low, float high) { method in class:GeometryMathUtils
|
/packages/apps/Gallery2/gallerycommon/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
|
/packages/apps/Launcher3/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
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | FocusManager.java | 278 int left = Util.clamp(x - focusWidth / 2, 0, previewWidth - focusWidth); 279 int top = Util.clamp(y - focusHeight / 2, 0, previewHeight - focusHeight); 451 int left = Util.clamp(x - areaWidth / 2, 0, previewWidth - areaWidth); 452 int top = Util.clamp(y - areaHeight / 2, 0, previewHeight - areaHeight);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropMath.java | 92 * @param imageBound the rectangle to clamp edge points to. 93 * @param array an array of points to clamp to the rectangle, gets set to 100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right); 101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | TimeClustering.java | 186 mClusterSplitTime = Utils.clamp(mClusterSplitTime, MIN_CLUSTER_SPLIT_TIME_IN_MS, MAX_CLUSTER_SPLIT_TIME_IN_MS); 188 mMinClusterSize = Utils.clamp(mMinClusterSize, MIN_MIN_CLUSTER_SIZE, MAX_MIN_CLUSTER_SIZE); 189 mMaxClusterSize = Utils.clamp(mMaxClusterSize, MIN_MAX_CLUSTER_SIZE, MAX_MAX_CLUSTER_SIZE);
|