/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | WindowBounds.java | 34 public final Rect insets; field in WindowBounds 37 public WindowBounds(Rect bounds, Rect insets) { in WindowBounds() argument 39 this.insets = insets; in WindowBounds() 40 availableSize = new Point(bounds.width() - insets.left - insets.right, in WindowBounds() 41 bounds.height() - insets.top - insets.bottom); in WindowBounds() 48 this.insets = new Rect(0, 0, width - availableWidth, height - availableHeight); in WindowBounds() 53 return Objects.hash(bounds, insets); in hashCode() 62 return other.bounds.equals(bounds) && other.insets.equals(insets); in equals() 69 + ", insets=" + insets in toString() 86 Insets insets = wm.getWindowInsets().getInsets(Type.systemBars()); in fromWindowMetrics() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherRootView.java | 44 private void handleSystemWindowInsets(Rect insets) { in handleSystemWindowInsets() argument 48 mTempRect.set(insets); in handleSystemWindowInsets() 49 insets = mTempRect; in handleSystemWindowInsets() 50 insets.bottom = Math.max(0, insets.bottom - dp.nonOverlappingTaskbarInset); in handleSystemWindowInsets() 53 dp.updateInsets(insets); in handleSystemWindowInsets() 54 boolean resetState = !insets.equals(mInsets); in handleSystemWindowInsets() 55 setInsets(insets); in handleSystemWindowInsets() 63 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 64 mTempRect.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 65 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()); in onApplyWindowInsets() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/core/ |
D | BaseLayoutController.java | 98 /* package */ void dispatchNewInsets(Insets insets) { in dispatchNewInsets() argument 99 mInsetsUpdater.onCarUiInsetsChanged(insets); in dispatchNewInsets() 185 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 186 if (mInsets.equals(insets)) { in onCarUiInsetsChanged() 190 mInsets = insets; in onCarUiInsetsChanged() 194 mInsetsChangedListenerDelegate.onCarUiInsetsChanged(insets); in onCarUiInsetsChanged() 200 ((InsetsChangedListener) mActivity).onCarUiInsetsChanged(insets); in onCarUiInsetsChanged() 208 ((InsetsChangedListener) fragment).onCarUiInsetsChanged(insets); in onCarUiInsetsChanged() 216 mContentView.setPadding(insets.getLeft(), insets.getTop(), in onCarUiInsetsChanged() 217 insets.getRight(), insets.getBottom()); in onCarUiInsetsChanged()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | TaskViewSimulator.java | 157 public void setPreviewBounds(Rect bounds, Rect insets) { in setPreviewBounds() argument 158 mThumbnailData.insets.set(insets); in setPreviewBounds() 198 RectF insets = mCurrentFullscreenParams.mCurrentDrawnInsets; in getCurrentCropRect() local 199 mTempRectF.set(-insets.left, -insets.top, in getCurrentCropRect() 200 mTaskRect.width() + insets.right, mTaskRect.height() + insets.bottom); in getCurrentCropRect() 270 RectF insets = mCurrentFullscreenParams.mCurrentDrawnInsets; in apply() local 276 mMatrix.postTranslate(insets.left, insets.top); in apply() 297 mTempRectF.set(-insets.left, -insets.top, in apply() 298 taskWidth + insets.right, taskHeight + insets.bottom); in apply()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/caruirecyclerview/ |
D | GridCarUiRecyclerViewActivity.java | 64 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 66 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() 71 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
D | CarUiRecyclerViewActivity.java | 66 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 68 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() 73 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/ |
D | MultiSelectListPreferenceFragment.java | 158 Insets insets = ((PreferenceFragment) getTargetFragment()).getPreferenceInsets(this); in onStart() local 159 if (insets != null) { in onStart() 160 onCarUiInsetsChanged(insets); in onStart() 211 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 214 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 215 view.setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged() 218 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 219 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
|
D | ListPreferenceFragment.java | 164 Insets insets = ((PreferenceFragment) getTargetFragment()).getPreferenceInsets(this); in onStart() local 165 if (insets != null) { in onStart() 166 onCarUiInsetsChanged(insets); in onStart() 218 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 221 .setPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 222 view.setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged() 225 focusArea.setHighlightPadding(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged() 226 focusArea.setBoundsOffset(0, insets.getTop(), 0, insets.getBottom()); in onCarUiInsetsChanged()
|
D | PreferenceFragment.java | 139 Insets insets = getPreferenceInsets(this); in onStart() local 140 if (insets != null) { in onStart() 141 onCarUiInsetsChanged(insets); in onStart() 146 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 149 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() 153 view.setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/ |
D | DialerListBaseFragment.java | 140 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 143 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() 146 requireView().setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
D | DialerBaseFragment.java | 68 Insets insets = CarUi.getInsets(requireActivity()); in onViewCreated() local 70 if (insets != null) { in onViewCreated() 71 onCarUiInsetsChanged(insets); in onViewCreated() 107 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 108 requireView().setPadding(insets.getLeft(), insets.getTop(), in onCarUiInsetsChanged() 109 insets.getRight(), insets.getBottom()); in onCarUiInsetsChanged()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/ |
D | SharedLibraryFactoryStub.java | 244 Insets insets = new Insets(left, top, right, bottom); in recalcInsets() local 246 if (!insets.equals(mInsets)) { in recalcInsets() 247 mInsets = insets; in recalcInsets() 248 dispatchNewInsets(insets); in recalcInsets() 260 /* package */ void dispatchNewInsets(Insets insets) { in dispatchNewInsets() argument 261 mInsets = insets; in dispatchNewInsets() 265 mInsetsChangedListenerDelegate.onCarUiInsetsChanged(insets); in dispatchNewInsets() 267 mContentView.setPadding(insets.getLeft(), insets.getTop(), in dispatchNewInsets() 268 insets.getRight(), insets.getBottom()); in dispatchNewInsets()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/ |
D | InstallBaseLayoutAroundTest.java | 69 Insets[] insets = new Insets[] { null }; in test_installBaseLayoutAround_createsToolbar() local 73 i -> insets[0] = i, in test_installBaseLayoutAround_createsToolbar() 83 assertNotNull(insets[0]); in test_installBaseLayoutAround_createsToolbar() 85 assertTrue(insets[0].getTop() > 0); in test_installBaseLayoutAround_createsToolbar() 106 Insets[] insets = new Insets[] { new Insets() }; in test_emptyactivity_doesnthaveinsetsortoolbar() local 107 mScenarioRule.getScenario().onActivity(activity -> insets[0] = CarUi.getInsets(activity)); in test_emptyactivity_doesnthaveinsetsortoolbar() 108 assertNull(insets[0]); in test_emptyactivity_doesnthaveinsetsortoolbar()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | ClusterHalService.java | 74 void onDisplayState(int onOff, Rect bounds, Insets insets); in onDisplayState() argument 196 Insets insets = null; in onHalEvents() local 198 insets = Insets.of( in onHalEvents() 202 callback.onDisplayState(onOff, bounds, insets); in onHalEvents() 233 public void reportState(int onOff, Rect bounds, Insets insets, in reportState() argument 242 request.value.int32Values.add(insets.left); in reportState() 243 request.value.int32Values.add(insets.top); in reportState() 244 request.value.int32Values.add(insets.right); in reportState() 245 request.value.int32Values.add(insets.bottom); in reportState()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | WorkModeSwitch.java | 79 public void setInsets(Rect insets) { in setInsets() argument 80 int bottomInset = insets.bottom - mInsets.bottom; in setInsets() 81 mInsets.set(insets); in setInsets() 139 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 142 if (insets.isVisible(WindowInsets.Type.ime())) { in onApplyWindowInsets() 143 Insets keyboardInsets = insets.getInsets(WindowInsets.Type.ime()); in onApplyWindowInsets() 147 return insets; in onApplyWindowInsets()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | BaseActivityInterface.java | 252 Rect insets = dp.getInsets(); in calculateTaskSizeInternal() local 255 potentialTaskRect.inset(insets.left, insets.top, insets.right, insets.bottom); in calculateTaskSizeInternal() 287 out.x = bounds.availableSize.x + bounds.insets.left + bounds.insets.right; in getTaskDimension() 288 out.y = bounds.availableSize.y + bounds.insets.top + bounds.insets.bottom; in getTaskDimension() 308 Rect insets = dp.getInsets(); in calculateGridSize() local 310 outRect.inset(Math.max(insets.left, sideMargin), Math.max(insets.top, topMargin), in calculateGridSize() 311 Math.max(insets.right, sideMargin), Math.max(insets.bottom, bottomMargin)); in calculateGridSize()
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | GuidelinesUpdater.java | 48 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 52 start.setMargins(insets.getLeft(), 0,0, 0); in onCarUiInsetsChanged() 57 end.setMargins(0, 0, insets.getRight(), 0); in onCarUiInsetsChanged() 62 top.setMargins(0, insets.getTop(), 0, 0); in onCarUiInsetsChanged() 68 bottom.setMargins(0, 0, 0, insets.getBottom()); in onCarUiInsetsChanged() 72 listener.onCarUiInsetsChanged(insets); in onCarUiInsetsChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | ArrowPopup.java | 572 Rect insets = dragLayer.getInsets(); in orientAboutObject() local 590 boolean canBeLeftAligned = x + width + insets.left in orientAboutObject() 591 < dragLayer.getWidth() - insets.right; in orientAboutObject() 592 boolean canBeRightAligned = x > insets.left; in orientAboutObject() 606 mIsAboveIcon = y > dragLayer.getTop() + insets.top; in orientAboutObject() 612 x -= insets.left; in orientAboutObject() 613 y -= insets.top; in orientAboutObject() 616 if (y + height > dragLayer.getBottom() - insets.bottom) { in orientAboutObject() 620 int rightSide = leftAlignedX + iconWidth - insets.left; in orientAboutObject() 621 int leftSide = rightAlignedX - iconWidth - insets.left; in orientAboutObject() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | BaseCarSettingsActivity.java | 293 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 385 insets -> globalToolbarWrappedView.setPadding( in setUpToolbars() 386 insets.getLeft(), insets.getTop(), insets.getRight(), in setUpToolbars() 387 insets.getBottom()), /* hasToolbar= */ true); in setUpToolbars() 396 insets -> findViewById(R.id.fragment_container_wrapper).setPadding( in setUpToolbars() 397 insets.getLeft(), insets.getTop(), insets.getRight(), in setUpToolbars() 398 insets.getBottom()), /* hasToolbar= */ true); in setUpToolbars()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/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/oem-apis/src/main/java/com/android/car/ui/sharedlibrary/oemapis/ |
D | InsetsOEMV1.java | 67 InsetsOEMV1 insets = (InsetsOEMV1) o; in equals() 68 return mLeft == insets.mLeft in equals() 69 && mRight == insets.mRight in equals() 70 && mTop == insets.mTop in equals() 71 && mBottom == insets.mBottom; in equals()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/widescreenime/ |
D | WideScreenImeActivity.java | 270 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 272 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() 277 .setPadding(insets.getLeft(), 0, insets.getRight(), 0); in onCarUiInsetsChanged()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/base/ |
D | MessageListBaseFragment.java | 93 Insets insets = CarUi.getInsets(requireActivity()); in onViewCreated() local 95 if (insets != null) { in onViewCreated() 96 onCarUiInsetsChanged(insets); in onViewCreated() 120 public void onCarUiInsetsChanged(Insets insets) { in onCarUiInsetsChanged() argument 123 mRecyclerView.setPadding(0, insets.getTop() + listTopPadding, 0, insets.getBottom()); in onCarUiInsetsChanged()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | InspectorActivity.java | 111 mView.setOnApplyWindowInsetsListener((v, insets) -> { in setContainer() argument 112 mView.setPadding(insets.getSystemWindowInsetLeft(), in setContainer() 113 insets.getSystemWindowInsetTop(), in setContainer() 114 insets.getSystemWindowInsetRight(), 0); in setContainer() 117 container.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); in setContainer() 118 return insets; in setContainer()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/preferences/ |
D | SplitPreferenceActivity.java | 66 public void onCarUiInsetsChanged(@NonNull Insets insets) { in onCarUiInsetsChanged() argument 68 .setPadding(insets.getLeft(), insets.getTop(), in onCarUiInsetsChanged() 69 insets.getRight(), insets.getBottom()); in onCarUiInsetsChanged()
|