Home
last modified time | relevance | path

Searched refs:toolbar (Results 1 – 25 of 138) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchFeatureProviderImplTest.java78 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent() local
80 toolbar.setNavigationContentDescription("test"); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
81 mProvider.initSearchToolbar(mActivity, toolbar, SettingsEnums.TESTING); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
83 toolbar.performClick(); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
93 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity() local
95 toolbar.setNavigationContentDescription("test"); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity()
96 mProvider.initSearchToolbar(mActivity, toolbar, SettingsEnums.TESTING); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity()
98 toolbar.performClick(); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity()
105 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_deviceNotProvisioned_shouldNotCreateSearchBar() local
107 toolbar.setNavigationContentDescription("test"); in initSearchToolbar_deviceNotProvisioned_shouldNotCreateSearchBar()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DRootTestSettingsFragment.java22 import com.android.car.ui.toolbar.NavButtonMode;
23 import com.android.car.ui.toolbar.ToolbarController;
37 ToolbarController toolbar = getToolbar(); in onActivityCreated() local
38 if (toolbar != null) { in onActivityCreated()
41 toolbar.setNavButtonMode(NavButtonMode.DISABLED); in onActivityCreated()
42 toolbar.setLogo(getContext().getResources() in onActivityCreated()
47 toolbar.setNavButtonMode(NavButtonMode.BACK); in onActivityCreated()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DBaseFragment.java35 import com.android.car.ui.toolbar.MenuItem;
36 import com.android.car.ui.toolbar.NavButtonMode;
37 import com.android.car.ui.toolbar.ToolbarController;
127 ToolbarController toolbar = getToolbar(); in onActivityCreated() local
128 if (toolbar != null) { in onActivityCreated()
138 toolbar.setTitle(getTitleId()); in onActivityCreated()
139 toolbar.setMenuItems(items); in onActivityCreated()
141 toolbar.setNavButtonMode(getToolbarNavButtonStyle()); in onActivityCreated()
/packages/services/Car/car_product/car_ui_portrait/rro/car-ui-toolbar-customizations/
DAndroid.bp31 package_name: "com.android.car.media.googlecaruiportrait.toolbar.rro",
33 category: "caruiportrait.toolbar.media",
39 package_name: "com.android.car.dialer.googlecaruiportrait.toolbar.rro",
41 category: "caruiportrait.toolbar.dialer",
47 package_name: "com.android.car.radio.googlecaruiportrait.toolbar.rro",
49 category: "caruiportrait.toolbar.radio",
55 package_name: "com.android.car.messenger.googlecaruiportrait.toolbar.rro",
57 category: "caruiportrait.toolbar.messenger",
/packages/apps/Dialer/java/com/android/dialer/main/impl/
DMainSearchController.java48 import com.android.dialer.main.impl.toolbar.MainToolbar;
49 import com.android.dialer.main.impl.toolbar.SearchBarListener;
85 private final MainToolbar toolbar; field in MainSearchController
109 MainToolbar toolbar, in MainSearchController() argument
115 this.toolbar = toolbar; in MainSearchController()
155 toolbar.slideUp(animate, fragmentContainer); in showDialpad()
156 toolbar.expand(animate, Optional.absent(), /* requestFocus */ false); in showDialpad()
219 toolbar.slideDown(animate, fragmentContainer); in hideDialpad()
220 toolbar.transferQueryFromDialpad(dialpadFragment.getQuery()); in hideDialpad()
282 if (TextUtils.isEmpty(toolbar.getQuery())) { in onSearchListTouch()
[all …]
/packages/services/Car/packages/CarDeveloperOptions/src/com/android/car/developeroptions/
DCarDevelopmentSettingsDashboardFragment.java32 import com.android.car.ui.toolbar.MenuItem;
33 import com.android.car.ui.toolbar.Toolbar;
34 import com.android.car.ui.toolbar.ToolbarController;
59 ToolbarController toolbar = getToolbar(); in onActivityCreated() local
60 if (toolbar != null) { in onActivityCreated()
62 toolbar.setTitle(getPreferenceScreen().getTitle()); in onActivityCreated()
63 toolbar.setMenuItems(items); in onActivityCreated()
64 toolbar.setNavButtonMode(Toolbar.NavButtonMode.BACK); in onActivityCreated()
65 toolbar.setState(Toolbar.State.SUBPAGE); in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/search/
DSearchFeatureProvider.java84 default void initSearchToolbar(@NonNull FragmentActivity activity, @Nullable View toolbar, in initSearchToolbar() argument
86 if (toolbar == null) { in initSearchToolbar()
93 final ViewGroup parent = (ViewGroup) toolbar.getParent(); in initSearchToolbar()
103 if (toolbar instanceof Toolbar) { in initSearchToolbar()
104 final View navView = ((Toolbar) toolbar).getNavigationView(); in initSearchToolbar()
134 toolbar.setOnClickListener(tb -> startSearchActivity(context, activity, pageId, intent)); in initSearchToolbar()
136 toolbar.setHandwritingDelegatorCallback( in initSearchToolbar()
138 toolbar.setAllowedHandwritingDelegatePackage(intent.getPackage()); in initSearchToolbar()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DSinglePaneSettingsFragmentTest.java27 import com.android.car.ui.toolbar.NavButtonMode;
28 import com.android.car.ui.toolbar.ToolbarController;
56 ToolbarController toolbar = mActivity.getToolbar(); in onActivityCreated_hasAppIconIfRoot() local
58 assertThat(toolbar.getNavButtonMode()).isEquivalentAccordingToCompareTo( in onActivityCreated_hasAppIconIfRoot()
64 ToolbarController toolbar = mActivity.getToolbar(); in onActivityCreated_hasBackArrowIconIfNotRoot() local
66 assertThat(toolbar.getNavButtonMode()).isEquivalentAccordingToCompareTo( in onActivityCreated_hasBackArrowIconIfNotRoot()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DToolbarAdapterProxyV1.java17 package com.chassis.car.ui.plugin.toolbar;
25 import com.android.car.ui.plugin.oemapis.toolbar.ImeSearchInterfaceOEMV1;
26 import com.android.car.ui.plugin.oemapis.toolbar.MenuItemOEMV1;
27 import com.android.car.ui.plugin.oemapis.toolbar.ProgressBarControllerOEMV1;
28 import com.android.car.ui.plugin.oemapis.toolbar.TabOEMV1;
29 import com.android.car.ui.plugin.oemapis.toolbar.ToolbarControllerOEMV1;
30 import com.android.car.ui.toolbar.MenuItem;
31 import com.android.car.ui.toolbar.NavButtonMode;
32 import com.android.car.ui.toolbar.SearchMode;
33 import com.android.car.ui.toolbar.Tab;
DToolbarAdapterProxyV2.java17 package com.chassis.car.ui.plugin.toolbar;
26 import com.android.car.ui.plugin.oemapis.toolbar.ImeSearchInterfaceOEMV2;
27 import com.android.car.ui.plugin.oemapis.toolbar.MenuItemOEMV1;
28 import com.android.car.ui.plugin.oemapis.toolbar.ProgressBarControllerOEMV1;
29 import com.android.car.ui.plugin.oemapis.toolbar.TabOEMV1;
30 import com.android.car.ui.plugin.oemapis.toolbar.ToolbarControllerOEMV2;
31 import com.android.car.ui.toolbar.MenuItem;
32 import com.android.car.ui.toolbar.NavButtonMode;
33 import com.android.car.ui.toolbar.SearchMode;
34 import com.android.car.ui.toolbar.Tab;
DToolbarAdapterProxyV3.java17 package com.chassis.car.ui.plugin.toolbar;
26 import com.android.car.ui.plugin.oemapis.toolbar.ImeSearchInterfaceOEMV2;
27 import com.android.car.ui.plugin.oemapis.toolbar.MenuItemOEMV1;
28 import com.android.car.ui.plugin.oemapis.toolbar.ProgressBarControllerOEMV1;
29 import com.android.car.ui.plugin.oemapis.toolbar.TabOEMV1;
30 import com.android.car.ui.plugin.oemapis.toolbar.ToolbarControllerOEMV3;
31 import com.android.car.ui.toolbar.MenuItem;
32 import com.android.car.ui.toolbar.NavButtonMode;
33 import com.android.car.ui.toolbar.SearchMode;
34 import com.android.car.ui.toolbar.Tab;
DTabLayout.java16 package com.chassis.car.ui.plugin.toolbar;
61 private List<com.android.car.ui.toolbar.Tab> mTabs = Collections.emptyList();
80 public void setTabs(List<com.android.car.ui.toolbar.Tab> tabs, int selectedTab) { in setTabs()
90 public List<com.android.car.ui.toolbar.Tab> getTabs() { in getTabs()
124 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in selectTab()
125 Consumer<com.android.car.ui.toolbar.Tab> listener = tab.getSelectedListener(); in selectTab()
146 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in presentTabView()
/packages/apps/Car/Settings/src/com/android/car/settings/home/
DHomepageFragment.java30 import com.android.car.ui.toolbar.MenuItem;
31 import com.android.car.ui.toolbar.NavButtonMode;
32 import com.android.car.ui.toolbar.ToolbarController;
76 protected void setupToolbar(@NonNull ToolbarController toolbar) { in setupToolbar() argument
77 super.setupToolbar(toolbar); in setupToolbar()
78 toolbar.setNavButtonMode(NavButtonMode.BACK); in setupToolbar()
/packages/apps/Car/Settings/src/com/android/car/settings/accessibility/
DScreenReaderSettingsFragment.java22 import com.android.car.ui.toolbar.ToolbarController;
35 protected void setupToolbar(ToolbarController toolbar) { in setupToolbar() argument
36 super.setupToolbar(toolbar); in setupToolbar()
37 toolbar.setTitle(ScreenReaderUtils.getScreenReaderName(getContext())); in setupToolbar()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerFragmentTest.java34 import com.android.car.ui.toolbar.ToolbarController;
95 ToolbarController toolbar = mActivity.getToolbar(); in onStart_showsProgressBar() local
97 assertThat(toolbar.getProgressBar().isVisible()).isTrue(); in onStart_showsProgressBar()
112 ToolbarController toolbar = mActivity.getToolbar(); in onStop_hidesProgressBar() local
113 toolbar.getProgressBar().setVisible(true); in onStop_hidesProgressBar()
120 assertThat(toolbar.getProgressBar().isVisible()).isFalse(); in onStop_hidesProgressBar()
DBluetoothPairingSelectionFragmentTest.java37 import com.android.car.ui.toolbar.ToolbarController;
104 ToolbarController toolbar = mActivity.getToolbar(); in onStart_showsProgressBar() local
106 assertThat(toolbar.getProgressBar().isVisible()).isTrue(); in onStart_showsProgressBar()
132 ToolbarController toolbar = mActivity.getToolbar(); in onStop_hidesProgressBar() local
133 toolbar.getProgressBar().setVisible(true); in onStop_hidesProgressBar()
140 assertThat(toolbar.getProgressBar().isVisible()).isFalse(); in onStop_hidesProgressBar()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivityBridgeImpl.java87 Toolbar toolbar = activity.findViewById(R.id.toolbar); in setupToolbar() local
88 toolbar.setNavigationContentDescription(R.string.navigation_button_description); in setupToolbar()
89 toolbar.setNavigationIcon(activity.getDrawable(R.drawable.ic_arrow_back_24dp)); in setupToolbar()
90 toolbar.setNavigationOnClickListener(v -> in setupToolbar()
93 toolbar.setTitle(R.string.terms); in setupToolbar()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DRingtonePickerFragment.java32 import com.android.car.ui.toolbar.MenuItem;
33 import com.android.car.ui.toolbar.ToolbarController;
72 protected void setupToolbar(@NonNull ToolbarController toolbar) { in setupToolbar() argument
73 super.setupToolbar(toolbar); in setupToolbar()
75 toolbar.setTitle(getArguments().getCharSequence(RingtoneManager.EXTRA_RINGTONE_TITLE)); in setupToolbar()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiSettingsFragment.java29 import com.android.car.ui.toolbar.ProgressBarController;
30 import com.android.car.ui.toolbar.ToolbarController;
75 protected void setupToolbar(@NonNull ToolbarController toolbar) { in setupToolbar() argument
76 super.setupToolbar(toolbar); in setupToolbar()
78 mProgressBar = toolbar.getProgressBar(); in setupToolbar()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsBaseFragment.java27 import com.android.car.ui.toolbar.ToolbarController;
52 protected void setupToolbar(@NonNull ToolbarController toolbar) { in setupToolbar() argument
53 super.setupToolbar(toolbar); in setupToolbar()
55 toolbar.setTitle(getTitleText()); in setupToolbar()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java30 import com.android.car.ui.toolbar.Toolbar;
31 import com.android.car.ui.toolbar.ToolbarController;
61 ToolbarController toolbar = CarUi.requireToolbar(this); in onCreate() local
62 toolbar.setTitle(getString(R.string.title)); in onCreate()
63 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/
DLinkViewerActivity.java21 import static com.android.car.ui.toolbar.Toolbar.State.SUBPAGE;
33 import com.android.car.ui.toolbar.ToolbarController;
56 ToolbarController toolbar = requireToolbar(this); in onCreate() local
57 toolbar.setTitle(R.string.app_name); in onCreate()
58 toolbar.setState(SUBPAGE); in onCreate()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DSignInActivity.java30 import com.android.car.ui.toolbar.Toolbar;
31 import com.android.car.ui.toolbar.ToolbarController;
56 ToolbarController toolbar = CarUi.requireToolbar(this); in onCreate() local
57 toolbar.setTitle(R.string.sign_in_title); in onCreate()
58 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/language/
DChildLocalePickerFragment.java27 import com.android.car.ui.toolbar.ToolbarController;
71 protected void setupToolbar(@NonNull ToolbarController toolbar) { in setupToolbar() argument
72 super.setupToolbar(toolbar); in setupToolbar()
74 toolbar.setTitle(mParentLocaleInfo.getFullNameNative()); in setupToolbar()
/packages/apps/Dialer/java/com/android/dialer/rtt/
DRttTranscriptActivity.java43 private DialerToolbar toolbar; field in RttTranscriptActivity
58 toolbar = findViewById(R.id.toolbar); in onCreate()
59 toolbar.setBackgroundColor(getColor(R.color.rtt_transcript_primary_color)); in onCreate()
90 toolbar.setTitle(primaryText); in handleIntent()

123456