Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManagerTest.java107 AtomicInteger currentPosition = new AtomicInteger(0); in testGetPhonebookSize_whenTypeIsPhonebook() local
113 currentPosition.set(position); in testGetPhonebookSize_whenTypeIsPhonebook()
120 int pos = currentPosition.addAndGet(1); in testGetPhonebookSize_whenTypeIsPhonebook()
128 contactIdsWithDuplicates.get(currentPosition.get()); in testGetPhonebookSize_whenTypeIsPhonebook()
161 AtomicInteger currentPosition = new AtomicInteger(0); in testGetPhonebookSize_whenTypeIsFavorites() local
167 currentPosition.set(position); in testGetPhonebookSize_whenTypeIsFavorites()
174 int pos = currentPosition.addAndGet(1); in testGetPhonebookSize_whenTypeIsFavorites()
182 contactIdsWithDuplicates.get(currentPosition.get()); in testGetPhonebookSize_whenTypeIsFavorites()
246 AtomicInteger currentPosition = new AtomicInteger(0); in testLoadCallHistoryList() local
251 currentPosition.set(0); in testLoadCallHistoryList()
[all …]
DBluetoothPbapSimVcardManagerTest.java200 AtomicInteger currentPosition = new AtomicInteger(0); in testMoveToPosition_byAlphabeticalOrder_success() local
205 currentPosition.set(0); in testMoveToPosition_byAlphabeticalOrder_success()
212 return currentPosition.get() >= size; in testMoveToPosition_byAlphabeticalOrder_success()
218 int pos = currentPosition.addAndGet(1); in testMoveToPosition_byAlphabeticalOrder_success()
225 return nameList.get(currentPosition.get()); in testMoveToPosition_byAlphabeticalOrder_success()
231 assertThat(currentPosition.get()).isEqualTo(2); in testMoveToPosition_byAlphabeticalOrder_success()
265 AtomicInteger currentPosition = new AtomicInteger(0); in testGetSIMPhonebookNameList_orderByIndexed() local
270 currentPosition.set(0); in testGetSIMPhonebookNameList_orderByIndexed()
277 return currentPosition.get() >= size; in testGetSIMPhonebookNameList_orderByIndexed()
283 int pos = currentPosition.addAndGet(1); in testGetSIMPhonebookNameList_orderByIndexed()
[all …]
/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/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppGridRecyclerView.java84 int currentPosition = viewHolder.getAbsoluteAdapterPosition(); in focusSearch() local
85 int nextPosition = adapter.getNextRotaryFocus(currentPosition, direction); in focusSearch()
88 if ((currentPosition / blockSize) == (nextPosition / blockSize)) { in focusSearch()
/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/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/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/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/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/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DRangingDevice.java248 RangingPosition currentPosition = Conversions.convertToPosition(measurement); in onRangingDataReceived() local
249 if (currentPosition == null) { in onRangingDataReceived()
253 callback.onRangingResult(uwbDevice, currentPosition); in onRangingDataReceived()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DWorkspace.java727 Point currentPosition, int destinationWorkspaceIndex, int y) {
744 Point finalDragStart = currentPosition;
750 currentPosition = screenEdge;
752 return currentPosition;
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java885 final int currentPosition = mDigits.getSelectionStart(); in removePreviousDigitIfPossible() local
886 if (currentPosition > 0) { in removePreviousDigitIfPossible()
887 mDigits.setSelection(currentPosition); in removePreviousDigitIfPossible()
888 mDigits.getText().delete(currentPosition - 1, currentPosition); in removePreviousDigitIfPossible()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarViewController.java583 float currentPosition = isQsb ? child.getX() : child.getLeft(); in addRevealAnimToIsStashed() local
588 if (currentPosition > newPosition) { in addRevealAnimToIsStashed()
591 croppedTransX = -(currentPosition + child.getWidth() - newRight); in addRevealAnimToIsStashed()
593 croppedTransX = newPosition - currentPosition; in addRevealAnimToIsStashed()
/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.java426 long currentPosition = 0; in pausePlayback() local
428 currentPosition = mMediaPlayer.getCurrentPosition(); in pausePlayback()
433 .setState(PlaybackState.STATE_PAUSED, currentPosition, PLAYBACK_SPEED_STOPPED) in pausePlayback()
/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()
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...