Home
last modified time | relevance | path

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

12345

/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.java250 state.mAnchorPosition = getPosition(refChild); in onSaveInstanceState()
253 state.mAnchorPosition = getPosition(refChild); in onSaveInstanceState()
393 final int firstChild = getPosition(getChildAt(0)); in findViewByPosition()
397 if (getPosition(child) == position) { in findViewByPosition()
447 final int firstChildPos = getPosition(getChildAt(0)); in computeScrollVectorForPosition()
680 final int firstChildPos = getPosition(getChildAt(0)); in layoutForPredictiveAnimations()
703 updateLayoutStateToFillStart(getPosition(anchor), startOffset); in layoutForPredictiveAnimations()
712 updateLayoutStateToFillEnd(getPosition(anchor), endOffset); in layoutForPredictiveAnimations()
852 int pos = getPosition(getChildAt(0));
1160 mLayoutState.mCurrentPosition = getPosition(child) + mLayoutState.mItemDirection; in updateLayoutState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DAsn1DecoderTest.java42 assertEquals(0, decoder.getPosition()); in testNormalOperation()
46 assertEquals(hex.length() / 2, decoder.getPosition()); in testNormalOperation()
65 assertEquals(hex.length() / 2, decoder.getPosition()); in testNormalOperation()
91 assertEquals(0, decoder.getPosition()); in testNodeList()
95 assertEquals(hex.length() / 4, decoder.getPosition()); in testNodeList()
108 assertEquals(hex.length() / 2, decoder.getPosition()); in testNodeList()
120 assertEquals(hex.length() / 2, decoder.getPosition()); in testNodeList()
128 assertEquals(0, decoder.getPosition()); in testMissingData()
132 assertEquals(0x0E, decoder.getPosition()); in testMissingData()
157 assertEquals(0, decoder.getPosition()); in testEmptyData()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationLayoutParamsTest.java149 assertThat(copy.getPosition() == params.getPosition()).isTrue(); in testCopyConstruction()
172 assertThat(copy.getPosition() == params.getPosition()).isTrue(); in testCopyConstructionWithUnspecifiedMargin()
/frameworks/native/services/inputflinger/tests/
DFakePointerController.cpp40 FloatPoint FakePointerController::getPosition() const { in getPosition() function in android::FakePointerController
53 const auto [actualX, actualY] = getPosition(); in assertPosition()
DFakePointerController.h35 FloatPoint getPosition() const override;
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.cpp165 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in handleMove()
189 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in handleButtonsChange()
266 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in releaseAllButtons()
301 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in handleScroll()
369 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in endScroll()
387 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in handleMultiFingerSwipe()
450 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in handleMultiFingerSwipeLift()
474 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in handlePinch()
531 const auto [xCursorPosition, yCursorPosition] = mPointerController->getPosition(); in endPinch()
/frameworks/base/services/core/java/com/android/server/display/
DDeviceStateToLayoutMap.java123 int position = getPosition(d.getPosition()); in loadLayoutsFromConfig()
148 private int getPosition(@NonNull String position) { in getPosition() method in DeviceStateToLayoutMap
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp319 status_t err = mAudioTrack->getPosition(&mPositionWhenStarting); in requestStart_l()
349 status_t err = mAudioTrack->getPosition(&mPositionWhenPausing); in requestPause_l()
398 err = mAudioTrack->getPosition(&position); in processCommands()
410 err = mAudioTrack->getPosition(&position); in processCommands()
512 result = mAudioTrack->getPosition(&position); in getFramesRead()
/frameworks/base/core/java/android/view/
DRoundedCorner.java114 mPosition = rc.getPosition(); in RoundedCorner()
127 public @Position int getPosition() { in getPosition() method in RoundedCorner
/frameworks/base/native/graphics/jni/
Daassetstreamadaptor.h39 size_t getPosition() const override;
Daassetstreamadaptor.cpp54 size_t AAssetStreamAdaptor::getPosition() const { in getPosition() function in AAssetStreamAdaptor
/frameworks/base/core/java/android/widget/
DAlphabetIndexer.java162 int savedCursorPos = cursor.getPosition(); in getPositionForSection()
256 int savedCursorPos = mDataCursor.getPosition(); in getSectionForPosition()
/frameworks/base/core/java/android/database/
DCursorWrapper.java210 public int getPosition() { in getPosition() method in CursorWrapper
211 return mCursor.getPosition(); in getPosition()
/frameworks/base/libs/hwui/jni/
DUtils.h39 virtual size_t getPosition() const;
/frameworks/base/libs/input/
DPointerController.cpp149 FloatPoint PointerController::getPosition() const { in getPosition() function in android::PointerController
151 const auto p = mCursorController.getPosition(); in getPosition()
270 pointerDisplayChanged = {viewport.displayId, mCursorController.getPosition()}; in setDisplayViewport()
DMouseCursorController.h49 FloatPoint getPosition() const;
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRandomAccessInputStream.java35 public int getPosition() { in getPosition() method in RandomAccessInputStream
/frameworks/native/services/inputflinger/include/
DPointerControllerInterface.h66 virtual FloatPoint getPosition() const = 0;
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp187 *positionFrames = timestamp.getPosition(); in getFreeRunningPosition_l()
220 *positionFrames = timestamp.getPosition(); in getHardwareTimestamp_l()
/frameworks/base/apct-tests/perftests/core/src/android/database/
DCrossProcessCursorPerfTest.java83 assertEquals(c.getPosition(), c.getInt(0)); in time()
/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornerTest.java41 assertThat(roundedCorner.getPosition(), is(RoundedCorner.POSITION_BOTTOM_LEFT)); in testGetPosition()
/frameworks/base/media/java/android/media/
DRemoteController.java216 return state.getPosition(); in getEstimatedMediaPosition()
638 if (state == null || state.getPosition() == PlaybackState.PLAYBACK_POSITION_UNKNOWN) { in onNewPlaybackState()
642 state.getPosition(), state.getPlaybackSpeed()); in onNewPlaybackState()
/frameworks/base/core/java/android/view/inputmethod/
DCompletionInfo.java113 public int getPosition() { in getPosition() method in CompletionInfo
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DEnterDesktopTaskTransitionHandler.java268 final PointF position = mMoveToDesktopAnimator.getPosition(); in animateStartDragToDesktopMode()
364 final float x = mMoveToDesktopAnimator.getPosition().x; in animateCancelDragToDesktopMode()
365 final float y = mMoveToDesktopAnimator.getPosition().y; in animateCancelDragToDesktopMode()

12345