/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | PreviewPager.java | 50 private final ViewPager mViewPager; field in PreviewPager 80 mViewPager = findViewById(R.id.preview_viewpager); in PreviewPager() 81 mViewPager.setPageMargin(res.getDimensionPixelOffset(R.dimen.preview_page_gap)); in PreviewPager() 82 mViewPager.setClipToPadding(false); in PreviewPager() 84 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() 87 mViewPager.setPadding( in PreviewPager() 97 mViewPager.setPadding( in PreviewPager() 106 final int previousPos = mViewPager.getCurrentItem() - 1; in PreviewPager() 107 mViewPager.setCurrentItem(previousPos, true); in PreviewPager() 111 final int NextPos = mViewPager.getCurrentItem() + 1; in PreviewPager() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | MediaPickerPanel.java | 50 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 …]
|
D | MediaPicker.java | 146 private ViewPager mViewPager; field in MediaPicker 227 mViewPager = (ViewPager) mMediaPickerPanel.findViewById(R.id.mediapicker_view_pager); in onCreateView() 228 mViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { in onCreateView() 254 mViewPager.setOffscreenPageLimit(0); in onCreateView() 255 mViewPager.setAdapter(mPagerAdapter); in onCreateView() 432 if (mViewPager != null) { in setSupportedMediaTypes() 433 mViewPager.setAdapter(mPagerAdapter); in setSupportedMediaTypes() 446 return mViewPager; in getViewPager() 506 if (mViewPager != null) { in selectChooser() 507 mViewPager.setCurrentItem(chooserIndex, true /* smoothScroll */); in selectChooser()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 57 private RtlCompatibleViewPager mViewPager; field in WifiCallingSettings 90 mViewPager = (RtlCompatibleViewPager) view.findViewById(R.id.view_pager); in onCreateView() 92 mPagerAdapter = new WifiCallingViewPagerAdapter(getChildFragmentManager(), mViewPager); in onCreateView() 93 mViewPager.setAdapter(mPagerAdapter); in onCreateView() 94 mViewPager.addOnPageChangeListener(new InternalViewPagerListener()); in onCreateView() 112 mViewPager.setCurrentItem(mSil.indexOf(subInfo)); in maybeSetViewForSubId() 136 mTabLayout.setViewPager(mViewPager); in onStart() 151 private final RtlCompatibleViewPager mViewPager; field in WifiCallingSettings.WifiCallingViewPagerAdapter 156 mViewPager = viewPager; in WifiCallingViewPagerAdapter() 181 mViewPager.getRtlAwareIndex(position)); in instantiateItem() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingSettings.java | 57 private RtlCompatibleViewPager mViewPager; field in WifiCallingSettings 90 mViewPager = (RtlCompatibleViewPager) view.findViewById(R.id.view_pager); in onCreateView() 92 mPagerAdapter = new WifiCallingViewPagerAdapter(getChildFragmentManager(), mViewPager); in onCreateView() 93 mViewPager.setAdapter(mPagerAdapter); in onCreateView() 94 mViewPager.addOnPageChangeListener(new InternalViewPagerListener()); in onCreateView() 112 mViewPager.setCurrentItem(mSil.indexOf(subInfo)); in maybeSetViewForSubId() 136 mTabLayout.setViewPager(mViewPager); in onStart() 151 private final RtlCompatibleViewPager mViewPager; field in WifiCallingSettings.WifiCallingViewPagerAdapter 156 mViewPager = viewPager; in WifiCallingViewPagerAdapter() 181 mViewPager.getRtlAwareIndex(position)); in instantiateItem() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | GalleryActivity.java | 39 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/Settings/tests/robotests/src/com/android/settings/widget/ |
D | RtlCompatibleViewPagerTest.java | 41 private RtlCompatibleViewPager mViewPager; field in RtlCompatibleViewPagerTest 45 mViewPager = new RtlCompatibleViewPager(RuntimeEnvironment.application); in setUp() 46 mViewPager.setAdapter(new ViewPagerAdapter()); in setUp() 60 mViewPager.setCurrentItem(currentItem); in testRtlCompatibleInner() 64 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner() 67 Parcelable savedInstance = mViewPager.onSaveInstanceState(); in testRtlCompatibleInner() 69 mViewPager.onRestoreInstanceState(savedInstance); in testRtlCompatibleInner() 73 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFragment.kt | 71 private lateinit var mViewPager: ViewPager variable in com.android.deskclock.timer.TimerFragment 90 mViewPager = view.findViewById<View>(R.id.vertical_view_pager) as ViewPager in onCreateView() 91 mViewPager.setAdapter(mAdapter) in onCreateView() 92 mViewPager.addOnPageChangeListener(mTimerPageChangeListener) in onCreateView() 163 mViewPager.setCurrentItem(index) in onStart() 182 mViewPager.setCurrentItem(index) in onResume() 339 mViewPager.setCurrentItem(0) in onFabClick() 388 val page: Int = mViewPager.getCurrentItem() in updatePageIndicators() 450 val fadeOut: Animator = ObjectAnimator.ofFloat(mViewPager, View.ALPHA, 1f, 0f) in animateTimerRemove() 460 val fadeIn: Animator = ObjectAnimator.ofFloat(mViewPager, View.ALPHA, 0f, 1f) in animateTimerRemove() [all …]
|
D | TimerFragment.java | 81 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() 434 final int page = mViewPager.getCurrentItem(); in updatePageIndicators() 552 final Animator fadeOut = ObjectAnimator.ofFloat(mViewPager, ALPHA, 1, 0); in animateTimerRemove() 563 final Animator fadeIn = ObjectAnimator.ofFloat(mViewPager, ALPHA, 0, 1); in animateTimerRemove() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsContainerView.java | 89 private AllAppsPagedView mViewPager; field in AllAppsContainerView 243 mViewPager.getNextPage() == 0 in getDescription() 253 if (!mUsingTabs || mViewPager.getNextPage() == 0) { in getActiveRecyclerView() 388 mAH[AdapterHolder.MAIN].setup(mViewPager.getChildAt(0), mPersonalMatcher); in rebindAdapters() 389 mAH[AdapterHolder.WORK].setup(mViewPager.getChildAt(1), mWorkMatcher); in rebindAdapters() 390 onTabChanged(mViewPager.getNextPage()); in rebindAdapters() 414 mViewPager = (AllAppsPagedView) newView; in replaceRVContainer() 415 mViewPager.initParentViews(this); in replaceRVContainer() 416 mViewPager.getPageIndicator().setContainerView(this); in replaceRVContainer() 418 mViewPager = null; in replaceRVContainer() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CustomHeaderViewPager.java | 36 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/Settings/src/com/android/settings/widget/ |
D | SlidingTabLayout.java | 42 private RtlCompatibleViewPager mViewPager; field in SlidingTabLayout 64 mViewPager = viewPager; in setViewPager() 113 mViewPager.setCurrentItem(i); in onClick() 128 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip() 138 tabTitleView.setSelected(i == mViewPager.getCurrentItem()); in populateTabStrip() 177 position = mViewPager.getRtlAwareIndex(position); in onPageSelected()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | SlidingTabLayout.java | 42 private RtlCompatibleViewPager mViewPager; field in SlidingTabLayout 64 mViewPager = viewPager; in setViewPager() 113 mViewPager.setCurrentItem(i); in onClick() 128 final PagerAdapter adapter = mViewPager.getAdapter(); in populateTabStrip() 138 tabTitleView.setSelected(i == mViewPager.getCurrentItem()); in populateTabStrip() 177 position = mViewPager.getRtlAwareIndex(position); in onPageSelected()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/ |
D | PumpActivity.java | 89 private ViewPager mViewPager; field in PumpActivity 104 mViewPager = findViewById(R.id.activity_pump_view_pager); in onCreate() 110 mViewPager.setAdapter(mActivityPagerAdapter); in onCreate() 111 mTabLayout.setupWithViewPager(mViewPager); in onCreate() 170 current.setCurrent(mViewPager.getCurrentItem()); in selectPages() 177 mViewPager.setCurrentItem(pages.getCurrent()); in selectPages()
|
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/ |
D | ConfigurationDialogFragment.java | 65 private ViewPager mViewPager; field in ConfigurationDialogFragment 79 mViewPager = view.findViewById(R.id.view_pager); in onViewCreated() 80 mViewPager.setAdapter(mAdapter); in onViewCreated() 83 mTabLayout.setupWithViewPager(mViewPager); in onViewCreated()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | LivePreviewFragment.java | 98 private ViewPager mViewPager; field in LivePreviewFragment 192 mViewPager = bottomSheet.findViewById(R.id.viewpager); in setUpBottomSheetView() 233 mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in setUpBottomSheetView() 236 mViewPager.requestLayout(); in setUpBottomSheetView() 241 mViewPager.setAdapter(pagerAdapter); in setUpBottomSheetView() 246 mTabLayout.setupWithViewPager(mViewPager); in setUpBottomSheetView() 248 mViewPager.setCurrentItem(0); in setUpBottomSheetView()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperPreview.java | 99 private ViewPager mViewPager; field in LiveWallpaperPreview 302 mViewPager = findViewById(R.id.viewpager); in populateBottomPane() 347 mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in populateBottomPane() 350 mViewPager.requestLayout(); in populateBottomPane() 355 mViewPager.setAdapter(pagerAdapter); in populateBottomPane() 360 mTabLayout.setupWithViewPager(mViewPager); in populateBottomPane() 406 mViewPager.setAlpha(slideOffset); in setupPreviewMenu()
|