/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | TabModel.kt | 106 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 …]
|
D | UiDataModel.kt | 252 set(tab) { 254 mTabModel.setSelectedTab(tab) 279 fun setTabScrolledToTop(tab: Tab, scrolledToTop: Boolean) { in setTabScrolledToTop() 281 mTabModel.setTabScrolledToTop(tab, scrolledToTop) in setTabScrolledToTop()
|
D | TabDAO.kt | 39 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/ |
D | DuoTabs.java | 45 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 …]
|
D | SeparatedTabLayout.java | 37 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/ |
D | BottomNavBar.java | 123 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/ |
D | FragmentTabPagerAdapter.kt | 59 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()
|
D | DeskClock.kt | 166 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/ |
D | GalleryActivity.java | 121 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/ |
D | ProfileTabs.java | 102 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/ |
D | TabLayout.java | 124 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/ |
D | TabContainerFragment.java | 137 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/ |
D | EntiresAndAccessFragment.kt | 68 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/ |
D | MultiProfilePagerAdapter.java | 109 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/ |
D | WorkProfilePausedEmptyStateProvider.java | 85 return new WorkProfileOffEmptyState(title, /* EmptyState.ClickListener */ (tab) -> { in getEmptyState() 86 tab.showSpinner(); in getEmptyState()
|
/packages/apps/Launcher3/src/com/android/launcher3/workprofile/ |
D | PersonalWorkSlidingTabStrip.java | 54 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/ |
D | BluetoothUuidFragment.java | 62 (tab, position) -> tab.setText(mTabFragments.get(position).getText()) in onCreateView()
|
/packages/apps/Dialer/java/com/android/dialer/logging/ |
D | screen_event.proto | 21 // The tab containing the list of voicemails only. 24 // The tab containing the list of all contacts.
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | AllInOneActivity.kt | 988 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/ |
D | ChooserActivityWorkProfileTest.java | 375 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/ |
D | ProfileSelectFragment.java | 141 (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/ |
D | TrustedCredentialsSettings.java | 90 (tab, position) -> tab.setText(TABS.get(position).mLabel)).attach(); in onViewCreated()
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | SearchResultTrampoline.java | 72 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/ |
D | ProfileTabsTest.java | 146 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/ |
D | PreviewFragment.java | 523 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);
|