/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/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/ |
D | TabLayout.java | 72 for (TabOEMV1 tab : tabs) { in setTabs() 76 mTabViews.put(tab, view); in setTabs() 77 bindTab(tab); in setTabs() 82 private void bindTab(TabOEMV1 tab) { in bindTab() argument 83 View view = mTabViews.get(tab); in bindTab() 91 view.setOnClickListener(v -> selectTab(tab, true)); in bindTab() 92 iconView.setImageDrawable(tab.getIcon()); in bindTab() 93 textView.setText(tab.getTitle()); in bindTab() 95 boolean selected = tab == mSelectedTab; in bindTab() 105 private void selectTab(TabOEMV1 tab, boolean sendCallback) { in selectTab() argument [all …]
|
/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/WallpaperPicker2/src/com/android/wallpaper/widget/ |
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/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/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/ |
D | TabLayout.java | 130 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in selectTab() local 131 Consumer<com.android.car.ui.toolbar.Tab> listener = tab.getSelectedListener(); in selectTab() 133 listener.accept(tab); in selectTab() 153 com.android.car.ui.toolbar.Tab tab = mTabs.get(position); in presentTabView() local 158 textView.setText(tab.getText()); in presentTabView() 159 iconView.setImageDrawable(tab.getIcon()); in presentTabView()
|
D | DeprecatedTabWrapper.java | 38 @NonNull TabLayout.Tab tab, in DeprecatedTabWrapper() argument 41 mTab = tab; in DeprecatedTabWrapper() 59 tab.bindIcon(imageViewListener); in DeprecatedTabWrapper() 60 tab.bindText(textViewListener); in DeprecatedTabWrapper()
|
D | ToolbarControllerAdapterV1.java | 196 public int getTabPosition(TabLayout.Tab tab) { in getTabPosition() argument 198 if (mDeprecatedTabs.get(i).getDeprecatedTab() == tab) { in getTabPosition() 208 this::updateModernTabsFromDeprecatedOnes, (tab) -> { in addTab() 219 for (DeprecatedTabWrapper tab : mDeprecatedTabs) { in updateModernTabsFromDeprecatedOnes() 220 modernTabs.add(tab.getModernTab()); in updateModernTabsFromDeprecatedOnes() 879 public Builder addTab(@NonNull TabAdapterV1 tab) { in addTab() argument 881 newTabs.add(tab); in addTab()
|
D | ToolbarController.java | 119 int getTabPosition(TabLayout.Tab tab); in getTabPosition() argument 128 void addTab(TabLayout.Tab tab); in addTab() argument
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/ |
D | ToolbarTabTest.java | 71 Consumer<Tab> selectedListener = tab -> {}; in test_basicTab_settersAndGetters() 72 Tab tab = Tab.builder() in test_basicTab_settersAndGetters() local 77 assertThat(tab.getText()).isEqualTo("Foo"); in test_basicTab_settersAndGetters() 78 assertThat(tab.getIcon()).isNotNull(); in test_basicTab_settersAndGetters() 79 assertThat(tab.getSelectedListener()).isSameInstanceAs(selectedListener); in test_basicTab_settersAndGetters()
|
D | EmptyToolbarController.java | 87 public int getTabPosition(TabLayout.Tab tab) { in getTabPosition() argument 92 public void addTab(TabLayout.Tab tab) { in addTab() argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ProfileTabs.java | 66 public void onTabSelected(TabLayout.Tab tab) { in ProfileTabs() 69 mListener.onUserSelected((UserId) tab.getTag()); in ProfileTabs() 74 public void onTabUnselected(TabLayout.Tab tab) { in ProfileTabs() 78 public void onTabReselected(TabLayout.Tab tab) { in ProfileTabs()
|
/packages/apps/Settings/src/com/android/settings/ |
D | TrustedCredentialsSettings.java | 275 private void addTab(Tab tab) { in addTab() argument 276 TabHost.TabSpec systemSpec = mTabHost.newTabSpec(tab.mTag) in addTab() 277 .setIndicator(getActivity().getString(tab.mLabel)) in addTab() 278 .setContent(tab.mView); in addTab() 281 final GroupAdapter groupAdapter = new GroupAdapter(tab); in addTab() 286 final ViewGroup contentView = (ViewGroup) mTabHost.findViewById(tab.mContentView); in addTab() 333 private GroupAdapter(Tab tab) { in GroupAdapter() argument 334 mData = new AdapterData(tab, this); in GroupAdapter() 661 private AdapterData(Tab tab, GroupAdapter adapter) { in AdapterData() argument 663 mTab = tab; in AdapterData() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | TopLevelPickerActivity.java | 336 public void onTabSelected(Tab tab) { in initializeDesktop() 337 Category category = (Category) tab.getTag(); in initializeDesktop() 343 public void onTabUnselected(Tab tab) { in initializeDesktop() 347 public void onTabReselected(Tab tab) { in initializeDesktop() 348 Category category = (Category) tab.getTag(); in initializeDesktop() 352 onTabSelected(tab); in initializeDesktop() 684 Tab tab = tabLayout.newTab(); in populateCategoryTabs() local 685 tab.setText(category.getTitle()); in populateCategoryTabs() 686 tab.setTag(category); in populateCategoryTabs() 687 tabLayout.addTab(tab, false /* setSelected */); in populateCategoryTabs() [all …]
|
D | PreviewFragment.java | 335 public void onTabSelected(TabLayout.Tab tab) { in setUpTabs() 336 mLastSelectedTabPositionOptional = Optional.of(tab.getPosition()); in setUpTabs() 337 updateScreenPreview(/* isHomeSelected= */ tab.getPosition() == 0); in setUpTabs() 341 public void onTabUnselected(TabLayout.Tab tab) {} in setUpTabs() 344 public void onTabReselected(TabLayout.Tab tab) {} in setUpTabs()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | AllInOneActivity.java | 1009 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument 1011 if (tab == mDayTab && mCurrentView != ViewType.DAY) { in onTabSelected() 1013 } else if (tab == mWeekTab && mCurrentView != ViewType.WEEK) { in onTabSelected() 1015 } else if (tab == mMonthTab && mCurrentView != ViewType.MONTH) { in onTabSelected() 1019 + (tab == null ? "null" : tab.getText())); in onTabSelected() 1020 Log.w(TAG, "CurrentView:" + mCurrentView + " Tab:" + tab.toString() + " Day:" + mDayTab in onTabSelected() 1026 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument 1030 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | SearchResultTrampoline.java | 50 final int tab = intent.getIntExtra(EXTRA_SHOW_FRAGMENT_TAB, 0); in onCreate() local 53 args.putInt(EXTRA_SHOW_FRAGMENT_TAB, tab); in onCreate()
|
/packages/apps/Launcher3/src/com/android/launcher3/workprofile/ |
D | PersonalWorkSlidingTabStrip.java | 44 Button tab = (Button) getChildAt(i); in updateTabTextColor() local 45 tab.setSelected(i == pos); in updateTabTextColor()
|
/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/Car/Dialer/src/com/android/car/dialer/ui/ |
D | TelecomActivity.java | 162 OnItemClickedListener<TelecomPageTab> onTabSelected = tab -> { in setupTabLayout() 164 Fragment fragment = tab.getFragment(); in setupTabLayout() 165 setContentFragment(fragment, tab.getFragmentTag()); in setupTabLayout()
|
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectFragment.java | 119 final TabLayout.Tab tab = tabs.getTabAt(selectedTab); in onCreateView() local 120 tab.select(); in onCreateView()
|