Home
last modified time | relevance | path

Searched refs:currentPosition (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DContactFilterCursor.java60 private int currentPosition = 0; field in ContactFilterCursor
334 currentPosition = 0; in filter()
340 currentPosition = position; in moveToPosition()
341 return currentPosition < getCount() in moveToPosition()
342 && cursor.moveToPosition(queryFilteredPositions.get(currentPosition)); in moveToPosition()
347 currentPosition += offset; in move()
348 return moveToPosition(currentPosition); in move()
358 return currentPosition == 0; in isFirst()
363 return currentPosition == getCount() - 1; in isLast()
368 return currentPosition; in getPosition()
[all …]
DSearchContactViewHolder.java133 int currentPosition = cursor.getPosition(); in shouldShowPhoto() local
135 cursor.moveToPosition(currentPosition - 1); in shouldShowPhoto()
139 cursor.moveToPosition(currentPosition); in shouldShowPhoto()
142 cursor.moveToPosition(currentPosition); in shouldShowPhoto()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/
DDirectoryContactViewHolder.java107 int currentPosition = cursor.getPosition(); in shouldShowPhoto() local
109 cursor.moveToPosition(currentPosition - 1); in shouldShowPhoto()
113 cursor.moveToPosition(currentPosition); in shouldShowPhoto()
116 cursor.moveToPosition(currentPosition); in shouldShowPhoto()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java1102 public int currentPosition = 0; field in PduComposer.LengthRecordNode
1155 temp.currentPosition = mPosition; in newbuf()
1171 final int currentPosition = mPosition; in pop() local
1174 mPosition = stack.currentPosition; in pop()
1183 toCopy.currentPosition = currentPosition; in pop()
1191 toCopy.currentPosition); in copy()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java138 int currentPosition = 0; in buildIndexerFromDisplayNames() local
151 mSectionStartingPositions.add(currentPosition); in buildIndexerFromDisplayNames()
153 currentPosition++; in buildIndexerFromDisplayNames()
/packages/apps/TV/src/com/android/tv/ui/
DChannelBannerView.java821 long currentPosition = mCurrentPlayingPositionProvider.get();
829 getProgressPercent(currentPosition, programStartTime, programEndTime));
833 getProgressPercent(currentPosition, programStartTime, programEndTime));
862 long currentPosition = mCurrentPlayingPositionProvider.get();
866 && currentPosition >= recording.getStartTimeMs()
867 && currentPosition <= recording.getEndTimeMs());
DSelectInputView.java173 int currentPosition = mInputList.indexOf(mSelectedInput); in onKeyUp() local
174 int nextPosition = currentPosition; in onKeyUp()
180 if (nextPosition == currentPosition) { in onKeyUp()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamer.java121 long currentPosition = mStartBufferedPosition + mLastReadPosition.get(); in read() local
124 ((endPosition - currentPosition + TS_PACKET_SIZE - 1) / TS_PACKET_SIZE) in read()
127 mStartBufferedPosition = currentPosition + diff; in read()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java275 int currentPosition = mScope.view.getChildAdapterPosition(view); in findTargetPosition() local
279 if (currentPosition > 0) { in findTargetPosition()
286 if (currentPosition < mScope.adapter.getItemCount() - 1) { in findTargetPosition()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java882 final int currentPosition = mDigits.getSelectionStart(); in removePreviousDigitIfPossible() local
883 if (currentPosition > 0) { in removePreviousDigitIfPossible()
884 mDigits.setSelection(currentPosition); in removePreviousDigitIfPossible()
885 mDigits.getText().delete(currentPosition - 1, currentPosition); in removePreviousDigitIfPossible()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadFragment.java1130 final int currentPosition = digits.getSelectionStart(); in removePreviousDigitIfPossible() local
1131 if (currentPosition > 0 && digit == digits.getText().charAt(currentPosition - 1)) { in removePreviousDigitIfPossible()
1132 digits.setSelection(currentPosition); in removePreviousDigitIfPossible()
1133 digits.getText().delete(currentPosition - 1, currentPosition); in removePreviousDigitIfPossible()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java419 long currentPosition = 0; in pausePlayback() local
421 currentPosition = mMediaPlayer.getCurrentPosition(); in pausePlayback()
426 .setState(PlaybackState.STATE_PAUSED, currentPosition, PLAYBACK_SPEED_STOPPED) in pausePlayback()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java564 int currentPosition = getChildPosition(child); in fling() local
565 if ((currentPosition == 0 && velocityY < 0) || in fling()
566 (currentPosition == getAdapter().getItemCount() - 1 && velocityY > 0)) { in fling()
588 0, Math.min(getAdapter().getItemCount() - 1, currentPosition + delta)); in fling()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java720 final int currentPosition = getScroll(); in scrollUpForEntranceAnimation() local
721 final int bottomScrollPosition = currentPosition in scrollUpForEntranceAnimation()
725 final int desiredValue = currentPosition + (scrollToCurrentPosition ? currentPosition in scrollUpForEntranceAnimation()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java1628 private float getPosition(long time, float currentPosition) { in getPosition() argument
1637 return historyPosition.getPosition() * weight + (1f - weight) * currentPosition; in getPosition()