/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocationClustering.java | 209 Point[] center = new Point[maxK]; // center of each group. in kMeans() local 215 center[i] = new Point(); in kMeans() 235 center[i].latRad = p.latRad; in kMeans() 236 center[i].lngRad = p.lngRad; in kMeans() 254 p.latRad, p.lngRad, center[j].latRad, center[j].lngRad); in kMeans() 276 center[i].latRad = groupSum[i].latRad / groupCount[i]; in kMeans() 277 center[i].lngRad = groupSum[i].lngRad / groupCount[i]; in kMeans()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | FolderIcon.java | 365 int[] center = new int[2]; in onDrop() local 366 float scale = getLocalCenterForIndex(index, center); in onDrop() 367 center[0] = (int) Math.round(scaleRelativeToDragLayer * center[0]); in onDrop() 368 center[1] = (int) Math.round(scaleRelativeToDragLayer * center[1]); in onDrop() 370 to.offset(center[0] - animateView.getMeasuredWidth() / 2, in onDrop() 371 center[1] - animateView.getMeasuredHeight() / 2); in onDrop() 447 private float getLocalCenterForIndex(int index, int[] center) { 455 center[0] = (int) Math.round(offsetX); 456 center[1] = (int) Math.round(offsetY);
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieMenu.java | 351 private Path makeSlice(float start, float end, int outer, int inner, Point center) { in makeSlice() argument 353 new RectF(center.x - outer, center.y - outer, center.x + outer, in makeSlice() 354 center.y + outer); in makeSlice() 356 new RectF(center.x - inner, center.y - inner, center.x + inner, in makeSlice() 357 center.y + inner); in makeSlice()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ImageViewTouchBase.java | 228 center(true, true); in postTranslateCenter() 367 center(true, true); in zoomTo() 466 center(true, true); in zoomOut() 477 private void center(boolean horizontal, boolean vertical) { in center() method in ImageViewTouchBase
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumSetPage.java | 172 private void getSlotCenter(int slotIndex, int center[]) { in getSlotCenter() argument 178 center[0] = offset.left + (r.left + r.right) / 2 - scrollX; in getSlotCenter() 179 center[1] = offset.top + (r.top + r.bottom) / 2 - scrollY; in getSlotCenter() 207 int[] center = new int[2]; in pickAlbum() local 208 getSlotCenter(slotIndex, center); in pickAlbum() 209 data.putIntArray(AlbumPage.KEY_SET_CENTER, center); in pickAlbum()
|
D | AlbumPage.java | 354 int[] center = data.getIntArray(KEY_SET_CENTER); in onCreate() local 355 if (center != null) { in onCreate() 356 mOpenCenter.setAbsolutePosition(center[0], center[1]); in onCreate()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 186 protected void center(boolean horizontal, boolean vertical) { in center() method in ImageViewTouchBase 317 center(true, true); in zoomTo() 396 center(true, true); in zoomOut()
|
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);
|
D | CropImage.java | 197 mImageView.center(true, true); in startFaceDetection() 295 mImageView.center(true, true); in onSaveClicked() 720 center(true, true); in onTouchEvent() 728 center(true, true); in onTouchEvent()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 3319 int center = (left + right) / 2; in computeNeighbors() local 3323 if (currentRight <= center) { in computeNeighbors() 3324 currentDistance = center - currentRight; in computeNeighbors() 3325 } else if (currentLeft >= center) { in computeNeighbors() 3326 currentDistance = currentLeft - center; in computeNeighbors() 3330 if (neighborRight <= center) { in computeNeighbors() 3331 neighborDistance = center - neighborRight; in computeNeighbors() 3332 } else if (neighborLeft >= center) { in computeNeighbors() 3333 neighborDistance = neighborLeft - center; in computeNeighbors() 3350 int center = (left + right) / 2; in computeNeighbors() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 1421 int center = getWidth() / 2; 1423 if (curr.left > center && mPrevBound < 0) { 1425 int currDist = curr.left - center; 1426 int prevDist = center - prev.right; 1430 } else if (curr.right < center && mNextBound > 0) { 1432 int currDist = center - curr.right; 1433 int nextDist = next.left - center;
|
D | TileImageView.java | 319 public void getImageCenter(Point center) { in getImageCenter() argument 338 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter() 339 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter()
|
D | SlotView.java | 361 public ScatteringAnimation(RelativePosition center) { in ScatteringAnimation() argument 362 mCenter = center; in ScatteringAnimation()
|