Home
last modified time | relevance | path

Searched refs:topBar (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DInsetsSourceProviderTest.java56 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testPostLayout() local
57 topBar.getFrameLw().set(0, 0, 500, 100); in testPostLayout()
58 topBar.mHasSurface = true; in testPostLayout()
59 mProvider.setWindow(topBar, null); in testPostLayout()
69 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testPostLayout_invisible() local
70 topBar.getFrameLw().set(0, 0, 500, 100); in testPostLayout_invisible()
71 mProvider.setWindow(topBar, null); in testPostLayout_invisible()
79 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testPostLayout_frameProvider() local
80 topBar.getFrameLw().set(0, 0, 500, 100); in testPostLayout_frameProvider()
81 mProvider.setWindow(topBar, in testPostLayout_frameProvider()
[all …]
DInsetsStateControllerTest.java63 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_notOwn() local
65 getController().getSourceProvider(TYPE_TOP_BAR).setWindow(topBar, null); in testStripForDispatch_notOwn()
66 topBar.setInsetProvider(getController().getSourceProvider(TYPE_TOP_BAR)); in testStripForDispatch_notOwn()
73 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_own() local
75 .setWindow(topBar, null); in testStripForDispatch_own()
76 topBar.setInsetProvider(getController().getSourceProvider(TYPE_TOP_BAR)); in testStripForDispatch_own()
77 assertEquals(new InsetsState(), getController().getInsetsForDispatch(topBar)); in testStripForDispatch_own()
84 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_navBar() local
86 getController().getSourceProvider(TYPE_TOP_BAR).setWindow(topBar, null); in testStripForDispatch_navBar()
96 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testBarControllingWinChanged() local
[all …]
DRootWindowContainerTests.java84 final WindowState topBar = createWindow(null, TYPE_STATUS_BAR, "topBar", FAKE_CALLING_UID); in testIsAnyNonToastWindowVisibleForUid_aFewNonToastButNoneVisible() local
87 assertFalse(topBar.isVisibleNow()); in testIsAnyNonToastWindowVisibleForUid_aFewNonToastButNoneVisible()
DWindowStateTests.java367 final WindowState topBar = createWindow(null, TYPE_STATUS_BAR, "topBar"); in testVisibleWithInsetsProvider() local
369 topBar.mHasSurface = true; in testVisibleWithInsetsProvider()
370 assertTrue(topBar.isVisible()); in testVisibleWithInsetsProvider()
372 .setWindow(topBar, null); in testVisibleWithInsetsProvider()
377 assertFalse(topBar.isVisible()); in testVisibleWithInsetsProvider()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsControllerTest.java22 import static android.view.WindowInsets.Type.topBar;
123 mController.controlWindowInsetsAnimation(topBar(), mockListener); in testControlsRevoked_duringAnim()
144 InsetsSourceControl topBar = controls[1]; in testAnimationEndState() local
154 assertTrue(mController.getSourceConsumer(topBar.getType()).isVisible()); in testAnimationEndState()
161 assertFalse(mController.getSourceConsumer(topBar.getType()).isVisible()); in testAnimationEndState()
189 InsetsSourceControl topBar = controls[1]; in testShowHideSelectively() local
198 assertTrue(mController.getSourceConsumer(topBar.getType()).isVisible()); in testShowHideSelectively()
205 assertFalse(mController.getSourceConsumer(topBar.getType()).isVisible()); in testShowHideSelectively()
215 InsetsSourceControl topBar = controls[1]; in testShowHideSingle() local
224 assertTrue(mController.getSourceConsumer(topBar.getType()).isVisible()); in testShowHideSingle()
[all …]
DWindowInsetsTest.java21 import static android.view.WindowInsets.Type.topBar;
74 assertEquals(Insets.of(0, 50, 0, 0), insets.getInsets(topBar())); in compatInsets()
89 assertFalse(insets.isVisible(sideBars() | topBar())); in visibility()
DInsetsStateTest.java79 assertEquals(Insets.of(0, 100, 0, 0), insets.getInsets(Type.topBar())); in testCalculateInsets()
114 assertEquals(Insets.of(0, 100, 0, 0), insets.getInsets(Type.topBar())); in testCalculateInsets_navRightStatusTop()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBar.java415 CarNavigationBarView topBar = mStatusBarWindow.findViewById(R.id.car_top_bar); in connectNotificationsUI() local
416 topBar.setStatusBar(this); in connectNotificationsUI()
417 topBar.setStatusBarWindowTouchListener((v1, event1) -> { in connectNotificationsUI()
/frameworks/base/core/java/android/view/
DWindowInsets.java1192 public static @InsetType int topBar() { in topBar() method in WindowInsets.Type