/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/ |
D | ToolbarTabTest.java | 86 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()
|
D | ToolbarTabDeprecatedTest.java | 66 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()
|
D | EmptyToolbarController.java | 66 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/ |
D | ProfileSelectFragment.java | 46 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/ |
D | TabLayout.java | 64 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()
|
D | ToolbarControllerImpl.java | 127 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/ |
D | TelecomActivity.java | 170 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/ |
D | ToolbarControllerAdapterV1.java | 165 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 …]
|
D | ToolbarControllerImpl.java | 278 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()
|
D | TabLayout.java | 85 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()
|
D | ToolbarController.java | 87 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/ |
D | ProfileTabs.java | 30 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/ |
D | PreviewFragment.java | 57 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()
|
D | TopLevelPickerActivity.java | 87 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/ |
D | ViewInfoActivity.java | 30 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/ |
D | ViewInfoActivityTest.java | 131 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/ |
D | ProfileTabsTest.java | 37 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/ |
D | ToolbarControllerOEMV1.java | 49 void setTabs(List<? extends TabOEMV1> tabs, int selectedTab); in setTabs() argument
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | SeparatedTabLayout.java | 17 import com.google.android.material.tabs.TabLayout;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | DeskClock.kt | 58 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/ |
D | CarAudioInputTestFragment.java | 37 import com.google.android.material.tabs.TabLayout;
|
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/ |
D | ConfigurationDialogFragment.java | 36 import com.google.android.material.tabs.TabLayout;
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | VolumeTestFragment.java | 37 import com.google.android.material.tabs.TabLayout;
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/ |
D | PumpActivity.java | 54 import com.google.android.material.tabs.TabLayout;
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | FloatingHeaderView.java | 128 mTabLayout = findViewById(R.id.tabs); in onFinishInflate()
|