Home
last modified time | relevance | path

Searched refs:center (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallOrientationEventListener.java140 private static boolean isWithinThreshold(int value, int center, int threshold) { in isWithinThreshold() argument
141 return isWithinRange(value, center - threshold, center + threshold); in isWithinThreshold()
144 private static boolean isInLeftRange(int value, int center, int threshold) { in isInLeftRange() argument
145 return isWithinRange(value, center - threshold, center); in isInLeftRange()
148 private static boolean isInRightRange(int value, int center, int threshold) { in isInRightRange() argument
149 return isWithinRange(value, center, center + threshold); in isInRightRange()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusRingView.java145 Point center = computeCenter(); in centerFocusLocation() local
146 mAutoFocusRing.setCenterX(center.x); in centerFocusLocation()
147 mAutoFocusRing.setCenterY(center.y); in centerFocusLocation()
148 mManualFocusRing.setCenterX(center.x); in centerFocusLocation()
149 mManualFocusRing.setCenterY(center.y); in centerFocusLocation()
191 Point center = computeCenter(); in centerAutofocusRing() local
192 mAutoFocusRing.setCenterX(center.x); in centerAutofocusRing()
193 mAutoFocusRing.setCenterY(center.y); in centerAutofocusRing()
/packages/apps/Launcher2/src/com/android/launcher2/
DFolderIcon.java388 int[] center = new int[2]; in onDrop() local
389 float scale = getLocalCenterForIndex(index, center); in onDrop()
390 center[0] = (int) Math.round(scaleRelativeToDragLayer * center[0]); in onDrop()
391 center[1] = (int) Math.round(scaleRelativeToDragLayer * center[1]); in onDrop()
393 to.offset(center[0] - animateView.getMeasuredWidth() / 2, in onDrop()
394 center[1] - animateView.getMeasuredHeight() / 2); in onDrop()
475 private float getLocalCenterForIndex(int index, int[] center) {
483 center[0] = (int) Math.round(offsetX);
484 center[1] = (int) Math.round(offsetY);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java211 Point[] center = new Point[maxK]; // center of each group. in kMeans() local
217 center[i] = new Point(); in kMeans()
237 center[i].latRad = p.latRad; in kMeans()
238 center[i].lngRad = p.lngRad; in kMeans()
256 p.latRad, p.lngRad, center[j].latRad, center[j].lngRad); in kMeans()
278 center[i].latRad = groupSum[i].latRad / groupCount[i]; in kMeans()
279 center[i].lngRad = groupSum[i].lngRad / groupCount[i]; in kMeans()
/packages/apps/Launcher3/src/com/android/launcher3/
DFolderIcon.java450 int[] center = new int[2]; in onDrop() local
451 float scale = getLocalCenterForIndex(index, center); in onDrop()
452 center[0] = (int) Math.round(scaleRelativeToDragLayer * center[0]); in onDrop()
453 center[1] = (int) Math.round(scaleRelativeToDragLayer * center[1]); in onDrop()
455 to.offset(center[0] - animateView.getMeasuredWidth() / 2, in onDrop()
456 center[1] - animateView.getMeasuredHeight() / 2); in onDrop()
536 private float getLocalCenterForIndex(int index, int[] center) {
544 center[0] = (int) Math.round(offsetX);
545 center[1] = (int) Math.round(offsetY);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java1822 int center = getScrollCenter(view);
1823 if (scrollCenter > center) {
1826 info.mainPos = (float)(scrollCenter - center) / (nextCenter - center);
1829 info.mainPos = (float)(scrollCenter - center) / getSize(view);
1831 } else if (scrollCenter == center){
1839 (center - previousCenter);
1842 info.mainPos = (float) (scrollCenter - center) / getSize(view);
2200 int center = -1;
2214 center = centerMain;
2270 (float) (nextCenter - center);
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java322 private Path makeSlice(float start, float end, int outer, int inner, Point center) { in makeSlice() argument
324 new RectF(center.x - outer, center.y - outer, center.x + outer, in makeSlice()
325 center.y + outer); in makeSlice()
327 new RectF(center.x - inner, center.y - inner, center.x + inner, in makeSlice()
328 center.y + inner); in makeSlice()
DPieItem.java140 public void setFixedSlice(float center, float sweep) { in setFixedSlice() argument
141 mCenter = center; in setFixedSlice()
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DQuickAddWidgetTest.java49 Point center = calendarWidget.getVisibleCenter(); in testAddWidgetQuickly() local
52 SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, center.x, center.y, 0)); in testAddWidgetQuickly()
55 SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, center.x, center.y, 0)); in testAddWidgetQuickly()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java3323 int center = (left + right) / 2; in computeNeighbors() local
3327 if (currentRight <= center) { in computeNeighbors()
3328 currentDistance = center - currentRight; in computeNeighbors()
3329 } else if (currentLeft >= center) { in computeNeighbors()
3330 currentDistance = currentLeft - center; in computeNeighbors()
3334 if (neighborRight <= center) { in computeNeighbors()
3335 neighborDistance = center - neighborRight; in computeNeighbors()
3336 } else if (neighborLeft >= center) { in computeNeighbors()
3337 neighborDistance = neighborLeft - center; in computeNeighbors()
3354 int center = (left + right) / 2; in computeNeighbors() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropMath.java159 public static boolean pointInRotatedRect(float[] point, float[] rotatedRect, float[] center) { in pointInRotatedRect() argument
161 float angle = getUnrotated(rotatedRect, center, unrotated); in pointInRotatedRect()
248 private static float getUnrotated(float[] rotatedRect, float[] center, RectF unrotated) { in getUnrotated() argument
253 m.setRotate(-angle, center[0], center[1]); in getUnrotated()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumSetPage.java180 private void getSlotCenter(int slotIndex, int center[]) { in getSlotCenter() argument
186 center[0] = offset.left + (r.left + r.right) / 2 - scrollX; in getSlotCenter()
187 center[1] = offset.top + (r.top + r.bottom) / 2 - scrollY; in getSlotCenter()
251 int[] center = new int[2]; in pickAlbum() local
252 getSlotCenter(slotIndex, center); in pickAlbum()
253 data.putIntArray(AlbumPage.KEY_SET_CENTER, center); in pickAlbum()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java1502 int center = getWidth() / 2;
1504 if (curr.left > center && mPrevBound < 0) {
1506 int currDist = curr.left - center;
1507 int prevDist = center - prev.right;
1511 } else if (curr.right < center && mNextBound > 0) {
1513 int currDist = center - curr.right;
1514 int nextDist = next.left - center;
DTileImageView.java331 public void getImageCenter(Point center) { in getImageCenter() argument
350 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter()
351 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter()
DSlotView.java360 public ScatteringAnimation(RelativePosition center) { in ScatteringAnimation() argument
361 mCenter = center; in ScatteringAnimation()
/packages/apps/Gallery/src/com/android/camera/
DViewImage.java1104 center(true, true);
1146 center(true, false);
1157 center(true, false);
1163 center(false, true);
1168 center(false, true);
1184 center(true, true);
DImageViewTouchBase.java186 protected void center(boolean horizontal, boolean vertical) { in center() method in ImageViewTouchBase
317 center(true, true); in zoomTo()
396 center(true, true); in zoomOut()
DCropImage.java197 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/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java516 PointF center = a.mCropView.getCenter();
524 center.x = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left;
525 a.mCropView.setScaleAndCenter(scale, center.x, center.y);
DWallpaperPickerActivity.java211 PointF center = a.mCropView.getCenter(); in onSave()
215 center.x, in onSave()
216 center.y in onSave()
/packages/apps/TV/usbtuner/res/raw/
Dut_us_all1 # US ATSC center frequencies
72 # US EIA/NCTA Standard Cable center frequencies
Dut_kr_all1 # KR ATSC center frequencies
60 # KR Cable center frequencies
Dut_kr_dev_cj_cable_center_frequencies_qam2561 # KR CJ cable center frequencies for the development purpose.
Dut_kr_atsc_center_frequencies_8vsb1 # KR ATSC center frequencies
Dut_us_atsc_center_frequencies_8vsb1 # US ATSC center frequencies

12