Home
last modified time | relevance | path

Searched refs:newPosition (Results 1 – 16 of 16) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationPositionTracker.java197 final int newPosition; in calculatePosition() local
200 newPosition = listSize - 1; in calculatePosition()
202 newPosition = foundPosition; in calculatePosition()
207 if (isDataLoaded(cursor) && newPosition >= 0){ in calculatePosition()
210 newPosition); in calculatePosition()
211 cursor.moveToPosition(newPosition); in calculatePosition()
213 mConversation.position = newPosition; in calculatePosition()
215 return newPosition; in calculatePosition()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBroadcastReceiver.java78 final int newPosition = intent.getIntExtra(Slice.EXTRA_RANGE_VALUE, -1); in onReceive() local
79 handleSliderAction(context, key, newPosition, isPlatformSlice); in onReceive()
143 private void handleSliderAction(Context context, String key, int newPosition, in handleSliderAction() argument
150 if (newPosition == -1) { in handleSliderAction()
169 if (newPosition < minValue || newPosition > maxValue) { in handleSliderAction()
172 + " and " + maxValue + " but found " + newPosition); in handleSliderAction()
175 sliderController.setSliderPosition(newPosition); in handleSliderAction()
176 logSliceValueChange(context, key, newPosition); in handleSliderAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceBroadcastReceiver.java78 final int newPosition = intent.getIntExtra(Slice.EXTRA_RANGE_VALUE, -1); in onReceive() local
79 handleSliderAction(context, key, newPosition, isPlatformSlice); in onReceive()
143 private void handleSliderAction(Context context, String key, int newPosition, in handleSliderAction() argument
150 if (newPosition == -1) { in handleSliderAction()
168 if (newPosition < 0 || newPosition > maxSteps) { in handleSliderAction()
171 + maxSteps + " but found " + newPosition); in handleSliderAction()
174 sliderController.setSliderPosition(newPosition); in handleSliderAction()
175 logSliceValueChange(context, key, newPosition); in handleSliderAction()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DScrollerHelper.java89 int newPosition = Utils.clamp(finalPosition + distance, min, max); in startScroll() local
90 if (newPosition != currPosition) { in startScroll()
93 newPosition - currPosition, 0, 0); // dx, dy, duration in startScroll()
95 return finalPosition + distance - newPosition; in startScroll()
DSlotView.java192 protected void onScrollPositionChanged(int newPosition) { in onScrollPositionChanged() argument
194 mListener.onScrollPositionChanged(newPosition, limit); in onScrollPositionChanged()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java271 int newPosition = -1; in createActionsInternal() local
318 newPosition = position; in createActionsInternal()
342 if (newPosition != -1) { in createActionsInternal()
344 gridView.setSelectedPosition(newPosition); in createActionsInternal()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DReorderingCursorWrapper.java52 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
53 return mCursor.moveToPosition(mPositionMap[newPosition]); in onMove()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DRootCursorWrapper.java89 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
90 return mCursor.moveToPosition(newPosition); in onMove()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFilteringCursorWrapper.java86 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
87 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java1581 float newPosition = longestWidth - deltaX; in scroll() local
1583 newPosition = Math.min(newPosition, getMaxMovementBasedOnPosition((int) longestWidth, in scroll()
1585 newPosition = Math.max(newPosition, 0); in scroll()
1586 insertNewPosition(newPosition, mCurrentTime); in scroll()
1589 mModeSelectorItems[i].setVisibleWidth((int) newPosition); in scroll()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsFastScrollHelper.java145 int newPosition = info.fastScrollToItem.position; in smoothSnapToPosition() local
148 : Math.min(availableScrollHeight, mRv.getCurrentScrollY(newPosition, 0)); in smoothSnapToPosition()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java111 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
112 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DCarScrollBar.java441 private void moveY(final View view, float newPosition, boolean animate) { in moveY() argument
444 .y(newPosition) in moveY()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java51 public void position(int newPosition); in position() argument
/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java399 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java2504 boolean newPosition = mScroller.computeScrollOffset();
2505 if (!newPosition) {