Home
last modified time | relevance | path

Searched refs:insets (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherRootView.java63 private void handleSystemWindowInsets(Rect insets) { in handleSystemWindowInsets() argument
67 && (insets.left > 0 || insets.right > 0 || insets.bottom > 0)) { in handleSystemWindowInsets()
68 mConsumedInsets.left = insets.left; in handleSystemWindowInsets()
69 mConsumedInsets.right = insets.right; in handleSystemWindowInsets()
70 mConsumedInsets.bottom = insets.bottom; in handleSystemWindowInsets()
71 insets.set(0, insets.top, 0, 0); in handleSystemWindowInsets()
73 } else if ((insets.right > 0 || insets.left > 0) && in handleSystemWindowInsets()
75 mConsumedInsets.left = insets.left; in handleSystemWindowInsets()
76 mConsumedInsets.right = insets.right; in handleSystemWindowInsets()
77 insets.set(0, insets.top, 0, insets.bottom); in handleSystemWindowInsets()
[all …]
DHotseat.java80 public void setInsets(Rect insets) { in setInsets() argument
83 insets = grid.getInsets(); in setInsets()
89 lp.width = grid.hotseatBarSizePx + insets.left; in setInsets()
92 lp.width = grid.hotseatBarSizePx + insets.right; in setInsets()
97 lp.height = grid.hotseatBarSizePx + insets.bottom; in setInsets()
103 InsettableFrameLayout.dispatchInsets(this, insets); in setInsets()
DInsettableFrameLayout.java40 public void setInsets(Rect insets) { in setInsets() argument
44 setFrameLayoutChildInsets(child, insets, mInsets); in setInsets()
46 mInsets.set(insets); in setInsets()
97 public static void dispatchInsets(ViewGroup parent, Rect insets) { in dispatchInsets() argument
102 ((Insettable) child).setInsets(insets); in dispatchInsets()
DDropTargetBar.java81 public void setInsets(Rect insets) { in setInsets() argument
86 lp.leftMargin = insets.left; in setInsets()
87 lp.topMargin = insets.top; in setInsets()
88 lp.bottomMargin = insets.bottom; in setInsets()
89 lp.rightMargin = insets.right; in setInsets()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/
DRecentsUiFactory.java74 public void mapInsets(Context context, Rect insets, Rect out) {
79 out.top = Math.max(insets.top, insets.left);
80 out.bottom = Math.max(insets.right, insets.bottom);
83 out.top = Math.max(insets.top, insets.left);
84 out.bottom = insets.right;
85 out.left = insets.bottom;
101 public void mapInsets(Context context, Rect insets, Rect out) {
103 out.top = Math.max(insets.top, insets.right);
104 out.bottom = Math.max(insets.left, insets.bottom);
107 out.top = Math.max(insets.top, insets.right);
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/
DRecentsRootView.java69 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument
71 mActivity.getDeviceProfile().updateInsets(insets); in fitSystemWindows()
72 setInsets(insets); in fitSystemWindows()
77 public void setInsets(Rect insets) { in setInsets() argument
80 if (!insets.equals(mInsets)) { in setInsets()
81 super.setInsets(insets); in setInsets()
83 setBackground(insets.top == 0 ? null in setInsets()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java242 Rect insets = dragLayer.getInsets(); in orientAboutObject() local
248 boolean canBeLeftAligned = leftAlignedX + width + insets.left in orientAboutObject()
249 < dragLayer.getRight() - insets.right; in orientAboutObject()
250 boolean canBeRightAligned = rightAlignedX > dragLayer.getLeft() + insets.left; in orientAboutObject()
279 mIsAboveIcon = y > dragLayer.getTop() + insets.top; in orientAboutObject()
285 x -= insets.left; in orientAboutObject()
286 y -= insets.top; in orientAboutObject()
289 if (y + height > dragLayer.getBottom() - insets.bottom) { in orientAboutObject()
293 int rightSide = leftAlignedX + iconWidth - insets.left; in orientAboutObject()
294 int leftSide = rightAlignedX - iconWidth - insets.left; in orientAboutObject()
[all …]
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/fallback/
DGoRecentsActivityRootView.java42 public void setInsets(Rect insets) { in setInsets() argument
43 if (insets.equals(mInsets)) { in setInsets()
46 super.setInsets(insets); in setInsets()
50 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
51 Insets sysInsets = insets.getSystemWindowInsets(); in onApplyWindowInsets()
53 return insets.consumeSystemWindowInsets(); in onApplyWindowInsets()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DLayoutUtils.java61 Rect insets = dp.getInsets(); in calculateTaskSize() local
97 int launcherVisibleWidth = dp.widthPx - insets.left - insets.right; in calculateTaskSize()
98 int launcherVisibleHeight = dp.heightPx - insets.top - insets.bottom; in calculateTaskSize()
109 float x = insets.left + (launcherVisibleWidth - outWidth) / 2; in calculateTaskSize()
110 float y = insets.top + Math.max(topIconMargin, in calculateTaskSize()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DInspectorActivity.java94 mView.setOnApplyWindowInsetsListener((v, insets) -> { in setContainer() argument
95 mView.setPadding(insets.getSystemWindowInsetLeft(), in setContainer()
96 insets.getSystemWindowInsetTop(), in setContainer()
97 insets.getSystemWindowInsetRight(), 0); in setContainer()
100 container.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); in setContainer()
101 return insets; in setContainer()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DSnackbar.java83 Rect insets = launcher.getDeviceProfile().getInsets(); in show() local
84 int maxWidth = dragLayer.getWidth() - minMarginLeftRight * 2 - insets.left - insets.right; in show()
85 int minWidth = dragLayer.getWidth() - maxMarginLeftRight * 2 - insets.left - insets.right; in show()
87 params.setMargins(0, 0, 0, marginBottom + insets.bottom); in show()
DBottomUserEducationView.java85 public void setInsets(Rect insets) { in setInsets() argument
87 int leftInset = insets.left - mInsets.left; in setInsets()
88 int rightInset = insets.right - mInsets.right; in setInsets()
89 int bottomInset = insets.bottom - mInsets.bottom; in setInsets()
90 mInsets.set(insets); in setInsets()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCommonControllerOverlay.java258 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument
261 mWindowInsets.set(insets); in fitSystemWindows()
267 Rect insets = mWindowInsets; in onLayout() local
268 int pl = insets.left; // the left paddings in onLayout()
269 int pr = insets.right; in onLayout()
270 int pt = insets.top; in onLayout()
271 int pb = insets.bottom; in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java304 public void setInsets(Rect insets) { in setInsets() argument
310 mAH[i].padding.bottom = insets.bottom; in setInsets()
317 mlp.leftMargin = insets.left; in setInsets()
318 mlp.rightMargin = insets.right; in setInsets()
326 InsettableFrameLayout.dispatchInsets(this, insets); in setInsets()
328 .setScrollRangeDelta(mSearchUiManager.getScrollRangeDelta(insets)); in setInsets()
332 public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) { in dispatchApplyWindowInsets() argument
334 mNavBarScrimHeight = insets.getTappableElementInsets().bottom; in dispatchApplyWindowInsets()
336 mNavBarScrimHeight = insets.getStableInsetBottom(); in dispatchApplyWindowInsets()
338 return super.dispatchApplyWindowInsets(insets); in dispatchApplyWindowInsets()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DWorkspaceTouchListener.java94 Rect insets = dp.getInsets(); in onTouch() local
96 mTempRect.set(insets.left, insets.top, dl.getWidth() - insets.right, in onTouch()
97 dl.getHeight() - insets.bottom); in onTouch()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsBottomSheet.java174 public void setInsets(Rect insets) { in setInsets() argument
176 int leftInset = insets.left - mInsets.left; in setInsets()
177 int rightInset = insets.right - mInsets.right; in setInsets()
178 int bottomInset = insets.bottom - mInsets.bottom; in setInsets()
179 mInsets.set(insets); in setInsets()
DWidgetsFullSheet.java107 public void setInsets(Rect insets) { in setInsets() argument
108 mInsets.set(insets); in setInsets()
112 mRecyclerView.getPaddingRight(), insets.bottom); in setInsets()
113 if (insets.bottom > 0) { in setInsets()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DAppsSearchContainerLayout.java202 public void setInsets(Rect insets) { in setInsets() argument
204 mlp.topMargin = Math.round(Math.max(-mFixedTranslationY, insets.top - mMarginTopAdjusting)); in setInsets()
209 public float getScrollRangeDelta(Rect insets) { in getScrollRangeDelta() argument
214 -mFixedTranslationY, insets.top - mMarginTopAdjusting)); in getScrollRangeDelta()
215 return insets.bottom + topMargin + mFixedTranslationY; in getScrollRangeDelta()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskView.java637 RectF insets = mFullscreenParams.mCurrentDrawnInsets; in getOutline() local
641 (int) ((insets.left + view.getWidth() + insets.right) * scale), in getOutline()
642 (int) ((insets.top + view.getHeight() + insets.bottom) * scale), in getOutline()
813 RectF insets = thumbnail.getInsetsToDrawInFullscreen(isMultiWindowMode); in setFullscreenProgress()
814 float currentInsetsLeft = insets.left * mFullscreenProgress; in setFullscreenProgress()
815 float currentInsetsRight = insets.right * mFullscreenProgress; in setFullscreenProgress()
817 insets.top * mFullscreenProgress, in setFullscreenProgress()
819 insets.bottom * mFullscreenProgress); in setFullscreenProgress()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java57 Rect insets = launcher.getDragLayer().getInsets(); in getWorkspaceScaleAndTranslation() local
60 float shrunkTop = insets.top + grid.dropTargetBarSizePx; in getWorkspaceScaleAndTranslation()
61 float shrunkBottom = ws.getMeasuredHeight() - insets.bottom in getWorkspaceScaleAndTranslation()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java381 root.setOnApplyWindowInsetsListener((v, insets) -> { in setContainer() argument
382 root.setPadding(insets.getSystemWindowInsetLeft(), in setContainer()
383 insets.getSystemWindowInsetTop(), insets.getSystemWindowInsetRight(), 0); in setContainer()
386 saveContainer.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); in setContainer()
389 rootsContainer.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); in setContainer()
391 return insets.consumeSystemWindowInsets(); in setContainer()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DClipAnimationHelper.java337 Rect insets = new Rect(); in updateStackBoundsToMultiWindowTaskSize() local
338 WindowManagerWrapper.getInstance().getStableInsets(insets); in updateStackBoundsToMultiWindowTaskSize()
346 int left = activity.getDeviceProfile().isSeascape() ? insets.left in updateStackBoundsToMultiWindowTaskSize()
347 : (insets.left + fullDp.availableWidthPx - taskWidth); in updateStackBoundsToMultiWindowTaskSize()
349 mSourceStackBounds.offset(left, insets.top + fullDp.availableHeightPx - taskHeight); in updateStackBoundsToMultiWindowTaskSize()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DLauncherActivity.java93 mRootView.setOnApplyWindowInsetsListener((view, insets) -> { in onCreate() argument
94 mRootView.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); in onCreate()
96 mAppDrawerHeader.setPadding(0, insets.getSystemWindowInsetTop(), 0, 0); in onCreate()
97 return insets.consumeSystemWindowInsets(); in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DViewOutlineProviderCompatUtils.java29 public void setInsets(final InputMethodService.Insets insets); in setInsets() argument
34 public void setInsets(final InputMethodService.Insets insets) {}
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DRotationMode.java41 public void mapInsets(Context context, Rect insets, Rect out) { in mapInsets() argument
42 out.set(insets); in mapInsets()

123