/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerFragmentTest.java | 69 private ViewPager viewPager; field in TimerFragmentTest 121 viewPager = view.findViewById(R.id.vertical_view_pager); in setUpFragment() 122 adapter = (TimerPagerAdapter) viewPager.getAdapter(); in setUpFragment() 139 viewPager = null; in tearDown() 183 final TimerItem timerItem = (TimerItem) viewPager.getChildAt(0); in timeClick_startsTimer() 195 final TimerItem timerItem = (TimerItem) viewPager.getChildAt(1); in timeClick_startsSecondTimer() 209 final TimerItem timerItem = (TimerItem) viewPager.getChildAt(0); in timeClick_pausesTimer() 223 final TimerItem timerItem = (TimerItem) viewPager.getChildAt(1); in timeClick_pausesSecondTimer() 240 final TimerItem timerItem = (TimerItem) viewPager.getChildAt(0); in timeClick_restartsTimer() 256 final TimerItem timerItem = (TimerItem) viewPager.getChildAt(1); in timeClick_restartsSecondTimer() [all …]
|
D | TimerItemFragmentTest.java | 64 ViewPager viewPager = (ViewPager) view.findViewById(R.id.vertical_view_pager); in ensureTimerIsHeldSuccessfully_whenOneTimerIsRunning() 65 TimerPagerAdapter adapter = (TimerPagerAdapter) viewPager.getAdapter(); in ensureTimerIsHeldSuccessfully_whenOneTimerIsRunning()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogActivity.java | 54 private ViewPager viewPager; field in CallLogActivity 90 viewPager = (ViewPager) findViewById(R.id.call_log_pager); in onCreate() 93 viewPager.setAdapter(viewPagerAdapter); in onCreate() 94 viewPager.setOffscreenPageLimit(1); in onCreate() 95 viewPager.setOnPageChangeListener(this); in onCreate() 99 viewPagerTabs.setViewPager(viewPager); in onCreate() 100 viewPager.setCurrentItem(startingTab); in onCreate() 125 if (!isChangingConfigurations() && viewPager != null) { in onStop() 128 updateMissedCalls(viewPager.getCurrentItem()); in onStop()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | ListsFragment.java | 67 private DialerViewPager viewPager; field in ListsFragment 128 currentPage = adapter.getItem(viewPager.getCurrentItem()); in onResume() 142 viewPager.removeOnPageChangeListener(this); in onDestroyView() 198 viewPager = (DialerViewPager) parentView.findViewById(R.id.lists_pager); in onCreateView() 205 viewPager.setAdapter(adapter); in onCreateView() 209 viewPager.setOffscreenPageLimit(1); in onCreateView() 211 viewPager.addOnPageChangeListener(this); in onCreateView() 216 viewPagerTabs.setViewPager(viewPager); in onCreateView() 256 viewPager.setCurrentItem(adapter.getRtlPosition(DialtactsPagerAdapter.TAB_INDEX_VOICEMAIL)); in showTab() 262 viewPager.setCurrentItem(adapter.getRtlPosition(index)); in showTab() [all …]
|
/packages/apps/Car/Radio/src/com/android/car/radio/ |
D | RadioActivity.java | 82 ViewPager viewPager = findViewById(R.id.viewpager); in onCreate() local 83 viewPager.setAdapter(mRadioPagerAdapter); in onCreate() 87 viewPager.setCurrentItem(mToolbar.getTabLayout().getTabPosition(t))); in onCreate() 90 setupTabsWithViewPager(viewPager); in onCreate() 161 private void setupTabsWithViewPager(ViewPager viewPager) { in setupTabsWithViewPager() argument 162 viewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in setupTabsWithViewPager()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DotsPageIndicator.java | 77 private ViewPager viewPager; field in DotsPageIndicator 178 public void setViewPager(ViewPager viewPager) { in setViewPager() argument 179 this.viewPager = viewPager; in setViewPager() 180 viewPager.setOnPageChangeListener(this); in setViewPager() 181 setPageCount(viewPager.getAdapter().getCount()); in setViewPager() 182 viewPager.getAdapter().registerDataSetObserver(new DataSetObserver() { in setViewPager() 185 setPageCount(DotsPageIndicator.this.viewPager.getAdapter().getCount()); in setViewPager() 258 if (viewPager != null) { in setCurrentPageImmediate() 259 currentPage = viewPager.getCurrentItem(); in setCurrentPageImmediate() 341 if (viewPager == null || pageCount == 0) { in onDraw()
|
D | SlidingTabLayout.java | 61 public void setViewPager(RtlCompatibleViewPager viewPager) { in setViewPager() argument 64 mViewPager = viewPager; in setViewPager() 65 if (viewPager != null) { in setViewPager() 66 viewPager.addOnPageChangeListener(new InternalViewPagerListener()); in setViewPager()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 77 private ViewPager viewPager; field in DotsPageIndicator 178 public void setViewPager(ViewPager viewPager) { in setViewPager() argument 179 this.viewPager = viewPager; in setViewPager() 180 viewPager.setOnPageChangeListener(this); in setViewPager() 181 setPageCount(viewPager.getAdapter().getCount()); in setViewPager() 182 viewPager.getAdapter().registerDataSetObserver(new DataSetObserver() { in setViewPager() 185 setPageCount(DotsPageIndicator.this.viewPager.getAdapter().getCount()); in setViewPager() 258 if (viewPager != null) { in setCurrentPageImmediate() 259 currentPage = viewPager.getCurrentItem(); in setCurrentPageImmediate() 341 if (viewPager == null || pageCount == 0) { in onDraw()
|
D | SlidingTabLayout.java | 61 public void setViewPager(RtlCompatibleViewPager viewPager) { in setViewPager() argument 64 mViewPager = viewPager; in setViewPager() 65 if (viewPager != null) { in setViewPager() 66 viewPager.addOnPageChangeListener(new InternalViewPagerListener()); in setViewPager()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/view/ |
D | ViewInfoActivity.java | 207 ViewPager viewPager = (ViewPager) findViewById(R.id.view_pager); in setupTabs() local 209 viewPager.setAdapter(mTabsAdapter); in setupTabs() 215 new TabLayout.ViewPagerOnTabSelectedListener(viewPager)); in setupTabs() 219 viewPager.addOnPageChangeListener(new TabLayoutOnPageChangeListener(mTabLayout)); in setupTabs()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ViewPagerTabs.java | 143 public void setViewPager(ViewPager viewPager) { in setViewPager() argument 144 mPager = viewPager; in setViewPager()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 154 RtlCompatibleViewPager viewPager) { in WifiCallingViewPagerAdapter() argument 156 mViewPager = viewPager; in WifiCallingViewPagerAdapter()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingSettings.java | 154 RtlCompatibleViewPager viewPager) { in WifiCallingViewPagerAdapter() argument 156 mViewPager = viewPager; in WifiCallingViewPagerAdapter()
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 109 public void setViewPager(ViewPager viewPager) { in setViewPager() argument 110 mPager = viewPager; in setViewPager()
|