HomeSort by relevance Sort by last modified time
    Searched defs:clamp (Results 1 - 14 of 14) sorted by null

  /packages/apps/Gallery3D/src/com/cooliris/media/
FloatUtils.java 71 * Clamp a float to a lower bound
76 * : the minimum value to use to clamp
87 * Clamp a float to an upper bound
92 * : the maximum value to use to clamp
105 * Clamp a float to a lower and upper bound
110 * : the minimum value to use to clamp
112 * : the maximum value to use to clamp
115 public static final float clamp(float val, float minVal, float maxVal) { method in class:FloatUtils
125 * Clamp an integer to a lower and upper bound
130 * : the minimum value to use to clamp
135 public static final int clamp(int val, int minVal, int maxVal) { method in class:FloatUtils
    [all...]
Shared.java 67 public static int clamp(int value, int min, int max) { method in class:Shared
76 public static long clamp(long value, long min, long max) { method in class:Shared
  /external/webkit/WebCore/platform/chromium/
ScrollbarThemeChromiumLinux.cpp 78 static SkScalar clamp(SkScalar value, SkScalar min, SkScalar max) function in namespace:WebCore
89 color[1] = clamp(hsv[1] + saturateAmount, 0.0, 1.0);
90 color[2] = clamp(hsv[2] + brightenAmount, 0.0, 1.0);
123 SkScalar minDiff = clamp((hsv1[1] + hsv2[1]) * 1.2, 0.2, 0.5);
124 SkScalar diff = clamp(fabs(hsv1[2] - hsv2[2]) / 2, minDiff, 0.5);
  /frameworks/base/services/sensorservice/
RotationVectorSensor.cpp 31 static inline T clamp(T v) { function in namespace:android
113 float qw = sqrtf( clamp( Hx + My + Az + 1) * 0.25f );
114 float qx = sqrtf( clamp( Hx - My - Az + 1) * 0.25f );
115 float qy = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f );
116 float qz = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f );
  /external/skia/tests/
MathTest.cpp 274 int clamp = SkClampMax(value, max); local
276 REPORTER_ASSERT(reporter, clamp == clamp2);
  /packages/apps/Camera/src/com/android/camera/
Util.java 296 public static int clamp(int x, int min, int max) { method in class:Util
  /external/icu4c/i18n/
decContext.h 42 /* clamp -- must be either 0 or 1 */
94 uint8_t clamp; /* flag: apply IEEE exponent clamp */ member in struct:__anon4048
  /frameworks/base/services/camera/libcameraservice/
FakeCamera.cpp 41 clamp(int x) function in namespace:android
80 * Y0 = clamp[ Y/kYy + 16 ]
145 * Cr0 = clamp(Cr + 128)
160 pTable[i] = (uint8_t) clamp( i/kRr + 128.5 );
171 * Cb0 = clamp(Cb + 128)
187 pTable[i] = (uint8_t) clamp( i/kBb + 128.5 );
  /frameworks/base/opengl/libs/ETC1/
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);
  /packages/apps/Launcher2/src/com/android/launcher2/
DragController.java 331 final int screenX = clamp((int)ev.getRawX(), 0, mDisplayMetrics.widthPixels);
332 final int screenY = clamp((int)ev.getRawY(), 0, mDisplayMetrics.heightPixels);
379 final int screenX = clamp((int)ev.getRawX(), 0, mDisplayMetrics.widthPixels);
380 final int screenY = clamp((int)ev.getRawY(), 0, mDisplayMetrics.heightPixels);
508 * Get the screen size so we can clamp events to the screen size so even if
517 * Clamp val to be >= min and < max.
519 private static int clamp(int val, int min, int max) { method in class:DragController
  /frameworks/base/core/java/android/widget/
HorizontalScrollView.java 1438 private int clamp(int n, int my, int child) { method in class:HorizontalScrollView
    [all...]
ScrollView.java 1437 private int clamp(int n, int my, int child) { method in class:ScrollView
    [all...]
  /external/v8/benchmarks/
crypto.js 238 this.clamp();
242 // (protected) clamp off excess high words
354 r.clamp();
374 r.clamp();
410 r.clamp();
426 r.clamp();
447 r.clamp();
499 r.clamp();
597 x.clamp();
644 BigInteger.prototype.clamp = bnpClamp
    [all...]
  /external/webkit/SunSpider/tests/v8-v4/
v8-crypto.js 230 this.clamp();
234 // (protected) clamp off excess high words
346 r.clamp();
366 r.clamp();
402 r.clamp();
418 r.clamp();
439 r.clamp();
491 r.clamp();
589 x.clamp();
636 BigInteger.prototype.clamp = bnpClamp
    [all...]

Completed in 130 milliseconds