Home
last modified time | relevance | path

Searched refs:tabs (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
DToolbarTabTest.java86 List<Tab> tabs = Arrays.asList( in test_setTabs_areShown() local
95 runWithToolbar(toolbar -> toolbar.setTabs(tabs)); in test_setTabs_areShown()
106 verify(tabSelectedListener, times(2)).accept(tabs.get(0)); in test_setTabs_areShown()
107 verify(tabSelectedListener, times(2)).accept(tabs.get(1)); in test_setTabs_areShown()
114 List<Tab> tabs = Arrays.asList( in test_selectTab_works() local
124 toolbar.setTabs(tabs); in test_selectTab_works()
128 verify(tabSelectedListener, times(1)).accept(tabs.get(1)); in test_selectTab_works()
DToolbarTabDeprecatedTest.java66 List<TabLayout.Tab> tabs = Arrays.asList( in test_addTab_works() local
70 toolbar.addTab(tabs.get(0)); in test_addTab_works()
71 toolbar.addTab(tabs.get(1)); in test_addTab_works()
84 verify(tabSelectedListener, times(2)).onTabSelected(tabs.get(0)); in test_addTab_works()
85 verify(tabSelectedListener, times(2)).onTabSelected(tabs.get(1)); in test_addTab_works()
DEmptyToolbarController.java66 public void setTabs(@Nullable List<Tab> tabs) { in setTabs() argument
71 public void setTabs(@Nullable List<Tab> tabs, in setTabs() argument
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java46 import com.google.android.material.tabs.TabLayout;
115 final TabLayout tabs = tabContainer.findViewById(R.id.tabs); in onCreateView() local
116 tabs.setupWithViewPager(viewPager); in onCreateView()
117 setupTabTextColor(tabs); in onCreateView()
119 final TabLayout.Tab tab = tabs.getTabAt(selectedTab); in onCreateView()
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DTabLayout.java64 public void setTabs(@NonNull List<? extends TabOEMV1> tabs, int selectedTab) { in setTabs() argument
68 mTabs = tabs; in setTabs()
70 if (tabs.size() > 0) { in setTabs()
71 mSelectedTab = tabs.get(selectedTab); in setTabs()
72 for (TabOEMV1 tab : tabs) { in setTabs()
DToolbarControllerImpl.java127 public void setTabs(List<? extends TabOEMV1> tabs, int selectedTab) { in setTabs() argument
128 if (tabs == null) { in setTabs()
129 tabs = Collections.emptyList(); in setTabs()
133 mTabContainer.setTabs(tabs, selectedTab); in setTabs()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
DTelecomActivity.java170 List<TelecomPageTab> tabs = mTabFactory.recreateTabs(getBaseContext(), false); in setupTabLayout() local
171 mCarUiToolbar.setTabs(tabs.stream() in setupTabLayout()
175 for (int i = 0; i < tabs.size(); i++) { in setupTabLayout()
176 if (tabs.get(i).wasFragmentRestored()) { in setupTabLayout()
186 TelecomPageTab startTab = tabs.get(startTabIndex); in setupTabLayout()
195 List<TelecomPageTab> tabs = mTabFactory.recreateTabs(getBaseContext(), true); in refreshUi() local
196 mCarUiToolbar.setTabs(tabs.stream() in refreshUi()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DToolbarControllerAdapterV1.java165 public void setTabs(@Nullable List<Tab> tabs) { in setTabs() argument
166 setTabs(tabs, 0); in setTabs()
170 public void setTabs(@Nullable List<Tab> tabs, int selectedTab) { in setTabs() argument
172 if (tabs == null || tabs.isEmpty()) { in setTabs()
174 } else if (selectedTab < 0 || selectedTab >= tabs.size()) { in setTabs()
178 .setTabs(convertList(tabs, TabAdapterV1::new)) in setTabs()
866 @Nullable List<TabAdapterV1> tabs) { in setTabs()
867 if (tabs == null) { in setTabs()
868 tabs = Collections.emptyList(); in setTabs()
870 if (!Objects.equals(tabs, mTabs)) { in setTabs()
[all …]
DToolbarControllerImpl.java278 public void setTabs(@Nullable List<Tab> tabs) { in setTabs() argument
279 setTabs(tabs, 0); in setTabs()
283 public void setTabs(@Nullable List<Tab> tabs, int selectedTab) { in setTabs() argument
285 setTabsInternal(tabs, selectedTab); in setTabs()
293 private void setTabsInternal(@Nullable List<Tab> tabs, int selectedTab) { in setTabsInternal() argument
294 if (tabs == null || tabs.isEmpty()) { in setTabsInternal()
296 } else if (selectedTab < 0 || selectedTab >= tabs.size()) { in setTabsInternal()
299 mTabLayout.setTabs(tabs, selectedTab); in setTabsInternal()
DTabLayout.java85 public void setTabs(List<com.android.car.ui.toolbar.Tab> tabs, int selectedTab) { in setTabs() argument
86 if (tabs == null) { in setTabs()
89 mTabs = Collections.unmodifiableList(new ArrayList<>(tabs)); in setTabs()
DToolbarController.java87 void setTabs(@Nullable List<Tab> tabs); in setTabs() argument
97 void setTabs(@Nullable List<Tab> tabs, int selectedTab); in setTabs() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java30 import com.google.android.material.tabs.TabLayout;
57 mTabs = tabLayoutContainer.findViewById(R.id.tabs); in ProfileTabs()
157 ViewGroup tabs = (ViewGroup) view; in setEnabled() local
158 for (int i = 0; i < tabs.getChildCount(); i++) { in setEnabled()
159 View tabView = tabs.getChildAt(i); in setEnabled()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DPreviewFragment.java57 import com.google.android.material.tabs.TabLayout;
330 protected void setUpTabs(TabLayout tabs) { in setUpTabs() argument
331 tabs.addTab(tabs.newTab().setText(R.string.home_screen_message)); in setUpTabs()
332 tabs.addTab(tabs.newTab().setText(R.string.lock_screen_message)); in setUpTabs()
333 tabs.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() { in setUpTabs()
351 tabs.getTabAt(tabPosition).select(); in setUpTabs()
DTopLevelPickerActivity.java87 import com.google.android.material.tabs.TabLayout;
88 import com.google.android.material.tabs.TabLayout.OnTabSelectedListener;
89 import com.google.android.material.tabs.TabLayout.Tab;
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewInfoActivity.java30 import com.google.android.material.tabs.TabLayout;
31 import com.google.android.material.tabs.TabLayout.TabLayoutOnPageChangeListener;
32 import com.google.android.material.tabs.TabLayout.ViewPagerOnTabSelectedListener;
142 mViewFlipper.setDisplayedChild(mViewFlipper.indexOfChild(findViewById(R.id.tabs))); in maybeHideTabs()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/
DViewInfoActivityTest.java131 int tabsIndex = viewFlipper.indexOfChild(activity.findViewById(R.id.tabs)); in testMedicalInfoSet()
152 int tabsIndex = viewFlipper.indexOfChild(activity.findViewById(R.id.tabs)); in testEmergencyContactsSet()
180 int tabsIndex = viewFlipper.indexOfChild(activity.findViewById(R.id.tabs)); in testMedicalInfoAndEmergencyContactsSet()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsTest.java37 import com.google.android.material.tabs.TabLayout;
73 mTabLayout = view.findViewById(R.id.tabs); in setUp()
/packages/apps/Car/libs/car-ui-lib/oem-apis/src/main/java/com/android/car/ui/sharedlibrary/oemapis/toolbar/
DToolbarControllerOEMV1.java49 void setTabs(List<? extends TabOEMV1> tabs, int selectedTab); in setTabs() argument
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DSeparatedTabLayout.java17 import com.google.android.material.tabs.TabLayout;
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.kt58 import com.google.android.material.tabs.TabLayout
158 mTabLayout = findViewById(R.id.tabs) as TabLayout in onCreate()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioInputTestFragment.java37 import com.google.android.material.tabs.TabLayout;
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DConfigurationDialogFragment.java36 import com.google.android.material.tabs.TabLayout;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java37 import com.google.android.material.tabs.TabLayout;
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPumpActivity.java54 import com.google.android.material.tabs.TabLayout;
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java128 mTabLayout = findViewById(R.id.tabs); in onFinishInflate()

12