Searched refs:getPosition (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DScrollbarHelper.java36 final int minPosition = Math.min(lm.getPosition(startChild),
37 lm.getPosition(endChild));
38 final int maxPosition = Math.max(lm.getPosition(startChild),
39 lm.getPosition(endChild));
48 final int itemRange = Math.abs(lm.getPosition(startChild) -
49 lm.getPosition(endChild)) + 1;
68 return Math.abs(lm.getPosition(startChild) - lm.getPosition(endChild)) + 1;
92 final int laidOutRange = Math.abs(lm.getPosition(startChild) -
93 lm.getPosition(endChil
[all...]
H A DLinearLayoutManager.java248 state.mAnchorPosition = getPosition(refChild);
251 state.mAnchorPosition = getPosition(refChild);
391 final int firstChild = getPosition(getChildAt(0));
395 if (getPosition(child) == position) {
442 final int firstChildPos = getPosition(getChildAt(0));
675 final int firstChildPos = getPosition(getChildAt(0));
698 updateLayoutStateToFillStart(getPosition(anchor), startOffset);
707 updateLayoutStateToFillEnd(getPosition(anchor), endOffset);
847 int pos = getPosition(getChildAt(0));
1155 mLayoutState.mCurrentPosition = getPosition(chil
[all...]
/frameworks/native/services/inputflinger/
H A DPointerControllerInterface.h59 virtual void getPosition(float* outX, float* outY) const = 0;
/frameworks/support/v4/api21/android/support/v4/media/session/
H A DPlaybackStateCompatApi21.java31 public static long getPosition(Object stateObj) { method in class:PlaybackStateCompatApi21
32 return ((PlaybackState)stateObj).getPosition();
/frameworks/base/core/java/android/database/
H A DCursor.java71 int getPosition(); method in interface:Cursor
H A DCursorWrapper.java206 public int getPosition() { method in class:CursorWrapper
207 return mCursor.getPosition();
H A DCursorToBulkCursorAdaptor.java195 mCursor.onMove(mCursor.getPosition(), position);
/frameworks/base/core/java/android/view/inputmethod/
H A DCompletionInfo.java113 public int getPosition() { method in class:CompletionInfo
/frameworks/base/core/java/android/widget/
H A DAlphabetIndexer.java162 int savedCursorPos = cursor.getPosition();
256 int savedCursorPos = mDataCursor.getPosition();
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerPrepareForDropTest.java124 final int fromPos = mLayoutManager.getPosition(fromChild);
126 final int toPos = mLayoutManager.getPosition(onChild);
H A DStaggeredGridLayoutManagerTest.java138 findFirstVisibleItemClosestToStart(true, true)).getPosition());
141 findFirstVisibleItemClosestToEnd(true, true)).getPosition());
145 findFirstVisibleItemClosestToStart(false, true)).getPosition());
148 findFirstVisibleItemClosestToEnd(false, true)).getPosition());
688 int deletedPosition = mLayoutManager.getPosition(mLayoutManager.getChildAt(0)) - 2;
704 deletedPosition = mLayoutManager.getPosition(mLayoutManager.getChildAt(2));
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DAnimationView.java74 public float getPosition() { method in class:AnimationView
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DFilteringCursorWrapper.java65 mPosition[mCount++] = cursor.getPosition();
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DModelTest.java177 assertEquals(i, c.getPosition());
193 seen.set(c.getPosition());
214 seen.set(c.getPosition());
251 seen.set(cOut.getPosition());
/frameworks/base/test-runner/src/android/test/mock/
H A DMockCursor.java122 public int getPosition() { method in class:MockCursor
/frameworks/native/include/input/
H A DVelocityTracker.h180 inline const VelocityTracker::Position& getPosition(uint32_t id) const { function in struct:android::LeastSquaresVelocityTrackerStrategy::Movement
258 inline const VelocityTracker::Position& getPosition(uint32_t id) const { function in struct:android::LegacyVelocityTrackerStrategy::Movement
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp307 mProxy->setEpoch(mProxy->getEpoch() - mProxy->getPosition());
312 mNewPosition = mProxy->getPosition() + mUpdatePeriod;
416 mNewPosition = mProxy->getPosition() + updatePeriod;
438 status_t AudioRecord::getPosition(uint32_t *position) const function in class:android::AudioRecord
445 mProxy->getPosition().getValue(position);
961 Modulo<uint32_t> position(mProxy->getPosition());
1167 Modulo<uint32_t> position(mProxy->getPosition());
/frameworks/base/core/java/com/android/internal/app/
H A DWindowDecorActionBar.java583 removeTabAt(tab.getPosition());
594 ? mSelectedTab.getPosition() : mSavedTabPosition;
614 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION;
624 mTabScrollView.animateToTab(tab.getPosition());
627 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION);
1212 public int getPosition() { method in class:WindowDecorActionBar.TabImpl
1298 return mSelectedTab != null ? mSelectedTab.getPosition() : -1;
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DWindowDecorActionBar.java574 removeTabAt(tab.getPosition());
585 ? mSelectedTab.getPosition() : mSavedTabPosition;
605 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION;
621 mTabScrollView.animateToTab(tab.getPosition());
624 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION);
1188 public int getPosition() { method in class:WindowDecorActionBar.TabImpl
1274 return mSelectedTab != null ? mSelectedTab.getPosition() : -1;
H A DActionBarDrawerToggle.java486 public float getPosition() { method in class:ActionBarDrawerToggle.DrawerArrowDrawableToggle
498 public float getPosition(); method in interface:ActionBarDrawerToggle.DrawerToggle
/frameworks/base/media/java/android/media/
H A DRemoteController.java215 return state.getPosition();
636 if (state == null || state.getPosition() == PlaybackState.PLAYBACK_POSITION_UNKNOWN) {
640 state.getPosition(), state.getPlaybackSpeed());
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseCursorPagerAdapter.java253 final int position = mCursor.getPosition();
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DMediaControllerGlue.java174 return (int) mMediaController.getPlaybackState().getPosition();
/frameworks/support/v4/java/android/support/v4/app/
H A DActionBarDrawerToggle.java426 float glyphOffset = mSlider.getPosition();
522 public float getPosition() { method in class:ActionBarDrawerToggle.SlideDrawable
/frameworks/support/design/src/android/support/design/widget/
H A DTabLayout.java590 return mSelectedTab != null ? mSelectedTab.getPosition() : -1;
604 removeTabAt(tab.getPosition());
614 final int selectedTabPosition = mSelectedTab != null ? mSelectedTab.getPosition() : 0;
1133 animateToTab(tab.getPosition());
1137 final int newPosition = tab != null ? tab.getPosition() : Tab.INVALID_POSITION;
1141 if ((currentTab == null || currentTab.getPosition() == Tab.INVALID_POSITION)
1229 * @see #getPosition()
1297 final boolean isSelected = (mParent.getSelectedTabPosition() == getPosition());
1338 public int getPosition() { method in class:TabLayout.Tab
2168 mViewPager.setCurrentItem(tab.getPosition());
[all...]

Completed in 787 milliseconds

1234