Home
last modified time | relevance | path

Searched refs:mMainToolbar (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DToolbarTest.java59 private Toolbar mMainToolbar; field in ToolbarTest
69 mMainToolbar = mActivity.getMainToolbar(); in setup()
91 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
92 () -> mMainToolbar.setTitle(R.string.toolbar_title)); in testTitleAndSubtitleContent()
93 assertEquals(mActivity.getString(R.string.toolbar_title), mMainToolbar.getTitle()); in testTitleAndSubtitleContent()
95 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
96 () -> mMainToolbar.setTitle("New title")); in testTitleAndSubtitleContent()
97 assertEquals("New title", mMainToolbar.getTitle()); in testTitleAndSubtitleContent()
99 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
100 () -> mMainToolbar.setSubtitle(R.string.toolbar_subtitle)); in testTitleAndSubtitleContent()
[all …]
DToolbarWithMarginsCtsActivity.java27 private Toolbar mMainToolbar; field in ToolbarWithMarginsCtsActivity
37 mMainToolbar = (Toolbar) findViewById(R.id.toolbar_main); in onCreate()
38 setActionBar(mMainToolbar); in onCreate()
42 return mMainToolbar; in getMainToolbar()
DToolbarWithMarginsTest.java36 private Toolbar mMainToolbar; field in ToolbarWithMarginsTest
45 mMainToolbar = mActivity.getMainToolbar(); in setup()
51 assertEquals(5, mMainToolbar.getTitleMarginStart()); in testGetTitleMargins()
52 assertEquals(10, mMainToolbar.getTitleMarginTop()); in testGetTitleMargins()
53 assertEquals(15, mMainToolbar.getTitleMarginEnd()); in testGetTitleMargins()
54 assertEquals(20, mMainToolbar.getTitleMarginBottom()); in testGetTitleMargins()
DToolbarCtsActivity.java29 private Toolbar mMainToolbar; field in ToolbarCtsActivity
43 mMainToolbar = (Toolbar) findViewById(R.id.toolbar_main); in onCreate()
44 setActionBar(mMainToolbar); in onCreate()
48 return mMainToolbar; in getMainToolbar()
/cts/tests/tests/view/src/android/view/cts/
DMenuItemCtsActivity.java28 private Toolbar mMainToolbar; field in MenuItemCtsActivity
35 mMainToolbar = (Toolbar) findViewById(R.id.toolbar_main); in onCreate()
36 setActionBar(mMainToolbar); in onCreate()
40 return mMainToolbar; in getMainToolbar()