/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/ |
D | ToolbarControllerImpl.java | 101 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 …]
|
D | ToolbarController.java | 230 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 …]
|
D | SearchView.java | 61 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()
|
D | ToolbarControllerAdapterV1.java | 40 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/ |
D | EmptyToolbarController.java | 167 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 …]
|
D | ToolbarTest.java | 137 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/ |
D | SearchFeatureProviderImplTest.java | 30 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/ |
D | DialerBaseFragment.java | 35 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/ |
D | DrawerController.java | 27 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/ |
D | ToolbarActivity.java | 46 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()
|
D | NoCarUiToolbarActivity.java | 22 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/ |
D | ContactResultsFragment.java | 34 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/ |
D | SinglePaneSettingsFragmentTest.java | 27 import com.android.car.ui.toolbar.Toolbar; 59 Toolbar.NavButtonMode.DISABLED); in onActivityCreated_hasAppIconIfRoot() 67 Toolbar.NavButtonMode.BACK); in onActivityCreated_hasBackArrowIconIfNotRoot()
|
D | DualPaneBaseCarSettingsActivityTest.java | 34 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/ |
D | UiBot.java | 48 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/ |
D | CarDevelopmentSettingsDashboardFragment.java | 28 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/ |
D | SettingsBaseActivity.java | 31 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/ |
D | AppbarFragment.java | 29 import android.widget.Toolbar; 30 import android.widget.Toolbar.OnMenuItemClickListener; 89 protected Toolbar mToolbar;
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactEditorActivity.java | 27 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/ |
D | CarHTMLViewerActivity.java | 22 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/ |
D | CarSearchFragment.java | 46 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/ |
D | AppBarController.java | 16 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/ |
D | ContactDetailsFragment.java | 40 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/ |
D | MediaActivityController.java | 53 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/ |
D | IndividualPickerActivity.java | 30 import androidx.appcompat.widget.Toolbar; 139 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); in initializeUI()
|