Home
last modified time | relevance | path

Searched refs:Tab (Results 1 – 25 of 50) sorted by relevance

12

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
DToolbarTabTest.java71 Consumer<Tab> selectedListener = tab -> {}; in test_basicTab_settersAndGetters()
72 Tab tab = Tab.builder() in test_basicTab_settersAndGetters()
85 Consumer<Tab> tabSelectedListener = mock(Consumer.class); in test_setTabs_areShown()
86 List<Tab> tabs = Arrays.asList( in test_setTabs_areShown()
87 Tab.builder() in test_setTabs_areShown()
91 Tab.builder() in test_setTabs_areShown()
113 Consumer<Tab> tabSelectedListener = mock(Consumer.class); in test_selectTab_works()
114 List<Tab> tabs = Arrays.asList( in test_selectTab_works()
115 Tab.builder() in test_selectTab_works()
119 Tab.builder() in test_selectTab_works()
[all …]
DEmptyToolbarController.java66 public void setTabs(@Nullable List<Tab> tabs) { in setTabs()
71 public void setTabs(@Nullable List<Tab> tabs, in setTabs()
77 public List<Tab> getTabs() { in getTabs()
87 public int getTabPosition(TabLayout.Tab tab) { in getTabPosition()
92 public void addTab(TabLayout.Tab tab) { in addTab()
102 public TabLayout.Tab getTab(int position) { in getTab()
DToolbarTabDeprecatedTest.java66 List<TabLayout.Tab> tabs = Arrays.asList( in test_addTab_works()
67 new TabLayout.Tab(null, "Tab 1"), in test_addTab_works()
68 new TabLayout.Tab(null, "Tab 2")); in test_addTab_works()
96 toolbar.addTab(new TabLayout.Tab(null, "Tab 1")); in test_getTabCountAndClearTabs_works()
97 toolbar.addTab(new TabLayout.Tab(null, "Tab 2")); in test_getTabCountAndClearTabs_works()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DTabModel.kt37 private val mTabScrolledToTop = BooleanArray(UiDataModel.Tab.values().size)
40 private var mSelectedTab: UiDataModel.Tab? = null
68 get() = UiDataModel.Tab.values().size
74 fun getTab(ordinal: Int): UiDataModel.Tab { in getTab()
75 return UiDataModel.Tab.values()[ordinal] in getTab()
82 fun getTabAt(position: Int): UiDataModel.Tab { in getTabAt()
95 val selectedTab: UiDataModel.Tab
106 fun setSelectedTab(tab: UiDataModel.Tab) { in setSelectedTab()
151 fun setTabScrolledToTop(tab: UiDataModel.Tab, scrolledToTop: Boolean) { in setTabScrolledToTop()
166 fun isTabScrolledToTop(tab: UiDataModel.Tab): Boolean { in isTabScrolledToTop()
DTabDAO.kt31 fun getSelectedTab(prefs: SharedPreferences): UiDataModel.Tab { in getSelectedTab()
32 val ordinal = prefs.getInt(KEY_SELECTED_TAB, UiDataModel.Tab.CLOCKS.ordinal) in getSelectedTab()
33 return UiDataModel.Tab.values()[ordinal] in getSelectedTab()
39 fun setSelectedTab(prefs: SharedPreferences, tab: UiDataModel.Tab) { in setSelectedTab()
DUiDataModel.kt37 enum class Tab( class in com.android.deskclock.uidata.UiDataModel
227 fun getTab(ordinal: Int): Tab { in getTab()
236 fun getTabAt(position: Int): Tab { in getTabAt()
241 var selectedTab: Tab
279 fun setTabScrolledToTop(tab: Tab, scrolledToTop: Boolean) { in setTabScrolledToTop()
DTabListener.kt27 fun selectedTabChanged(oldSelectedTab: UiDataModel.Tab, newSelectedTab: UiDataModel.Tab)
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DTab.java31 public final class Tab { class
37 private final Consumer<Tab> mSelectedListener;
39 private Tab(@NonNull Builder builder) { in Tab() method in Tab
59 public Consumer<Tab> getSelectedListener() { in getSelectedListener()
75 private Consumer<Tab> mSelectedListener = null;
93 public Builder setSelectedListener(Consumer<Tab> callback) { in setSelectedListener()
99 public Tab build() { in build()
100 return new Tab(this); in build()
DDeprecatedTabWrapper.java31 private final TabLayout.Tab mTab;
32 private final Consumer<Tab> mOnSelectedListener;
38 @NonNull TabLayout.Tab tab, in DeprecatedTabWrapper()
40 @Nullable Consumer<Tab> onSelectedListener) { in DeprecatedTabWrapper()
66 public TabLayout.Tab getDeprecatedTab() { in getDeprecatedTab()
73 public Tab getModernTab() { in getModernTab()
74 return Tab.builder() in getModernTab()
DTabLayout.java63 private List<com.android.car.ui.toolbar.Tab> mTabs = Collections.emptyList();
85 public void setTabs(List<com.android.car.ui.toolbar.Tab> tabs, int selectedTab) { in setTabs()
95 public List<com.android.car.ui.toolbar.Tab> getTabs() { in getTabs()
130 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in selectTab()
131 Consumer<com.android.car.ui.toolbar.Tab> listener = tab.getSelectedListener(); in selectTab()
153 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in presentTabView()
172 public static class Tab { class in TabLayout
177 public Tab(@Nullable Drawable icon, @Nullable CharSequence text) { in Tab() method in TabLayout.Tab
DToolbarController.java87 void setTabs(@Nullable List<Tab> tabs); in setTabs()
97 void setTabs(@Nullable List<Tab> tabs, int selectedTab); in setTabs()
102 List<Tab> getTabs(); in getTabs()
119 int getTabPosition(TabLayout.Tab tab); in getTabPosition()
128 void addTab(TabLayout.Tab tab); in addTab()
146 TabLayout.Tab getTab(int position); in getTab()
DTabAdapterV1.java26 private final Tab mClientTab;
29 TabAdapterV1(Tab clientTab) { in TabAdapterV1()
31 Consumer<Tab> selectedListener = mClientTab.getSelectedListener(); in TabAdapterV1()
41 public Tab getClientTab() { in getClientTab()
DToolbarControllerImpl.java278 public void setTabs(@Nullable List<Tab> tabs) { in setTabs()
283 public void setTabs(@Nullable List<Tab> tabs, int selectedTab) { in setTabs()
289 public List<Tab> getTabs() { in getTabs()
293 private void setTabsInternal(@Nullable List<Tab> tabs, int selectedTab) { in setTabsInternal()
313 public int getTabPosition(TabLayout.Tab tab) { in getTabPosition()
323 public void addTab(TabLayout.Tab newTab) { in addTab()
334 List<Tab> modernTabs = new ArrayList<>(); in updateModernTabsFromDeprecatedOnes()
350 public TabLayout.Tab getTab(int position) { in getTab()
DToolbarControllerAdapterV1.java165 public void setTabs(@Nullable List<Tab> tabs) { in setTabs()
170 public void setTabs(@Nullable List<Tab> tabs, int selectedTab) { in setTabs()
184 public List<Tab> getTabs() { in getTabs()
196 public int getTabPosition(TabLayout.Tab tab) { in getTabPosition()
206 public void addTab(TabLayout.Tab clientTab) { in addTab()
217 List<Tab> modernTabs = new ArrayList<>(); in updateModernTabsFromDeprecatedOnes()
232 public TabLayout.Tab getTab(int position) { in getTab()
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.kt163 val tabModel: UiDataModel.Tab = UiDataModel.uiDataModel.getTab(i) in onCreate()
166 val tab: TabLayout.Tab = mTabLayout.newTab() in onCreate()
269 override fun onTabSelected(tab: TabLayout.Tab) { in onCreate()
270 UiDataModel.uiDataModel.selectedTab = tab.getTag() as UiDataModel.Tab in onCreate()
273 override fun onTabUnselected(tab: TabLayout.Tab) { in onCreate()
276 override fun onTabReselected(tab: TabLayout.Tab) { in onCreate()
411 val selectedTab: UiDataModel.Tab = UiDataModel.uiDataModel.selectedTab in updateCurrentTab()
415 val tab: TabLayout.Tab? = mTabLayout.getTabAt(i) in updateCurrentTab()
443 val selectedTab: UiDataModel.Tab = UiDataModel.uiDataModel.selectedTab
588 oldSelectedTab: UiDataModel.Tab, in selectedTabChanged()
[all …]
DFragmentTabPagerAdapter.kt42 private val mFragmentCache: MutableMap<UiDataModel.Tab, DeskClockFragment?> =
59 val tab: UiDataModel.Tab = UiDataModel.uiDataModel.getTabAt(position) in getCount()
95 val tab: UiDataModel.Tab = UiDataModel.uiDataModel.getTabAt(position) in instantiateItem()
DHandleApiCalls.kt88 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in handleDismissAlarm()
236 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in handleSetAlarm()
339 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in handleShowAlarms()
355 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.TIMERS in handleShowTimers()
363 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.TIMERS in handleSetTimer()
415 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.TIMERS in handleSetTimer()
430 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in setupInstance()
DHandleShortcuts.kt39 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onCreate()
48 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onCreate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DSeparatedTabLayout.java36 public Tab newTab() { in newTab()
37 Tab tab = super.newTab(); in newTab()
57 public void onTabSelected(Tab tab) { in onTabSelected()
65 public void onTabUnselected(Tab tab) {} in onTabUnselected()
68 public void onTabReselected(Tab tab) {} in onTabReselected()
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DTabModelTest.java30 import static com.android.deskclock.uidata.UiDataModel.Tab.ALARMS;
31 import static com.android.deskclock.uidata.UiDataModel.Tab.CLOCKS;
32 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
33 import static com.android.deskclock.uidata.UiDataModel.Tab.TIMERS;
/packages/apps/Gallery2/src/com/android/photos/
DGalleryActivity.java20 import android.app.ActionBar.Tab;
121 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab()
163 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected()
173 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected()
177 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java99 private enum Tab { enum in TrustedCredentialsSettings
120 private Tab(String tag, int label, int view, int progress, int contentView, in Tab() method in TrustedCredentialsSettings.Tab
222 addTab(Tab.SYSTEM); in onCreateView()
224 addTab(Tab.USER); in onCreateView()
227 mTabHost.setCurrentTabByTag(Tab.USER.mTag); in onCreateView()
275 private void addTab(Tab tab) { in addTab()
333 private GroupAdapter(Tab tab) { in GroupAdapter()
477 private View getViewForCertificate(CertHolder certHolder, Tab mTab, View convertView, in getViewForCertificate()
658 private final Tab mTab;
661 private AdapterData(Tab tab, GroupAdapter adapter) { in AdapterData()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java66 public void onTabSelected(TabLayout.Tab tab) { in ProfileTabs()
74 public void onTabUnselected(TabLayout.Tab tab) { in ProfileTabs()
78 public void onTabReselected(TabLayout.Tab tab) { in ProfileTabs()
148 private TabLayout.Tab createTab(int resId, UserId userId) { in createTab()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
DTelecomPageTab.java33 import com.android.car.ui.toolbar.Tab;
67 private final Tab mToolbarTab;
72 mToolbarTab = Tab.builder() in TelecomPageTab()
81 public Tab getToolbarTab() { in getToolbarTab()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java89 import com.google.android.material.tabs.TabLayout.Tab;
336 public void onTabSelected(Tab tab) { in initializeDesktop()
343 public void onTabUnselected(Tab tab) { in initializeDesktop()
347 public void onTabReselected(Tab tab) { in initializeDesktop()
679 Tab tabToSelect = null; in populateCategoryTabs()
680 Tab firstEnumerableCategoryTab = null; in populateCategoryTabs()
684 Tab tab = tabLayout.newTab(); in populateCategoryTabs()
826 Tab tabToSelect = tabLayout.getTabAt( in reselectLastTab()

12