/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManagerTest.java | 104 AtomicInteger currentPosition = new AtomicInteger(0); in testGetPhonebookSize_whenTypeIsPhonebook() local 107 currentPosition.set(position); in testGetPhonebookSize_whenTypeIsPhonebook() 111 int pos = currentPosition.addAndGet(1); in testGetPhonebookSize_whenTypeIsPhonebook() 115 return (long) contactIdsWithDuplicates.get(currentPosition.get()); in testGetPhonebookSize_whenTypeIsPhonebook() 139 AtomicInteger currentPosition = new AtomicInteger(0); in testGetPhonebookSize_whenTypeIsFavorites() local 142 currentPosition.set(position); in testGetPhonebookSize_whenTypeIsFavorites() 146 int pos = currentPosition.addAndGet(1); in testGetPhonebookSize_whenTypeIsFavorites() 150 return (long) contactIdsWithDuplicates.get(currentPosition.get()); in testGetPhonebookSize_whenTypeIsFavorites() 206 AtomicInteger currentPosition = new AtomicInteger(0); in testLoadCallHistoryList() local 208 currentPosition.set(0); in testLoadCallHistoryList() [all …]
|
D | BluetoothPbapSimVcardManagerTest.java | 199 AtomicInteger currentPosition = new AtomicInteger(0); in testMoveToPosition_byAlphabeticalOrder_success() local 201 currentPosition.set(0); in testMoveToPosition_byAlphabeticalOrder_success() 205 return currentPosition.get() >= size; in testMoveToPosition_byAlphabeticalOrder_success() 208 int pos = currentPosition.addAndGet(1); in testMoveToPosition_byAlphabeticalOrder_success() 212 return nameList.get(currentPosition.get()); in testMoveToPosition_byAlphabeticalOrder_success() 218 assertThat(currentPosition.get()).isEqualTo(2); in testMoveToPosition_byAlphabeticalOrder_success() 252 AtomicInteger currentPosition = new AtomicInteger(0); in testGetSIMPhonebookNameList_orderByIndexed() local 254 currentPosition.set(0); in testGetSIMPhonebookNameList_orderByIndexed() 258 return currentPosition.get() >= size; in testGetSIMPhonebookNameList_orderByIndexed() 261 int pos = currentPosition.addAndGet(1); in testGetSIMPhonebookNameList_orderByIndexed() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/ |
D | ContactFilterCursor.java | 60 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 …]
|
D | SearchContactViewHolder.java | 133 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/ |
D | DirectoryContactViewHolder.java | 107 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/ui/contact/ |
D | ContactSectionIndexer.java | 138 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/ |
D | PduComposer.java | 1102 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/ |
D | TunerTsStreamer.java | 121 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/ |
D | ChannelBannerView.java | 821 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());
|
D | SelectInputView.java | 173 int currentPosition = mInputList.indexOf(mSelectedInput); in onKeyUp() local 174 int nextPosition = currentPosition; in onKeyUp() 180 if (nextPosition == currentPosition) { in onKeyUp()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarViewController.java | 359 float currentPosition = isQsb ? child.getX() : child.getLeft(); in addRevealAnimToIsStashed() local 364 if (currentPosition > newPosition) { in addRevealAnimToIsStashed() 367 croppedTransX = -(currentPosition + child.getWidth() - newRight); in addRevealAnimToIsStashed() 369 croppedTransX = newPosition - currentPosition; in addRevealAnimToIsStashed()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | FocusManager.java | 275 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/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | Workspace.java | 605 static Point dragToGivenWorkspace(LauncherInstrumentation launcher, Point currentPosition, in dragToGivenWorkspace() argument 623 Point finalDragStart = currentPosition; in dragToGivenWorkspace() 629 currentPosition = screenEdge; in dragToGivenWorkspace() 631 return currentPosition; in dragToGivenWorkspace()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyDialer.java | 883 final int currentPosition = mDigits.getSelectionStart(); in removePreviousDigitIfPossible() local 884 if (currentPosition > 0) { in removePreviousDigitIfPossible() 885 mDigits.setSelection(currentPosition); in removePreviousDigitIfPossible() 886 mDigits.getText().delete(currentPosition - 1, currentPosition); in removePreviousDigitIfPossible()
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | DialpadFragment.java | 1130 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/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 564 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/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 426 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/ |
D | MultiShrinkScroller.java | 720 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/ |
D | ModeListView.java | 1628 private float getPosition(long time, float currentPosition) { in getPosition() argument 1637 return historyPosition.getPosition() * weight + (1f - weight) * currentPosition; in getPosition()
|