Home
last modified time | relevance | path

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

12

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DTabLayout.java70 default void onTabSelected(Tab tab) { in onTabSelected()
74 default void onTabUnselected(Tab tab) { in onTabUnselected()
78 default void onTabReselected(Tab tab) { in onTabReselected()
109 public void addTab(Tab tab) { in addTab()
118 public void selectTab(Tab tab) { in selectTab()
133 public int getTabPosition(Tab tab) { in getTabPosition()
138 public Tab get(int position) { in get()
157 private void dispatchOnTabSelected(Tab tab) { in dispatchOnTabSelected()
163 private void dispatchOnTabUnselected(Tab tab) { in dispatchOnTabUnselected()
169 private void dispatchOnTabReselected(Tab tab) { in dispatchOnTabReselected()
[all …]
DToolbar.java72 void onTabSelected(TabLayout.Tab tab); in onTabSelected()
252 public void addTab(TabLayout.Tab tab) { in addTab()
265 public TabLayout.Tab getTab(int position) { in getTab()
DToolbarController.java69 void addTab(TabLayout.Tab tab); in addTab()
78 TabLayout.Tab getTab(int position); in getTab()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DTabModel.java28 import static com.android.deskclock.uidata.UiDataModel.Tab;
44 private final boolean[] mTabScrolledToTop = new boolean[Tab.values().length];
47 private Tab mSelectedTab;
76 return Tab.values().length; in getTabCount()
83 Tab getTab(int ordinal) { in getTab()
84 return Tab.values()[ordinal]; in getTab()
91 Tab getTabAt(int position) { in getTabAt()
104 Tab getSelectedTab() { in getSelectedTab()
114 void setSelectedTab(Tab tab) { in setSelectedTab()
115 final Tab oldSelectedTab = getSelectedTab(); in setSelectedTab()
[all …]
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()
DUiDataModel.java41 public enum Tab { enum in UiDataModel
51 Tab(Class fragmentClass, @DrawableRes int iconResId, @StringRes int labelResId) { in Tab() method in UiDataModel.Tab
245 public Tab getTab(int ordinal) { in getTab()
254 public Tab getTabAt(int position) { in getTabAt()
262 public Tab getSelectedTab() { in getSelectedTab()
270 public void setSelectedTab(Tab tab) { in setSelectedTab()
297 public void setTabScrolledToTop(Tab tab, boolean scrolledToTop) { in setTabScrolledToTop()
DTabDAO.java21 import static com.android.deskclock.uidata.UiDataModel.Tab;
36 static Tab getSelectedTab(SharedPreferences prefs) { in getSelectedTab()
37 final int ordinal = prefs.getInt(KEY_SELECTED_TAB, Tab.CLOCKS.ordinal()); in getSelectedTab()
38 return Tab.values()[ordinal]; in getSelectedTab()
44 static void setSelectedTab(SharedPreferences prefs, Tab tab) { in setSelectedTab()
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.java19 import com.android.deskclock.uidata.UiDataModel.Tab;
30 void selectedTabChanged(Tab oldSelectedTab, Tab newSelectedTab); in selectedTabChanged()
DTabListener.kt27 fun selectedTabChanged(oldSelectedTab: UiDataModel.Tab, newSelectedTab: UiDataModel.Tab)
DTabScrollListener.java19 import com.android.deskclock.uidata.UiDataModel.Tab;
37 void selectedTabScrollToTopChanged(Tab selectedTab, boolean scrolledToTop); in selectedTabScrollToTopChanged()
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.java170 final UiDataModel.Tab tabModel = UiDataModel.getUiDataModel().getTab(i); in onCreate()
173 final TabLayout.Tab tab = mTabLayout.newTab() in onCreate()
292 public void onTabSelected(TabLayout.Tab tab) { in onCreate()
293 UiDataModel.getUiDataModel().setSelectedTab((UiDataModel.Tab) tab.getTag()); in onCreate()
297 public void onTabUnselected(TabLayout.Tab tab) { in onCreate()
301 public void onTabReselected(TabLayout.Tab tab) { in onCreate()
470 final UiDataModel.Tab selectedTab = UiDataModel.getUiDataModel().getSelectedTab(); in updateCurrentTab()
474 final TabLayout.Tab tab = mTabLayout.getTabAt(i); in updateCurrentTab()
501 final UiDataModel.Tab selectedTab = UiDataModel.getUiDataModel().getSelectedTab(); in getSelectedDeskClockFragment()
649 public void selectedTabChanged(UiDataModel.Tab oldSelectedTab, in selectedTabChanged()
[all …]
DDeskClockFragment.java27 import com.android.deskclock.uidata.UiDataModel.Tab;
32 private final Tab mTab;
37 public DeskClockFragment(Tab tab) { in DeskClockFragment()
DFragmentTabPagerAdapter.java47 private final Map<UiDataModel.Tab, DeskClockFragment> mFragmentCache;
72 final UiDataModel.Tab tab = UiDataModel.getUiDataModel().getTabAt(position); in getDeskClockFragment()
112 final UiDataModel.Tab tab = UiDataModel.getUiDataModel().getTabAt(position); in instantiateItem()
DDropShadowController.java28 import com.android.deskclock.uidata.UiDataModel.Tab;
166 public void selectedTabScrollToTopChanged(Tab selectedTab, boolean scrolledToTop) { in selectedTabScrollToTopChanged()
DAlarmClockFragment.kt59 class AlarmClockFragment : DeskClockFragment(UiDataModel.Tab.ALARMS),
177 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in onResume()
186 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in onResume()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
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/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/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/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/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/toolbar/
DToolbarTest.java176 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_twoRow_withTitle_withTabs()
177 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_twoRow_withTitle_withTabs()
208 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_twoRow_withTabs()
209 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_twoRow_withTabs()
227 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_oneRow_withTitle_withTabs()
228 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_oneRow_withTitle_withTabs()
261 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_oneRow_withTabs()
262 toolbar.addTab(new TabLayout.Tab(mContext.getDrawable(R.drawable.test_ic_launcher), "Foo")); in testState_oneRow_withTabs()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java87 import com.google.android.material.tabs.TabLayout.Tab;
316 public void onTabSelected(Tab tab) { in initializeDesktop()
323 public void onTabUnselected(Tab tab) { in initializeDesktop()
327 public void onTabReselected(Tab tab) { in initializeDesktop()
655 Tab tabToSelect = null; in populateCategoryTabs()
656 Tab firstEnumerableCategoryTab = null; in populateCategoryTabs()
660 Tab tab = tabLayout.newTab(); in populateCategoryTabs()
795 Tab tabToSelect = tabLayout.getTabAt( in reselectLastTab()
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.java28 import android.app.ActionBar.Tab;
138 private ActionBar.Tab mDayTab;
139 private ActionBar.Tab mWeekTab;
140 private ActionBar.Tab mMonthTab;
1009 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected()
1026 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected()
1030 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.java59 import com.android.deskclock.uidata.UiDataModel.Tab;
67 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
574 public void selectedTabChanged(Tab oldSelectedTab, Tab newSelectedTab) {

12