Home
last modified time | relevance | path

Searched refs:mViewPager (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java50 private PagingAwareViewPager mViewPager; field in MediaPickerPanel
101 mViewPager = (PagingAwareViewPager) findViewById(R.id.mediapicker_view_pager); in onFinishInflate()
104 mViewPager.setOnTouchListener(mTouchHandler); in onFinishInflate()
117 setExpanded(mExpanded, false /* animate */, mViewPager.getCurrentItem(), in onFinishInflate()
138 mViewPager.setVisibility(View.GONE); in onMeasure()
139 mViewPager.setAdapter(null); in onMeasure()
163 measureChild(mViewPager, widthMeasureSpec, viewPagerHeightMeasureSpec); in onMeasure()
164 setMeasuredDimension(mViewPager.getMeasuredWidth(), desiredHeight); in onMeasure()
173 final int viewPagerHeight = mViewPager.getMeasuredHeight(); in onLayout()
174 mViewPager.layout(0, y, width, y + viewPagerHeight); in onLayout()
[all …]
DMediaPicker.java148 private ViewPager mViewPager; field in MediaPicker
240 mViewPager = (ViewPager) mMediaPickerPanel.findViewById(R.id.mediapicker_view_pager); in onCreateView()
241 mViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { in onCreateView()
267 mViewPager.setOffscreenPageLimit(0); in onCreateView()
268 mViewPager.setAdapter(mPagerAdapter); in onCreateView()
445 if (mViewPager != null) { in setSupportedMediaTypes()
446 mViewPager.setAdapter(mPagerAdapter); in setSupportedMediaTypes()
459 return mViewPager; in getViewPager()
519 if (mViewPager != null) { in selectChooser()
520 mViewPager.setCurrentItem(chooserIndex, true /* smoothScroll */); in selectChooser()
/packages/apps/Gallery2/src/com/android/photos/
DGalleryActivity.java39 private ViewPager mViewPager; field in GalleryActivity
46 mViewPager = new ViewPager(this); in onCreate()
47 mViewPager.setId(R.id.viewpager); in onCreate()
48 setContentView(mViewPager); in onCreate()
55 mTabsAdapter = new TabsAdapter(this, mViewPager); in onCreate()
98 private final ViewPager mViewPager; field in GalleryActivity.TabsAdapter
116 mViewPager = pager; in TabsAdapter()
117 mViewPager.setAdapter(this); in TabsAdapter()
118 mViewPager.setOnPageChangeListener(this); in TabsAdapter()
167 mViewPager.setCurrentItem(i); in onTabSelected()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DBidiViewPagerHelper.java29 private ViewPager mViewPager; field in BidiViewPagerHelper
32 mViewPager = viewPager; in BidiViewPagerHelper()
40 return getIndexFromBidiIndex(mViewPager.getAdapter().getCount() - 1); in getLastPage()
44 return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.getCurrentItem()) - 1)); in getPreviousPage()
48 return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.getCurrentItem()) + 1)); in getNextPage()
52 return Math.max(0, Math.min(mViewPager.getAdapter().getCount() - 1, position)); in clampToBounds()
56 if (ViewUtils.isViewRtl(mViewPager)) { in getBidiIndex()
57 return mViewPager.getAdapter().getCount() - 1 - position; in getBidiIndex()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java81 private ViewPager mViewPager; field in TimerFragment
110 mViewPager = (ViewPager) view.findViewById(R.id.vertical_view_pager); in onCreateView()
111 mViewPager.setAdapter(mAdapter); in onCreateView()
112 mViewPager.addOnPageChangeListener(mTimerPageChangeListener); in onCreateView()
185 mViewPager.setCurrentItem(index); in onStart()
205 mViewPager.setCurrentItem(index); in onResume()
378 mViewPager.setCurrentItem(0); in onFabClick()
435 final int page = mViewPager.getCurrentItem(); in updatePageIndicators()
553 final Animator fadeOut = ObjectAnimator.ofFloat(mViewPager, ALPHA, 1, 0); in animateTimerRemove()
564 final Animator fadeIn = ObjectAnimator.ofFloat(mViewPager, ALPHA, 0, 1); in animateTimerRemove()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRtlCompatibleViewPagerTest.java46 private RtlCompatibleViewPager mViewPager; field in RtlCompatibleViewPagerTest
50 mViewPager = new RtlCompatibleViewPager( in setUp()
52 mViewPager.setAdapter(new ViewPagerAdapter()); in setUp()
66 mViewPager.setCurrentItem(currentItem); in testRtlCompatibleInner()
70 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner()
73 Parcelable savedInstance = mViewPager.onSaveInstanceState(); in testRtlCompatibleInner()
75 mViewPager.onRestoreInstanceState(savedInstance); in testRtlCompatibleInner()
79 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCustomHeaderViewPager.java36 private ViewPager mViewPager; field in CustomHeaderViewPager
47 mViewPager = (ViewPager) findViewById(R.id.pager); in CustomHeaderViewPager()
55 mViewPager.setCurrentItem(position); in setCurrentItem()
64 Assert.notNull(mViewPager); in setViewHolders()
66 mViewPager.setAdapter(adapter); in setViewHolders()
67 mTabstrip.setViewPager(mViewPager); in setViewHolders()
68 mViewPager.setOnPageChangeListener(new OnPageChangeListener() { in setViewHolders()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DListsFragment.java69 private DialerViewPager mViewPager; field in ListsFragment
123 mCurrentPage = mAdapter.getItem(mViewPager.getCurrentItem()); in onResume()
143 mViewPager.removeOnPageChangeListener(this); in onDestroyView()
174 mViewPager = (DialerViewPager) parentView.findViewById(R.id.lists_pager); in onCreateView()
182 mViewPager.setAdapter(mAdapter); in onCreateView()
183 mViewPager.setOffscreenPageLimit(TAB_COUNT_WITH_VOICEMAIL - 1); in onCreateView()
184 mViewPager.addOnPageChangeListener(this); in onCreateView()
189 mViewPagerTabs.setViewPager(mViewPager); in onCreateView()
229 mViewPager.setCurrentItem(mAdapter.getRtlPosition(TAB_INDEX_VOICEMAIL)); in showTab()
235 mViewPager.setCurrentItem(mAdapter.getRtlPosition(index)); in showTab()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogActivity.java54 private ViewPager mViewPager; field in CallLogActivity
87 mViewPager = (ViewPager) findViewById(R.id.call_log_pager); in onCreate()
90 mViewPager.setAdapter(mViewPagerAdapter); in onCreate()
91 mViewPager.setOffscreenPageLimit(1); in onCreate()
92 mViewPager.setOnPageChangeListener(this); in onCreate()
96 mViewPagerTabs.setViewPager(mViewPager); in onCreate()
97 mViewPager.setCurrentItem(startingTab); in onCreate()
/packages/apps/Settings/src/com/android/settings/widget/
DSlidingTabLayout.java41 private RtlCompatibleViewPager mViewPager; field in SlidingTabLayout
63 mViewPager = viewPager; in setViewPager()
112 mViewPager.setCurrentItem(i); in onClick()
127 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip()
137 tabTitleView.setSelected(i == mViewPager.getCurrentItem()); in populateTabStrip()
176 position = mViewPager.getRtlAwareIndex(position); in onPageSelected()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DTabsAdapter.java46 private final ViewPager mViewPager; field in TabsAdapter
79 mViewPager = pager; in TabsAdapter()
81 mViewPager.setAdapter(this); in TabsAdapter()
82 mViewPager.setOnPageChangeListener(this); in TabsAdapter()
120 mViewPager.setCurrentItem(position); in onTabChanged()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsSummary.java41 private ViewPager mViewPager; field in AppOpsSummary
109 mViewPager = (ViewPager) rootView.findViewById(R.id.pager); in onCreateView()
111 mViewPager.setAdapter(adapter); in onCreateView()
112 mViewPager.setOnPageChangeListener(adapter); in onCreateView()