Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java68 private Point center; field in PieRenderer
122 listener.onPieOpened(center.x, center.y);
159 center = new Point(0, 0); in init()
270 center.x = x; in setCenter()
271 center.y = y; in setCenter()
297 Path path = makeSlice(getDegrees(0) - gap, getDegrees(sweep) + gap, outer, inner, center); in layoutItems()
309 int y = center.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems()
310 x = center.x + x - w / 2; in layoutItems()
321 private Path makeSlice(float start, float end, int outer, int inner, Point center) { in makeSlice() argument
322 RectF bb = new RectF(center.x - outer, center.y - outer, center.x + outer, center.y + outer); in makeSlice()
[all …]
DPieItem.java35 private float center; field in PieItem
59 center = -1; in PieItem()
124 return center; in getCenter()
/packages/apps/Dialer/java/com/android/incallui/
DInCallOrientationEventListener.java83 private static boolean isWithinThreshold(int value, int center, int threshold) { in isWithinThreshold() argument
84 return isWithinRange(value, center - threshold, center + threshold); in isWithinThreshold()
87 private static boolean isInLeftRange(int value, int center, int threshold) { in isInLeftRange() argument
88 return isWithinRange(value, center - threshold, center); in isInLeftRange()
91 private static boolean isInRightRange(int value, int center, int threshold) { in isInRightRange() argument
92 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/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/services/Car/cpp/evs/apps/default/
Dconfig.json.readme8 // The origin is at the center of the read axel at ground level.
36 "x" : 0.0, // Optical center distance right of vehicle center
37 "y" : -40.0, // Optical center distance forward of rear axel
38 "z" : 48, // Optical center distance above ground
/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/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java386 int[] center = new int[2]; in onDrop() local
387 float scale = getLocalCenterForIndex(index, numItemsInPreview, center); in onDrop()
388 center[0] = Math.round(scaleRelativeToDragLayer * center[0]); in onDrop()
389 center[1] = Math.round(scaleRelativeToDragLayer * center[1]); in onDrop()
391 to.offset(center[0] - animateView.getMeasuredWidth() / 2, in onDrop()
392 center[1] - animateView.getMeasuredHeight() / 2); in onDrop()
564 private float getLocalCenterForIndex(int index, int curNumItems, int[] center) { in getLocalCenterForIndex() argument
575 center[0] = Math.round(offsetX); in getLocalCenterForIndex()
576 center[1] = Math.round(offsetY); in getLocalCenterForIndex()
/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/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java229 float center = (float) getWidth() / 2f; in updateCardView() local
232 float position = (viewCenter - center) / viewWidth; in updateCardView()
242 viewCenter < center ? view.getRight() + mCardMarginPx in updateCardView()
245 if (Math.abs(viewCenter - center) < mCardCenterToScreenCenterDistancePx) { in updateCardView()
251 mEdgeToCenterDistance = edgePosition - center; in updateCardView()
252 mCardCenterToScreenCenterDistancePx = Math.abs(viewCenter - center); in updateCardView()
/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/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/Gallery/src/com/android/camera/
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()
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);
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/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()
/packages/apps/TV/tuner/res/raw/
Dut_us_all1 # US ATSC center frequencies
71 # US EIA/NCTA Standard Cable center frequencies
Dut_kr_all1 # KR ATSC center frequencies
59 # 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
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java768 int center; in onBufferDraw() local
770 center = keys[mLastSentIndex].x + keys[mLastSentIndex].width / 2; in onBufferDraw()
772 center = getWidth()/2; in onBufferDraw()
774 canvas.drawRect(mAnimateOutValue * center, 0, mAnimateOutValue * center + backgroundWidth, in onBufferDraw()
799 animateOutOffset = (center - key.x - key.width/2) * mAnimateOutValue; in onBufferDraw()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DGsmSmsCbMessage.java219 LatLng center = getLatLng(bitReader); in parseWarningAreaCoordinates() local
224 geo.add(new Circle(center, radius)); in parseWarningAreaCoordinates()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DVectorMath.java41 public static float center(float a, float b) { in center() method in VectorMath

123