Home
last modified time | relevance | path

Searched refs:viewPager (Results 1 – 14 of 14) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerFragmentTest.java69 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 …]
DTimerItemFragmentTest.java64 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/
DCallLogActivity.java54 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/
DListsFragment.java67 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/
DRadioActivity.java82 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/
DDotsPageIndicator.java77 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()
DSlidingTabLayout.java61 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/
DDotsPageIndicator.java77 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()
DSlidingTabLayout.java61 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/
DViewInfoActivity.java207 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/
DViewPagerTabs.java143 public void setViewPager(ViewPager viewPager) { in setViewPager() argument
144 mPager = viewPager; in setViewPager()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java154 RtlCompatibleViewPager viewPager) { in WifiCallingViewPagerAdapter() argument
156 mViewPager = viewPager; in WifiCallingViewPagerAdapter()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSettings.java154 RtlCompatibleViewPager viewPager) { in WifiCallingViewPagerAdapter() argument
156 mViewPager = viewPager; in WifiCallingViewPagerAdapter()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java109 public void setViewPager(ViewPager viewPager) { in setViewPager() argument
110 mPager = viewPager; in setViewPager()