Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/src/android/hardware/input/cts/
DInputCtsActivity.java43 public boolean dispatchGenericMotionEvent(MotionEvent ev) { in dispatchGenericMotionEvent() argument
45 mInputCallback.onMotionEvent(ev); in dispatchGenericMotionEvent()
51 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument
53 mInputCallback.onMotionEvent(ev); in dispatchTouchEvent()
59 public boolean dispatchTrackballEvent(MotionEvent ev) { in dispatchTrackballEvent() argument
61 mInputCallback.onMotionEvent(ev); in dispatchTrackballEvent()
67 public boolean dispatchKeyEvent(KeyEvent ev) { in dispatchKeyEvent() argument
69 mInputCallback.onKeyEvent(ev); in dispatchKeyEvent()
DInputCallback.java23 public void onKeyEvent(KeyEvent ev); in onKeyEvent() argument
24 public void onMotionEvent(MotionEvent ev); in onMotionEvent() argument
/cts/tests/tests/view/src/android/view/cts/
DDragDropTest.java167 private void logEvent(View v, DragEvent ev) { in logEvent() argument
168 if (ev.getAction() == DragEvent.ACTION_DRAG_STARTED) { in logEvent()
171 if (ev.getAction() == DragEvent.ACTION_DRAG_ENDED) { in logEvent()
174 mActual.add(new LogEntry(v, ev.getAction(), ev.getX(), ev.getY(), ev.getClipData(), in logEvent()
175 ev.getClipDescription(), ev.getLocalState(), ev.getResult())); in logEvent()
332 v.setOnDragListener((_v, ev) -> { in setRejectingHandlersOnTree() argument
333 logEvent(_v, ev); in setRejectingHandlersOnTree()
392 mActivity.findViewById(R.id.inner).setOnDragListener((v, ev) -> { in testNoExtraEvents()
393 logEvent(v, ev); in testNoExtraEvents()
396 mActivity.findViewById(R.id.subcontainer).setOnDragListener((v, ev) -> { in testNoExtraEvents()
[all …]
DVelocityTrackerTest.java178 MotionEvent ev = MotionEvent.obtain(0L, mTime, MotionEvent.ACTION_MOVE, mPx, mPy, 0); in addMovement() local
179 mVelocityTracker.addMovement(ev); in addMovement()
180 ev.recycle(); in addMovement()
DMotionEventTest.java649 private void dump(String label, MotionEvent ev) { in dump() argument
654 … msg.append(" Raw: (").append(ev.getRawX()).append(",").append(ev.getRawY()).append(")\n"); in dump()
655 int pointerCount = ev.getPointerCount(); in dump()
658 .append(ev.getX(i)).append(",").append(ev.getY(i)).append("), orientation=") in dump()
659 .append(ev.getOrientation(i) * 180 / Math.PI).append(" deg\n"); in dump()
DViewGroupTest.java2930 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
2932 return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent()
/cts/tests/app/app/src/android/app/stubs/
DTestDialog.java310 public boolean dispatchTrackballEvent(MotionEvent ev) { in dispatchTrackballEvent() argument
311 trackballEvent = ev; in dispatchTrackballEvent()
312 return super.dispatchTrackballEvent(ev); in dispatchTrackballEvent()
316 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument
317 touchEvent = ev; in dispatchTouchEvent()
318 dispatchTouchEventResult = super.dispatchTouchEvent(ev); in dispatchTouchEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java208 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() argument
212 mKeys.put(new KeyEvent(ev)); in onKeyEvent()
219 public void onMotionEvent(MotionEvent ev) { in onMotionEvent() argument
223 mMotions.put(MotionEvent.obtain(ev)); in onMotionEvent()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java1668 private void parseSensorEvent(int offset, DirectReportSensorEvent ev) {
1671 ev.size = mByteBuffer.getInt();
1672 ev.token = mByteBuffer.getInt();
1673 ev.type = mByteBuffer.getInt();
1674 ev.serial = ((long) mByteBuffer.getInt()) & 0xFFFFFFFFl; // signed=>unsigned
1675 ev.ts = mByteBuffer.getLong();
1676 ev.arrivalTs = SystemClock.elapsedRealtimeNanos();
1677 ev.x = mByteBuffer.getFloat();
1678 ev.y = mByteBuffer.getFloat();
1679 ev.z = mByteBuffer.getFloat();
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DMagnificationGestureHandlerTest.java258 MotionEvent ev; in assertPropagated() local
264 ev = mTouchListener.events.poll(5, SECONDS); in assertPropagated()
269 ev); in assertPropagated()
270 int action = ev.getActionMasked(); in assertPropagated()
274 if (action != ACTION_MOVE) fail("Unexpected event: " + ev); in assertPropagated()
/cts/apps/CameraITS/tests/scene1/
Dtest_ev_compensation_advanced.py69 for ev in ev_steps:
73 req['android.control.aeExposureCompensation'] = ev
Dtest_ev_compensation_basic.py65 for ev in evs:
68 req['android.control.aeExposureCompensation'] = ev
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java1747 ContentValues ev = EventHelper.getNewEventValues(account, seed++, cal_id, false); in testEventColors() local
1748 ev.put(Events.EVENT_COLOR_KEY, "badIndex"); in testEventColors()
1751 Uri uri = mContentResolver.insert(Events.CONTENT_URI, ev); in testEventColors()
1759 ev.clear(); in testEventColors()
1760 ev.put(Events.EVENT_COLOR_KEY, "badIndex2"); in testEventColors()
1763 mContentResolver.update(eventUri, ev, null, null); in testEventColors()
1772 ev = EventHelper.getNewEventValues(account, seed++, cal_id, false); in testEventColors()
1774 ev.put(Events.EVENT_COLOR_KEY, defaultColorIndex); in testEventColors()
1776 Uri uri = mContentResolver.insert(Events.CONTENT_URI, ev); in testEventColors()
1781 ev.put(Events.EVENT_COLOR, expectedColor); in testEventColors()
[all …]
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java547 final int ev = event.getEventType(); in getEvents() local
549 if (ev == which) { in getEvents()
/cts/tests/tests/media/assets/
Dsegment000001.ts2260 t�B`��q�8y����e�ev�a������f�� "xH�'ݳ��Ep�'���1�^�UEvgI�0_%�\a^��mG\�'�
2432 …5�y��ͮ�*�eb ���䛟���K�&�o��>�lߌ���d2�Y�$O3j�-�B\�v����7-k��Q|$xB���p�/ev����_\�H;\��G@��…
DfileSequence1.ts2533 t�B`��q�8y����e�ev�a������f�� "xH�'ݳ��Ep�'���1�^�UEvgI�0_%�\a^��mG\�'�