/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
CropImage.java | 280 Math.round(cropRect.left), Math.round(cropRect.top), 281 Math.round(cropRect.right), Math.round(cropRect.bottom)); 646 outputX = Math.round(scale * outputX); 647 outputY = Math.round(scale * outputY); 666 int rectWidth = Math.round(rect.width() * scaleX); 667 int rectHeight = Math.round(rect.height() * scaleY); 668 dest.set(Math.round((outputX - rectWidth) / 2f), 669 Math.round((outputY - rectHeight) / 2f) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
PreviewPlacerView.java | 327 // Paint the round rectangle background. 339 final float round = mGestureFloatingPreviewRoundRadius; local 341 canvas.drawRoundRect(rectangle, round, round, paint);
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/archives/ |
Archive.java | 372 sizeStr = String.format("%d KiB", Math.round(size / 1024.0)); 375 Math.round(10.0 * size / (1024 * 1024.0))/ 10.0); 378 Math.round(10.0 * size / (1024 * 1024 * 1024.0))/ 10.0);
|
/cts/tests/src/android/widget/cts/ |
WidgetTestUtils.java | 110 return Math.round(density * dip);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List8.java | 126 int whichPhoto = (int)Math.round(Math.random() * (mPhotoPool.length - 1));
|
/external/arduino/hardware/arduino/cores/arduino/ |
wiring.h | 79 #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) macro
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/utils/ |
Util.java | 391 public static double round(double value) { method in class:Util 392 return Math.round(value * 10000) / 10000.0; 398 public static double round(double value, int precision) { method in class:Util 407 return Math.round(value * factor) / factor;
|
/external/icu4c/i18n/ |
digitlst.h | 299 * Round the number to the given number of digits. 303 void round(int32_t maximumDigits);
|
/external/libvpx/vp8/common/arm/neon/ |
bilinearpredict4x4_neon.asm | 65 vqrshrn.u16 d28, q7, #7 ;shift/round/saturate to u8 93 vqrshrn.u16 d2, q1, #7 ;shift/round/saturate to u8
|
/external/libvpx/vp8/encoder/ |
asm_enc_offsets.c | 39 DEFINE(vp8_block_round, offsetof(BLOCK, round));
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/ |
MultiplyTimeScaleTrack.java | 31 import static java.lang.Math.round;
|
/external/skia/src/core/ |
SkScan.cpp | 62 r.round(&ir);
|
/external/webkit/Tools/iExploder/iexploder-1.7.2/src/ |
scanner.rb | 63 width = (new_offset_count * 1.61803398).round
|
/frameworks/base/core/java/android/view/ |
OrientationEventListener.java | 129 orientation = 90 - (int)Math.round(angle);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
FixedRotationFilter.java | 80 switch (((int)Math.round(mRotation / 90f)) % 4) {
|
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/ |
UiDevice.java | 119 p.x = Math.round(dpx); 120 p.y = Math.round(dpy); 750 width = Math.round(scale * width); 751 height = Math.round(scale * height);
|
/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
CameraUnitTest.java | 104 assertEquals("Array index " + i + " mismatch", expected[i], Math.round(actual[i]));
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
SmoothPagedView.java | 178 scrollTo(Math.round(mUnboundedScrollX + dx * e), getScrollY());
|
DragLayer.java | 312 coord[0] = (int) Math.round(pt[0]); 313 coord[1] = (int) Math.round(pt[1]); 477 toY += Math.round(scale * tv.getPaddingTop()); 479 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; 485 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2; 487 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2; 488 toX -= (Math.round(scale * (dragView.getMeasuredWidth() 590 int x = (int) (fromLeft + Math.round(((to.left - fromLeft) * motionPercent))); 591 int y = (int) (fromTop + Math.round(((to.top - fromTop) * motionPercent)));
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
CameraTest.java | 108 assertEquals("Array index " + i + " mismatch", expected[i], Math.round(actual[i]));
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
ImageUtils.java | 106 final Bitmap bitmap = Bitmap.createBitmap(Math.round(scaledWidth), 107 Math.round(scaledHeight), 112 new Rect(0, 0, Math.round(scaledWidth), Math.round(scaledHeight)),
|
/sdk/assetstudio/src/com/android/assetstudiolib/ |
Util.java | 50 (int) Math.round(rect.x * scaleFactor), 51 (int) Math.round(rect.y * scaleFactor), 52 (int) Math.round(rect.width * scaleFactor), 53 (int) Math.round(rect.height * scaleFactor));
|
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/ |
TreeViewOverview.java | 251 gc.drawImage(sFilteredSelectedImage, node.left, (int) Math.round(node.top)); 253 gc.drawImage(sSelectedImage, node.left, (int) Math.round(node.top)); 255 gc.drawImage(sFilteredImage, node.left, (int) Math.round(node.top)); 257 gc.drawImage(sNotSelectedImage, node.left, (int) Math.round(node.top));
|
/system/core/libpixelflinger/codeflinger/ |
texturing.cpp | 804 const int round = 0; local 837 if (round) 852 if (round) 866 if (round) 900 const int round = 0; local 998 const int round = 0; local [all...] |
/external/libvpx/vp8/common/x86/ |
subpixel_mmx.asm | 87 paddsw mm3, [GLOBAL(rd)] ; mm3 += round value 183 paddsw mm3, mm5 ; mm3 += round value 275 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 316 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 333 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 430 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 471 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 488 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 574 paddw mm3, [GLOBAL(rd)] ; xmm3 += round value 598 paddw mm3, [GLOBAL(rd)] ; xmm3 += round valu [all...] |