/frameworks/base/core/tests/coretests/src/android/view/ |
D | WindowInsetsTest.java | 19 import static android.view.WindowInsets.Type.SIZE; 20 import static android.view.WindowInsets.Type.systemBars; 42 assertTrue(new WindowInsets(new Rect(1, 2, 3, 4), null, false, false, null) in systemWindowInsets_afterConsuming_isConsumed() 48 assertTrue(new WindowInsets((Rect) null, null, false, false, null).isConsumed()); in multiNullConstructor_isConsumed() 53 assertTrue(new WindowInsets((Rect) null).isConsumed()); in singleNullConstructor_isConsumed() 61 WindowInsets.assignCompatInsets(maxInsets, new Rect(0, 10, 0, 0)); in compatInsets_layoutStable() 62 WindowInsets.assignCompatInsets(insets, new Rect(0, 0, 0, 0)); in compatInsets_layoutStable() 63 WindowInsets windowInsets = new WindowInsets(insets, maxInsets, visible, false, false, null, in compatInsets_layoutStable()
|
D | ImeInsetsSourceConsumerTest.java | 101 mController.show(WindowInsets.Type.ime(), true /* fromIme */); in testImeVisibility() 106 mController.hide(WindowInsets.Type.ime(), true /* fromIme */); in testImeVisibility() 120 mController.show(WindowInsets.Type.ime(), true /* fromIme */); in testImeRequestedVisibleAwaitingControl() 128 eq(WindowInsets.Type.ime()), eq(true) /* show */, eq(true) /* fromIme */); in testImeRequestedVisibleAwaitingControl() 130 eq(WindowInsets.Type.ime()), eq(false) /* show */, eq(true) /* fromIme */); in testImeRequestedVisibleAwaitingControl() 156 mController.show(WindowInsets.Type.ime(), true /* fromIme */); in verifyImeGetAndClearSkipAnimationOnce() 170 verify(mController).applyAnimation(eq(WindowInsets.Type.ime()), in verifyImeGetAndClearSkipAnimationOnce() 178 mController.show(WindowInsets.Type.ime(), true); in verifyImeGetAndClearSkipAnimationOnce() 183 verify(mController).applyAnimation(eq(WindowInsets.Type.ime()), in verifyImeGetAndClearSkipAnimationOnce()
|
D | SurfaceControlViewHostInsetsTest.java | 38 import android.view.WindowInsets; 39 import android.view.WindowInsets.Type; 61 public WindowInsets onApplyWindowInsets(View v, WindowInsets w) { in createViewHierarchy() 62 mStatusBarIsVisible = w.isVisible(WindowInsets.Type.statusBars()); in createViewHierarchy() 63 mStatusBarInsets = w.getInsets(WindowInsets.Type.statusBars()); in createViewHierarchy()
|
D | InsetsStateTest.java | 35 import static android.view.WindowInsets.Type.ime; 36 import static android.view.WindowInsets.Type.navigationBars; 37 import static android.view.WindowInsets.Type.statusBars; 38 import static android.view.WindowInsets.Type.systemBars; 59 import android.view.WindowInsets.Type; 89 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() [all …]
|
/frameworks/base/core/java/android/view/ |
D | WindowInsets.java | 21 import static android.view.WindowInsets.Type.DISPLAY_CUTOUT; 22 import static android.view.WindowInsets.Type.FIRST; 23 import static android.view.WindowInsets.Type.IME; 24 import static android.view.WindowInsets.Type.LAST; 25 import static android.view.WindowInsets.Type.MANDATORY_SYSTEM_GESTURES; 26 import static android.view.WindowInsets.Type.NAVIGATION_BARS; 27 import static android.view.WindowInsets.Type.SIZE; 28 import static android.view.WindowInsets.Type.STATUS_BARS; 29 import static android.view.WindowInsets.Type.SYSTEM_GESTURES; 30 import static android.view.WindowInsets.Type.TAPPABLE_ELEMENT; [all …]
|
D | WindowInsetsAnimation.java | 36 @WindowInsets.Type.InsetsType 56 @WindowInsets.Type.InsetsType int typeMask, @Nullable Interpolator interpolator, in WindowInsetsAnimation() 66 @WindowInsets.Type.InsetsType 260 WindowInsets.insetInsets( in inset() 262 WindowInsets.insetInsets( in inset() 429 public abstract WindowInsets onProgress(@NonNull WindowInsets insets, in onProgress()
|
D | WindowMetrics.java | 35 private final @NonNull WindowInsets mWindowInsets; 37 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() 78 public @NonNull WindowInsets getWindowInsets() { in getWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardOverlayWindow.java | 29 import android.view.WindowInsets; 53 private BiConsumer<WindowInsets, Integer> mOnKeyboardChangeListener; 79 public void init(@NonNull BiConsumer<WindowInsets, Integer> onKeyboardChangeListener, in init() argument 86 WindowInsets currentInsets = mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in init() 87 mKeyboardVisible = currentInsets.isVisible(WindowInsets.Type.ime()); in init() 89 WindowInsets insets = mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in init() 90 boolean keyboardVisible = insets.isVisible(WindowInsets.Type.ime()); in init() 120 WindowInsets getWindowInsets() { in getWindowInsets()
|
/frameworks/base/core/java/android/window/ |
D | WindowMetricsHelper.java | 19 import static android.view.WindowInsets.Type.displayCutout; 20 import static android.view.WindowInsets.Type.navigationBars; 26 import android.view.WindowInsets; 44 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getBoundsExcludingNavigationBarAndCutout()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | WindowInsetsControllerActivity.java | 23 import android.view.WindowInsets; 47 public WindowInsets onProgress(@NonNull WindowInsets insets, in onCreate() 49 return WindowInsets.CONSUMED; in onCreate()
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/ |
D | InsetsWidget.java | 21 import android.view.WindowInsets; 39 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarOverlayLayoutTest.java | 36 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/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPasswordView.java | 19 import static android.view.WindowInsets.Type.ime; 38 import android.view.WindowInsets; 251 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() 276 && !mPasswordEntry.getRootWindowInsets().isVisible(WindowInsets.Type.ime())) { in showKeyboard() 278 mPasswordEntry.getWindowInsetsController().show(WindowInsets.Type.ime()); in showKeyboard() 289 && mPasswordEntry.getRootWindowInsets().isVisible(WindowInsets.Type.ime())) { in hideKeyboard() 291 mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime()); in hideKeyboard()
|
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/ |
D | ChatActivity.java | 19 import static android.view.WindowInsets.Type.ime; 36 import android.view.WindowInsets; 157 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onCreate() 161 return WindowInsets.CONSUMED; in onCreate() 173 public WindowInsets onProgress(WindowInsets insets, in onCreate() 251 void onProgress(WindowInsets insets) { in onProgress()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/ |
D | StatusBarWindowView.java | 22 import static android.view.WindowInsets.Type.systemBars; 30 import android.view.WindowInsets; 52 public WindowInsets onApplyWindowInsets(WindowInsets windowInsets) { in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationInsetsImpl.java | 19 import static android.view.WindowInsets.Type.systemBars; 25 import android.view.WindowInsets; 43 public Pair<Integer, Integer> getinsets(@Nullable WindowInsets windowInsets, in getinsets()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | StatusBarBackgroundLayout.java | 27 import android.view.WindowInsets; 86 final int insetTop = ((WindowInsets) lastInsets).getSystemWindowInsetTop(); in onDraw() 109 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
|
D | StickyHeaderScrollView.java | 24 import android.view.WindowInsets; 106 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardPreviewContainer.java | 25 import android.view.WindowInsets; 65 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationsQuickSettingsContainer.java | 25 import android.view.WindowInsets; 53 private Consumer<WindowInsets> mInsetsChangedListener = insets -> {}; 120 public void setInsetsChangedListener(Consumer<WindowInsets> onInsetsChangedListener) { in setInsetsChangedListener() 141 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | CutoutAvoidingToolbar.kt | 26 private var _insets: WindowInsets? = null 46 override fun onApplyWindowInsets(insets: WindowInsets?): WindowInsets { in onApplyWindowInsets()
|
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | ImeStressTestUtil.java | 24 import android.view.WindowInsets; 42 WindowInsets insets = view.getRootWindowInsets(); in isImeShown() 43 return insets.isVisible(WindowInsets.Type.ime()); in isImeShown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityFloatingMenuViewTest.java | 22 import static android.view.WindowInsets.Type.displayCutout; 23 import static android.view.WindowInsets.Type.ime; 24 import static android.view.WindowInsets.Type.systemBars; 51 import android.view.WindowInsets; 414 final WindowInsets imeInset = fakeImeInsetWith(menuView, offset); in showMenuView_insetsListener_overlapWithIme_menuViewShifted() 427 final WindowInsets imeInset = fakeImeInsetWith(mMenuView, offset); in hideIme_onMenuViewShifted_menuViewMovedBack() 434 new WindowInsets.Builder().setVisible(ime(), false).build()); in hideIme_onMenuViewShifted_menuViewMovedBack() 444 final WindowInsets imeInset = fakeImeInsetWith(mMenuView, offset); in showMenuAndIme_withHigherIme_alignDisplayTopEdge() 489 private WindowInsets fakeImeInsetWith(AccessibilityFloatingMenuView menuView, int offset) { in fakeImeInsetWith() 494 return new WindowInsets.Builder() in fakeImeInsetWith() [all …]
|
/frameworks/base/packages/SystemUI/screenshot/src/com/android/systemui/testing/screenshot/ |
D | View.kt | 22 import android.view.WindowInsets 39 this.dispatchApplyWindowInsets(WindowInsets.CONSUMED) in removeInsetsRecursively()
|
/frameworks/base/apct-tests/perftests/inputmethod/src/android/inputmethod/ |
D | ImePerfTest.java | 44 import android.view.WindowInsets; 267 controller.show(WindowInsets.Type.ime()); in testShowImeCold() 315 controller.show(WindowInsets.Type.ime()); in testShowOrHideImeWarm() 339 controller.show(WindowInsets.Type.ime()); in testShowOrHideImeWarm() 341 controller.hide(WindowInsets.Type.ime()); in testShowOrHideImeWarm() 361 activity.runOnUiThread(() -> controller.hide(WindowInsets.Type.ime())); in testShowOrHideImeWarm() 391 WindowInsets.Type.ime()); in isImeVisible() 454 public WindowInsets onProgress(@NonNull WindowInsets insets, in setImeListener()
|