/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/ |
D | TabLayout.java | 70 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 …]
|
D | Toolbar.java | 72 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()
|
D | ToolbarController.java | 69 void addTab(TabLayout.Tab tab); in addTab() 78 TabLayout.Tab getTab(int position); in getTab()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | TabModel.java | 28 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 …]
|
D | TabModel.kt | 37 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()
|
D | UiDataModel.java | 41 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()
|
D | TabDAO.java | 21 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()
|
D | TabDAO.kt | 31 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()
|
D | UiDataModel.kt | 37 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()
|
D | TabListener.java | 19 import com.android.deskclock.uidata.UiDataModel.Tab; 30 void selectedTabChanged(Tab oldSelectedTab, Tab newSelectedTab); in selectedTabChanged()
|
D | TabListener.kt | 27 fun selectedTabChanged(oldSelectedTab: UiDataModel.Tab, newSelectedTab: UiDataModel.Tab)
|
D | TabScrollListener.java | 19 import com.android.deskclock.uidata.UiDataModel.Tab; 37 void selectedTabScrollToTopChanged(Tab selectedTab, boolean scrolledToTop); in selectedTabScrollToTopChanged()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | DeskClock.java | 170 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 …]
|
D | DeskClockFragment.java | 27 import com.android.deskclock.uidata.UiDataModel.Tab; 32 private final Tab mTab; 37 public DeskClockFragment(Tab tab) { in DeskClockFragment()
|
D | FragmentTabPagerAdapter.java | 47 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()
|
D | DropShadowController.java | 28 import com.android.deskclock.uidata.UiDataModel.Tab; 166 public void selectedTabScrollToTopChanged(Tab selectedTab, boolean scrolledToTop) { in selectedTabScrollToTopChanged()
|
D | AlarmClockFragment.kt | 59 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/ |
D | TrustedCredentialsSettings.java | 99 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/ |
D | TrustedCredentialsSettings.java | 99 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/ |
D | GalleryActivity.java | 20 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/ |
D | TabModelTest.java | 30 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/ |
D | ToolbarTest.java | 176 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/ |
D | TopLevelPickerActivity.java | 87 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/ |
D | AllInOneActivity.java | 28 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/ |
D | StopwatchFragment.java | 59 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) {
|