/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | AddItemWidgetsBottomSheet.java | 46 private final Rect mInsets; field in AddItemWidgetsBottomSheet 54 mInsets = new Rect(); in AddItemWidgetsBottomSheet() 77 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout() 88 if (mInsets.bottom > 0) { in onMeasure() 89 widthUsed = mInsets.left + mInsets.right; in onMeasure() 93 2 * (mInsets.left + mInsets.right)); in onMeasure() 96 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in onMeasure() 140 mInsets.set(insets.left, insets.top, insets.right, insets.bottom); in onApplyWindowInsets() 142 mInsets.set(windowInsets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 148 mContent.getPaddingTop(), mContent.getPaddingEnd(), mInsets.bottom); in onApplyWindowInsets()
|
D | BaseWidgetSheet.java | 57 protected final Rect mInsets = new Rect(); field in BaseWidgetSheet 114 mInsets.set(insets); in setInsets() 126 if (mInsets.bottom > 0) { in doMeasure() 127 widthUsed = mInsets.left + mInsets.right; in doMeasure() 131 2 * (mInsets.left + mInsets.right)); in doMeasure() 134 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in doMeasure()
|
D | WidgetsBottomSheet.java | 160 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout() 283 target.setInt(this, PADDING_BOTTOM, (int) (distanceToMove + mInsets.bottom), interpolator); in addHintCloseAnim()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/ |
D | LShadowDisplay.java | 34 private final Rect mInsets = new Rect(); field in LShadowDisplay 42 mInsets.set(insets); in setInsets() 48 outSmallestSize.x -= mInsets.left + mInsets.right; in getCurrentSizeRange() 49 outLargestSize.x -= mInsets.left + mInsets.right; in getCurrentSizeRange() 51 outSmallestSize.y -= mInsets.top + mInsets.bottom; in getCurrentSizeRange() 52 outLargestSize.y -= mInsets.top + mInsets.bottom; in getCurrentSizeRange()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | WidgetsEduView.java | 38 private Rect mInsets = new Rect(); field in WidgetsEduView 69 mInsets.set(insets); in setInsets() 91 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout() 102 if (mInsets.bottom > 0) { in onMeasure() 105 widthUsed = mInsets.left + mInsets.right; in onMeasure() 111 2 * (mInsets.left + mInsets.right)); in onMeasure() 114 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in onMeasure()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | ClusterHalServiceTest.java | 78 Insets mInsets = null; field in ClusterHalServiceTest 88 mInsets = insets; 222 assertThat(mInsets.left).isEqualTo(INSET_LEFT); in testOnDisplayState() 223 assertThat(mInsets.top).isEqualTo(INSET_TOP); in testOnDisplayState() 224 assertThat(mInsets.right).isEqualTo(INSET_RIGHT); in testOnDisplayState() 225 assertThat(mInsets.bottom).isEqualTo(INSET_BOTTOM); in testOnDisplayState() 236 assertThat(mInsets.left).isEqualTo(INSET_LEFT); in testOnDisplayState_DontAcceptPartialDontCare_Bounds() 237 assertThat(mInsets.top).isEqualTo(INSET_TOP); in testOnDisplayState_DontAcceptPartialDontCare_Bounds() 238 assertThat(mInsets.right).isEqualTo(INSET_RIGHT); in testOnDisplayState_DontAcceptPartialDontCare_Bounds() 239 assertThat(mInsets.bottom).isEqualTo(INSET_BOTTOM); in testOnDisplayState_DontAcceptPartialDontCare_Bounds() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 195 private final Rect mInsets = new Rect(); field in DeviceProfile 707 mInsets.set(insets); in updateInsets() 716 return mInsets; in getInsets() 794 mHotseatPadding.set(mInsets.left + hotseatBarSidePaddingStartPx, in getHotseatLayoutPadding() 795 mInsets.top, hotseatBarSidePaddingEndPx, mInsets.bottom); in getHotseatLayoutPadding() 797 mHotseatPadding.set(hotseatBarSidePaddingEndPx, mInsets.top, in getHotseatLayoutPadding() 798 mInsets.right + hotseatBarSidePaddingStartPx, mInsets.bottom); in getHotseatLayoutPadding() 810 + mInsets.left, in getHotseatLayoutPadding() 813 + mInsets.right, in getHotseatLayoutPadding() 815 + cellLayoutBottomPaddingPx + mInsets.bottom); in getHotseatLayoutPadding() [all …]
|
D | InsettableFrameLayout.java | 15 protected Rect mInsets = new Rect(); field in InsettableFrameLayout 18 return mInsets; in getInsets() 44 setFrameLayoutChildInsets(child, insets, mInsets); in setInsets() 46 mInsets.set(insets); in setInsets() 97 setFrameLayoutChildInsets(child, mInsets, new Rect()); in onViewAdded()
|
D | LauncherRootView.java | 54 boolean resetState = !insets.equals(mInsets); in handleSystemWindowInsets() 74 if (!insets.equals(mInsets)) { in setInsets() 81 mActivity.getDeviceProfile().updateInsets(mInsets); in dispatchInsets() 82 super.setInsets(mInsets); in dispatchInsets()
|
D | PagedView.java | 143 protected final Rect mInsets = new Rect(); field in PagedView 538 - mInsets.top - mInsets.bottom; in getNormalChildHeight() 547 - mInsets.left - mInsets.right; in getNormalChildWidth() 563 return (widthSize - mInsets.left - mInsets.right) / getPanelCount(); in getPageWidthSize() 598 heightSize - mInsets.top - mInsets.bottom, MeasureSpec.EXACTLY); in onMeasure() 674 final int pageCenter = mOrientationHandler.getCenterForPage(this, mInsets); in getPageScrolls() 676 final int scrollOffsetStart = mOrientationHandler.getScrollOffsetStart(this, mInsets); in getPageScrolls() 677 final int scrollOffsetEnd = mOrientationHandler.getScrollOffsetEnd(this, mInsets); in getPageScrolls()
|
D | Workspace.java | 311 mInsets.set(insets); in setInsets() 313 mInsets.bottom += grid.nonOverlappingTaskbarInset; in setInsets()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 203 private final Rect mInsets; field in LauncherPreviewRenderer 224 mInsets = new Rect( in LauncherPreviewRenderer() 230 mInsets = new Rect(); in LauncherPreviewRenderer() 231 mInsets.left = mInsets.right = (mDp.widthPx - mDp.availableWidthPx) / 2; in LauncherPreviewRenderer() 232 mInsets.top = mInsets.bottom = (mDp.heightPx - mDp.availableHeightPx) / 2; in LauncherPreviewRenderer() 234 mDp.updateInsets(mInsets); in LauncherPreviewRenderer() 255 mRootView.setInsets(mInsets); in LauncherPreviewRenderer()
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/ |
D | ClusterOsDoubleActivity.java | 91 private Insets mInsets; field in ClusterOsDoubleActivity 173 mInsets = Insets.of(obscuredWidth, obscuredHeight, obscuredWidth, obscuredHeight); 310 if (mBounds == null || mInsets == null) return; in sendDisplayState() 315 mInsets.left, mInsets.top, mInsets.right, mInsets.bottom, in sendDisplayState()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatEduDialog.java | 59 private final Rect mInsets = new Rect(); field in HotseatEduDialog 130 int leftInset = insets.left - mInsets.left; in setInsets() 131 int rightInset = insets.right - mInsets.right; in setInsets() 132 int bottomInset = insets.bottom - mInsets.bottom; in setInsets() 133 mInsets.set(insets); in setInsets()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | WorkModeSwitch.java | 48 private Rect mInsets = new Rect(); field in WorkModeSwitch 80 int bottomInset = insets.bottom - mInsets.bottom; in setInsets() 81 mInsets.set(insets); in setInsets() 144 setTranslationY(mInsets.bottom - keyboardInsets.bottom); in onApplyWindowInsets()
|
D | AllAppsContainerView.java | 126 private Rect mInsets = new Rect(); field in AllAppsContainerView 396 mInsets.set(insets); in setInsets() 492 mWorkModeSwitch.setInsets(mInsets); in setupWorkToggle() 777 + mInsets.bottom + Utilities.calculateTextHeight( in applyPadding()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/core/ |
D | BaseLayoutController.java | 159 private Insets mInsets = new Insets(); field in BaseLayoutController.InsetsUpdater 177 return mInsets; in getInsets() 186 if (mInsets.equals(insets)) { in onCarUiInsetsChanged() 190 mInsets = insets; in onCarUiInsetsChanged()
|
D | CarUiInstaller.java | 81 private Insets mInsets = null; in onCreate() 100 mInsets = new Insets(inset_left, inset_top, inset_right, inset_bottom); in onCreate() 114 if (mInsets != null && controller != null in onCreate() 121 changeInsetsClassLoader(activity.getClassLoader(), mInsets)); in onCreate()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/preferences/ |
D | SplitPreferenceDemoFragment.java | 33 private Insets mInsets; field in SplitPreferenceDemoFragment 55 return mInsets; in getPreferenceInsets() 60 mInsets = insets; in onCarUiInsetsChanged()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | OverviewActionsView.java | 53 private final Rect mInsets = new Rect(); field in OverviewActionsView 154 mInsets.set(insets); in setInsets() 205 setPadding(mInsets.left, 0, mInsets.right, 0); in updateHorizontalPadding()
|
D | RecentsView.java | 1272 mInsets.set(insets); in setInsets() 1336 setPadding(mTempRect.left - mInsets.left, mTempRect.top - mInsets.top, in updateSizeAndPadding() 1337 dp.widthPx - mInsets.right - mTempRect.right, in updateSizeAndPadding() 1338 dp.heightPx - mInsets.bottom - mTempRect.bottom); in updateSizeAndPadding() 1355 dp.heightPx - mInsets.bottom - mLastComputedGridSize.bottom; in updateSizeAndPadding() 3186 mTempRect.set(mInsets.left + getPaddingLeft(), mInsets.top + getPaddingTop(), 3187 mInsets.right + getPaddingRight(), mInsets.bottom + getPaddingBottom()); 3763 setInsets(mInsets);
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | ClusterHomeService.java | 84 private Insets mInsets = Insets.NONE; field in ClusterHomeService 207 if (insets != null && !mInsets.equals(insets)) { in onDisplayState() 208 mInsets = insets; in onDisplayState() 279 mClusterHalService.reportState(mOnOff, mBounds, mInsets, in reportState() 357 state.insets = mInsets; in createClusterState()
|
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/ |
D | BaseLayoutInstaller.java | 153 private InsetsOEMV1 mInsets = new InsetsOEMV1(); field in BaseLayoutInstaller.InsetsUpdater 210 return mInsets; in getInsets() 259 if (!insets.equals(mInsets)) { in onGlobalLayout() 260 mInsets = insets; in onGlobalLayout()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/ |
D | SharedLibraryFactoryStub.java | 160 private Insets mInsets = new Insets(); field in SharedLibraryFactoryStub.InsetsUpdater 246 if (!insets.equals(mInsets)) { in recalcInsets() 247 mInsets = insets; in recalcInsets() 261 mInsets = insets; in dispatchNewInsets()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsFullSheet.java | 96 private final Rect mInsets = new Rect(); field in WidgetsFullSheet 406 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout()
|