Home
last modified time | relevance | path

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

1234

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DToolbarControllerImpl.java80 private final Set<Toolbar.OnSearchListener> mOnSearchListeners = new HashSet<>();
81 private final Set<Toolbar.OnSearchCompletedListener> mOnSearchCompletedListeners =
84 private final Set<Toolbar.OnBackListener> mOnBackListeners = new HashSet<>();
85 private final Set<Toolbar.OnTabSelectedListener> mOnTabSelectedListeners = new HashSet<>();
86 private final Set<Toolbar.OnHeightChangedListener> mOnHeightChangedListeners = new HashSet<>();
93 private Toolbar.State mState = Toolbar.State.HOME;
94 private Toolbar.NavButtonMode mNavButtonMode = Toolbar.NavButtonMode.BACK;
159 for (Toolbar.OnTabSelectedListener listener : mOnTabSelectedListeners) { in ToolbarControllerImpl()
168 for (Toolbar.OnHeightChangedListener listener : mOnHeightChangedListeners) { in ToolbarControllerImpl()
343 public void setNavButtonMode(Toolbar.NavButtonMode style) { in setNavButtonMode()
[all …]
DToolbarController.java135 void setNavButtonMode(Toolbar.NavButtonMode style); in setNavButtonMode()
138 Toolbar.NavButtonMode getNavButtonMode(); in getNavButtonMode()
213 void setState(Toolbar.State state); in setState()
216 Toolbar.State getState(); in getState()
225 void registerToolbarHeightChangeListener(Toolbar.OnHeightChangedListener listener); in registerToolbarHeightChangeListener()
229 boolean unregisterToolbarHeightChangeListener(Toolbar.OnHeightChangedListener listener); in unregisterToolbarHeightChangeListener()
232 void registerOnTabSelectedListener(Toolbar.OnTabSelectedListener listener); in registerOnTabSelectedListener()
235 boolean unregisterOnTabSelectedListener(Toolbar.OnTabSelectedListener listener); in unregisterOnTabSelectedListener()
238 void registerOnSearchListener(Toolbar.OnSearchListener listener); in registerOnSearchListener()
241 boolean unregisterOnSearchListener(Toolbar.OnSearchListener listener); in unregisterOnSearchListener()
[all …]
DSearchView.java52 private Set<Toolbar.OnSearchListener> mSearchListeners = Collections.emptySet();
53 private Set<Toolbar.OnSearchCompletedListener> mSearchCompletedListeners =
120 for (Toolbar.OnSearchCompletedListener listener : mSearchCompletedListeners) { in SearchView()
147 public void setSearchListeners(Set<Toolbar.OnSearchListener> listeners) { in setSearchListeners()
155 public void setSearchCompletedListeners(Set<Toolbar.OnSearchCompletedListener> listeners) { in setSearchCompletedListeners()
229 for (Toolbar.OnSearchListener listener : mSearchListeners) { in onSearch()
DToolbar.java47 public class Toolbar extends FrameLayout implements ToolbarController { class
125 public Toolbar(Context context) { in Toolbar() method in Toolbar
129 public Toolbar(Context context, AttributeSet attrs) { in Toolbar() method in Toolbar
133 public Toolbar(Context context, AttributeSet attrs, int defStyleAttr) { in Toolbar() method in Toolbar
137 public Toolbar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in Toolbar() method in Toolbar
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/toolbar/
DToolbarTest.java48 private Toolbar mToolbar;
54 mToolbar = new Toolbar(mContext); in setUp()
61 assertThat(mToolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.HOME); in getters_nochanges_shouldReturnDefaults()
63 Toolbar.NavButtonMode.BACK); 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()
79 mToolbar.setState(Toolbar.State.SUBPAGE); in setters_and_getters_test()
80 mToolbar.setNavButtonMode(Toolbar.NavButtonMode.CLOSE); in setters_and_getters_test()
86 assertThat(mToolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.SUBPAGE); in setters_and_getters_test()
88 Toolbar.NavButtonMode.CLOSE); in setters_and_getters_test()
[all …]
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/toolbar/
DToolbarActivity.java42 import com.android.car.ui.toolbar.Toolbar;
62 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
66 if (toolbar.getState() == Toolbar.State.SEARCH in onCreate()
67 || toolbar.getState() == Toolbar.State.EDIT) { in onCreate()
68 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
76 .setOnClickListener(i -> toolbar.setState(Toolbar.State.SEARCH)) in onCreate()
227 Toolbar.NavButtonMode mode = toolbar.getNavButtonMode(); in onCreate()
228 if (mode == Toolbar.NavButtonMode.BACK) { in onCreate()
229 toolbar.setNavButtonMode(Toolbar.NavButtonMode.CLOSE); in onCreate()
230 } else if (mode == Toolbar.NavButtonMode.CLOSE) { in onCreate()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerBaseFragment.java34 import com.android.car.ui.toolbar.Toolbar;
64 Toolbar toolbar = getActivity().findViewById(R.id.car_ui_toolbar); in onViewCreated()
80 protected void setupToolbar(@NonNull Toolbar toolbar) { in setupToolbar()
88 toolbar.setLogo(getToolbarState() == Toolbar.State.HOME ? getActivity().getDrawable( in setupToolbar()
108 protected Toolbar.State getToolbarState() { in getToolbarState()
109 return Toolbar.State.HOME; in getToolbarState()
122 protected final void setToolbarHeight(Toolbar toolbar) { in setToolbarHeight()
125 int toolbarHeight = toolbar.isTabsInSecondRow() && getToolbarState() == Toolbar.State.HOME in setToolbarHeight()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DBaseFragment.java34 import com.android.car.ui.toolbar.Toolbar;
96 protected Toolbar.State getToolbarState() { in getToolbarState()
97 return Toolbar.State.SUBPAGE; in getToolbarState()
100 protected Toolbar.NavButtonMode getToolbarNavButtonStyle() { in getToolbarNavButtonStyle()
101 return Toolbar.NavButtonMode.BACK; in getToolbarNavButtonStyle()
104 protected final Toolbar getToolbar() { in getToolbar()
129 Toolbar toolbar = getToolbar(); in onActivityCreated()
DSettingsFragment.java45 import com.android.car.ui.toolbar.Toolbar;
88 protected Toolbar getToolbar() { in getToolbar()
186 Toolbar toolbar = requireActivity().findViewById(R.id.toolbar); in onActivityCreated()
199 toolbar.setNavButtonMode(Toolbar.NavButtonMode.BACK); in onActivityCreated()
207 toolbar.setState(Toolbar.State.HOME); in onActivityCreated()
213 toolbar.setState(Toolbar.State.SUBPAGE); in onActivityCreated()
/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/search/
DContactResultsFragment.java34 import com.android.car.ui.toolbar.Toolbar;
41 ContactResultsAdapter.OnShowContactDetailListener, Toolbar.OnSearchListener {
66 private Toolbar mToolbar;
118 protected void setupToolbar(@NonNull Toolbar toolbar) { in setupToolbar()
155 protected Toolbar.State getToolbarState() { in getToolbarState()
156 return Toolbar.State.SEARCH; in getToolbarState()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DQuickSettingFragment.java44 import com.android.car.ui.toolbar.Toolbar;
117 protected Toolbar.NavButtonMode getToolbarNavButtonStyle() { in getToolbarNavButtonStyle()
118 return Toolbar.NavButtonMode.CLOSE; in getToolbarNavButtonStyle()
122 protected Toolbar.State getToolbarState() { in getToolbarState()
131 return Toolbar.State.HOME; in getToolbarState()
133 return Toolbar.State.SUBPAGE; in getToolbarState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountDetailsFragmentTest.java39 import com.android.car.ui.toolbar.Toolbar;
88 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in onActivityCreated_titleShouldBeSet()
97 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in cannotModifyUsers_removeAccountButtonShouldNotBeVisible()
107 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in canModifyUsers_removeAccountButtonShouldBeVisible()
117 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in onRemoveAccountButtonClicked_canModifyUsers_shouldShowConfirmRemoveAccountDialog()
DAccountSettingsFragmentTest.java32 import com.android.car.ui.toolbar.Toolbar;
75 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in cannotModifyUsers_addAccountButtonShouldNotBeVisible()
85 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in canModifyUsers_addAccountButtonShouldBeVisible()
95 Toolbar toolbar = mFragment.requireActivity().requireViewById(R.id.toolbar); in clickAddAccountButton_shouldOpenChooseAccountFragment()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DSettingsFragmentTest.java41 import com.android.car.ui.toolbar.Toolbar;
234 Toolbar toolbar = otherFragment.requireActivity().requireViewById(R.id.toolbar); in onActivityCreated_hasAppIconIfRoot()
236 assertThat(toolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.HOME); in onActivityCreated_hasAppIconIfRoot()
249 Toolbar toolbar = otherFragment2.requireActivity().requireViewById(R.id.toolbar); in onActivityCreated_hasBackArrowIconIfNotRoot()
251 assertThat(toolbar.getState()).isEquivalentAccordingToCompareTo(Toolbar.State.SUBPAGE); in onActivityCreated_hasBackArrowIconIfNotRoot()
253 Toolbar.NavButtonMode.BACK); in onActivityCreated_hasBackArrowIconIfNotRoot()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDrawerController.java26 import androidx.appcompat.widget.Toolbar;
59 Toolbar toolbar = (Toolbar) activity.findViewById(R.id.roots_toolbar); in create()
101 private Toolbar mToolbar;
107 Toolbar drawerToolbar, in RuntimeDrawerController()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsFragment.java39 import com.android.car.ui.toolbar.Toolbar;
114 Toolbar toolbar = getActivity().findViewById(R.id.car_ui_toolbar); in onContactChanged()
156 protected void setupToolbar(@NonNull Toolbar toolbar) { in setupToolbar()
178 protected Toolbar.State getToolbarState() { in getToolbarState()
179 return Toolbar.State.SUBPAGE; in getToolbarState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DEditUsernameFragmentTest.java34 import com.android.car.ui.toolbar.Toolbar;
91 MenuItem okButton = ((Toolbar) mTestActivity.requireViewById(R.id.toolbar)) in testClickingOkSavesNewUserName()
112 MenuItem cancelButton = ((Toolbar) mTestActivity.requireViewById(R.id.toolbar)) in testClickingCancelInvokesGoingBack()
134 MenuItem okButton = ((Toolbar) mTestActivity.requireViewById(R.id.toolbar)) in testEmptyUsernameCannotBeSaved()
DUserDetailsFragmentTest.java34 import com.android.car.ui.toolbar.Toolbar;
61 private Toolbar mToolbar;
113 mToolbar = ((Toolbar) mUserDetailsFragment.requireActivity().findViewById(R.id.toolbar)); in createUserDetailsFragment()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java47 import androidx.appcompat.widget.Toolbar;
74 isAssignableFrom(Toolbar.class),
303 return new BoundedMatcher<Object, Toolbar>(Toolbar.class) { in withToolbarTitle()
305 public boolean matchesSafely(Toolbar toolbar) { in withToolbarTitle()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DToolbarFragment.java25 import androidx.appcompat.widget.Toolbar;
26 import androidx.appcompat.widget.Toolbar.OnMenuItemClickListener;
58 protected Toolbar mToolbar;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerFragmentTest.java29 import com.android.car.ui.toolbar.Toolbar;
76 Toolbar toolbar = mFragment.requireActivity().findViewById(R.id.toolbar); in onStart_showsProgressBar()
91 Toolbar toolbar = mFragment.requireActivity().findViewById(R.id.toolbar); in onStop_hidesProgressBar()
DBluetoothPairingSelectionFragmentTest.java35 import com.android.car.ui.toolbar.Toolbar;
101 Toolbar toolbar = mFragment.requireActivity().findViewById(R.id.toolbar); in onStart_showsProgressBar()
126 Toolbar toolbar = mFragment.requireActivity().findViewById(R.id.toolbar); in onStop_hidesProgressBar()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileNetworkFragmentTest.java29 import com.android.car.ui.toolbar.Toolbar;
72 Toolbar toolbar = mFragment.requireActivity().findViewById(R.id.toolbar); in onMobileNetworkUpdated_startWithArgument_updateTitle()
87 Toolbar toolbar = mFragment.requireActivity().findViewById(R.id.toolbar); in onMobileNetworkUpdated_noArgumentProvided_updateTitle()
/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()

1234