Home
last modified time | relevance | path

Searched refs:getLeft (Results 1 – 25 of 77) sorted by relevance

1234

/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/layout/tests/
DScaledLayoutTest.java69 assertEquals((int) (400 * 0.8), view1.getLeft()); in testScaledLayout_layoutInXml()
73 assertEquals((int) (400 * 0.2), view2.getLeft()); in testScaledLayout_layoutInXml()
77 assertEquals((int) (400 * 0.3), view3.getLeft()); in testScaledLayout_layoutInXml()
81 assertEquals((int) (400 * 0.05), view4.getLeft()); in testScaledLayout_layoutInXml()
103 assertEquals(0, view1.getLeft()); in testScaledLayout_layoutThroughCode()
107 assertEquals(50, view2.getLeft()); in testScaledLayout_layoutThroughCode()
111 assertEquals(0, view3.getLeft()); in testScaledLayout_layoutThroughCode()
115 assertEquals(50, view4.getLeft()); in testScaledLayout_layoutThroughCode()
133 assertEquals(0, view1.getLeft()); in testScaledLayout_bounceY()
137 assertEquals(0, view2.getLeft()); in testScaledLayout_bounceY()
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java190 + view.getLeft() in dumpChildren()
204 + title.getLeft() in dumpChildren()
218 + contents.getLeft() in dumpChildren()
479 mMenuView.getLeft(), in setSelectedPositionSmooth()
712 mMenuView.getLeft(), in setSelectedPositionSmooth()
768 dest.setLeft(src.getLeft() + parent.getLeft()); in setTempTitleView()
769 dest.setRight(src.getRight() + parent.getLeft()); in setTempTitleView()
843 mMenuView.getLeft(), in onMenuRowUpdated()
896 mMenuView.getLeft(), in onMenuRowUpdated()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.kt352 val alarmLeft: Int = mAlarmButton.getLeft() + mAlarmButton.getPaddingLeft() in onTouch()
359 getFraction(alarmRight.toFloat(), mSnoozeButton.getLeft().toFloat(), x) in onTouch()
365 getFraction(alarmRight.toFloat(), mDismissButton.getLeft().toFloat(), x) in onTouch()
424 val alarmLeft: Int = mAlarmButton.getLeft() + mAlarmButton.getPaddingLeft() in hintSnooze()
426 val translationX = (Math.max(mSnoozeButton.getLeft() - alarmRight, 0) + in hintSnooze()
436 val alarmLeft: Int = mAlarmButton.getLeft() + mAlarmButton.getPaddingLeft() in hintDismiss()
438 val translationX = (Math.max(mDismissButton.getLeft() - alarmRight, 0) + in hintDismiss()
DAlarmActivity.java385 final int alarmLeft = mAlarmButton.getLeft() + mAlarmButton.getPaddingLeft(); in onTouch()
390 snoozeFraction = getFraction(alarmRight, mSnoozeButton.getLeft(), x); in onTouch()
394 dismissFraction = getFraction(alarmRight, mDismissButton.getLeft(), x); in onTouch()
452 final int alarmLeft = mAlarmButton.getLeft() + mAlarmButton.getPaddingLeft(); in hintSnooze()
454 final float translationX = Math.max(mSnoozeButton.getLeft() - alarmRight, 0) in hintSnooze()
461 final int alarmLeft = mAlarmButton.getLeft() + mAlarmButton.getPaddingLeft(); in hintDismiss()
463 final float translationX = Math.max(mDismissButton.getLeft() - alarmRight, 0) in hintDismiss()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowPresenter.java219 ? mInfoContainer.getLeft() in updateSelector()
221 - mSelectorView.getLeft() in updateSelector()
229 ? mSecondActionContainer.getLeft() - mSelectorView.getLeft() in updateSelector()
235 ? mSecondActionContainer.getLeft() in updateSelector()
238 - mSelectorView.getLeft() in updateSelector()
247 ? mFirstActionContainer.getLeft() in updateSelector()
249 - mSelectorView.getLeft() in updateSelector()
/packages/apps/TV/src/com/android/tv/guide/
DProgramRow.java89 if (getLeft() <= itemView.getRight() && itemView.getLeft() <= getRight()) { in onViewAdded()
340 if (getLeft() < child.getRight() && child.getLeft() < getRight()) { in updateChildVisibleArea()
DProgramItemView.java474 layoutVisibleArea(parentView.getLeft() - getLeft(), getRight() - parentView.getRight()); in updateVisibleArea()
476 layoutVisibleArea(getRight() - parentView.getRight(), parentView.getLeft() - getLeft()); in updateVisibleArea()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeSelectorItem.java201 if (mVisibleWidth < mMinVisibleWidth + mIcon.getLeft()) { in draw()
202 transX = mMinVisibleWidth + mIcon.getLeft() - mVisibleWidth; in draw()
231 return mIcon.getLeft() + mMinVisibleWidth; in getMaxVisibleWidth()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java481 child.layout(child.getLeft() + offset, child.getTop(), in offsetChildren()
491 return getChildAt(0).getLeft() >= getPaddingLeft() && in contentFits()
508 int end = (getRight() - getLeft()) + overhang; in fillRight()
522 int nextRight = getChildAt(0).getLeft(); in fillLeft()
525 nextRight = getChildAt(0).getLeft(); in fillLeft()
529 return getPaddingLeft() - getChildAt(0).getLeft(); in fillLeft()
/packages/services/Telephony/src/com/android/phone/
DEmergencyActionGroup.java186 int centerX = v.getLeft() + v.getWidth() / 2; in revealTheButton()
248 (v.getLeft() + v.getWidth() / 2 - mSelectedContainer.getWidth() / 2) / 5); in animateHintText()
267 int centerX = v.getLeft() + v.getWidth() / 2; in hideTheButton()
298 ripple.getLeft() + ripple.getWidth() / 2, in startRipple()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java76 if (x > mCloseIcon.getLeft()) return indexOfChild(mCloseIcon); in getTouchViewIndex()
91 event.offsetLocation(-view.getLeft(), -view.getTop()); in dispatchRelativeTouchEvent()
93 event.offsetLocation(view.getLeft(), view.getTop()); in dispatchRelativeTouchEvent()
/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java185 return view.getLeft();
252 final int startLeft = from.getLeft() - fromInsets.left + targetInsets.left; in getBoundsAnimator()
258 final int endLeft = to.getLeft() - toInsets.left + targetInsets.left; in getBoundsAnimator()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabStrip.java80 int selectedLeft = selectedTitle.getLeft(); in onDraw()
88 int nextLeft = nextTitle.getLeft(); in onDraw()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabStrip.java76 int selectedLeft = selectedTitle.getLeft(); in onDraw()
84 int nextLeft = nextTitle.getLeft(); in onDraw()
DMultiAttachmentLayout.java358 viewWrapper.prevLeft = view.getLeft(); in onLayout()
380 final int xOffset = viewWrapper.prevLeft - view.getLeft(); in trySlideAttachmentView()
399 viewWrapper.prevLeft = view.getLeft(); in trySlideAttachmentView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java975 if (child.getLeft() - getScrollX() < getWidth()) {
1074 if (v.getLeft() < left) {
1075 left = v.getLeft();
1872 info.viewLocation = mOrientation == HORIZONTAL ? view.getLeft() : view.getTop();
2084 return mOrientation == HORIZONTAL ? (v.getLeft() + v.getRight()) / 2 : (v.getTop()
2089 return mOrientation == VERTICAL ? (v.getLeft() + v.getRight()) / 2 : (v.getTop()
2318 h.mLocation = view.getLeft();
2328 int viewLow = mOrientation == HORIZONTAL ? view.getLeft() : view.getTop();
2362 view.offsetLeftAndRight(viewStart - view.getLeft());
2367 view.layout(view.getLeft(), viewStart, view.getLeft() +
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DRenderOverlay.java78 renderer.layout(getLeft(), getTop(), getRight(), getBottom()); in addRenderer()
84 renderer.layout(getLeft(), getTop(), getRight(), getBottom()); in addRenderer()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java362 p.x = getLeft() - mCurrentRV.getLeft() - mParent.getLeft(); in calcOffset()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java357 int left = child.getLeft(); in getRelativeLeft()
362 left += ((View) parent).getLeft(); in getRelativeLeft()
375 right += ((View) parent).getLeft(); in getRelativeRight()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/decorations/grid/
DGridDividerItemDecoration.java108 int dividerRight = firstRowChild.getLeft(); in drawHorizontalDividers()
149 leftmostChild.getLeft() + (int) parent.getContext().getResources().getDimension( in drawVerticalDividers()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DRenderOverlay.java75 renderer.layout(getLeft(), getTop(), getRight(), getBottom()); in addRenderer()
81 renderer.layout(getLeft(), getTop(), getRight(), getBottom()); in addRenderer()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java135 mSystemGestureExclusionRects.get(i).set(dragHandle.getLeft(), dragHandle.getTop(), in onLayout()
209 mDeltaXRange.set(-getLeft(), getWidth() - 2 * mTouchTargetWidth); in beginResizeIfPointInRegion()
215 mBaselineX.set(getLeft(), getRight()); in beginResizeIfPointInRegion()
496 if (beginResizeIfPointInRegion(x - getLeft(), y - getTop())) { in handleTouchDown()
/packages/apps/Camera2/src/com/android/camera/
DAnimationManager.java50 float slideDistance = (float) (parentView.getWidth() - view.getLeft()); in startCaptureAnimation()
56 int centerX = view.getLeft() + view.getWidth() / 2; in startCaptureAnimation()
/packages/apps/Settings/src/com/android/settings/widget/
DSlidingTabLayout.java144 int left = selectedTitle.getLeft(); in getIndicatorLeft()
147 left = (int) (mSelectionOffset * nextTitle.getLeft() in getIndicatorLeft()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSlidingTabLayout.java144 int left = selectedTitle.getLeft(); in getIndicatorLeft()
147 left = (int) (mSelectionOffset * nextTitle.getLeft() in getIndicatorLeft()

1234