/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherRootView.java | 63 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 …]
|
D | Hotseat.java | 80 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()
|
D | InsettableFrameLayout.java | 40 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()
|
D | DropTargetBar.java | 81 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/ |
D | RecentsUiFactory.java | 74 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/Car/libs/car-ui-lib/src/com/android/car/ui/core/ |
D | BaseLayoutController.java | 265 Insets insets = new Insets(left, top, right, bottom); in onGlobalLayout() local 268 if (!insets.equals(mInsets)) { in onGlobalLayout() 269 mInsets = insets; in onGlobalLayout() 270 dispatchNewInsets(insets); in onGlobalLayout() 281 private void dispatchNewInsets(Insets insets) { in dispatchNewInsets() argument 284 ((InsetsChangedListener) mActivity).onCarUiInsetsChanged(insets); in dispatchNewInsets() 292 ((InsetsChangedListener) fragment).onCarUiInsetsChanged(insets); in dispatchNewInsets() 300 insets.getLeft(), insets.getTop(), insets.getRight(), insets.getBottom()); in dispatchNewInsets()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/ |
D | RecentsRootView.java | 69 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 || !mAllowSysuiScrims in setInsets()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | ArrowPopup.java | 242 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/ |
D | GoRecentsActivityRootView.java | 42 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/ |
D | LayoutUtils.java | 76 Rect insets = dp.getInsets(); in calculateTaskSize() local 112 int launcherVisibleWidth = dp.widthPx - insets.left - insets.right; in calculateTaskSize() 113 int launcherVisibleHeight = dp.heightPx - insets.top - insets.bottom; in calculateTaskSize() 124 float x = insets.left + (launcherVisibleWidth - outWidth) / 2; in calculateTaskSize() 125 float y = insets.top + Math.max(topIconMargin, in calculateTaskSize()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | InspectorActivity.java | 94 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/Car/libs/car-ui-lib/src/com/android/car/ui/baselayout/ |
D | Insets.java | 70 Insets insets = (Insets) o; in equals() 71 return mLeft == insets.mLeft in equals() 72 && mRight == insets.mRight in equals() 73 && mTop == insets.mTop in equals() 74 && mBottom == insets.mBottom; in equals()
|
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/caruirecyclerview/ |
D | GridCarUiRecyclerViewActivity.java | 61 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 63 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 65 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
D | CarUiRecyclerViewActivity.java | 65 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 67 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 69 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
D | CarUiListItemActivity.java | 202 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 204 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 206 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | Snackbar.java | 83 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()
|
D | BottomUserEducationView.java | 85 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/ |
D | CommonControllerOverlay.java | 258 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/ |
D | AllAppsContainerView.java | 319 public void setInsets(Rect insets) { in setInsets() argument 326 mAH[i].padding.bottom = insets.bottom; in setInsets() 333 mlp.leftMargin = insets.left; in setInsets() 334 mlp.rightMargin = insets.right; in setInsets() 342 InsettableFrameLayout.dispatchInsets(this, insets); in setInsets() 344 .setScrollRangeDelta(mSearchUiManager.getScrollRangeDelta(insets)); in setInsets() 348 public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) { in dispatchApplyWindowInsets() argument 350 mNavBarScrimHeight = insets.getTappableElementInsets().bottom; in dispatchApplyWindowInsets() 352 mNavBarScrimHeight = insets.getStableInsetBottom(); in dispatchApplyWindowInsets() 354 return super.dispatchApplyWindowInsets(insets); in dispatchApplyWindowInsets()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | WorkspaceTouchListener.java | 94 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/ |
D | WidgetsBottomSheet.java | 174 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()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | TaskView.java | 627 RectF insets = mFullscreenParams.mCurrentDrawnInsets; in getOutline() local 631 (int) ((insets.left + view.getWidth() + insets.right) * scale), in getOutline() 632 (int) ((insets.top + view.getHeight() + insets.bottom) * scale), in getOutline() 803 RectF insets = thumbnail.getInsetsToDrawInFullscreen(isMultiWindowMode); in setFullscreenProgress() 804 float currentInsetsLeft = insets.left * mFullscreenProgress; in setFullscreenProgress() 805 float currentInsetsRight = insets.right * mFullscreenProgress; in setFullscreenProgress() 807 insets.top * mFullscreenProgress, in setFullscreenProgress() 809 insets.bottom * mFullscreenProgress); in setFullscreenProgress()
|
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/ |
D | MainActivity.java | 202 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 204 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 206 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | AppsSearchContainerLayout.java | 202 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/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/dialogs/ |
D | DialogsActivity.java | 237 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 239 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 241 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|