Home
last modified time | relevance | path

Searched refs:mToolbar (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/toolbar/
DToolbarTest.java48 private Toolbar mToolbar; field in ToolbarTest
54 mToolbar = new Toolbar(mContext); in setUp()
59 assertThat(mToolbar.getBackgroundShown()).isEqualTo(true); in getters_nochanges_shouldReturnDefaults()
60 assertThat(mToolbar.getShowMenuItemsWhileSearching()).isEqualTo(false); in getters_nochanges_shouldReturnDefaults()
61 assertThat(mToolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.HOME); in getters_nochanges_shouldReturnDefaults()
62 assertThat(mToolbar.getNavButtonMode()).isEquivalentAccordingToCompareTo( in getters_nochanges_shouldReturnDefaults()
68 mToolbar.setState(Toolbar.State.SUBPAGE); in setState_subpage_shouldCauseGetStateToReturnSubpage()
70 assertThat(mToolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.SUBPAGE); in setState_subpage_shouldCauseGetStateToReturnSubpage()
75 mToolbar.setTitle("Foo"); in setters_and_getters_test()
76 mToolbar.setSearchHint("Foo2"); in setters_and_getters_test()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DNavigationViewManager.java50 private final Toolbar mToolbar; field in NavigationViewManager
67 mToolbar = activity.findViewById(R.id.toolbar); in NavigationViewManager()
74 mToolbar.setNavigationOnClickListener( in NavigationViewManager()
83 mDefaultActionBarBackground = mToolbar.getBackground(); in NavigationViewManager()
86 final Resources resources = mToolbar.getResources(); in NavigationViewManager()
128 mToolbar.setTitle(null); in update()
135 mToolbar.setNavigationIcon(getActionBarIcon()); in update()
136 mToolbar.setNavigationContentDescription(R.string.drawer_open); in update()
140 mToolbar.setTitle(null); in update()
147 mToolbar.setTitle(title); in update()
[all …]
DDrawerController.java101 private Toolbar mToolbar; field in DrawerController.RuntimeDrawerController
109 mToolbar = drawerToolbar; in RuntimeDrawerController()
181 mToolbar.setTitle(title); in setTitle()
/packages/apps/Contacts/src/com/android/contacts/activities/
DActionBarAdapter.java96 private final Toolbar mToolbar; field in ActionBarAdapter
120 mToolbar = toolbar; in ActionBarAdapter()
121 mToolBarFrame = (FrameLayout) mToolbar.getParent(); in ActionBarAdapter()
122 mMaxToolbarContentInsetStart = mToolbar.getContentInsetStart(); in ActionBarAdapter()
143 final LayoutInflater inflater = (LayoutInflater) mToolbar.getContext().getSystemService( in setupSearchAndSelectionViews()
147 mSearchContainer = inflater.inflate(R.layout.search_bar_expanded, mToolbar, in setupSearchAndSelectionViews()
150 mToolbar.addView(mSearchContainer); in setupSearchAndSelectionViews()
179 mSelectionContainer = inflater.inflate(R.layout.selection_bar, mToolbar, in setupSearchAndSelectionViews()
332 mToolbar.setContentInsetsRelative(0, mToolbar.getContentInsetEnd()); in updateDisplayOptionsInner()
336 mToolbar.setContentInsetsRelative(mMaxToolbarContentInsetStart, in updateDisplayOptionsInner()
[all …]
DContactEditorActivity.java258 private Toolbar mToolbar; field in ContactEditorActivity
347 mToolbar = (Toolbar) findViewById(R.id.toolbar); in onCreate()
348 setSupportActionBar(mToolbar); in onCreate()
354 mToolbar.setTitle(mActionBarTitleResId); in onCreate()
367 mToolbar.setTitle(mActionBarTitleResId); in onCreate()
461 return mToolbar; in getToolbar()
DContactSelectionActivity.java92 private Toolbar mToolbar; field in ContactSelectionActivity
145 mToolbar = getView(R.id.toolbar); in prepareSearchViewAndActionBar()
146 setSupportActionBar(mToolbar); in prepareSearchViewAndActionBar()
151 mActionBarAdapter = new ActionBarAdapter(this, this, getSupportActionBar(), mToolbar, in prepareSearchViewAndActionBar()
DPeopleActivity.java187 private Toolbar mToolbar; field in PeopleActivity
369 mToolbar = getView(R.id.toolbar); in onCreate()
370 setSupportActionBar(mToolbar); in onCreate()
378 mToggle = new ContactsActionBarDrawerToggle(this, mDrawerLayout, mToolbar, in onCreate()
1095 return mToolbar; in getToolbar()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DToolbarFragment.java58 protected Toolbar mToolbar; field in ToolbarFragment
66 mToolbar = rootView.findViewById(R.id.toolbar); in setUpToolbar()
68 mTitleView = mToolbar.findViewById(R.id.custom_toolbar_title); in setUpToolbar()
88 mToolbar.inflateMenu(menuResId); in setUpToolbar()
89 mToolbar.setOnMenuItemClickListener(this); in setUpToolbar()
102 if (mToolbar == null) { in setTitle()
106 mToolbar.setTitle(null); in setTitle()
109 mToolbar.setTitle(title); in setTitle()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/
DAssociationActivity.java65 private Toolbar mToolbar; field in AssociationActivity
72 mToolbar = findViewById(R.id.toolbar); in onCreate()
77 mToolbar.showProgressBar(); in onCreate()
85 mToolbar.hideProgressBar(); in onBackPressed()
170 mToolbar.showProgressBar(); in showTurnOnBluetoothFragment()
177 mToolbar.showProgressBar(); in showAddAssociatedDeviceFragment()
184 mToolbar.hideProgressBar(); in showConfirmPairingCodeFragment()
189 mToolbar.showProgressBar(); in showAssociationErrorFragment()
197 mToolbar.hideProgressBar(); in showAssociatedDeviceDetailFragment()
213 mToolbar.setMenuItems(Arrays.asList(cancelButton, confirmButton)); in showConfirmButtons()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/search/
DContactResultsFragment.java66 private Toolbar mToolbar; field in ContactResultsFragment
104 mToolbar.clearFocus(); in onViewCreated()
120 mToolbar = toolbar; in setupToolbar()
121 mToolbar.registerOnSearchListener(this); in setupToolbar()
122 mToolbar.setSearchIcon(R.drawable.ic_app_icon); in setupToolbar()
129 mToolbar.unregisterOnSearchListener(this); in onStop()
134 if (mToolbar != null) { in setSearchQuery()
135 mToolbar.setSearchQuery(query); in setSearchQuery()
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioActivity.java60 private Toolbar mToolbar; field in RadioActivity
85 mToolbar = requireViewById(R.id.toolbar); in onCreate()
86 mToolbar.registerOnTabSelectedListener(t -> in onCreate()
87 viewPager.setCurrentItem(mToolbar.getTabLayout().getTabPosition(t))); in onCreate()
165 mToolbar.selectTab(position); in setupTabsWithViewPager()
187 mToolbar.setMenuItems(Arrays.asList(bandSelectorMenuItem, appSelectorMenuItem)); in updateMenuItems()
191 mToolbar.clearAllTabs(); in updateTabs()
195 mToolbar.addTab(new TabLayout.Tab(icon, title)); in updateTabs()
DDisplayController.java53 private final View mToolbar; field in DisplayController
88 mToolbar = activity.findViewById(R.id.toolbar); in DisplayController()
147 if (mToolbar != null) { in setState()
148 mToolbar.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setState()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java108 private View mToolbar; field in MultiShrinkScroller
296 mToolbar = findViewById(R.id.toolbar_parent); in initialize()
774 = mToolbar.getLayoutParams(); in setToolbarHeight()
776 mToolbar.setLayoutParams(toolbarLayoutParams); in setToolbarHeight()
784 return mToolbar.getLayoutParams().height; in getToolbarHeight()
793 = mToolbar.getLayoutParams(); in setHeaderHeight()
795 mToolbar.setLayoutParams(toolbarLayoutParams); in setHeaderHeight()
802 return mToolbar.getLayoutParams().height; in getHeaderHeight()
989 = mToolbar.getLayoutParams(); in scrollUp()
995 mToolbar.setLayoutParams(toolbarLayoutParams); in scrollUp()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java116 private Toolbar mToolbar; field in ContactPickerFragment
183 mToolbar = (Toolbar) view.findViewById(R.id.toolbar); in onCreateView()
184 mToolbar.setNavigationIcon(R.drawable.ic_arrow_back_light); in onCreateView()
185 mToolbar.setNavigationContentDescription(R.string.back); in onCreateView()
186 mToolbar.setNavigationOnClickListener(new OnClickListener() { in onCreateView()
193 mToolbar.inflateMenu(R.menu.compose_menu); in onCreateView()
194 mToolbar.setOnMenuItemClickListener(this); in onCreateView()
344 final Menu menu = mToolbar.getMenu(); in updateVisualsForContactPickingMode()
364 mPendingExplodeView = mToolbar; in updateVisualsForContactPickingMode()
417 final Menu menu = mToolbar.getMenu(); in updateTextInputButtonsVisibility()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsFragmentTest.java61 private Toolbar mToolbar; field in UserDetailsFragmentTest
86 assertThat(mToolbar.getTitle()).isEqualTo( in testCarUserManagerHelperUpdateListener_showsCorrectText()
97 assertThat(mToolbar.getTitle()).isEqualTo( in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
104 assertThat(mToolbar.getTitle()).isEqualTo( in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
113 mToolbar = ((Toolbar) mUserDetailsFragment.requireActivity().findViewById(R.id.toolbar)); in createUserDetailsFragment()
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DCustomThemeStepFragment.java65 mToolbar.getMenu().getItem(0).setIconTintList( in onCreateView()
70 mToolbar.setNavigationIcon(closeIcon); in onCreateView()
72 mToolbar.setNavigationContentDescription(R.string.cancel); in onCreateView()
73 mToolbar.setNavigationOnClickListener(v -> mHost.cancel()); in onCreateView()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DInspectorActivity.java40 private Toolbar mToolbar; field in InspectorActivity
55 mToolbar = findViewById(R.id.toolbar); in onCreate()
56 setSupportActionBar(mToolbar); in onCreate()
/packages/apps/Contacts/src/com/android/contacts/
DSimImportFragment.java86 private Toolbar mToolbar; field in SimImportFragment
161 mToolbar = (Toolbar) view.findViewById(R.id.toolbar); in onCreateView()
162 mToolbar.setNavigationOnClickListener(new View.OnClickListener() { in onCreateView()
216 mToolbar.setTitle(R.string.sim_import_title_none_selected); in updateToolbarWithCurrentSelections()
218 mToolbar.setTitle(String.valueOf(importableCount)); in updateToolbarWithCurrentSelections()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/ui/
DTrustedDeviceActivity.java107 private Toolbar mToolbar; field in TrustedDeviceActivity
117 mToolbar = findViewById(R.id.toolbar); in onCreate()
118 mToolbar.setTitle(R.string.trusted_device_feature_title); in onCreate()
119 mToolbar.showProgressBar(); in onCreate()
378 mToolbar.hideProgressBar(); in showTrustedDeviceDetailFragment()