Home
last modified time | relevance | path

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

12

/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)
DTabScrollListener.kt34 fun selectedTabScrollToTopChanged(selectedTab: UiDataModel.Tab, scrolledToTop: Boolean)
/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()
DHandleShortcuts.kt39 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onCreate()
48 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onCreate()
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()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java49 static final ImmutableList<Tab> TABS = ImmutableList.of(Tab.SYSTEM, Tab.USER);
85 viewPager.setCurrentItem(TABS.indexOf(Tab.USER), false); in onViewCreated()
114 enum Tab { enum in TrustedCredentialsSettings
121 Tab(int label, boolean withSwitch) { in Tab() method in TrustedCredentialsSettings.Tab
DTrustedCredentialsFragment.java70 import com.android.settings.TrustedCredentialsSettings.Tab;
196 requireArguments().getInt(ARG_POSITION) == 0 ? Tab.SYSTEM : Tab.USER); in onCreateView()
308 private GroupAdapter(Tab tab) { in GroupAdapter()
458 private View getViewForCertificate(CertHolder certHolder, Tab mTab, View convertView, in getViewForCertificate()
687 private final Tab mTab;
690 private AdapterData(Tab tab, GroupAdapter adapter) { in AdapterData()
816 return isTrustAllCaCertModeInProgress() && mTab == Tab.USER; in isUserTabAndTrustAllCertMode()
859 private final Tab mTab;
870 Tab tab, in CertHolder()
947 return mTab == Tab.SYSTEM; in isSystemCert()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DTabLayout.java61 private List<com.android.car.ui.toolbar.Tab> mTabs = Collections.emptyList();
80 public void setTabs(List<com.android.car.ui.toolbar.Tab> tabs, int selectedTab) { in setTabs()
90 public List<com.android.car.ui.toolbar.Tab> getTabs() { in getTabs()
124 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in selectTab()
125 Consumer<com.android.car.ui.toolbar.Tab> listener = tab.getSelectedListener(); in selectTab()
146 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in presentTabView()
DToolbarAdapterProxyV1.java33 import com.android.car.ui.toolbar.Tab;
72 List<Tab> tabList = list.stream() in setTabs()
78 private Tab createTab(@NonNull TabOEMV1 tabOEMV1) { in createTab()
79 return Tab.builder() in createTab()
DToolbarAdapterProxyV2.java34 import com.android.car.ui.toolbar.Tab;
71 List<Tab> tabList = list.stream() in setTabs()
77 private Tab createTab(@NonNull TabOEMV1 tabOEMV1) { in createTab()
78 return Tab.builder() in createTab()
DToolbarAdapterProxyV3.java34 import com.android.car.ui.toolbar.Tab;
71 List<Tab> tabList = list.stream() in setTabs()
77 private Tab createTab(@NonNull TabOEMV1 tabOEMV1) { in createTab()
78 return Tab.builder() in createTab()
DToolbarControllerImpl.java62 import com.android.car.ui.toolbar.Tab;
288 public void setTabs(@Nullable List<Tab> tabs) { in setTabs()
293 public void setTabs(@Nullable List<Tab> tabs, int selectedTab) { in setTabs()
299 public List<Tab> getTabs() { in getTabs()
303 private void setTabsInternal(@Nullable List<Tab> tabs, int selectedTab) { in setTabsInternal()
323 public int getTabPosition(com.android.car.ui.toolbar.TabLayout.Tab tab) { in getTabPosition()
333 public void addTab(com.android.car.ui.toolbar.TabLayout.Tab newTab) { in addTab()
344 List<Tab> modernTabs = new ArrayList<>(); in updateModernTabsFromDeprecatedOnes()
360 public com.android.car.ui.toolbar.TabLayout.Tab getTab(int position) { in getTab()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DDuoTabs.java41 public @interface Tab { annotation in DuoTabs
45 void onTabSelected(@Tab int tab); in onTabSelected()
54 @Tab private int mCurrentOverlayTab;
106 public void selectTab(@Tab int tab) { in selectTab()
128 private void updateTabIndicator(@Tab int tab) { in updateTabIndicator()
159 public @Tab int getSelectedTab() { in getSelectedTab()
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/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModel.kt62 enum class Tab { in <lambda>() class
272 private val _selectedTabPosition = MutableStateFlow(Tab.COLOR) in <lambda>()
273 val selectedTab: StateFlow<Tab> = _selectedTabPosition.asStateFlow() in <lambda>()
279 isSelected = it == Tab.COLOR, in <lambda>()
281 if (it == Tab.COLOR) { in <lambda>()
284 { _selectedTabPosition.tryEmit(Tab.COLOR) } in <lambda>()
289 isSelected = it == Tab.SIZE, in <lambda>()
291 if (it == Tab.SIZE) { in <lambda>()
294 { _selectedTabPosition.tryEmit(Tab.SIZE) } in <lambda>()
/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/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityWorkProfileTest.java35 import static com.android.intentresolver.ChooserActivityWorkProfileTest.TestCase.Tab.PERSONAL;
36 import static com.android.intentresolver.ChooserActivityWorkProfileTest.TestCase.Tab.WORK;
51 import com.android.intentresolver.ChooserActivityWorkProfileTest.TestCase.Tab;
375 private void switchToTab(Tab tab) { in switchToTab()
376 final int stringId = tab == Tab.WORK ? R.string.resolver_work_tab in switchToTab()
416 private final Tab mTab;
427 public enum Tab { enum in ChooserActivityWorkProfileTest.TestCase
433 UserHandle myUserHandle, Tab tab, ExpectedBlocker expectedBlocker) { in TestCase()
453 public Tab getTab() { in getTab()
/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/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java102 public void onTabSelected(TabLayout.Tab tab) { in ProfileTabs()
110 public void onTabUnselected(TabLayout.Tab tab) { in ProfileTabs()
114 public void onTabReselected(TabLayout.Tab tab) { in ProfileTabs()
266 private TabLayout.Tab createTab(String text, UserId userId) { in createTab()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabContainerFragment.java207 public void onTabSelected(TabLayout.Tab tab) {
217 public void onTabUnselected(TabLayout.Tab tab) {
222 public void onTabReselected(TabLayout.Tab tab) {
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.kt25 import android.app.ActionBar.Tab
107 private val mDayTab: Tab? = null
108 private val mWeekTab: Tab? = null
109 private val mMonthTab: Tab? = null
988 override fun onTabSelected(tab: Tab?, ft: FragmentTransaction?) { in onTabSelected()
1009 override fun onTabReselected(tab: Tab?, ft: FragmentTransaction?) { in onTabReselected()
1013 override fun onTabUnselected(tab: Tab?, ft: FragmentTransaction?) { in onTabUnselected()

12