Home
last modified time | relevance | path

Searched refs:Toolbar (Results 1 – 25 of 72) sorted by relevance

123

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DToolbarControllerImpl.java101 private final Set<Toolbar.OnSearchListener> mDeprecatedSearchListeners = new HashSet<>();
102 private final Set<Toolbar.OnSearchCompletedListener> mDeprecatedSearchCompletedListeners =
105 private final Set<Toolbar.OnBackListener> mDeprecatedBackListeners = new HashSet<>();
107 private final Set<Toolbar.OnTabSelectedListener> mOnTabSelectedListeners = new HashSet<>();
114 private Toolbar.State mState = Toolbar.State.HOME;
326 for (Toolbar.OnTabSelectedListener listener : mOnTabSelectedListeners) { in addTab()
497 public void setNavButtonMode(Toolbar.NavButtonMode mode) { in setNavButtonMode()
529 public Toolbar.NavButtonMode getNavButtonMode() { in getNavButtonMode()
531 && mState != Toolbar.State.HOME) { in getNavButtonMode()
532 return Toolbar.NavButtonMode.BACK; in getNavButtonMode()
[all …]
DToolbarController.java230 void setNavButtonMode(Toolbar.NavButtonMode style); in setNavButtonMode()
244 Toolbar.NavButtonMode getNavButtonMode(); in getNavButtonMode()
325 void setState(Toolbar.State state); in setState()
333 Toolbar.State getState(); in getState()
349 void registerOnTabSelectedListener(Toolbar.OnTabSelectedListener listener); in registerOnTabSelectedListener()
357 boolean unregisterOnTabSelectedListener(Toolbar.OnTabSelectedListener listener); in unregisterOnTabSelectedListener()
360 void registerOnSearchListener(Toolbar.OnSearchListener listener); in registerOnSearchListener()
363 boolean unregisterOnSearchListener(Toolbar.OnSearchListener listener); in unregisterOnSearchListener()
440 void registerOnSearchCompletedListener(Toolbar.OnSearchCompletedListener listener); in registerOnSearchCompletedListener()
449 boolean unregisterOnSearchCompletedListener(Toolbar.OnSearchCompletedListener listener); in unregisterOnSearchCompletedListener()
[all …]
DSearchView.java61 private Set<Toolbar.OnSearchListener> mDeprecatedSearchListeners = Collections.emptySet();
62 private Set<Toolbar.OnSearchCompletedListener> mDeprecatedSearchCompletedListeners =
169 for (Toolbar.OnSearchCompletedListener listener : mDeprecatedSearchCompletedListeners) { in notifyQuerySubmit()
203 Set<Toolbar.OnSearchListener> deprecatedListeners, in setSearchListeners()
214 Set<Toolbar.OnSearchCompletedListener> deprecatedListeners, in setSearchCompletedListeners()
268 for (Toolbar.OnSearchListener listener : mDeprecatedSearchListeners) { in onSearch()
DToolbarControllerAdapterV1.java40 import com.android.car.ui.toolbar.Toolbar.OnBackListener;
41 import com.android.car.ui.toolbar.Toolbar.OnSearchCompletedListener;
42 import com.android.car.ui.toolbar.Toolbar.OnSearchListener;
43 import com.android.car.ui.toolbar.Toolbar.OnTabSelectedListener;
44 import com.android.car.ui.toolbar.Toolbar.State;
209 for (Toolbar.OnTabSelectedListener listener : mOnTabSelectedListeners) { in addTab()
307 public void setNavButtonMode(Toolbar.NavButtonMode style) { in setNavButtonMode()
331 public Toolbar.NavButtonMode getNavButtonMode() { in getNavButtonMode()
335 return Toolbar.NavButtonMode.BACK; in getNavButtonMode()
337 return Toolbar.NavButtonMode.DOWN; in getNavButtonMode()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
DEmptyToolbarController.java167 public void setNavButtonMode(Toolbar.NavButtonMode style) { in setNavButtonMode()
177 public Toolbar.NavButtonMode getNavButtonMode() { in getNavButtonMode()
235 public void setState(Toolbar.State state) { in setState()
240 public Toolbar.State getState() { in getState()
250 public void registerOnTabSelectedListener(Toolbar.OnTabSelectedListener listener) { in registerOnTabSelectedListener()
255 public boolean unregisterOnTabSelectedListener(Toolbar.OnTabSelectedListener listener) { in unregisterOnTabSelectedListener()
260 public void registerOnSearchListener(Toolbar.OnSearchListener listener) { in registerOnSearchListener()
265 public boolean unregisterOnSearchListener(Toolbar.OnSearchListener listener) { in unregisterOnSearchListener()
315 public void registerOnSearchCompletedListener(Toolbar.OnSearchCompletedListener listener) { in registerOnSearchCompletedListener()
320 public boolean unregisterOnSearchCompletedListener(Toolbar.OnSearchCompletedListener listener) { in unregisterOnSearchCompletedListener()
[all …]
DToolbarTest.java137 toolbar.setState(Toolbar.State.SUBPAGE); in setters_and_getters_test()
138 toolbar.setNavButtonMode(Toolbar.NavButtonMode.CLOSE); in setters_and_getters_test()
143 assertThat(toolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.SUBPAGE); in setters_and_getters_test()
145 Toolbar.NavButtonMode.CLOSE); in setters_and_getters_test()
174 toolbar.setState(Toolbar.State.SUBPAGE); in pressBack_withoutListener_callsActivityOnBack()
187 toolbar.setState(Toolbar.State.SUBPAGE); in pressBack_withListenerThatReturnsFalse_callsActivityOnBack()
201 toolbar.setState(Toolbar.State.SUBPAGE); in pressBack_withListenerThatReturnsTrue_doesntCallActivityOnBack()
215 toolbar.setState(Toolbar.State.SUBPAGE); in pressBack_withUnregisteredListener_doesntCallActivityOnBack()
216 Toolbar.OnBackListener listener = () -> true; in pressBack_withUnregisteredListener_doesntCallActivityOnBack()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchFeatureProviderImplTest.java30 import android.widget.Toolbar;
74 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
89 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity()
101 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_deviceNotProvisioned_shouldNotCreateSearchBar()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerBaseFragment.java35 import com.android.car.ui.toolbar.Toolbar;
85 toolbar.setLogo(getToolbarState() == Toolbar.State.HOME in setupToolbar()
102 protected Toolbar.State getToolbarState() { in getToolbarState()
103 return Toolbar.State.HOME; in getToolbarState()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDrawerController.java27 import androidx.appcompat.widget.Toolbar;
62 Toolbar toolbar = (Toolbar) activity.findViewById(R.id.roots_toolbar); in create()
105 private Toolbar mToolbar;
112 Toolbar drawerToolbar, in RuntimeDrawerController()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/toolbar/
DToolbarActivity.java46 import com.android.car.ui.toolbar.Toolbar;
47 import com.android.car.ui.toolbar.Toolbar.State;
72 if (toolbar.getState() == Toolbar.State.SEARCH in onCreate()
73 || toolbar.getState() == Toolbar.State.EDIT) { in onCreate()
74 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
111 Toolbar.NavButtonMode mode = toolbar.getNavButtonMode(); in onCreate()
112 if (mode == Toolbar.NavButtonMode.DISABLED) { in onCreate()
114 } else if (mode == Toolbar.NavButtonMode.BACK) { in onCreate()
116 } else if (mode == Toolbar.NavButtonMode.CLOSE) { in onCreate()
DNoCarUiToolbarActivity.java22 import androidx.appcompat.widget.Toolbar;
35 Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar); in onCreate()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/search/
DContactResultsFragment.java34 import com.android.car.ui.toolbar.Toolbar;
47 Toolbar.OnSearchListener {
174 protected Toolbar.State getToolbarState() { in getToolbarState()
175 return Toolbar.State.SEARCH; in getToolbarState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DSinglePaneSettingsFragmentTest.java27 import com.android.car.ui.toolbar.Toolbar;
59 Toolbar.NavButtonMode.DISABLED); in onActivityCreated_hasAppIconIfRoot()
67 Toolbar.NavButtonMode.BACK); in onActivityCreated_hasBackArrowIconIfNotRoot()
DDualPaneBaseCarSettingsActivityTest.java34 import com.android.car.ui.toolbar.Toolbar;
143 Toolbar.NavButtonMode.DISABLED); in onBackStackChanged_toolbarUpdated()
151 assertThat(toolbar.getNavButtonMode()).isEqualTo(Toolbar.NavButtonMode.BACK); in onBackStackChanged_toolbarUpdated()
157 Toolbar.NavButtonMode.DISABLED); in onBackStackChanged_toolbarUpdated()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java48 import androidx.appcompat.widget.Toolbar;
75 isAssignableFrom(Toolbar.class),
313 return new BoundedMatcher<Object, Toolbar>(Toolbar.class) { in withToolbarTitle()
315 public boolean matchesSafely(Toolbar toolbar) { in withToolbarTitle()
/packages/services/Car/packages/CarDeveloperOptions/src/com/android/car/developeroptions/
DCarDevelopmentSettingsDashboardFragment.java28 import com.android.car.ui.toolbar.Toolbar;
54 mToolbar.setNavButtonMode(Toolbar.NavButtonMode.BACK); in onActivityCreated()
55 mToolbar.setState(Toolbar.State.SUBPAGE); in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/core/
DSettingsBaseActivity.java31 import android.widget.Toolbar;
66 private Toolbar mToolbar;
120 final Toolbar toolbar = findViewById(R.id.action_bar); in onCreate()
133 public void setActionBar(@androidx.annotation.Nullable Toolbar toolbar) { in setActionBar()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DAppbarFragment.java29 import android.widget.Toolbar;
30 import android.widget.Toolbar.OnMenuItemClickListener;
89 protected Toolbar mToolbar;
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorActivity.java27 import androidx.appcompat.widget.Toolbar;
258 private Toolbar mToolbar;
347 mToolbar = (Toolbar) findViewById(R.id.toolbar); in onCreate()
460 public Toolbar getToolbar() { in getToolbar()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DCarHTMLViewerActivity.java22 import com.android.car.ui.toolbar.Toolbar;
37 mToolbar.setState(Toolbar.State.SUBPAGE); in setContentView()
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/
DCarSearchFragment.java46 import com.android.car.ui.toolbar.Toolbar;
135 mToolbar.setNavButtonMode(Toolbar.NavButtonMode.BACK); in onActivityCreated()
136 mToolbar.setState(Toolbar.State.SUBPAGE); in onActivityCreated()
137 mToolbar.setState(Toolbar.State.SEARCH); in onActivityCreated()
/packages/apps/Car/Media/src/com/android/car/media/widgets/
DAppBarController.java16 import com.android.car.ui.toolbar.Toolbar;
238 public void setState(Toolbar.State state) { in setState()
250 public void setNavButtonMode(Toolbar.NavButtonMode mode) { in setNavButtonMode()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsFragment.java40 import com.android.car.ui.toolbar.Toolbar;
172 protected Toolbar.State getToolbarState() { in getToolbarState()
173 return Toolbar.State.SUBPAGE; in getToolbarState()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaActivityController.java53 import com.android.car.ui.toolbar.Toolbar;
650 Toolbar.State unstackedState = isSearching ? Toolbar.State.SEARCH : Toolbar.State.HOME; in updateAppBar()
652 mAppBarController.setState(isStacked ? Toolbar.State.SUBPAGE : unstackedState); in updateAppBar()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivity.java30 import androidx.appcompat.widget.Toolbar;
139 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); in initializeUI()

123