Home
last modified time | relevance | path

Searched refs:mTabLayout (Results 1 – 11 of 11) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsTest.java61 private TabLayout mTabLayout; field in ProfileTabsTest
95 mTabLayout = view.findViewById(R.id.tabs); in setUp()
117 assertThat(mTabLayout.getTabCount()).isEqualTo(0); in testUpdateView_singleUser_shouldHide()
125 assertThat(mTabLayout.getTabCount()).isEqualTo(2); in testUpdateView_twoUsers_shouldShow()
127 TabLayout.Tab tab1 = mTabLayout.getTabAt(0); in testUpdateView_twoUsers_shouldShow()
131 TabLayout.Tab tab2 = mTabLayout.getTabAt(1); in testUpdateView_twoUsers_shouldShow()
142 assertThat(mTabLayout.getTabCount()).isEqualTo(3); in testUpdateView_multiUsers_shouldShow()
146 TabLayout.Tab tab = mTabLayout.getTabAt(i); in testUpdateView_multiUsers_shouldShow()
172 assertThat(mTabLayout.getTabCount()).isEqualTo(2); in testUpdateView_twoUsers_subFolder_shouldHide()
185 assertThat(mTabLayout.getTabCount()).isEqualTo(2); in testUpdateView_twoUsers_recents_subFolder_shouldHide()
[all …]
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewInfoActivity.java75 private TabLayout mTabLayout; field in ViewInfoActivity
145 TabLayout tabLayout = mTabLayout; in maybeHideTabs()
185 return mTabLayout; in getTabLayout()
216 mTabLayout = (TabLayout) findViewById(R.id.sliding_tabs); in setupTabs()
222 mTabLayout.setTabsFromPagerAdapter(mTabsAdapter); in setupTabs()
226 mTabLayout.setOnTabSelectedListener( in setupTabs()
231 viewPager.addOnPageChangeListener(new TabLayoutOnPageChangeListener(mTabLayout)); in setupTabs()
234 mTabLayout.setTabsFromPagerAdapter(mTabsAdapter); in setupTabs()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/settings/
DSettingsProfileSelectFragment.java48 private TabLayout mTabLayout; field in SettingsProfileSelectFragment
64 mTabLayout = getTabLayout(view); in onViewCreated()
79 final int selectedTab = mTabLayout.getSelectedTabPosition(); in onPause()
89 final int tabCount = mTabLayout.getTabCount(); in onResume()
94 mTabLayout.getTabAt(previouslySelectedTab).select(); in onResume()
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.kt122 private lateinit var mTabLayout: TabLayout variable in com.android.deskclock.DeskClock
158 mTabLayout = findViewById(R.id.tabs) as TabLayout in onCreate()
166 val tab: TabLayout.Tab = mTabLayout.newTab() in onCreate()
176 text.setTextColor(mTabLayout.getTabTextColors()) in onCreate()
189 mTabLayout.addTab(tab) in onCreate()
268 mTabLayout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener { in onCreate()
414 for (i in 0 until mTabLayout.getTabCount()) { in updateCurrentTab()
415 val tab: TabLayout.Tab? = mTabLayout.getTabAt(i) in updateCurrentTab()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPumpActivity.java90 private TabLayout mTabLayout; field in PumpActivity
105 mTabLayout = findViewById(R.id.activity_pump_tab_layout); in onCreate()
111 mTabLayout.setupWithViewPager(mViewPager); in onCreate()
175 mTabLayout.setVisibility(count <= 1 ? View.GONE : View.VISIBLE); in selectPages()
176 mTabLayout.setTabMode(count <= 4 ? TabLayout.MODE_FIXED : TabLayout.MODE_SCROLLABLE); in selectPages()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java88 protected ViewGroup mTabLayout; field in FloatingHeaderView
131 mTabLayout = findViewById(R.id.tabs); in onFinishInflate()
182 addView(headerRow.mView, indexOfChild(mTabLayout)); in onPluginConnected()
258 mTabLayout.setVisibility(mTabsHidden ? GONE : visibility); in maybeSetTabVisibility()
327 mTabLayout.setTranslationY(mTranslationY); in applyVerticalMove()
393 return mTabLayout; in getTabLayout()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DConfigurationDialogFragment.java64 private TabLayout mTabLayout; field in ConfigurationDialogFragment
82 mTabLayout = view.findViewById(R.id.tab_layout); in onViewCreated()
83 mTabLayout.setupWithViewPager(mViewPager); in onViewCreated()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java69 private SlidingTabLayout mTabLayout; field in WifiCallingSettings
102 mTabLayout = view.findViewById(R.id.sliding_tabs); in onCreateView()
164 mTabLayout.setViewPager(mViewPager); in onStart()
166 mTabLayout.setVisibility(View.GONE); in onStart()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DToolbarControllerImpl.java103 private TabLayout mTabLayout; field in ToolbarControllerImpl
196 mTabLayout = requireViewByRefId(view, R.id.car_ui_portrait_toolbar_tabs); in ToolbarControllerImpl()
300 return mTabLayout.getTabs(); in getTabs()
309 mTabLayout.setTabs(tabs, selectedTab); in setTabsInternal()
369 mTabLayout.selectTab(position); in selectTab()
374 return mTabLayout.getSelectedTab(); in getSelectedTab()
888 boolean hasTabs = mTabLayout.hasTabs(); in update()
963 mTabLayout.setVisibility(hasTabs && !isSearching ? VISIBLE : GONE); in update()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperPreview.java101 private TabLayout mTabLayout; field in LiveWallpaperPreview
304 mTabLayout = findViewById(R.id.tablayout); in populateBottomPane()
360 mTabLayout.setVisibility(View.VISIBLE); in populateBottomPane()
361 mTabLayout.setupWithViewPager(mViewPager); in populateBottomPane()
406 mTabLayout.setAlpha(slideOffset); in setupPreviewMenu()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java128 private TabLayout mTabLayout; field in PhotoPickerActivity
227 mTabLayout = findViewById(R.id.tab_layout); in onCreate()
927 mTabLayout.setVisibility(shouldShowTabLayout ? View.VISIBLE : View.GONE); in updateToolbar()