Home
last modified time | relevance | path

Searched refs:startPosition (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualMouseTest.java63 final PointF startPosition = mVirtualMouse.getCursorPosition(); in sendButtonEvent() local
73 MotionEvent.ACTION_BUTTON_PRESS, startPosition.x, startPosition.y, in sendButtonEvent()
77 MotionEvent.ACTION_BUTTON_RELEASE, startPosition.x, startPosition.y, in sendButtonEvent()
81 VirtualInputEventCreator.createMouseEvent(MotionEvent.ACTION_DOWN, startPosition.x, in sendButtonEvent()
82 startPosition.y, MotionEvent.BUTTON_PRIMARY, 1f /* pressure */), in sendButtonEvent()
85 VirtualInputEventCreator.createMouseEvent(MotionEvent.ACTION_UP, startPosition.x, in sendButtonEvent()
86 startPosition.y, 0 /* buttonState */, 0f /* pressure */), in sendButtonEvent()
88 startPosition.x, startPosition.y, 0 /* buttonState */, 0f /* pressure */))); in sendButtonEvent()
93 final PointF startPosition = mVirtualMouse.getCursorPosition(); in sendRelativeEvent() local
100 final float firstStopPositionX = startPosition.x + relativeChangeX; in sendRelativeEvent()
[all …]
DVirtualDeviceMirrorDisplayTest.java122 final PointF startPosition = mouse.getCursorPosition(); in virtualMouse_scrollEvent() local
132 toWindowX(startPosition.x), toWindowY(startPosition.y), 0 /* buttonState */, in virtualMouse_scrollEvent()
135 toWindowX(startPosition.x), toWindowY(startPosition.y), 0 /* buttonState */, in virtualMouse_scrollEvent()
144 final PointF startPosition = mouse.getCursorPosition(); in virtualMouse_relativeEvent() local
151 final float firstStopPositionX = startPosition.x + relativeChangeX; in virtualMouse_relativeEvent()
152 final float firstStopPositionY = startPosition.y + relativeChangeY; in virtualMouse_relativeEvent()
186 final PointF startPosition = mouse.getCursorPosition(); in virtualMouse_buttonEvent() local
197 toWindowX(startPosition.x), toWindowY(startPosition.y), in virtualMouse_buttonEvent()
202 toWindowX(startPosition.x), toWindowY(startPosition.y), in virtualMouse_buttonEvent()
207 toWindowX(startPosition.x), toWindowY(startPosition.y), in virtualMouse_buttonEvent()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java277 int startPosition = 0; in testOffsetCorrectFileChannelReadBuffer() local
284 for (int i = startPosition; i < startPosition + bufferSize; i++) { in testOffsetCorrectFileChannelReadBuffer()
288 assertEquals(startPosition + bufferSize, fc.position()); in testOffsetCorrectFileChannelReadBuffer()
296 int startPosition = 0; in testOffsetCorrectFileChannelReadBuffers() local
302 for (int i = startPosition; i < startPosition + bufferSize; i++) { in testOffsetCorrectFileChannelReadBuffers()
306 assertEquals(startPosition + bufferSize, fc.position()); in testOffsetCorrectFileChannelReadBuffers()
314 int startPosition = 0; in testOffsetCorrectFileChannelReadBufferFromPosition() local
323 assertEquals(startPosition, fc.position()); in testOffsetCorrectFileChannelReadBufferFromPosition()
335 int startPosition = 1; in testOffsetCorrectFileChannelTransferTo() local
337 long bytesTransferred = fc.transferTo(startPosition, transferSize, targetChannel); in testOffsetCorrectFileChannelTransferTo()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0685/src/android/security/cts/CVE_2021_0685/
DPocAmbiguator.java71 int startPosition = parcel.dataPosition(); in make() local
100 int bundleDataSize = parcel.dataPosition() - startPosition; in make()
/cts/tests/tests/security/src/android/security/cts/
DAmbiguousBundlesTest.java135 int startPosition = parcel.dataPosition(); in test_android_CVE_2020_0082()
169 int bundleDataSize = parcel.dataPosition() - startPosition; in test_android_CVE_2020_0082()
649 int startPosition = parcel.dataPosition(); in test_lazyValueNegativeLength()
664 int bundleDataSize = parcel.dataPosition() - startPosition; in test_lazyValueNegativeLength()
/cts/tests/tests/widget/src/android/widget/cts/
DHorizontalScrollViewTest.java1323 private void pollingCheckFling(final int startPosition, final boolean movingRight) { in pollingCheckFling() argument
1326 return mScrollViewCustom.getScrollX() > startPosition; in pollingCheckFling()
1328 return mScrollViewCustom.getScrollX() < startPosition; in pollingCheckFling()
DScrollViewTest.java1454 private void pollingCheckFling(final int startPosition, final boolean movingDown) { in pollingCheckFling() argument
1457 return mScrollViewCustom.getScrollY() > startPosition; in pollingCheckFling()
1459 return mScrollViewCustom.getScrollY() < startPosition; in pollingCheckFling()