/aosp12/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DividerSnapAlgorithm.java | 127 mInsets.set(insets); in DividerSnapAlgorithm() 153 int navBarSize = mIsHorizontalDivision ? mInsets.bottom : mInsets.right; in isSplitScreenFeasible() 240 return mInsets.top; in getStartInset() 242 return mInsets.left; in getStartInset() 248 return mInsets.bottom; in getEndInset() 250 return mInsets.right; in getEndInset() 290 int navBarSize = isHorizontalDivision ? mInsets.bottom : mInsets.right; in calculateTargets() 293 startPos += mInsets.left; in calculateTargets() 324 int start = isHorizontalDivision ? mInsets.top : mInsets.left; in addFixedDivisionTargets() 335 int start = isHorizontalDivision ? mInsets.top : mInsets.left; in addRatio16_9Targets() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/ |
H A 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()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
H A D | AddItemWidgetsBottomSheet.java | 49 private final Rect mInsets; field in AddItemWidgetsBottomSheet 60 mInsets = new Rect(); in AddItemWidgetsBottomSheet() 98 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout() 109 if (mInsets.bottom > 0) { in onMeasure() 110 widthUsed = mInsets.left + mInsets.right; in onMeasure() 114 2 * (mInsets.left + mInsets.right)); in onMeasure() 126 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in onMeasure() 171 mInsets.set(insets.left, insets.top, insets.right, insets.bottom); in onApplyWindowInsets() 173 mInsets.set(windowInsets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 179 mContent.getPaddingTop(), mContent.getPaddingEnd(), mInsets.bottom); in onApplyWindowInsets()
|
H A D | BaseWidgetSheet.java | 65 protected final Rect mInsets = new Rect(); field in BaseWidgetSheet 129 mInsets.set(insets); in setInsets() 149 if (mInsets.bottom > 0) { in doMeasure() 150 widthUsed = mInsets.left + mInsets.right; in doMeasure() 154 2 * (mInsets.left + mInsets.right)); in doMeasure() 166 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in doMeasure()
|
H A D | WidgetsBottomSheet.java | 153 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout() 277 target.setInt(this, PADDING_BOTTOM, (int) (distanceToMove + mInsets.bottom), interpolator); in addHintCloseAnim()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubblePositioner.java | 75 private Insets mInsets; field in BubblePositioner 164 mInsets = insets; in updateInternal() 168 mPositionRect.left += mInsets.left; in updateInternal() 169 mPositionRect.top += mInsets.top; in updateInternal() 170 mPositionRect.right -= mInsets.right; in updateInternal() 171 mPositionRect.bottom -= mInsets.bottom; in updateInternal() 238 int newInsetLeft = mInsets.left; in adjustForTaskbar() 239 int newInsetRight = mInsets.right; in adjustForTaskbar() 247 mInsets = Insets.of(newInsetLeft, mInsets.top, newInsetRight, mInsets.bottom); in adjustForTaskbar() 271 return mInsets; in getInsets() [all …]
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
H A 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() 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() 253 assertThat(mInsets).isNull(); in testOnDisplayState_DontAcceptPartialDontCare_Inset() 266 assertThat(mInsets).isNull(); in testOnDisplayState_noListener() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A 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()
|
H A D | DeviceProfile.java | 204 private final Rect mInsets = new Rect(); field in DeviceProfile 801 mInsets.set(insets); in updateInsets() 810 return mInsets; in getInsets() 886 mInsets.top, hotseatBarSidePaddingEndPx, mInsets.bottom); in getHotseatLayoutPadding() 889 mInsets.right + hotseatBarSidePaddingStartPx, mInsets.bottom); in getHotseatLayoutPadding() 925 + mInsets.left, in getHotseatLayoutPadding() 928 + mInsets.right, in getHotseatLayoutPadding() 966 mInsets.top, in getAbsoluteOpenFolderBounds() 968 mInsets.top + availableHeightPx); in getAbsoluteOpenFolderBounds() 972 return new Rect(mInsets.left + edgeMarginPx, in getAbsoluteOpenFolderBounds() [all …]
|
H A D | LauncherRootView.java | 53 boolean resetState = !insets.equals(mInsets); in handleSystemWindowInsets() 134 if (!insets.equals(mInsets)) { in setInsets() 141 mActivity.getDeviceProfile().updateInsets(mInsets); in dispatchInsets() 142 super.setInsets(mInsets); in dispatchInsets()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
H A D | TaskbarEduView.java | 39 private final Rect mInsets = new Rect(); field in TaskbarEduView 82 mInsets.set(insets); in setInsets() 119 int contentLeft = (width - contentWidth - mInsets.left - mInsets.right) / 2 + mInsets.left; in onLayout()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/preferences/ |
H A D | SplitPreferenceDemoFragment.java | 33 private Insets mInsets; field in SplitPreferenceDemoFragment 55 return mInsets; in getPreferenceInsets() 60 mInsets = insets; in onCarUiInsetsChanged()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
H A D | WorkModeSwitch.java | 48 private final Rect mInsets = new Rect(); field in WorkModeSwitch 82 int bottomInset = insets.bottom - mInsets.bottom; in setInsets() 83 mInsets.set(insets); in setInsets() 146 setTranslationY(mInsets.bottom - keyboardInsets.bottom); in onApplyWindowInsets()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/core/ |
H A D | BaseLayoutController.java | 148 private Insets mInsets = new Insets(); field in BaseLayoutController.InsetsUpdater 166 return mInsets; in getInsets() 175 if (mInsets.equals(insets)) { in onCarUiInsetsChanged() 179 mInsets = insets; in onCarUiInsetsChanged()
|
H A D | CarUiInstaller.java | 110 private Insets mInsets = null; in register() 141 mInsets = new Insets(inset_left, inset_top, inset_right, inset_bottom); in register() 159 if (mInsets != null && controller != null in register() 166 changeInsetsClassLoader(activity.getClassLoader(), mInsets)); in register()
|
/aosp12/frameworks/base/core/java/android/view/contentcapture/ |
H A D | ContentCaptureEvent.java | 160 private @Nullable Insets mInsets; field in ContentCaptureEvent 354 mInsets = insets; in setInsets() 434 return mInsets; in getInsets() 515 if (mInsets != null) { in dump() 516 pw.print(", insets="); pw.println(mInsets); in dump() 562 if (mInsets != null) { in toString() 563 string.append(", insets=").append(mInsets); in toString() 601 parcel.writeParcelable(mInsets, flags); in writeToParcel()
|
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/ |
H A D | ClusterOsDoubleActivity.java | 91 private Insets mInsets; field in ClusterOsDoubleActivity 175 mInsets = Insets.of(obscuredWidth, obscuredHeight, obscuredWidth, obscuredHeight); 312 if (mBounds == null || mInsets == null) return; in sendDisplayState() 317 mInsets.left, mInsets.top, mInsets.right, mInsets.bottom, in sendDisplayState()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
H A D | HotseatEduDialog.java | 62 private final Rect mInsets = new Rect(); field in HotseatEduDialog 148 int leftInset = insets.left - mInsets.left; in setInsets() 149 int rightInset = insets.right - mInsets.right; in setInsets() 150 int bottomInset = insets.bottom - mInsets.bottom; in setInsets() 151 mInsets.set(insets); in setInsets()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/ |
H A D | DragAndDropPolicyTest.java | 103 private Insets mInsets; field in DragAndDropPolicyTest 132 mInsets = Insets.of(0, 0, 0, 0); in setUp() 203 mPolicy.getTargets(mInsets), TYPE_FULLSCREEN); in testDragAppOverFullscreenHome_expectOnlyFullscreenTarget() 215 mPolicy.getTargets(mInsets), TYPE_SPLIT_LEFT, TYPE_SPLIT_RIGHT); in testDragAppOverFullscreenApp_expectSplitScreenTargets() 232 mPolicy.getTargets(mInsets), TYPE_SPLIT_TOP, TYPE_SPLIT_BOTTOM); in testDragAppOverFullscreenAppPhone_expectVerticalSplitScreenTargets() 248 ArrayList<Target> targets = mPolicy.getTargets(mInsets); in testTargetHitRects()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | LauncherPreviewRenderer.java | 169 private final Rect mInsets; field in LauncherPreviewRenderer 191 mInsets = new Rect( in LauncherPreviewRenderer() 197 mInsets = new Rect(); in LauncherPreviewRenderer() 198 mInsets.left = mInsets.right = (mDp.widthPx - mDp.availableWidthPx) / 2; in LauncherPreviewRenderer() 199 mInsets.top = mInsets.bottom = (mDp.heightPx - mDp.availableHeightPx) / 2; in LauncherPreviewRenderer() 201 mDp.updateInsets(mInsets); in LauncherPreviewRenderer() 224 mRootView.setInsets(mInsets); in LauncherPreviewRenderer()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | CutoutSpecification.java | 97 private final Insets mInsets; field in CutoutSpecification 105 mInsets = parser.mInsets; in CutoutSpecification() 155 return mInsets.toRect(); in getSafeInset() 175 private Insets mInsets; field in CutoutSpecification.Parser 480 mInsets = Insets.of(mSafeInsetLeft, mSafeInsetTop, mSafeInsetRight, mSafeInsetBottom);
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
H A D | DragLayout.java | 79 private Insets mInsets = Insets.NONE; field in DragLayout 111 mInsets = insets.getInsets(Type.systemBars() | Type.displayCutout()); in onApplyWindowInsets() 116 mDropZoneView1.setBottomInset(mInsets.bottom); in onApplyWindowInsets() 117 mDropZoneView2.setBottomInset(mInsets.bottom); in onApplyWindowInsets() 120 mDropZoneView2.setBottomInset(mInsets.bottom); in onApplyWindowInsets() 261 final ArrayList<DragAndDropPolicy.Target> targets = mPolicy.getTargets(mInsets); in recomputeDropTargets()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
H A D | OverviewActionsView.java | 52 private final Rect mInsets = new Rect(); field in OverviewActionsView 153 mInsets.set(insets); in setInsets() 199 setPadding(mInsets.left, 0, mInsets.right, 0); in updateHorizontalPadding()
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | ScreenshotHelper.java | 45 private Insets mInsets; field in ScreenshotHelper.ScreenshotRequest 61 mInsets = insets; in ScreenshotRequest() 75 mInsets = in.readParcelable(Insets.class.getClassLoader()); in ScreenshotRequest() 103 return mInsets; in getInsets() 135 dest.writeParcelable(mInsets, 0); in writeToParcel()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/ |
H A 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()
|