Home
last modified time | relevance | path

Searched refs:selectedTab (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/main/impl/bottomnav/
DBottomNavBar.java58 private @TabIndex int selectedTab; field in BottomNavBar
79 if (selectedTab != TabIndex.SPEED_DIAL) { in onFinishInflate()
87 if (selectedTab != TabIndex.CALL_LOG) { in onFinishInflate()
95 if (selectedTab != TabIndex.CONTACTS) { in onFinishInflate()
103 if (selectedTab != TabIndex.VOICEMAIL) { in onFinishInflate()
125 selectedTab = TabIndex.SPEED_DIAL; in selectTab()
128 selectedTab = TabIndex.CALL_LOG; in selectTab()
131 selectedTab = TabIndex.CONTACTS; in selectTab()
134 selectedTab = TabIndex.VOICEMAIL; in selectTab()
140 updateListeners(selectedTab); in selectTab()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DToolbarControllerAdapterV1.java170 public void setTabs(@Nullable List<Tab> tabs, int selectedTab) { in setTabs() argument
173 selectedTab = 0; in setTabs()
174 } else if (selectedTab < 0 || selectedTab >= tabs.size()) { in setTabs()
175 throw new IllegalArgumentException("Tab position is invalid: " + selectedTab); in setTabs()
179 .setSelectedTab(selectedTab) in setTabs()
248 int selectedTab = mAdapterState.getSelectedTab(); in getSelectedTab() local
249 if (mAdapterState.getTabs().isEmpty() && selectedTab != -1) { in getSelectedTab()
252 return selectedTab; in getSelectedTab()
888 public Builder setSelectedTab(int selectedTab) { in setSelectedTab() argument
889 if (mSelectedTab != selectedTab) { in setSelectedTab()
[all …]
DToolbarControllerImpl.java283 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
295 selectedTab = -1; in setTabsInternal()
296 } else if (selectedTab < 0 || selectedTab >= tabs.size()) { in setTabsInternal()
297 throw new IllegalArgumentException("Tab position is invalid: " + selectedTab); in setTabsInternal()
299 mTabLayout.setTabs(tabs, selectedTab); in setTabsInternal()
DTabLayout.java85 public void setTabs(List<com.android.car.ui.toolbar.Tab> tabs, int selectedTab) { in setTabs() argument
91 mSelectedTab = selectedTab; in setTabs()
DToolbarController.java97 void setTabs(@Nullable List<Tab> tabs, int selectedTab); in setTabs() argument
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.kt270 UiDataModel.uiDataModel.selectedTab = tab.getTag() as UiDataModel.Tab in onCreate()
411 val selectedTab: UiDataModel.Tab = UiDataModel.uiDataModel.selectedTab in updateCurrentTab() constant
416 if (tab?.getTag() == selectedTab && !tab.isSelected()) { in updateCurrentTab()
443 val selectedTab: UiDataModel.Tab = UiDataModel.uiDataModel.selectedTab constant in com.android.deskclock.DeskClock
444 throw IllegalStateException("Unable to locate selected fragment ($selectedTab)")
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()
DDeskClockFragment.kt89 get() = UiDataModel.uiDataModel.selectedTab == mTab
95 UiDataModel.uiDataModel.selectedTab = mTab in selectTab()
DHandleShortcuts.kt39 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onCreate()
48 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onCreate()
DAlarmClockFragment.kt177 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in onResume()
186 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in onResume()
DDropShadowController.kt154 selectedTab: UiDataModel.Tab, in selectedTabScrollToTopChanged()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DTabModel.kt95 val selectedTab: UiDataModel.Tab constant in com.android.deskclock.uidata.TabModel
107 val oldSelectedTab = selectedTab in setSelectedTab()
154 if (tab == selectedTab) { in setTabScrolledToTop()
DUiDataModel.kt241 var selectedTab: Tab variable
247 return mTabModel.selectedTab
290 return mTabModel.isTabScrolledToTop(selectedTab)
DTabScrollListener.kt34 fun selectedTabScrollToTopChanged(selectedTab: UiDataModel.Tab, scrolledToTop: Boolean)
/packages/apps/Dialer/java/com/android/dialer/main/impl/
DOldMainActivityPeer.java1313 @TabIndex private int selectedTab = -1; field in OldMainActivityPeer.MainBottomNavBarBottomNavTabListener
1331 if (selectedTab == TabIndex.SPEED_DIAL) { in onSpeedDialSelected()
1335 selectedTab = TabIndex.SPEED_DIAL; in onSpeedDialSelected()
1355 if (selectedTab == TabIndex.CALL_LOG) { in onCallLogSelected()
1359 selectedTab = TabIndex.CALL_LOG; in onCallLogSelected()
1412 if (selectedTab == TabIndex.CALL_LOG) { in disableNewCallLogFragment()
1429 if (selectedTab == TabIndex.VOICEMAIL) { in disableNewVoicemailFragment()
1480 if (selectedTab == TabIndex.CONTACTS) { in onContactsSelected()
1484 selectedTab = TabIndex.CONTACTS; in onContactsSelected()
1495 if (selectedTab == TabIndex.VOICEMAIL) { in onVoicemailSelected()
[all …]
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DTabLayout.java64 public void setTabs(@NonNull List<? extends TabOEMV1> tabs, int selectedTab) { in setTabs() argument
71 mSelectedTab = tabs.get(selectedTab); in setTabs()
DToolbarControllerImpl.java127 public void setTabs(List<? extends TabOEMV1> tabs, int selectedTab) { in setTabs() argument
133 mTabContainer.setTabs(tabs, selectedTab); in setTabs()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java110 final int selectedTab = convertPosition(getTabId(activity, getArguments())); in onCreateView() local
119 final TabLayout.Tab tab = tabs.getTabAt(selectedTab); in onCreateView()
/packages/apps/Car/libs/car-ui-lib/oem-apis/src/main/java/com/android/car/ui/sharedlibrary/oemapis/toolbar/
DToolbarControllerOEMV1.java49 void setTabs(List<? extends TabOEMV1> tabs, int selectedTab); in setTabs() argument
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.kt48 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onBind()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerService.kt81 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.TIMERS in onStartCommand()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
DEmptyToolbarController.java72 int selectedTab) { in setTabs() argument