Home
last modified time | relevance | path

Searched refs:getPosition (Results 1 – 25 of 141) sorted by relevance

123456

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DScrollbarHelper.java36 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset()
37 lm.getPosition(endChild)); in computeScrollOffset()
38 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset()
39 lm.getPosition(endChild)); in computeScrollOffset()
48 final int itemRange = Math.abs(lm.getPosition(startChild) in computeScrollOffset()
49 - lm.getPosition(endChild)) + 1; in computeScrollOffset()
68 return Math.abs(lm.getPosition(startChild) - lm.getPosition(endChild)) + 1; in computeScrollExtent()
92 final int laidOutRange = Math.abs(lm.getPosition(startChild) in computeScrollRange()
93 - lm.getPosition(endChild)) in computeScrollRange()
DLinearLayoutManager.java259 state.mAnchorPosition = getPosition(refChild); in onSaveInstanceState()
262 state.mAnchorPosition = getPosition(refChild); in onSaveInstanceState()
403 final int firstChild = getPosition(getChildAt(0)); in findViewByPosition()
407 if (getPosition(child) == position) { in findViewByPosition()
457 final int firstChildPos = getPosition(getChildAt(0)); in computeScrollVectorForPosition()
708 final int firstChildPos = getPosition(getChildAt(0)); in layoutForPredictiveAnimations()
731 updateLayoutStateToFillStart(getPosition(anchor), startOffset); in layoutForPredictiveAnimations()
740 updateLayoutStateToFillEnd(getPosition(anchor), endOffset); in layoutForPredictiveAnimations()
880 int pos = getPosition(getChildAt(0));
1188 mLayoutState.mCurrentPosition = getPosition(child) + mLayoutState.mItemDirection; in updateLayoutState()
[all …]
DLinearSnapHelper.java79 final int currentPosition = layoutManager.getPosition(currentView); in findTargetSnapPosition()
243 final int pos = layoutManager.getPosition(child); in computeDistancePerChild()
/frameworks/base/core/java/com/android/internal/widget/
DScrollbarHelper.java37 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset()
38 lm.getPosition(endChild)); in computeScrollOffset()
39 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset()
40 lm.getPosition(endChild)); in computeScrollOffset()
49 final int itemRange = Math.abs(lm.getPosition(startChild) in computeScrollOffset()
50 - lm.getPosition(endChild)) + 1; in computeScrollOffset()
69 return Math.abs(lm.getPosition(startChild) - lm.getPosition(endChild)) + 1; in computeScrollExtent()
93 final int laidOutRange = Math.abs(lm.getPosition(startChild) in computeScrollRange()
94 - lm.getPosition(endChild)) in computeScrollRange()
DLinearLayoutManager.java254 state.mAnchorPosition = getPosition(refChild); in onSaveInstanceState()
257 state.mAnchorPosition = getPosition(refChild); in onSaveInstanceState()
397 final int firstChild = getPosition(getChildAt(0)); in findViewByPosition()
401 if (getPosition(child) == position) { in findViewByPosition()
451 final int firstChildPos = getPosition(getChildAt(0)); in computeScrollVectorForPosition()
684 final int firstChildPos = getPosition(getChildAt(0)); in layoutForPredictiveAnimations()
707 updateLayoutStateToFillStart(getPosition(anchor), startOffset); in layoutForPredictiveAnimations()
716 updateLayoutStateToFillEnd(getPosition(anchor), endOffset); in layoutForPredictiveAnimations()
856 int pos = getPosition(getChildAt(0));
1164 mLayoutState.mCurrentPosition = getPosition(child) + mLayoutState.mItemDirection; in updateLayoutState()
[all …]
/frameworks/support/content/src/android/support/content/
DInMemoryCursor.java173 return (short) mLongs[getCellPosition(getPosition(), column, FIELD_TYPE_INTEGER)];
180 return (int) mLongs[getCellPosition(getPosition(), column, FIELD_TYPE_INTEGER)];
187 return mLongs[getCellPosition(getPosition(), column, FIELD_TYPE_INTEGER)];
194 return (float) mDoubles[getCellPosition(getPosition(), column, FIELD_TYPE_FLOAT)];
201 return mDoubles[getCellPosition(getPosition(), column, FIELD_TYPE_FLOAT)];
208 return mBlobs[getCellPosition(getPosition(), column, FIELD_TYPE_BLOB)];
215 return mStrings[getCellPosition(getPosition(), column, FIELD_TYPE_STRING)];
238 if (getPosition() < 0) {
241 if (getPosition() >= mRowCount) {
/frameworks/support/emoji/core/src/android/support/text/emoji/
DMetadataListReader.java72 openTypeReader.skip((int) (offsetInfo.getStartOffset() - openTypeReader.getPosition())); in read()
146 reader.skip((int) (metaOffset - reader.getPosition())); in findOffsetInfo()
228 long getPosition(); in getPosition() method
288 public long getPosition() { in getPosition() method in MetadataListReader.InputStreamOpenTypeReader
339 public long getPosition() { in getPosition() method in MetadataListReader.ByteBufferReader
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp234 status_t err = mAudioTrack->getPosition(&mPositionWhenStarting); in requestStart()
265 status_t err = mAudioTrack->getPosition(&mPositionWhenPausing); in requestPause()
321 err = mAudioTrack->getPosition(&position); in updateStateMachine()
333 err = mAudioTrack->getPosition(&position); in updateStateMachine()
433 result = mAudioTrack->getPosition(&position); in getFramesRead()
DAudioStreamRecord.cpp215 status_t err = mAudioRecord->getPosition(&mPositionWhenStarting); in requestStart()
253 err = mAudioRecord->getPosition(&position); in updateStateMachine()
356 result = mAudioRecord->getPosition(&position); in getFramesWritten()
/frameworks/support/media-compat/api21/android/support/v4/media/session/
DPlaybackStateCompatApi21.java31 public static long getPosition(Object stateObj) { in getPosition() method in PlaybackStateCompatApi21
32 return ((PlaybackState)stateObj).getPosition(); in getPosition()
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/
DPlaybackStateCompatTest.java69 assertEquals(0L, state.getPosition()); in testBuilder()
104 assertEquals(TEST_POSITION, state.getPosition()); in testBuilder_setterMethods()
129 assertEquals(TEST_POSITION, state.getPosition()); in testBuilder_setStateWithUpdateTime()
224 assertEquals(TEST_POSITION, stateOut.getPosition()); in testWriteToParcel()
/frameworks/base/core/java/android/database/
DCursorWrapper.java206 public int getPosition() { in getPosition() method in CursorWrapper
207 return mCursor.getPosition(); in getPosition()
DCursor.java71 int getPosition(); in getPosition() method
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp165 *positionFrames = timestamp.getPosition(); in getFreeRunningPosition()
188 *positionFrames = timestamp.getPosition(); in getHardwareTimestamp()
/frameworks/base/core/java/android/widget/
DAlphabetIndexer.java162 int savedCursorPos = cursor.getPosition(); in getPositionForSection()
256 int savedCursorPos = mDataCursor.getPosition(); in getSectionForPosition()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerPrepareForDropTest.java147 final int fromPos = mLayoutManager.getPosition(fromChild); in prepareForDropTest()
149 final int toPos = mLayoutManager.getPosition(onChild); in prepareForDropTest()
/frameworks/native/include/input/
DVelocityTracker.h180 inline const VelocityTracker::Position& getPosition(uint32_t id) const { in getPosition() function
258 inline const VelocityTracker::Position& getPosition(uint32_t id) const { in getPosition() function
/frameworks/native/services/inputflinger/
DPointerControllerInterface.h59 virtual void getPosition(float* outX, float* outY) const = 0;
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaNotificationManager.java315 && mPlaybackState.getPosition() >= 0) { in setNotificationPlaybackState()
317 + (System.currentTimeMillis() - mPlaybackState.getPosition()) / 1000 in setNotificationPlaybackState()
320 .setWhen(System.currentTimeMillis() - mPlaybackState.getPosition()) in setNotificationPlaybackState()
/frameworks/base/media/java/android/media/
DRemoteController.java215 return state.getPosition(); in getEstimatedMediaPosition()
636 if (state == null || state.getPosition() == PlaybackState.PLAYBACK_POSITION_UNKNOWN) { in onNewPlaybackState()
640 state.getPosition(), state.getPlaybackSpeed()); in onNewPlaybackState()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp310 mProxy->setEpoch(mProxy->getEpoch() - mProxy->getPosition()); in start()
315 mNewPosition = mProxy->getPosition() + mUpdatePeriod; in start()
419 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
441 status_t AudioRecord::getPosition(uint32_t *position) const in getPosition() function in android::AudioRecord
448 mProxy->getPosition().getValue(position); in getPosition()
1018 Modulo<uint32_t> position(mProxy->getPosition()); in processAudioBuffer()
1224 Modulo<uint32_t> position(mProxy->getPosition()); in restoreRecord_l()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DWindowDecorActionBar.java596 removeTabAt(tab.getPosition()); in removeTab()
607 ? mSelectedTab.getPosition() : mSavedTabPosition; in removeTabAt()
627 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION; in selectTab()
643 mTabScrollView.animateToTab(tab.getPosition()); in selectTab()
646 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION); in selectTab()
1217 public int getPosition() { in getPosition() method in WindowDecorActionBar.TabImpl
1303 return mSelectedTab != null ? mSelectedTab.getPosition() : -1; in getSelectedNavigationIndex()
/frameworks/base/core/java/com/android/internal/app/
DWindowDecorActionBar.java580 removeTabAt(tab.getPosition()); in removeTab()
591 ? mSelectedTab.getPosition() : mSavedTabPosition; in removeTabAt()
611 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION; in selectTab()
621 mTabScrollView.animateToTab(tab.getPosition()); in selectTab()
624 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION); in selectTab()
1203 public int getPosition() { in getPosition() method in WindowDecorActionBar.TabImpl
1289 return mSelectedTab != null ? mSelectedTab.getPosition() : -1; in getSelectedNavigationIndex()
/frameworks/base/core/java/android/view/inputmethod/
DCompletionInfo.java113 public int getPosition() { in getPosition() method in CompletionInfo
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DRemotePlayer.java135 if (item.getPosition() > 0) { in play()
370 if (item.getPosition() > 0) { in enqueueInternal()
406 mClient.seek(item.getRemoteItemId(), item.getPosition(), null, new ItemActionCallback() { in seekInternal()

123456