OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getCurrentItem
(Results
1 - 25
of
118
) sorted by null
1
2
3
4
5
/frameworks/base/core/java/android/webkit/
WebBackForwardList.java
32
public abstract WebHistoryItem
getCurrentItem
();
/frameworks/support/core-ui/tests/java/android/support/v4/view/
ViewPagerWithTabStripTest.java
51
assertEquals("Click tab #0 on tab #0", 0, mViewPager.
getCurrentItem
());
55
assertEquals("Click tab #1 on tab #0", 1, mViewPager.
getCurrentItem
());
59
assertEquals("Click tab #0 on tab #1", 0, mViewPager.
getCurrentItem
());
66
assertEquals("Click tab #1 on tab #1", 1, mViewPager.
getCurrentItem
());
70
assertEquals("Click tab #2 on tab #1", 2, mViewPager.
getCurrentItem
());
80
assertEquals("Click in between tabs #0 and #1 on tab #0", 1, mViewPager.
getCurrentItem
());
84
assertEquals("Click in between tabs #0 and #1 on tab #1", 0, mViewPager.
getCurrentItem
());
91
assertEquals("Click in between tabs #1 and #2 on tab #1", 2, mViewPager.
getCurrentItem
());
ViewPagerWithTitleStripTest.java
52
assertEquals("Click tab #0 on tab #0", 0, mViewPager.
getCurrentItem
());
56
assertEquals("Click tab #1 on tab #0", 0, mViewPager.
getCurrentItem
());
62
assertEquals("Click tab #0 on tab #1", 1, mViewPager.
getCurrentItem
());
66
assertEquals("Click tab #1 on tab #1", 1, mViewPager.
getCurrentItem
());
70
assertEquals("Click tab #2 on tab #1", 1, mViewPager.
getCurrentItem
());
81
assertEquals("Click in between tabs #0 and #1 on tab #0", 0, mViewPager.
getCurrentItem
());
88
assertEquals("Click in between tabs #1 and #2 on tab #1", 1, mViewPager.
getCurrentItem
());
92
assertEquals("Click in between tabs #0 and #1 on tab #1", 1, mViewPager.
getCurrentItem
());
BaseViewPagerTest.java
270
assertEquals("Initial state", 0, mViewPager.
getCurrentItem
());
277
assertEquals("Scroll right", 1, mViewPager.
getCurrentItem
());
281
assertEquals("Scroll right", 2, mViewPager.
getCurrentItem
());
286
assertEquals("Scroll right beyond last page", 2, mViewPager.
getCurrentItem
());
291
assertEquals("Scroll left", 1, mViewPager.
getCurrentItem
());
296
assertEquals("Scroll left", 0, mViewPager.
getCurrentItem
());
302
assertEquals("Scroll left beyond first page", 0, mViewPager.
getCurrentItem
());
311
assertEquals("Scroll to last page", 2, mViewPager.
getCurrentItem
());
317
assertEquals("Scroll to first page", 0, mViewPager.
getCurrentItem
());
340
assertEquals("Initial state", 0, mViewPager.
getCurrentItem
());
[
all
...]
ViewPagerActions.java
186
int current = viewPager.
getCurrentItem
();
214
int current = viewPager.
getCurrentItem
();
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
BidiViewPagerHelper.java
44
return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.
getCurrentItem
()) - 1));
48
return clampToBounds(getIndexFromBidiIndex(getBidiIndex(mViewPager.
getCurrentItem
()) + 1));
/packages/apps/Settings/src/com/android/settings/widget/
RtlCompatibleViewPager.java
50
public int
getCurrentItem
() {
51
return getRtlAwareIndex(super.
getCurrentItem
());
64
rtlSavedState.position =
getCurrentItem
();
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
ScreenSlideActivity.java
85
menu.findItem(R.id.action_previous).setEnabled(mPager.
getCurrentItem
() > 0);
90
(mPager.
getCurrentItem
() == mPagerAdapter.getCount() - 1)
109
mPager.setCurrentItem(mPager.
getCurrentItem
() - 1);
115
mPager.setCurrentItem(mPager.
getCurrentItem
() + 1);
/packages/apps/Messaging/src/com/android/messaging/ui/
PagingAwareViewPager.java
47
public int
getCurrentItem
() {
48
int position = super.
getCurrentItem
();
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowViewPager.java
29
public int
getCurrentItem
() {
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
SessionManager.java
63
public PlaylistItem
getCurrentItem
() {
102
mPlayer.getStatus(
getCurrentItem
(), true /* update */);
148
PlaylistItem item =
getCurrentItem
();
171
if (item ==
getCurrentItem
()) {
243
PlaylistItem item =
getCurrentItem
();
318
PlaylistItem item =
getCurrentItem
();
325
PlaylistItem item =
getCurrentItem
();
381
PlaylistItem item =
getCurrentItem
();
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
SessionManager.java
63
public PlaylistItem
getCurrentItem
() {
102
mPlayer.getStatus(
getCurrentItem
(), true /* update */);
148
PlaylistItem item =
getCurrentItem
();
171
if (item ==
getCurrentItem
()) {
243
PlaylistItem item =
getCurrentItem
();
318
PlaylistItem item =
getCurrentItem
();
325
PlaylistItem item =
getCurrentItem
();
381
PlaylistItem item =
getCurrentItem
();
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
SessionManager.java
63
public PlaylistItem
getCurrentItem
() {
102
mPlayer.getStatus(
getCurrentItem
(), true /* update */);
148
PlaylistItem item =
getCurrentItem
();
171
if (item ==
getCurrentItem
()) {
243
PlaylistItem item =
getCurrentItem
();
318
PlaylistItem item =
getCurrentItem
();
325
PlaylistItem item =
getCurrentItem
();
381
PlaylistItem item =
getCurrentItem
();
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
SessionManager.java
65
public PlaylistItem
getCurrentItem
() {
98
mPlayer.getStatus(
getCurrentItem
(), true /* update */);
144
PlaylistItem item =
getCurrentItem
();
167
if (item ==
getCurrentItem
()) {
251
PlaylistItem item =
getCurrentItem
();
326
PlaylistItem item =
getCurrentItem
();
333
PlaylistItem item =
getCurrentItem
();
391
PlaylistItem item =
getCurrentItem
();
/cts/tests/tests/webkit/src/android/webkit/cts/
WebHistoryItemTest.java
108
WebHistoryItem item = list.
getCurrentItem
();
120
item = list.
getCurrentItem
();
WebBackForwardListTest.java
60
assertNull(list.
getCurrentItem
());
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
RtlCompatibleViewPagerTest.java
70
assertThat(mViewPager.
getCurrentItem
()).isEqualTo(currentItem);
79
assertThat(mViewPager.
getCurrentItem
()).isEqualTo(currentItem);
/external/deqp/executor/
xeTestResultParser.hpp
84
ri::Item*
getCurrentItem
(void);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ViewPagerTest.java
37
assertEquals(2, pager.
getCurrentItem
());
/frameworks/support/core-ui/java/android/support/v4/view/
PagerTabStrip.java
110
mPager.setCurrentItem(mPager.
getCurrentItem
() - 1);
118
mPager.setCurrentItem(mPager.
getCurrentItem
() + 1);
250
mPager.setCurrentItem(mPager.
getCurrentItem
() - 1);
252
mPager.setCurrentItem(mPager.
getCurrentItem
() + 1);
PagerTitleStrip.java
322
updateText(mPager.
getCurrentItem
(), newAdapter);
488
updateText(mPager.
getCurrentItem
(), mPager.getAdapter());
491
updateTextPositions(mPager.
getCurrentItem
(), offset, true);
508
updateText(mPager.
getCurrentItem
(), mPager.getAdapter());
511
updateTextPositions(mPager.
getCurrentItem
(), offset, true);
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
CustomHeaderViewPagerTest.java
52
assertEquals(1, pager.
getCurrentItem
());
/frameworks/support/design/tests/src/android/support/design/widget/
TabLayoutWithViewPagerTest.java
270
assertEquals("Selected page", 0, mViewPager.
getCurrentItem
());
279
mViewPager.
getCurrentItem
());
289
assertEquals("Scroll left #" + i, expectedCurrentTabIndex, mViewPager.
getCurrentItem
());
304
assertEquals("Selected page", 0, mViewPager.
getCurrentItem
());
312
assertEquals("Select tab #" + i, i, mViewPager.
getCurrentItem
());
319
assertEquals("Scroll left #" + i, i, mViewPager.
getCurrentItem
());
339
assertEquals("Selected tab", mViewPager.
getCurrentItem
(),
350
assertEquals("Default selected page", 0, mViewPager.
getCurrentItem
());
617
assertEquals("Selected page", selected, mViewPager.
getCurrentItem
());
/frameworks/support/design/tests/src/android/support/design/testutils/
ViewPagerActions.java
52
int current = viewPager.
getCurrentItem
();
80
int current = viewPager.
getCurrentItem
();
/frameworks/base/core/java/android/widget/
DayPickerView.java
313
if (position != mViewPager.
getCurrentItem
()) {
326
if (position != mViewPager.
getCurrentItem
()) {
370
updateButtonVisibility(mViewPager.
getCurrentItem
());
405
return mViewPager.
getCurrentItem
();
447
final int nextItem = mViewPager.
getCurrentItem
() + direction;
Completed in 1786 milliseconds
1
2
3
4
5