/packages/apps/Camera/src/com/android/camera/ |
H A D | PieController.java | 87 public void addItem(String prefKey, float center, float sweep) { argument 102 // use center and sweep to determine layout 103 item.setFixedSlice(center, sweep);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropMath.java | 137 * @param rot angle of rotation about rectangle center 156 * @param center center of the rotated rectangle 159 public static boolean pointInRotatedRect(float[] point, float[] rotatedRect, float[] center) { argument 161 float angle = getUnrotated(rotatedRect, center, unrotated); 166 * Resizes rectangle to have a certain aspect ratio (center remains 183 * Resizes rectangle to have a certain aspect ratio (center remains 248 private static float getUnrotated(float[] rotatedRect, float[] center, RectF unrotated) { argument 253 m.setRotate(-angle, center[0], center[ [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
H A D | PieItem.java | 141 public void setFixedSlice(float center, float sweep) { argument 142 mCenter = center;
|
H A D | PieRenderer.java | 226 * guaranteed has center set 327 private Path makeSlice(float start, float end, int outer, int inner, Point center) { argument 329 new RectF(center.x - outer, center.y - outer, center.x + outer, 330 center.y + outer); 332 new RectF(center.x - inner, center.y - inner, center.x + inner, 333 center [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageViewTouchBase.java | 183 // view's dimensions then center it (literally). If the image 186 protected void center(boolean horizontal, boolean vertical) { method in class:ImageViewTouchBase 317 center(true, true); 396 center(true, true);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
H A D | PieItem.java | 140 public void setFixedSlice(float center, float sweep) { argument 141 mCenter = center;
|
H A D | PieRenderer.java | 221 * guaranteed has center set 322 private Path makeSlice(float start, float end, int outer, int inner, Point center) { argument 324 new RectF(center.x - outer, center.y - outer, center.x + outer, 325 center.y + outer); 327 new RectF(center.x - inner, center.y - inner, center.x + inner, 328 center [all...] |
/packages/apps/Browser/src/com/android/browser/view/ |
H A D | PieMenu.java | 191 * guaranteed has center set 351 private Path makeSlice(float start, float end, int outer, int inner, Point center) { argument 353 new RectF(center.x - outer, center.y - outer, center.x + outer, 354 center.y + outer); 356 new RectF(center.x - inner, center.y - inner, center.x + inner, 357 center [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | AlbumSetPage.java | 108 // The eyes' position of the user, the origin is at the center of the 180 private void getSlotCenter(int slotIndex, int center[]) { argument 186 center[0] = offset.left + (r.left + r.right) / 2 - scrollX; 187 center[1] = offset.top + (r.top + r.bottom) / 2 - scrollY; 251 int[] center = new int[2]; 252 getSlotCenter(slotIndex, center); 253 data.putIntArray(AlbumPage.KEY_SET_CENTER, center);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | TileImageView.java | 300 // center of the ImageViewer. 330 // Calculate where the center of the image is, in the view coordinates. 331 public void getImageCenter(Point center) { argument 336 // The distance between the center of the view to the center of the 338 // coordinates correspond to the center of view) 350 center.x = Math.round(viewW / 2f + distW * mScale); 351 center.y = Math.round(viewH / 2f + distH * mScale);
|
H A D | SlotView.java | 158 // is changed (like orientation change). We choose to keep the center 360 public ScatteringAnimation(RelativePosition center) { argument 361 mCenter = center; 464 // to put the slots towards to the center of the display.
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | FolderIcon.java | 388 int[] center = new int[2]; 389 float scale = getLocalCenterForIndex(index, center); 390 center[0] = (int) Math.round(scaleRelativeToDragLayer * center[0]); 391 center[1] = (int) Math.round(scaleRelativeToDragLayer * center[1]); 393 to.offset(center[0] - animateView.getMeasuredWidth() / 2, 394 center[1] - animateView.getMeasuredHeight() / 2); 475 private float getLocalCenterForIndex(int index, int[] center) { argument 483 center[ [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | FolderIcon.java | 163 // Offset the preview background to center this view accordingly 450 int[] center = new int[2]; 451 float scale = getLocalCenterForIndex(index, center); 452 center[0] = (int) Math.round(scaleRelativeToDragLayer * center[0]); 453 center[1] = (int) Math.round(scaleRelativeToDragLayer * center[1]); 455 to.offset(center[0] - animateView.getMeasuredWidth() / 2, 456 center[1] - animateView.getMeasuredHeight() / 2); 536 private float getLocalCenterForIndex(int index, int[] center) { argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | DayView.java | 483 /** The hour at the center two touch points */ 3208 // Figure out where we came from and compute the center of that area. 3323 int center = (left + right) / 2; 3327 if (currentRight <= center) { 3328 currentDistance = center - currentRight; 3329 } else if (currentLeft >= center) { 3330 currentDistance = currentLeft - center; 3334 if (neighborRight <= center) { 3335 neighborDistance = center - neighborRight; 3336 } else if (neighborLeft >= center) { 3555 drawEventText(StaticLayout eventLayout, Rect rect, Canvas canvas, int top, int bottom, boolean center) argument [all...] |