Home
last modified time | relevance | path

Searched refs:tab (Results 1 – 25 of 63) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DTabModel.kt106 fun setSelectedTab(tab: UiDataModel.Tab) { in setSelectedTab()
108 if (oldSelectedTab != tab) { in setSelectedTab()
109 mSelectedTab = tab in setSelectedTab()
110 TabDAO.setSelectedTab(mPrefs, tab) in setSelectedTab()
114 tl.selectedTabChanged(oldSelectedTab, tab) in setSelectedTab()
118 val tabScrolledToTop = isTabScrolledToTop(tab) in setSelectedTab()
121 tsl.selectedTabScrollToTopChanged(tab, tabScrolledToTop) in setSelectedTab()
151 fun setTabScrolledToTop(tab: UiDataModel.Tab, scrolledToTop: Boolean) { in setTabScrolledToTop()
152 if (isTabScrolledToTop(tab) != scrolledToTop) { in setTabScrolledToTop()
153 mTabScrolledToTop[tab.ordinal] = scrolledToTop in setTabScrolledToTop()
[all …]
DUiDataModel.kt252 set(tab) {
254 mTabModel.setSelectedTab(tab)
279 fun setTabScrolledToTop(tab: Tab, scrolledToTop: Boolean) { in setTabScrolledToTop()
281 mTabModel.setTabScrolledToTop(tab, scrolledToTop) in setTabScrolledToTop()
DTabDAO.kt39 fun setSelectedTab(prefs: SharedPreferences, tab: UiDataModel.Tab) { in setSelectedTab()
40 prefs.edit().putInt(KEY_SELECTED_TAB, tab.ordinal).apply() in setSelectedTab()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DDuoTabs.java45 void onTabSelected(@Tab int tab); in onTabSelected() argument
106 public void selectTab(@Tab int tab) { in selectTab() argument
107 updateTabIndicator(tab); in selectTab()
109 mOnTabSelectedListener.onTabSelected(tab); in selectTab()
111 mCurrentOverlayTab = tab; in selectTab()
128 private void updateTabIndicator(@Tab int tab) { in updateTabIndicator() argument
130 tab == TAB_PRIMARY in updateTabIndicator()
134 tab == TAB_PRIMARY in updateTabIndicator()
139 mPrimaryTabContainer.setSelected(tab == TAB_PRIMARY); in updateTabIndicator()
141 mPrimaryTabText.setSelected(tab == TAB_PRIMARY); in updateTabIndicator()
[all …]
DSeparatedTabLayout.java37 Tab tab = super.newTab(); in newTab() local
38 tab.view.setBackgroundResource(R.drawable.separated_tabs_ripple_mask); in newTab()
39 return tab; in newTab()
57 public void onTabSelected(Tab tab) { in onTabSelected() argument
59 if (viewPager != null && viewPager.getCurrentItem() != tab.getPosition()) { in onTabSelected()
60 viewPager.setCurrentItem(tab.getPosition()); in onTabSelected()
65 public void onTabUnselected(Tab tab) {} in onTabUnselected() argument
68 public void onTabReselected(Tab tab) {} in onTabReselected() argument
/packages/apps/Dialer/java/com/android/dialer/main/impl/bottomnav/
DBottomNavBar.java123 public void selectTab(@TabIndex int tab) { in selectTab() argument
124 if (tab == TabIndex.SPEED_DIAL) { in selectTab()
127 } else if (tab == TabIndex.CALL_LOG) { in selectTab()
130 } else if (tab == TabIndex.CONTACTS) { in selectTab()
133 } else if (tab == TabIndex.VOICEMAIL) { in selectTab()
137 throw new IllegalStateException("Invalid tab: " + tab); in selectTab()
165 public void setNotificationCount(@TabIndex int tab, int count) { in setNotificationCount() argument
166 if (tab == TabIndex.SPEED_DIAL) { in setNotificationCount()
168 } else if (tab == TabIndex.CALL_LOG) { in setNotificationCount()
170 } else if (tab == TabIndex.CONTACTS) { in setNotificationCount()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DFragmentTabPagerAdapter.kt59 val tab: UiDataModel.Tab = UiDataModel.uiDataModel.getTabAt(position) in getCount() constant
62 var fragment = mFragmentCache[tab] in getCount()
70 fragment = mFragmentManager.findFragmentByTag(tab.name) as DeskClockFragment? in getCount()
73 mFragmentCache[tab] = fragment in getCount()
78 val fragmentClassName: String = tab.fragmentClassName in getCount()
81 mFragmentCache[tab] = fragment in getCount()
95 val tab: UiDataModel.Tab = UiDataModel.uiDataModel.getTabAt(position) in instantiateItem() constant
96 var fragment = mFragmentManager.findFragmentByTag(tab.name) in instantiateItem()
101 mCurrentTransaction!!.add(container.id, fragment, tab.name) in instantiateItem()
DDeskClock.kt166 val tab: TabLayout.Tab = mTabLayout.newTab() in onCreate() constant
172 tab.setText(labelResId) in onCreate()
173 tab.setCustomView(R.layout.tab_item) in onCreate()
175 val text = tab.getCustomView()!!.findViewById(android.R.id.text1) as TextView in onCreate()
179 val icon: Drawable? = tab.getIcon() in onCreate()
182 tab.setIcon(null) in onCreate()
189 mTabLayout.addTab(tab) 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()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DGalleryActivity.java121 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() argument
123 tab.setTag(info); in addTab()
124 tab.setTabListener(this); in addTab()
126 mActionBar.addTab(tab); in addTab()
163 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
164 Object tag = tab.getTag(); in onTabSelected()
173 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
177 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java102 public void onTabSelected(TabLayout.Tab tab) { in ProfileTabs()
105 mListener.onUserSelected((UserId) tab.getTag()); in ProfileTabs()
110 public void onTabUnselected(TabLayout.Tab tab) { in ProfileTabs()
114 public void onTabReselected(TabLayout.Tab tab) { in ProfileTabs()
151 View tab = ((ViewGroup) mTabs.getChildAt(0)).getChildAt(i); in updateView() local
155 (ViewGroup.MarginLayoutParams) tab.getLayoutParams(); in updateView()
161 tab.getLayoutParams().height = tabHeightInDp; in updateView()
162 tab.requestLayout(); in updateView()
163 tab.setBackgroundResource(R.drawable.tab_border_rounded); in updateView()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DTabLayout.java124 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in selectTab() local
125 Consumer<com.android.car.ui.toolbar.Tab> listener = tab.getSelectedListener(); in selectTab()
127 listener.accept(tab); in selectTab()
146 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in presentTabView() local
154 iconView.setImageDrawable(tab.getIcon()); in presentTabView()
156 textView.setText(tab.getText()); in presentTabView()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabContainerFragment.java137 mTabLayoutMediator = new TabLayoutMediator(tabLayout, mViewPager, (tab, pos) -> { in onViewCreated()
140 tab.setText(R.string.picker_videos); in onViewCreated()
142 tab.setText(R.string.picker_photos); in onViewCreated()
145 tab.setText(R.string.picker_albums); in onViewCreated()
207 public void onTabSelected(TabLayout.Tab tab) {
208 int position = tab.getPosition();
217 public void onTabUnselected(TabLayout.Tab tab) {
222 public void onTabReselected(TabLayout.Tab tab) {
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entriesandaccess/
DEntiresAndAccessFragment.kt68 TabLayoutMediator(tabLayout, viewPager) { tab, position -> in <lambda>() method
70 tab.text = getString(R.string.tab_entries) in <lambda>()
72 tab.text = getString(R.string.tab_access) in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/profiles/
DMultiProfilePagerAdapter.java109 for (TabConfig<SinglePageAdapterT> tab : tabs) { in MultiProfilePagerAdapter()
115 tab.mProfile, in MultiProfilePagerAdapter()
116 tab.mTabLabel, in MultiProfilePagerAdapter()
117 tab.mTabAccessibilityLabel, in MultiProfilePagerAdapter()
118 tab.mTabTag, in MultiProfilePagerAdapter()
119 tab.mPageAdapter, in MultiProfilePagerAdapter()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/emptystate/
DWorkProfilePausedEmptyStateProvider.java85 return new WorkProfileOffEmptyState(title, /* EmptyState.ClickListener */ (tab) -> { in getEmptyState()
86 tab.showSpinner(); in getEmptyState()
/packages/apps/Launcher3/src/com/android/launcher3/workprofile/
DPersonalWorkSlidingTabStrip.java54 Button tab = (Button) getChildAt(i); in updateTabTextColor() local
55 tab.setSelected(i == pos); in updateTabTextColor()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DBluetoothUuidFragment.java62 (tab, position) -> tab.setText(mTabFragments.get(position).getText()) in onCreateView()
/packages/apps/Dialer/java/com/android/dialer/logging/
Dscreen_event.proto21 // The tab containing the list of voicemails only.
24 // The tab containing the list of all contacts.
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.kt988 override fun onTabSelected(tab: Tab?, ft: FragmentTransaction?) { in onTabSelected()
990 if (tab == mDayTab && mCurrentView != ViewType.DAY) { in onTabSelected()
992 } else if (tab == mWeekTab && mCurrentView != ViewType.WEEK) { in onTabSelected()
994 } else if (tab == mMonthTab && mCurrentView != ViewType.MONTH) { in onTabSelected()
999 if (tab == null) "null" else tab.getText() in onTabSelected()
1002 TAG, "CurrentView:" + mCurrentView + " Tab:" + tab.toString() + " Day:" + mDayTab + in onTabSelected()
1009 override fun onTabReselected(tab: Tab?, ft: FragmentTransaction?) { in onTabReselected()
1013 override fun onTabUnselected(tab: Tab?, ft: FragmentTransaction?) { in onTabUnselected()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityWorkProfileTest.java375 private void switchToTab(Tab tab) { in switchToTab() argument
376 final int stringId = tab == Tab.WORK ? R.string.resolver_work_tab in switchToTab()
433 UserHandle myUserHandle, Tab tab, ExpectedBlocker expectedBlocker) { in TestCase() argument
437 mTab = tab; in TestCase()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java141 (tab, position) -> tab.setText(getPageTitle(position)) in onCreateView()
154 final TabLayout.Tab tab = tabs.getTabAt(selectedTab); in onCreateView() local
155 tab.select(); in onCreateView()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java90 (tab, position) -> tab.setText(TABS.get(position).mLabel)).attach(); in onViewCreated()
/packages/apps/Settings/src/com/android/settings/search/
DSearchResultTrampoline.java72 final int tab = intent.getIntExtra(EXTRA_SHOW_FRAGMENT_TAB, 0); in onCreate() local
75 args.putInt(EXTRA_SHOW_FRAGMENT_TAB, tab); in onCreate()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsTest.java146 TabLayout.Tab tab = mTabLayout.getTabAt(i); in testUpdateView_multiUsers_shouldShow() local
147 assertThat(tab).isNotNull(); in testUpdateView_multiUsers_shouldShow()
148 UserId userId = (UserId) tab.getTag(); in testUpdateView_multiUsers_shouldShow()
149 assertThat(tab.getText()).isEqualTo(userIdToLabelMap.get(userId)); in testUpdateView_multiUsers_shouldShow()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DPreviewFragment.java523 private void updateScreenPreviewOverlay(@DuoTabs.Tab int tab) {
526 tab == DuoTabs.TAB_SECONDARY ? View.VISIBLE : View.INVISIBLE);
527 mWorkspaceSurface.setZOrderMediaOverlay(tab == DuoTabs.TAB_SECONDARY);
531 tab == DuoTabs.TAB_PRIMARY ? View.VISIBLE : View.INVISIBLE);
532 mLockSurface.setZOrderMediaOverlay(tab == DuoTabs.TAB_PRIMARY);

123