/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/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 ? null 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 | 61 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/ |
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/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 | 304 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/ |
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()
|
D | WidgetsFullSheet.java | 107 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/ |
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/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | TaskView.java | 637 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/ |
D | SpringLoadedState.java | 57 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/ |
D | BaseActivity.java | 381 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/ |
D | ClipAnimationHelper.java | 337 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/ |
D | LauncherActivity.java | 93 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/ |
D | ViewOutlineProviderCompatUtils.java | 29 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/ |
D | RotationMode.java | 41 public void mapInsets(Context context, Rect insets, Rect out) { in mapInsets() argument 42 out.set(insets); in mapInsets()
|