Home
last modified time | relevance | path

Searched refs:calculateInsets (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/view/
DInsetsSourceTest.java62 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsTop()
70 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsBottom()
78 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsLeft()
86 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsRight()
94 Insets insets = mSource.calculateInsets(new Rect(100, 0, 500, 500), in testCalculateInsets_overextend()
102 Insets insets = mImeSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsets_ime_leftCutout()
110 Insets insets = mCaptionSource.calculateInsets(new Rect(0, 0, 200, 200), false); in testCalculateInsets_caption_resizing()
112 insets = mCaptionSource.calculateInsets(new Rect(0, 0, 50, 200), false); in testCalculateInsets_caption_resizing()
114 insets = mCaptionSource.calculateInsets(new Rect(100, 100, 200, 500), false); in testCalculateInsets_caption_resizing()
122 Insets insets = mSource.calculateInsets(new Rect(100, 0, 500, 500), in testCalculateInsets_invisible()
[all …]
DInsetsStateTest.java89 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets()
106 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_imeAndNav()
123 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_navRightStatusTop()
136 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_extraNavRightClimateTop()
151 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_imeIgnoredWithoutAdjustResize()
165 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_systemUiFlagLayoutStable()
169 insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, false, in testCalculateInsets_systemUiFlagLayoutStable()
179 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_systemUiFlagLayoutStable_windowFlagFullscreen()
183 insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, false, in testCalculateInsets_systemUiFlagLayoutStable_windowFlagFullscreen()
193 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets_flagLayoutNoLimits()
[all …]
DImeInsetsSourceConsumerTest.java83 mController.calculateInsets( in setup()
DInsetsControllerTest.java162 mController.calculateInsets( in setup()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerInsetsSourceProviderTest.java71 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout()
90 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout_givenInsets()
103 assertEquals(Insets.NONE, mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout_invisible()
190 Insets insets = mImeSource.calculateInsets(new Rect(0, 0, 500, 500), in testUpdateSourceFrameForIme()
198 insets = mImeSource.calculateInsets(new Rect(0, 0, 500, 500), in testUpdateSourceFrameForIme()
242 mProvider.getSource().calculateInsets(new Rect(0, -100, 500, 400), in testInsetGeometries()
248 mProvider.getSource().calculateInsets(new Rect(-100, 0, 400, 500), in testInsetGeometries()
DDisplayPolicyLayoutTests.java168 statusBarProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in addingWindow_withInsetsTypes()
174 topGesturesProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in addingWindow_withInsetsTypes()
/frameworks/base/core/java/android/view/
DInsetsAnimationControlImpl.java127 mHiddenInsets = calculateInsets(mInitialInsetsState, frame, controls, false /* shown */, in InsetsAnimationControlImpl()
129 mShownInsets = calculateInsets(mInitialInsetsState, frame, controls, true /* shown */, in InsetsAnimationControlImpl()
141 mCurrentInsets = calculateInsets(mInitialInsetsState, controls, true /* shown */); in InsetsAnimationControlImpl()
142 mHiddenInsets = calculateInsets(null, controls, false /* shown */); in InsetsAnimationControlImpl()
143 mShownInsets = calculateInsets(null, controls, true /* shown */); in InsetsAnimationControlImpl()
372 return state.calculateInsets(frame, null /* ignoringVisibilityState */, in getInsetsFromState()
380 private Insets calculateInsets(InsetsState state, Rect frame, in calculateInsets() method in InsetsAnimationControlImpl
395 private Insets calculateInsets(InsetsState state, SparseArray<InsetsSourceControl> controls, in calculateInsets() method in InsetsAnimationControlImpl
DInsetsSource.java133 public Insets calculateInsets(Rect relativeFrame, boolean ignoreVisibility) { in calculateInsets() method in InsetsSource
134 return calculateInsets(relativeFrame, mFrame, ignoreVisibility); in calculateInsets()
141 return calculateInsets(relativeFrame, mVisibleFrame != null ? mVisibleFrame : mFrame, in calculateVisibleInsets()
145 private Insets calculateInsets(Rect relativeFrame, Rect frame, boolean ignoreVisibility) { in calculateInsets() method in InsetsSource
DWindowLayout.java78 final Insets insets = state.calculateInsets(windowBounds, attrs.getFitInsetsTypes(), in computeFrames()
93 outParentFrame.inset(source.calculateInsets( in computeFrames()
132 final Insets systemBarsInsets = state.calculateInsets( in computeFrames()
149 if (navSource != null && navSource.calculateInsets(displayFrame, true).bottom > 0) { in computeFrames()
DInsetsState.java218 public WindowInsets calculateInsets(Rect frame, @Nullable InsetsState ignoringVisibilityState, in calculateInsets() method in InsetsState
305 final Insets insets = source.calculateInsets(roundedCornerFrame, false); in calculateRelativeRoundedCorners()
336 public Insets calculateInsets(Rect frame, @InsetsType int types, boolean ignoreVisibility) { in calculateInsets() method in InsetsState
347 insets = Insets.max(source.calculateInsets(frame, ignoreVisibility), insets); in calculateInsets()
352 public Insets calculateInsets(Rect frame, @InsetsType int types, in calculateInsets() method in InsetsState
367 insets = Insets.max(source.calculateInsets(frame, true), insets); in calculateInsets()
419 final Insets insets = source.calculateInsets(frame, true /* ignoreVisibility */); in canControlSource()
430 Insets insets = source.calculateInsets(relativeFrame, ignoreVisibility); in processSource()
DInsetsResizeAnimationRunner.java66 final Insets fromInsets = fromState.calculateInsets( in InsetsResizeAnimationRunner()
68 final Insets toInsets = toState.calculateInsets( in InsetsResizeAnimationRunner()
DInsetsController.java656 WindowInsets insets = state.calculateInsets(mFrame, mState /* ignoringVisibilityState*/, in InsetsController()
835 public WindowInsets calculateInsets(boolean isScreenRound, boolean alwaysConsumeSystemBars, in calculateInsets() method in InsetsController
843 mLastInsets = mState.calculateInsets(mFrame, null /* ignoringVisibilityState*/, in calculateInsets()
DWindowManagerImpl.java345 return insetsState.calculateInsets(bounds, null /* ignoringVisibilityState*/, in getWindowInsetsFromServerForDisplay()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/kidsmode/
DKidsModeTaskOrganizer.java382 bounds.inset(navBarSource.calculateInsets(bounds, false /* ignoreVisibility */)); in calculateBounds()
384 bounds.inset(taskBarSource.calculateInsets(bounds, false /* ignoreVisibility */)); in calculateBounds()
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java242 return insetsState.calculateInsets(getCurrentBounds(mContext), in computeWindowInsets()
/frameworks/base/services/core/java/com/android/server/wm/
DBackNaviAnimationController.java346 mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets( in createRemoteAnimationTarget()
DRecentsAnimationController.java548 .calculateInsets(mTargetActivityRecord.getBounds(), Type.systemBars(), in startAnimation()
1185 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(
DInsetsSourceProvider.java336 final Insets insetsHint = mSource.calculateInsets( in onPostLayout()
DTaskSnapshotController.java724 return state.calculateInsets(
DDisplayPolicy.java2019 final Insets decor = insetsState.calculateInsets(displayFrame, DECOR_TYPES, in update()
2021 final Insets statusBar = insetsState.calculateInsets(displayFrame, in update()
DDisplayContent.java3078 out.inset(state.calculateInsets(out, systemBars(), true /* ignoreVisibility */)); in getStableRect()
3207 mTmpRect.inset(getInsetsStateController().getRawInsetsState().calculateInsets( in processTaskForTouchExcludeRegion()
3328 dockFrame.inset(state.calculateInsets(dockFrame, systemBars() | displayCutout(), in getInputMethodWindowVisibleHeight()
DWindowState.java5953 outInsets.set(state.calculateInsets(outFrame, systemBars(), in getAnimationFrames()
5955 outStableInsets.set(state.calculateInsets(outFrame, systemBars(), in getAnimationFrames()
DActivityRecord.java7603 insets = win.getInsetsStateWithVisibilityOverride().calculateInsets( in loadThumbnailAnimation()
10309 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindow.java353 return state.calculateInsets(frame, WindowInsets.Type.systemBars(), in getSystemBarInsets()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java1242 WindowInsets windowInsets = mInsetsState.calculateInsets(visibleFrame, in updateSurface()

12