Home
last modified time | relevance | path

Searched refs:getCurrentItem (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/ThemePicker/src/com/android/customization/widget/
DPreviewPager.java106 final int previousPos = mViewPager.getCurrentItem() - 1; in PreviewPager()
111 final int NextPos = mViewPager.getCurrentItem() + 1; in PreviewPager()
162 initialPage = isRtl() ? mAdapter.getCount() - 1 - mViewPager.getCurrentItem() in setAdapter()
163 : mViewPager.getCurrentItem(); in setAdapter()
175 updateIndicator(mViewPager.getCurrentItem()); in setAdapter()
195 mPageIndicator.setLocation(mViewPager.getCurrentItem()); in initIndicator()
/packages/apps/Settings/src/com/android/settings/widget/
DRtlCompatibleViewPager.java51 public int getCurrentItem() { in getCurrentItem() method in RtlCompatibleViewPager
52 return getRtlAwareIndex(super.getCurrentItem()); in getCurrentItem()
65 rtlSavedState.position = getCurrentItem(); in onSaveInstanceState()
DSlidingTabLayout.java138 tabTitleView.setSelected(i == mViewPager.getCurrentItem()); in populateTabStrip()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DRtlCompatibleViewPager.java51 public int getCurrentItem() { in getCurrentItem() method in RtlCompatibleViewPager
52 return getRtlAwareIndex(super.getCurrentItem()); in getCurrentItem()
65 rtlSavedState.position = getCurrentItem(); in onSaveInstanceState()
DSlidingTabLayout.java138 tabTitleView.setSelected(i == mViewPager.getCurrentItem()); in populateTabStrip()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPagingAwareViewPager.java47 public int getCurrentItem() { in getCurrentItem() method in PagingAwareViewPager
48 int position = super.getCurrentItem(); in getCurrentItem()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRtlCompatibleViewPagerTest.java64 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner()
73 assertThat(mViewPager.getCurrentItem()).isEqualTo(currentItem); in testRtlCompatibleInner()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.kt388 val page: Int = mViewPager.getCurrentItem() in updatePageIndicators()
585 mAdapter.getTimer(mViewPager.getCurrentItem())
662 if (!before.isExpired && after.isExpired && index != mViewPager.getCurrentItem()) { in timerUpdated()
664 } else if (mCurrentView === mTimersView && index == mViewPager.getCurrentItem()) { in timerUpdated()
DTimerFragment.java434 final int page = mViewPager.getCurrentItem(); in updatePageIndicators()
686 return mAdapter.getCount() == 0 ? null : mAdapter.getTimer(mViewPager.getCurrentItem()); in getTimer()
767 if (!before.isExpired() && after.isExpired() && index != mViewPager.getCurrentItem()) { in timerUpdated()
770 } else if (mCurrentView == mTimersView && index == mViewPager.getCurrentItem()) { in timerUpdated()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DPreviewSeekBarPreferenceFragment.java195 setPagerIndicatorContentDescription(mPreviewPager.getCurrentItem()); in setPreviewLayer()
197 mPreviewPager.getCurrentItem(), animate); in setPreviewLayer()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsTest.java133 assertThat(pager.getCurrentItem()).isEqualTo(1); in setupFragment_twoSubscriptions_correctSelection()
158 assertThat(pager.getCurrentItem()).isEqualTo(0); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/apps/Settings/src/com/android/settings/display/
DPreviewSeekBarPreferenceFragment.java195 setPagerIndicatorContentDescription(mPreviewPager.getCurrentItem()); in setPreviewLayer()
197 mPreviewPager.getCurrentItem(), animate); in setPreviewLayer()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
DCustomHeaderViewPagerTest.java52 assertEquals(1, pager.getCurrentItem()); in testBindFirstLevel()
/packages/apps/Car/Cluster/src/android/car/cluster/
DMainClusterActivity.java241 if (mPager.getCurrentItem() != COMMS_FACET_ID) { in onCreate()
242 mPreviousFacet = mPager.getCurrentItem(); in onCreate()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalActivity.java195 final int index = mPager.getCurrentItem(); in onOptionsItemSelected()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java216 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSettings.java221 final int subId = mSil.get(mViewPager.getCurrentItem()).getSubscriptionId(); in updateTitleForCurrentSub()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactPickerFragmentTest.java148 final View currentPagedView = pager.getChildAt(pager.getCurrentItem()); in testInitialState()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerFragmentTest.java651 assertEquals(0, viewPager.getCurrentItem()); in showTimer_fromIntent()
662 assertEquals(1, viewPager.getCurrentItem()); in showTimer_fromIntent()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogActivity.java128 updateMissedCalls(viewPager.getCurrentItem()); in onStop()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPumpActivity.java170 current.setCurrent(mViewPager.getCurrentItem()); in selectPages()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java117 setExpanded(mExpanded, false /* animate */, mViewPager.getCurrentItem(), in onFinishInflate()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DListsFragment.java128 currentPage = adapter.getItem(viewPager.getCurrentItem()); in onResume()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiPalettesView.java431 mEmojiPager.getCurrentItem()).first != categoryId) { in setCurrentCategoryId()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestActivity.java390 mFullscreenPager.getCurrentItem())); in setFullscreenPagerVisibility()

12