/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsControllerTest.java | 33 import static android.view.WindowInsets.Type.statusBars; 105 null /* owner */, 0 /* index */, statusBars()); 161 mStatusSource = new InsetsSource(ID_STATUS_BAR, statusBars()); in setup() 186 mController.onControlsChanged(createSingletonControl(ID_STATUS_BAR, statusBars())); in testControlsChanged() 188 mController.getSourceConsumer(ID_STATUS_BAR, statusBars()).getControl().getLeash()); in testControlsChanged() 190 ((controller, typeMask) -> assertEquals(statusBars(), typeMask))); in testControlsChanged() 198 mController.onControlsChanged(createSingletonControl(ID_STATUS_BAR, statusBars())); in testControlsRevoked() 200 assertNull(mController.getSourceConsumer(ID_STATUS_BAR, statusBars()).getControl()); in testControlsRevoked() 203 inOrder.verify(listener).onControllableInsetsChanged(eq(mController), eq(statusBars())); in testControlsRevoked() 210 mController.onControlsChanged(createSingletonControl(ID_STATUS_BAR, statusBars())); in testControlsRevoked_duringAnim() [all …]
|
D | InsetsStateTest.java | 33 import static android.view.WindowInsets.Type.statusBars; 82 null /* owner */, 0 /* index */, statusBars()); 88 null /* owner */, 1 /* index */, statusBars()); 101 mState.getOrCreateSource(ID_STATUS_BAR, statusBars()) in testCalculateInsets() 115 assertEquals(Insets.of(0, 100, 0, 0), insets.getInsets(statusBars())); in testCalculateInsets() 140 mState.getOrCreateSource(ID_STATUS_BAR, statusBars()) in testCalculateInsets_navRightStatusTop() 149 assertEquals(Insets.of(0, 100, 0, 0), insets.getInsets(statusBars())); in testCalculateInsets_navRightStatusTop() 155 mState.getOrCreateSource(ID_CLIMATE_BAR, statusBars()) in testCalculateInsets_extraNavRightClimateTop() 164 assertEquals(Insets.of(0, 100, 0, 0), insets.getInsets(Type.statusBars())); in testCalculateInsets_extraNavRightClimateTop() 170 mState.getOrCreateSource(ID_STATUS_BAR, statusBars()) in testCalculateInsets_imeIgnoredWithoutAdjustResize() [all …]
|
D | InsetsSourceConsumerTest.java | 24 import static android.view.WindowInsets.Type.statusBars; 72 null /* owner */, 0 /* index */, statusBars()); 102 mSpyInsetsSource = Mockito.spy(new InsetsSource(ID_STATUS_BAR, statusBars())); in setup() 106 mConsumer = new InsetsSourceConsumer(ID_STATUS_BAR, statusBars(), mState, in setup() 118 new InsetsSourceControl(ID_STATUS_BAR, statusBars(), mLeash, in setup() 186 mController.setRequestedVisibleTypes(0 /* visibleTypes */, statusBars()); in testRestore() 190 new InsetsSourceControl(ID_STATUS_BAR, statusBars(), mLeash, in testRestore() 193 assertEquals(statusBars(), hideTypes[0]); in testRestore() 201 mController.setRequestedVisibleTypes(0 /* visibleTypes */, statusBars()); in testRestore_noAnimation() 208 new InsetsSourceControl(ID_STATUS_BAR, statusBars(), mLeash, in testRestore_noAnimation()
|
D | SurfaceControlViewHostInsetsTest.java | 19 import static android.view.WindowInsets.Type.statusBars; 53 mStatusBarIsVisible = w.isVisible(WindowInsets.Type.statusBars()); in createViewHierarchy() 54 mStatusBarInsets = w.getInsets(WindowInsets.Type.statusBars()); in createViewHierarchy() 74 InsetsSource.createId(null /* owner */, 0 /* index */, statusBars()), statusBars()) in statusBarState()
|
D | InsetsAnimationControlImplTest.java | 20 import static android.view.WindowInsets.Type.statusBars; 70 null /* owner */, 0 /* index */, statusBars()); 95 mInsetsState.getOrCreateSource(ID_STATUS_BAR, statusBars()) in setup() 100 WindowInsets.Type.statusBars(), mInsetsState, in setup() 103 new InsetsSourceControl(ID_STATUS_BAR, WindowInsets.Type.statusBars(), in setup()
|
D | WindowLayoutTests.java | 23 import static android.view.WindowInsets.Type.statusBars; 67 null /* owner */, 0 /* index */, statusBars()); 89 mState.getOrCreateSource(ID_STATUS_BAR, statusBars()).setFrame( in setUp() 207 mAttrs.setFitInsetsTypes(WindowInsets.Type.statusBars()); in fitStatusBars()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | InsetsPolicyTest.java | 26 import static android.view.WindowInsets.Type.statusBars; 112 addStatusBar().mAttrs.forciblyShownTypes |= statusBars(); in testControlsForDispatch_forceStatusBarVisible() 171 fullscreenApp.setRequestedVisibleTypes(0, WindowInsets.Type.statusBars()); in testControlsForDispatch_topAppHidesStatusBar() 200 assertEquals(statusBars(), fullscreenAppControls[0].getType()); in testControlsForDispatch_topAppHidesStatusBar() 205 WindowInsets.Type.statusBars(), WindowInsets.Type.statusBars()); in testControlsForDispatch_topAppHidesStatusBar() 270 0, navigationBars() | statusBars()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 274 .isSourceOrDefaultVisible(statusBarId, statusBars())); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 278 policy.showTransient(navigationBars() | statusBars(), true /* isGestureOnSystemBar */); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 290 .isSourceOrDefaultVisible(statusBarId, statusBars())); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 303 policy.showTransient(navigationBars() | statusBars(), in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl() [all …]
|
D | InsetsStateControllerTest.java | 25 import static android.view.WindowInsets.Type.statusBars; 68 InsetsSource.createId(null /* owner */, 0 /* index */, statusBars()); 72 InsetsSource.createId(null /* owner */, 1 /* index */, statusBars()); 85 getController().getOrCreateSourceProvider(ID_STATUS_BAR, statusBars()) in testStripForDispatch_navBar() 102 getController().getOrCreateSourceProvider(ID_STATUS_BAR, statusBars()) in testStripForDispatch_pip() 119 getController().getOrCreateSourceProvider(ID_STATUS_BAR, statusBars()) in testStripForDispatch_freeform() 135 getController().getOrCreateSourceProvider(ID_STATUS_BAR, statusBars()) in testStripForDispatch_multiwindow_alwaysOnTop() 292 getController().getOrCreateSourceProvider(ID_STATUS_BAR, statusBars()); in testImeForDispatch() 318 getController().getOrCreateSourceProvider(ID_STATUS_BAR, statusBars()) in testBarControllingWinChanged() 322 getController().getOrCreateSourceProvider(ID_CLIMATE_BAR, statusBars()) in testBarControllingWinChanged() [all …]
|
D | InsetsSourceProviderTest.java | 21 import static android.view.WindowInsets.Type.statusBars; 49 InsetsSource.createId(null, 0, statusBars()), statusBars()); 269 target.setRequestedVisibleTypes(0, statusBars()); in testSetRequestedVisibleTypes() 280 target.setRequestedVisibleTypes(0, statusBars()); in testSetRequestedVisibleTypes_noControl()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/data/repository/ |
D | StatusBarModeRepositoryImplTest.kt | 98 WindowInsets.Type.statusBars(), in isTransientShown_commandQueueShow_wrongDisplayId_notUpdated() 120 WindowInsets.Type.statusBars(), in isTransientShown_commandQueueShow_true() 131 WindowInsets.Type.statusBars().or(WindowInsets.Type.navigationBars()), in isTransientShown_commandQueueShow_statusBarAndOtherTypes_true() 143 WindowInsets.Type.statusBars(), in isTransientShown_commandQueueAbort_wrongDisplayId_notUpdated() 149 commandQueueCallback.abortTransient(DISPLAY_ID + 1, WindowInsets.Type.statusBars()) in isTransientShown_commandQueueAbort_wrongDisplayId_notUpdated() 160 WindowInsets.Type.statusBars(), in isTransientShown_commandQueueAbort_notStatusBarType_notUpdated() 177 WindowInsets.Type.statusBars(), in isTransientShown_commandQueueAbort_false() 182 commandQueueCallback.abortTransient(DISPLAY_ID, WindowInsets.Type.statusBars()) in isTransientShown_commandQueueAbort_false() 192 WindowInsets.Type.statusBars(), in isTransientShown_commandQueueAbort_statusBarAndOtherTypes_false() 199 WindowInsets.Type.statusBars().or(WindowInsets.Type.captionBar()), in isTransientShown_commandQueueAbort_statusBarAndOtherTypes_false() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InsetsPolicy.java | 64 public static final int CONTROLLABLE_TYPES = WindowInsets.Type.statusBars() 133 mStatusBar.updateVisibility(statusControlTarget, Type.statusBars()); in updateBarControlTarget() 176 (showingTransientTypes & (Type.statusBars() | Type.navigationBars())) != 0, in showTransient() 339 state = adjustVisibilityForFakeControllingSource(state, Type.statusBars(), source, in adjustVisibilityForFakeControllingSources() 495 if (!fake && isTransient(Type.statusBars())) { in getStatusControlTarget() 510 if (areTypesForciblyShowing(Type.statusBars())) { in getStatusControlTarget() 515 if (mPolicy.areTypesForciblyShownTransiently(Type.statusBars()) && !fake) { in getStatusControlTarget() 522 && mPolicy.topAppHidesSystemBar(Type.statusBars()) in getStatusControlTarget() 598 ? (Type.statusBars() | Type.navigationBars()) in updateSystemBars() 607 ? (Type.statusBars() | Type.navigationBars()) in updateSystemBars()
|
D | DisplayRotationImmersiveAppCompatPolicy.java | 144 & (Type.statusBars() | Type.navigationBars())) == 0; in hasRequestedToHideStatusAndNavBars()
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/ |
D | SystemUiController.kt | 247 ?.isVisible(WindowInsetsCompat.Type.statusBars()) == true 251 windowInsetsController?.show(WindowInsetsCompat.Type.statusBars()) 253 windowInsetsController?.hide(WindowInsetsCompat.Type.statusBars())
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | DialogThemedActivity.java | 22 import static android.view.WindowInsets.Type.statusBars; 64 + "StatusBar: " + isInsetsVisible(dialog, statusBars()) + "\n" in onCreate()
|
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/ |
D | ControllerActivity.java | 22 import static android.view.WindowInsets.Type.statusBars; 74 updateWidgets(insets, statusBars(), mToggleStatus, mSeekStatus); in onCreate() 100 mToggleStatus.setOnCheckedChangeListener(new ToggleListener(statusBars())); in onCreate() 102 mSeekStatus.setOnSeekBarChangeListener(new SeekBarListener(statusBars())); in onCreate()
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | ImeShownOnAppStartHelper.kt | 29 import android.view.WindowInsets.Type.statusBars 97 statusBars() -> { in getInsetsVisibleFromDialog()
|
/frameworks/base/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ |
D | ShowImeWhileDismissingThemedPopupDialogTest.kt | 29 import android.view.WindowInsets.Type.statusBars 66 assertTrue(testApp.getInsetsVisibleFromDialog(statusBars())) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/ |
D | StatusBarWindowController.java | 20 import static android.view.WindowInsets.Type.statusBars; 248 new InsetsFrameProvider(mInsetsSourceOwner, 0, statusBars()) 369 mLpChanged.forciblyShownTypes |= WindowInsets.Type.statusBars(); 371 mLpChanged.forciblyShownTypes &= ~WindowInsets.Type.statusBars();
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/extensions/ |
D | ActivityExt.kt | 37 WindowInsets.Type.statusBars() or WindowInsets.Type.navigationBars() in Activity()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/ |
D | CredentialPatternView.kt | 43 val statusBarInsets: Insets = insets.getInsets(Type.statusBars()) in onApplyWindowInsets()
|
D | CredentialPasswordView.kt | 53 val statusBarInsets: Insets = insets.getInsets(WindowInsets.Type.statusBars()) in onApplyWindowInsets()
|
/frameworks/base/tests/FlickerTests/FlickerService/src/com/android/server/wm/flicker/service/notification/scenarios/ |
D | NotificationUtils.kt | 46 WindowInsets.Type.statusBars() or WindowInsets.Type.displayCutout() in openNotification()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | DeviceConfig.kt | 48 or WindowInsets.Type.statusBars() in create()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | CommandQueueTest.java | 163 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testShowTransient() 171 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testShowTransientForSecondaryDisplay() 179 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testAbortTransient() 187 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testAbortTransientForSecondaryDisplay()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/data/repository/ |
D | StatusBarModePerDisplayRepository.kt | 141 return displayId == thisDisplayId && (types and WindowInsets.Type.statusBars() != 0) in isTransientRelevant() 193 requestedVisibleTypes and WindowInsets.Type.statusBars() == 0 in params()
|