Home
last modified time | relevance | path

Searched refs:getTop (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/layout/tests/
DScaledLayoutTest.java70 assertEquals((int) (300 * 0.1), view1.getTop()); in testScaledLayout_layoutInXml()
74 assertEquals(0, view2.getTop()); in testScaledLayout_layoutInXml()
78 assertEquals((int) (300 * 0.4), view3.getTop()); in testScaledLayout_layoutInXml()
82 assertEquals((int) (300 * 0.15), view4.getTop()); in testScaledLayout_layoutInXml()
104 assertEquals(0, view1.getTop()); in testScaledLayout_layoutThroughCode()
108 assertEquals(0, view2.getTop()); in testScaledLayout_layoutThroughCode()
112 assertEquals(50, view3.getTop()); in testScaledLayout_layoutThroughCode()
116 assertEquals(50, view4.getTop()); in testScaledLayout_layoutThroughCode()
134 assertEquals(60, view1.getTop()); in testScaledLayout_bounceY()
138 assertEquals(80, view2.getTop()); in testScaledLayout_bounceY()
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java192 + view.getTop() in dumpChildren()
206 + title.getTop() in dumpChildren()
220 + contents.getTop() in dumpChildren()
480 mMenuView.getTop(), in setSelectedPositionSmooth()
507 int offset = oldLayoutRect.top - mTempTitleViewForOld.getTop(); in setSelectedPositionSmooth()
530 oldLayoutRect.top - mTempTitleViewForOld.getTop())); in setSelectedPositionSmooth()
542 int distanceCurrentTitle = currentLayoutRect.top - currentView.getTop(); in setSelectedPositionSmooth()
545 oldLayoutRect.top - mRowScrollUpAnimationOffset - oldView.getTop(); in setSelectedPositionSmooth()
564 int offset = oldLayoutRect.top - mTempTitleViewForOld.getTop(); in setSelectedPositionSmooth()
580 int distanceOldTitle = oldView.getTop() - oldLayoutRect.top; in setSelectedPositionSmooth()
[all …]
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java304 mStartFirstTop = getChildCount() > 0 ? getChildAt(0).getTop() : 0; in onInterceptTouchEvent()
508 int scrollToMiddle = getCentralViewTop() - child.getTop(); in animateToMiddle()
631 int childCenterY = getTop() + getCenterYPos(child); in findCenterViewIndex()
645 return v.getTop() + v.getPaddingTop() + getAdjustedHeight(v) / 2; in getCenterYPos()
676 && getChildAt(0).getTop() >= getTopViewMaxTop() in isOverScrolling()
706 final int scrollToMiddle = getCentralViewTop() - child.getTop(); in animateToCenter()
725 final int scrollToMiddle = getCentralViewTop() + mInitialOffset - child.getTop(); in animateToInitialPosition()
851 int childCenterY = getTop() + getCenterYPos(child); in findCenterViewIndex()
903 oldTop = getChildAt(0).getTop(); in onLayoutChildren()
920 oldTop = getChildAt(index).getTop(); in onLayoutChildren()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java198 return view.getTop();
253 final int startTop = from.getTop() - fromInsets.top + targetInsets.top; in getBoundsAnimator()
259 final int endTop = to.getTop() - toInsets.top + targetInsets.top; in getBoundsAnimator()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java981 if (child.getTop() - getScrollY() < getHeight()) {
1078 if (v.getTop() < top) {
1079 top = v.getTop();
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()
2321 h.mLocation = view.getTop();
2328 int viewLow = mOrientation == HORIZONTAL ? view.getLeft() : view.getTop();
2359 view.layout(viewStart, view.getTop(), viewStart + view.getMeasuredWidth(),
2360 view.getTop() + view.getMeasuredHeight());
[all …]
/packages/services/Telephony/src/com/android/phone/
DEmergencyActionGroup.java189 int centerY = v.getTop() + v.getHeight() / 2; in revealTheButton()
270 int centerY = v.getTop() + v.getHeight() / 2; in hideTheButton()
301 ripple.getTop() + ripple.getHeight() / 2, in startRipple()
DEmergencyShortcutButton.java231 int centerY = mCallNumberInfoView.getTop() + mCallNumberInfoView.getHeight() / 2; in revealSelectedButton()
254 int centerY = mConfirmView.getTop() + mConfirmView.getHeight() / 2; in hideSelectedButton()
DEmergencyInfoGroup.java236 int centerY = mEmergencyInfoButton.getTop() + mEmergencyInfoButton.getHeight() / 2; in revealSelectedButton()
261 mEmergencyInfoConfirmButton.getTop() + mEmergencyInfoConfirmButton.getHeight() / 2; in hideSelectedButton()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java69 float myCenter = ws.getTop() + halfHeight; in getWorkspaceScaleAndTranslation()
70 float cellTopFromCenter = halfHeight - ws.getChildAt(0).getTop(); in getWorkspaceScaleAndTranslation()
/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.java363 p.y = getTop() - mCurrentRV.getTop() - mParent.getTop(); in calcOffset()
/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()
218 mDeltaYRange.set(-getTop(), getHeight() - 2 * mTouchTargetWidth); in beginResizeIfPointInRegion()
224 mBaselineY.set(getTop(), getBottom()); in beginResizeIfPointInRegion()
496 if (beginResizeIfPointInRegion(x - getLeft(), y - getTop())) { in handleTouchDown()
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java354 viewWrapper.prevTop = view.getTop(); in onLayout()
376 final int yOffset = viewWrapper.prevTop - view.getTop(); in trySlideAttachmentView()
395 viewWrapper.prevTop = view.getTop(); in trySlideAttachmentView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DChartDataUsagePreference.java71 final int top = getTop(); in onBindViewHolder()
83 public int getTop() { in getTop() method in ChartDataUsagePreference
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java71 final int top = getTop(); in onBindViewHolder()
83 public int getTop() { in getTop() method in ChartDataUsagePreference
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java91 event.offsetLocation(-view.getLeft(), -view.getTop()); in dispatchRelativeTouchEvent()
93 event.offsetLocation(view.getLeft(), view.getTop()); in dispatchRelativeTouchEvent()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DCarScrollBar.java272 mScrollThumbTrackHeight = mDownButton.getTop() - (2 * mSeparatingMargin); in calculateScrollThumbTrackHeight()
295 int layoutTop = mScrollThumb.getTop(); in measureAndLayoutScrollThumb()
435 return mScrollThumb.getTop() + (isDownEnabled() in calculateScrollThumbOffset()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoriteListView.java161 topScrollBound = (getTop() + boundGap); in onDragEvent()
193 if (y >= child.getTop() in getViewAtPosition()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartSweepView.java446 eventInParent.offsetLocation(getLeft(), getTop()); in onTouchEvent()
457 mTrackingStart = getTop() - mMargins.top; in onTouchEvent()
492 final float currentTargetY = getTop() - mMargins.top; in onTouchEvent()
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java446 eventInParent.offsetLocation(getLeft(), getTop()); in onTouchEvent()
457 mTrackingStart = getTop() - mMargins.top; in onTouchEvent()
492 final float currentTargetY = getTop() - mMargins.top; in onTouchEvent()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGuide.java497 if (oldFocus.getTop() < newFocus.getTop()) { in onRequestChildFocus()
503 } else if (oldFocus.getTop() > newFocus.getTop()) { in onRequestChildFocus()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java352 return listView.getChildAt(0).getTop(); in getFirstListItemOffset()
374 if (listView.getChildAt(0).getTop() == offset) { in requestToMoveToOffset()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java383 int top = child.getTop(); in getRelativeTop()
388 top += ((View) parent).getTop(); in getRelativeTop()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerGridView.java39 if (firstVisiblePosition == 0 && getChildAt(0).getTop() >= 0) { in canSwipeDown()

123