/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterVignette.java | 88 float[] center = new float[] { cx, cy }; 89 m.mapPoints(center); 90 cx = center[0]; 91 cy = center[1];
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocationClustering.java | 212 Point[] center = new Point[maxK]; // center of each group. 218 center[i] = new Point(); 223 // (sum of distance from each point to its group center) * sqrt(k). 238 center[i].latRad = p.latRad; 239 center[i].lngRad = p.lngRad; 243 // step 2: assign each point to the nearest center. 257 p.latRad, p.lngRad, center[j].latRad, center[j].lngRad); 279 center[ [all...] |
/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 249 private static float getUnrotated(float[] rotatedRect, float[] center, RectF unrotated) { argument 254 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/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); 473 private float getLocalCenterForIndex(int index, int[] center) { argument 481 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/VideoEditor/src/com/android/videoeditor/widgets/ |
H A D | ImageViewTouchBase.java | 228 center(true, true); 356 * @param centerX The horizontal center 357 * @param centerY The vertical center 367 center(true, true); 383 * Zoom to the specified scale factor and center point 466 center(true, true); 473 * view's dimensions then center it (literally). If the image 477 private void center(boolean horizontal, boolean vertical) { method in class:ImageViewTouchBase
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
H A D | CameraControls.java | 156 center(mShutter, l, t, r, b, orientation, rotation, shutter); 157 center(mBackgroundView, l, t, r, b, orientation, rotation, new Rect()); 163 center(retake, shutter, rotation); 184 private void center(View v, int l, int t, int r, int b, int orientation, int rotation, Rect result) { method in class:CameraControls 221 private void center(View v, Rect other, int rotation) { method in class:CameraControls
|
H A D | PieRenderer.java | 268 * guaranteed has center set 416 float center = (getCenterAngle() - CENTER) * 0.5f + CENTER; 417 return center + (count - 1) * SWEEP_SLICE / 2f 426 float center = CENTER; 428 center = CENTER - (mAngleZone - mPieCenterX + mDeadZone) * RAD24 431 center = CENTER + (mPieCenterX - (getWidth() - mDeadZone - mAngleZone)) * RAD24 434 return center;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMetadata.java | 422 * Builds a matrix that rotates photo rect about it's center by the 423 * straighten angle, mirrors it about the crop center, and rotates it about 424 * the crop center by the rotation angle, and re-centers the photo rect. 437 float[] center = { 440 m.mapPoints(center); 441 concatRecenterMatrix(m, center, newCenter); 446 * Builds a matrix that rotates a crop rect about it's center by rotation 456 float[] center = { 459 m.mapPoints(center); 460 concatRecenterMatrix(m, center, newCente [all...] |
H A D | ImageCrop.java | 74 // Offset between crop center and photo center 225 private static float getUnrotated(float[] rotatedRect, float[] center, RectF unrotated) { argument 230 m.setRotate(-angle, center[0], center[1]);
|
/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);
|
H A D | ViewImage.java | 1104 center(true, true); 1146 center(true, false); 1157 center(true, false); 1163 center(false, true); 1168 center(false, true); 1184 center(true, true);
|
H A D | CropImage.java | 197 mImageView.center(true, true); 226 // with the cropped image in the center and the extra space filled. 240 // If the srcRect is too big, use the center part of it. 243 // If the dstRect is too big, use the center part of it. 246 // Draw the cropped bitmap in the center 295 mImageView.center(true, true); 720 center(true, true); 724 // the user to move the image around. This call to center puts 728 center(true, true); 755 // view's center an [all...] |
/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/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/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PhotoView.java | 712 // the center of the view. 750 // Find out the bitmap coordinates of the center of the view 922 // Draw the video play icon at the center 1442 // Determine how many photos we need to draw in addition to the center 1503 int center = getWidth() / 2; 1505 if (curr.left > center && mPrevBound < 0) { 1507 int currDist = curr.left - center; 1508 int prevDist = center - prev.right; 1512 } else if (curr.right < center && mNextBound > 0) { 1514 int currDist = center [all...] |
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.
|
H A D | TileImageView.java | 301 // center of the ImageViewer. 331 // Calculate where the center of the image is, in the view coordinates. 332 public void getImageCenter(Point center) { argument 337 // The distance between the center of the view to the center of the 339 // coordinates correspond to the center of view) 351 center.x = Math.round(viewW / 2f + distW * mScale); 352 center.y = Math.round(viewH / 2f + distH * mScale);
|
/packages/apps/Gallery2/src/com/android/camera/ |
H A D | PieController.java | 177 public PieItem makeDialItem(ListPreference pref, int iconId, float center, float sweep) { argument
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTable.java | 345 double[] center = { photo.getX() + width / 2f, 347 return center;
|