/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
TiledScreenNail.java | 204 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
|
PositionController.java | 488 int targetX = Utils.clamp(x, mBoundLeft, mBoundRight); 489 int targetY = Utils.clamp(y, mBoundTop, mBoundBottom); 490 targetScale = Utils.clamp(targetScale, b.mScaleMin, b.mScaleMax); 598 y = Utils.clamp(y, mBoundTop, mBoundBottom); [all...] |
UndoBarView.java | 201 mAlpha = Utils.clamp(mAlpha, 0f, 1f);
|
/external/jmonkeyengine/engine/src/test/jme3test/animation/ |
TestCinematic.java | 267 FastMath.clamp(time, 0, cinematic.getInitialDuration());
272 FastMath.clamp(time, 0, cinematic.getInitialDuration());
|
/external/qemu/android/camera/ |
camera-format-converters.c | 141 clamp(int x) function 197 #define YUV2RO(C, D, E) clamp((298 * (C) + 409 * (E) + 128) >> 8) 198 #define YUV2GO(C, D, E) clamp((298 * (C) - 100 * (D) - 208 * (E) + 128) >> 8) 199 #define YUV2BO(C, D, E) clamp((298 * (C) + 516 * (D) + 128) >> 8) 204 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) 205 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) 206 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8) 256 return (uint8_t)clamp((float)inputY * exp_comp); [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
FocusOverlayManager.java | 516 int left = Util.clamp(x - areaSize, 0, mPreviewWidth - 2 * areaSize); 517 int top = Util.clamp(y - areaSize, 0, mPreviewHeight - 2 * areaSize);
|
/external/replicaisland/src/com/replica/replicaisland/ |
CollisionSystem.java | 178 final int startTileX = Utils.clamp((int)(startX / mTileWidth), 0, mWorld.getWidth() - 1); 179 final int endTileX = Utils.clamp((int)(endX / mTileWidth), 0, mWorld.getWidth() - 1); 180 final int startTileY = Utils.clamp((int)(startY / mTileHeight), 0, mWorld.getHeight() - 1); 181 final int endTileY = Utils.clamp((int)(endY / mTileHeight), 0, mWorld.getHeight() - 1); 420 return Utils.clamp((int)Math.floor(x / mTileWidth), 0, width - 1); 424 return Utils.clamp((int)Math.floor(y / mTileHeight), 0, height - 1); [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/PerformanceTests/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...] |
/external/webkit/PerformanceTests/SunSpider/tests/v8-v5/ |
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...] |
/external/webkit/PerformanceTests/SunSpider/tests/v8-v6/ |
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...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/ |
TestCaseEditController.java | 584 public static String clamp(String text, int len) { method in class:TestCaseEditController.TestCaseListRenderer 612 clamp(clampAtNewLine(item.getInput().getScript()), 18)); 614 clamp(clampAtNewLine(item.getOutput().getScript()), 18));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ExpandHelper.java | 243 float newHeight = clamp(target); 251 private float clamp(float target) { method in class:ExpandHelper 440 final float newHeight = clamp(rawHeight);
|
BeanBag.java | 86 static float clamp(float x, float a, float b) { method in class:BeanBag.Board 258 float a = randsign() * clamp(mag(vx, vy) * 0.33f, 0, 1080f);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
MediaItemView.java | 460 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
|
/packages/apps/Camera/src/com/android/camera/ |
FocusOverlayManager.java | 518 int left = Util.clamp(x - areaWidth / 2, 0, previewWidth - areaWidth); 519 int top = Util.clamp(y - areaHeight / 2, 0, previewHeight - areaHeight);
|
/external/eigen/test/ |
geo_alignedbox.cpp | 47 VERIFY_IS_APPROX(b2.clamp(b0), b0);
|
/external/jmonkeyengine/engine/src/android/jme3tools/android/ |
Fixed.java | 379 public static int clamp(int n, int min, int max) { method in class:Fixed
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
TextureGeneratorMagic.java | 148 texres.intensity = FastMath.clamp(0.3333f * (xyz[0] + xyz[1] + xyz[2]), 0.0f, 1.0f);
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicConvolve3x3.cpp | 89 px = clamp(px, 0.f, 255.f);
|
rsCpuIntrinsicConvolve5x5.cpp | 110 px = clamp(px, 0.f, 255.f);
|
/frameworks/rs/scriptc/ |
rs_cl.rsh | 824 * Clamp a value to a specified high and low bound. 830 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high); 831 FN_FUNC_FN_FN_FN(clamp) 832 FN_FUNC_FN_F_F(clamp)
|
/prebuilts/sdk/renderscript/include/ |
rs_cl.rsh | 824 * Clamp a value to a specified high and low bound. 830 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high); 831 FN_FUNC_FN_FN_FN(clamp) 832 FN_FUNC_FN_F_F(clamp)
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
FastMath.java | 911 * Take a float input and clamp it between min and max. 918 public static float clamp(float input, float min, float max) { method in class:FastMath [all...] |
/external/skia/tests/ |
MathTest.cpp | 449 int clamp = SkClampMax(value, max); local 451 REPORTER_ASSERT(reporter, clamp == clamp2);
|