Home
last modified time | relevance | path

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

12345

/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/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java305 mStartFirstTop = getChildCount() > 0 ? getChildAt(0).getTop() : 0; in onInterceptTouchEvent()
509 int scrollToMiddle = getCentralViewTop() - child.getTop(); in animateToMiddle()
632 int childCenterY = getTop() + getCenterYPos(child); in findCenterViewIndex()
646 return v.getTop() + v.getPaddingTop() + getAdjustedHeight(v) / 2; in getCenterYPos()
677 && getChildAt(0).getTop() >= getTopViewMaxTop() in isOverScrolling()
707 final int scrollToMiddle = getCentralViewTop() - child.getTop(); in animateToCenter()
726 final int scrollToMiddle = getCentralViewTop() + mInitialOffset - child.getTop(); in animateToInitialPosition()
852 int childCenterY = getTop() + getCenterYPos(child); in findCenterViewIndex()
904 oldTop = getChildAt(0).getTop(); in onLayoutChildren()
921 oldTop = getChildAt(index).getTop(); in onLayoutChildren()
[all …]
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/caruirecyclerview/
DGridCarUiRecyclerViewActivity.java66 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
67 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
69 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
DCarUiRecyclerViewActivity.java68 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
69 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
71 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
DCarUiListItemActivity.java218 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
219 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
221 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerListBaseFragment.java143 mRecyclerView.setPadding(0, insets.getTop() + listTopPadding, 0, insets.getBottom()); in onCarUiInsetsChanged()
144 mFocusArea.setHighlightPadding(0, insets.getTop() + listTopPadding, 0, insets.getBottom()); in onCarUiInsetsChanged()
145 mFocusArea.setBoundsOffset(0, insets.getTop() + listTopPadding, 0, insets.getBottom()); in onCarUiInsetsChanged()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarView.java154 onLayout(false, getLeft(), getTop(), getRight(), getBottom()); in setHolesAllowedInLayoutNoAnimation()
312 int childCenterY = child.getTop() + child.getHeight() / 2; in findDelegateView()
380 mHotseatIconsContainer.getTop(), in getHotseatBounds()
417 canvas.translate(mLeaveBehindFolderIcon.getLeft(), mLeaveBehindFolderIcon.getTop()); in onDraw()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/
DMultiSelectListPreferenceFragment.java214 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
218 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
219 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
DListPreferenceFragment.java221 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
225 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
226 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
DPreferenceFragment.java149 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
150 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
152 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DSearchAndRecommendationsScrollController.java345 p.y = mViewHolder.mContainer.getTop() - mCurrentRecyclerView.getTop() in calculateMotionEventOffset()
346 - mSearchAndRecommendationViewParent.getTop(); in calculateMotionEventOffset()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java74 float myCenter = ws.getTop() + halfHeight; in getWorkspaceScaleAndTranslation()
75 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/services/Telephony/src/com/android/phone/
DEmergencyActionGroup.java187 int centerY = v.getTop() + v.getHeight() / 2; in revealTheButton()
268 int centerY = v.getTop() + v.getHeight() / 2; in hideTheButton()
299 ripple.getTop() + ripple.getHeight() / 2, in startRipple()
DEmergencyShortcutButton.java210 int centerY = mCallNumberInfoView.getTop() + mCallNumberInfoView.getHeight() / 2; in revealSelectedButton()
233 int centerY = mConfirmView.getTop() + mConfirmView.getHeight() / 2; in hideSelectedButton()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/widescreenime/
DWideScreenImeActivity.java272 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
273 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
275 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java170 mSystemGestureExclusionRects.get(i).set(dragHandle.getLeft(), dragHandle.getTop(), in onLayout()
315 mDeltaYRange.set(-getTop(), getHeight() - 2 * mTouchTargetWidth); in beginResizeIfPointInRegion()
321 mBaselineY.set(getTop(), getBottom()); in beginResizeIfPointInRegion()
567 if (beginResizeIfPointInRegion(x - getLeft(), y - getTop())) { in handleTouchDown()
578 int yFrame = (int) ev.getY() - getTop(); in isTouchOnReconfigureButton()
/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/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/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/decorations/grid/
DGridDividerItemDecoration.java114 firstRowChild.getTop() + (int) parent.getContext().getResources().getDimension( in drawHorizontalDividers()
161 int dividerBottom = leftmostChild.getTop(); in drawVerticalDividers()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/
DMainActivity.java307 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
308 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
310 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java412 p.y = getTop() - mCurrentRV.getTop() - mParent.getTop(); in calcOffset()
/packages/apps/Car/Media/src/com/android/car/media/
DBrowseViewController.java284 mBrowseList.setPadding(leftPadding, insets.getTop(), rightPadding, bottomPadding); in onCarUiInsetsChanged()
289 leftPadding, insets.getTop(), rightPadding, mFocusAreaHighlightBottomPadding); in onCarUiInsetsChanged()
290 mFocusArea.setBoundsOffset(leftPadding, insets.getTop(), rightPadding, bottomPadding); in onCarUiInsetsChanged()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java360 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
362 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
363 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()

12345