Home
last modified time | relevance | path

Searched refs:WindowInsets (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
DWindowInsetsTest.java19 import static android.view.WindowInsets.Type.ime;
20 import static android.view.WindowInsets.Type.sideBars;
21 import static android.view.WindowInsets.Type.topBar;
29 import android.view.WindowInsets.Builder;
44 assertTrue(new WindowInsets(new Rect(1, 2, 3, 4), null, false, false, null) in systemWindowInsets_afterConsuming_isConsumed()
50 assertTrue(new WindowInsets((Rect) null, null, false, false, null).isConsumed()); in multiNullConstructor_isConsumed()
55 assertTrue(new WindowInsets((Rect) null).isConsumed()); in singleNullConstructor_isConsumed()
61 Builder b = new WindowInsets.Builder(); in typeMap()
64 WindowInsets insets = b.build(); in typeMap()
71 Builder b = new WindowInsets.Builder(); in compatInsets()
[all …]
DViewRootImplTest.java60 final WindowInsets insets = mViewRootImpl.getWindowInsets(true /* forceConstruct */); in negativeInsets_areSetToZero()
70 final WindowInsets insets = mViewRootImpl.getWindowInsets(true /* forceConstruct */); in negativeInsets_areSetToZero_positiveAreLeftAsIs()
80 final WindowInsets insets = mViewRootImpl.getWindowInsets(true /* forceConstruct */); in positiveInsets_areLeftAsIs()
103 WindowInsets getWindowInsets(boolean forceConstruct) throws Exception { in getWindowInsets()
104 return (WindowInsets) invokeMethod(mViewRootImpl, in getWindowInsets()
DInsetsStateTest.java27 import static android.view.WindowInsets.Type.ime;
40 import android.view.WindowInsets.Type;
73 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets()
92 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets_imeAndNav()
111 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets_navRightStatusTop()
125 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets_imeIgnoredWithoutAdjustResize()
138 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testStripForDispatch()
/frameworks/base/core/java/android/view/
DWindowInsets.java20 import static android.view.WindowInsets.Type.FIRST;
21 import static android.view.WindowInsets.Type.IME;
22 import static android.view.WindowInsets.Type.LAST;
23 import static android.view.WindowInsets.Type.MANDATORY_SYSTEM_GESTURES;
24 import static android.view.WindowInsets.Type.SIDE_BARS;
25 import static android.view.WindowInsets.Type.SIZE;
26 import static android.view.WindowInsets.Type.SYSTEM_GESTURES;
27 import static android.view.WindowInsets.Type.TAPPABLE_ELEMENT;
28 import static android.view.WindowInsets.Type.TOP_BAR;
29 import static android.view.WindowInsets.Type.all;
[all …]
DWindowInsetsAnimationListener.java50 WindowInsets onProgress(WindowInsets insets); in onProgress()
64 private final @WindowInsets.Type.InsetType int mTypeMask;
80 public @WindowInsets.Type.InsetType int getTypeMask() { in getTypeMask()
DInsetsState.java21 import static android.view.WindowInsets.Type.MANDATORY_SYSTEM_GESTURES;
22 import static android.view.WindowInsets.Type.SIZE;
23 import static android.view.WindowInsets.Type.SYSTEM_GESTURES;
24 import static android.view.WindowInsets.Type.indexOf;
35 import android.view.WindowInsets.Type;
36 import android.view.WindowInsets.Type.InsetType;
144 public WindowInsets calculateInsets(Rect frame, boolean isScreenRound, in calculateInsets()
155 WindowInsets.assignCompatInsets(typeInsetsMap, legacyContentInsets); in calculateInsets()
156 WindowInsets.assignCompatInsets(typeMaxInsetsMap, legacyStableInsets); in calculateInsets()
185 return new WindowInsets(typeInsetsMap, typeMaxInsetsMap, typeVisibilityMap, isScreenRound, in calculateInsets()
DWindowInsetsController.java19 import static android.view.WindowInsets.Type.ime;
22 import android.view.WindowInsets.Type.InsetType;
DInsetsController.java21 import static android.view.WindowInsets.Type.all;
40 import android.view.WindowInsets.Type;
41 import android.view.WindowInsets.Type.InsetType;
105 private WindowInsets mLastInsets;
136 WindowInsets insets = state.calculateInsets(mFrame, mLastInsets.isRound(), in InsetsController()
179 public WindowInsets calculateInsets(boolean isScreenRound, in calculateInsets()
DWindowInsetsAnimationControlListener.java20 import android.view.WindowInsets.Type.InsetType;
DWindowInsetsAnimationController.java21 import android.view.WindowInsets.Type.InsetType;
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java36 import android.view.WindowInsets;
170 private WindowInsets insetsWith(Insets content, DisplayCutout cutout) { in insetsWith()
171 return new WindowInsets(content.toRect(), null, false, false, cutout); in insetsWith()
188 public WindowInsets computeSystemWindowInsets(WindowInsets in, Rect outLocalInsets) { in computeSystemWindowInsets()
221 WindowInsets captured;
224 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onApplyWindowInsets()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
DInsetsWidget.java21 import android.view.WindowInsets;
39 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DStatusBarBackgroundLayout.java27 import android.view.WindowInsets;
86 final int insetTop = ((WindowInsets) lastInsets).getSystemWindowInsetTop(); in onDraw()
109 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
DStickyHeaderScrollView.java24 import android.view.WindowInsets;
106 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
DStickyHeaderListView.java29 import android.view.WindowInsets;
141 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardPreviewContainer.java25 import android.view.WindowInsets;
65 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
DNotificationsQuickSettingsContainer.java27 import android.view.WindowInsets;
103 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
DPhoneStatusBarView.java38 import android.view.WindowInsets;
144 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
352 WindowInsets insets = getRootWindowInsets(); in updateSafeInsets()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DCutoutAvoidingToolbar.kt26 private var _insets: WindowInsets? = null
46 override fun onApplyWindowInsets(insets: WindowInsets?): WindowInsets { in onApplyWindowInsets()
DToolbarView.kt50 override fun onApplyWindowInsets(insets: WindowInsets?): WindowInsets { in onApplyWindowInsets()
DPainting.kt26 import android.view.WindowInsets
96 private var _insets: WindowInsets? = null
169 override fun onApplyWindowInsets(insets: WindowInsets?): WindowInsets { in onApplyWindowInsets()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenDecorWindowTests.java59 import android.view.WindowInsets;
157 WindowInsets initialInsets = getInsets(mTestActivity); in testFlagChange()
178 WindowInsets initialInsets = getInsets(mTestActivity); in testRemoval()
240 private WindowInsets getInsets(Activity a) { in getInsets()
241 return new WindowInsets(a.getWindow().getDecorView().getRootWindowInsets()); in getInsets()
275 final WindowInsets insets = getInsets(activity); in assertInsetGreaterOrEqual()
294 final WindowInsets insets = getInsets(activity); in waitForInsetGreaterOrEqual()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarOverlayLayout.java41 import android.view.WindowInsets;
79 private WindowInsets mBaseInnerInsets = WindowInsets.CONSUMED;
80 private WindowInsets mLastBaseInnerInsets = WindowInsets.CONSUMED;
81 private WindowInsets mInnerInsets = WindowInsets.CONSUMED;
82 private WindowInsets mLastInnerInsets = WindowInsets.CONSUMED;
314 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
348 return WindowInsets.CONSUMED;
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DStickyHeaderRecyclerView.java27 import android.view.WindowInsets;
124 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java32 import android.view.WindowInsets;
326 public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) { in onApplyWindowInsets()

123