Searched refs:viewPager (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/viewpager/src/androidTest/java/androidx/viewpager/widget/ |
D | ViewPagerActions.java | 115 final ViewPager viewPager = (ViewPager) view; in wrap() local 118 viewPager.addOnPageChangeListener(customListener); in wrap() 136 viewPager.removeOnPageChangeListener(customListener); in wrap() 161 ViewPager viewPager = (ViewPager) view; 162 viewPager.arrowScroll(direction); 187 ViewPager viewPager = (ViewPager) view; 188 int current = viewPager.getCurrentItem(); 189 viewPager.setCurrentItem(current + 1, smoothScroll); 215 ViewPager viewPager = (ViewPager) view; 216 int current = viewPager.getCurrentItem(); [all …]
|
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/ |
D | OrientationTest.java | 41 ViewPager2 viewPager = new ViewPager2(InstrumentationRegistry.getContext()); in test_orientation_noAttrs() local 42 assertThat(viewPager.getOrientation(), equalTo(Orientation.HORIZONTAL)); in test_orientation_noAttrs() 47 ViewPager2 viewPager = new ViewPager2(InstrumentationRegistry.getContext(), null); in test_orientation_nullAttrs() local 48 assertThat(viewPager.getOrientation(), equalTo(Orientation.HORIZONTAL)); in test_orientation_nullAttrs() 69 ViewPager2 viewPager = (ViewPager2) layoutInflater.inflate(layoutId, null); in assertOrientationCorrect() local 70 assertThat(viewPager.getOrientation(), equalTo(expectedOrientation)); in assertOrientationCorrect()
|
D | BasicTest.java | 55 ViewPager2 viewPager = new ViewPager2(InstrumentationRegistry.getContext()); in test_recyclerViewAdapter_pageFillEnforced() local 56 viewPager.setAdapter(new RecyclerView.Adapter<RecyclerView.ViewHolder>() { in test_recyclerViewAdapter_pageFillEnforced() 78 viewPager.measure(0, 0); // equivalent of unspecified in test_recyclerViewAdapter_pageFillEnforced() 87 ViewPager2 viewPager = new ViewPager2(context); in test_childrenNotAllowed() local 88 viewPager.addView(new View(context)); in test_childrenNotAllowed()
|
D | SwipeTest.java | 255 final ViewPager2 viewPager = mActivityTestRule.getActivity().findViewById(R.id.view_pager); 256 RecyclerView recyclerView = (RecyclerView) viewPager.getChildAt(0); // HACK 262 viewPager.setOrientation(mTestConfig.mOrientation);
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerView.java | 191 final ViewPager viewPager = mViewPager; 192 measureChild(viewPager, widthMeasureSpec, heightMeasureSpec); 194 final int measuredWidthAndState = viewPager.getMeasuredWidthAndState(); 195 final int measuredHeightAndState = viewPager.getMeasuredHeightAndState(); 198 final int pagerWidth = viewPager.getMeasuredWidth(); 199 final int pagerHeight = viewPager.getMeasuredHeight();
|
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/ |
D | PagerTitleStrip.java | 504 public void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, in onAdapterChanged() argument
|
D | ViewPager.java | 370 void onAdapterChanged(@NonNull ViewPager viewPager, in onAdapterChanged() argument
|