/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | PreviewPager.java | 58 private final ViewPager mViewPager; field in PreviewPager 88 mViewPager = findViewById(R.id.preview_viewpager); in PreviewPager() 89 mViewPager.setPageTransformer(false, (view, position) -> { in PreviewPager() 90 int origin = mViewPager.getPaddingStart(); in PreviewPager() 92 int rightBoundary = mViewPager.getWidth(); in PreviewPager() 111 mViewPager.setPageMargin(res.getDimensionPixelOffset(R.dimen.preview_page_gap)); in PreviewPager() 112 mViewPager.setClipToPadding(false); in PreviewPager() 114 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() 117 mViewPager.setPadding( in PreviewPager() 127 mViewPager.setPadding( 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/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/unit/src/com/android/settings/widget/ |
D | RtlCompatibleViewPagerTest.java | 40 private RtlCompatibleViewPager mViewPager; field in RtlCompatibleViewPagerTest 44 mViewPager = new RtlCompatibleViewPager(ApplicationProvider.getApplicationContext()); in setUp() 45 mViewPager.setAdapter(new ViewPagerAdapter()); in setUp() 59 mViewPager.setCurrentItem(currentItem); in testRtlCompatibleInner() 63 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner() 66 Parcelable savedInstance = mViewPager.onSaveInstanceState(); in testRtlCompatibleInner() 68 mViewPager.onRestoreInstanceState(savedInstance); in testRtlCompatibleInner() 72 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsContainerView.java | 111 private AllAppsPagedView mViewPager; field in AllAppsContainerView 190 if (currentPage != 0 && mViewPager != null) { in dispatchRestoreInstanceState() 191 mViewPager.setCurrentPage(currentPage); in dispatchRestoreInstanceState() 322 mViewPager.getNextPage() == 0 in getDescription() 332 if (!mUsingTabs || mViewPager.getNextPage() == 0) { in getActiveRecyclerView() 458 mAH[AdapterHolder.MAIN].setup(mViewPager.getChildAt(0), mPersonalMatcher); in rebindAdapters() 459 mAH[AdapterHolder.WORK].setup(mViewPager.getChildAt(1), mWorkMatcher); in rebindAdapters() 461 mViewPager.getPageIndicator().setActiveMarker(AdapterHolder.MAIN); in rebindAdapters() 464 if (mViewPager.snapToPage(AdapterHolder.MAIN)) { in rebindAdapters() 471 if (mViewPager.snapToPage(AdapterHolder.WORK)) { in rebindAdapters() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 65 private RtlCompatibleViewPager mViewPager; field in WifiCallingSettings 98 mViewPager = (RtlCompatibleViewPager) view.findViewById(R.id.view_pager); in onCreateView() 100 mPagerAdapter = new WifiCallingViewPagerAdapter(getChildFragmentManager(), mViewPager); in onCreateView() 101 mViewPager.setAdapter(mPagerAdapter); in onCreateView() 102 mViewPager.addOnPageChangeListener(new InternalViewPagerListener()); in onCreateView() 130 mViewPager.setCurrentItem(mSil.indexOf(subInfo)); in maybeSetViewForSubId() 155 mTabLayout.setViewPager(mViewPager); in onStart() 190 private final RtlCompatibleViewPager mViewPager; field in WifiCallingSettings.WifiCallingViewPagerAdapter 195 mViewPager = viewPager; in WifiCallingViewPagerAdapter() 221 mViewPager.getRtlAwareIndex(position)); in instantiateItem() [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/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFragment.kt | 70 private lateinit var mViewPager: ViewPager variable in com.android.deskclock.timer.TimerFragment 89 mViewPager = view.findViewById<View>(R.id.vertical_view_pager) as ViewPager in onCreateView() 90 mViewPager.setAdapter(mAdapter) in onCreateView() 91 mViewPager.addOnPageChangeListener(mTimerPageChangeListener) in onCreateView() 162 mViewPager.setCurrentItem(index) in onStart() 181 mViewPager.setCurrentItem(index) in onResume() 338 mViewPager.setCurrentItem(0) in onFabClick() 387 val page: Int = mViewPager.getCurrentItem() in updatePageIndicators() 449 val fadeOut: Animator = ObjectAnimator.ofFloat(mViewPager, View.ALPHA, 1f, 0f) in animateTimerRemove() 459 val fadeIn: Animator = ObjectAnimator.ofFloat(mViewPager, View.ALPHA, 0f, 1f) in animateTimerRemove() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsFullSheet.java | 156 @Nullable private PersonalWorkPagedView mViewPager; field in WidgetsFullSheet 206 mViewPager = findViewById(R.id.widgets_view_pager); in onFinishInflate() 207 mViewPager.initParentViews(this); in onFinishInflate() 208 mViewPager.getPageIndicator().setOnActivePageChangedListener(this); in onFinishInflate() 209 mViewPager.getPageIndicator().setActiveMarker(AdapterHolder.PRIMARY); in onFinishInflate() 212 .setOnClickListener((View view) -> mViewPager.snapToPage(0)); in onFinishInflate() 214 .setOnClickListener((View view) -> mViewPager.snapToPage(1)); in onFinishInflate() 218 mViewPager = null; in onFinishInflate() 239 mViewPager, in onFinishInflate() 300 if (!mHasWorkProfile || mViewPager.getCurrentPage() == AdapterHolder.PRIMARY) { in getRecyclerView() [all …]
|
/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/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/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | CarAudioInputTestFragment.java | 55 private ViewPager mViewPager; field in CarAudioInputTestFragment 92 mViewPager = view.findViewById(R.id.zones_input_view_pager); in onViewCreated() 95 mViewPager.setAdapter(mInputAudioZoneAdapter); in onViewCreated() 97 mZonesTabLayout.setupWithViewPager(mViewPager); in onViewCreated()
|
D | AudioTestFragment.java | 146 private ViewPager mViewPager; field in AudioTestFragment 641 mViewPager = view.findViewById(R.id.zones_player_view_pager); in setUpCarSoundsLayouts() 643 mViewPager.setAdapter(mAudioPlayerZoneAdapter); in setUpCarSoundsLayouts() 650 mPlayerTabLayout.setupWithViewPager(mViewPager); in setUpCarSoundsLayouts()
|
/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/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperPreview.java | 100 private ViewPager mViewPager; field in LiveWallpaperPreview 303 mViewPager = findViewById(R.id.viewpager); in populateBottomPane() 348 mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { in populateBottomPane() 351 mViewPager.requestLayout(); in populateBottomPane() 356 mViewPager.setAdapter(pagerAdapter); in populateBottomPane() 361 mTabLayout.setupWithViewPager(mViewPager); in populateBottomPane() 407 mViewPager.setAlpha(slideOffset); in setupPreviewMenu()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityGestureNavigationTutorial.java | 454 private final ViewPager mViewPager; field in AccessibilityGestureNavigationTutorial.TutorialPageChangeListener 459 this.mViewPager = viewPager; in TutorialPageChangeListener() 500 mViewPager.setContentDescription( in onPageSelected()
|