Home
last modified time | relevance | path

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

12

/cts/tests/tests/hardware/src/android/hardware/input/cts/
DInputCtsActivity.java41 public boolean dispatchGenericMotionEvent(MotionEvent ev) { in dispatchGenericMotionEvent() argument
43 mInputCallback.onMotionEvent(ev); in dispatchGenericMotionEvent()
49 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument
51 mInputCallback.onMotionEvent(ev); in dispatchTouchEvent()
57 public boolean dispatchTrackballEvent(MotionEvent ev) { in dispatchTrackballEvent() argument
59 mInputCallback.onMotionEvent(ev); in dispatchTrackballEvent()
65 public boolean dispatchKeyEvent(KeyEvent ev) { in dispatchKeyEvent() argument
67 if (mUnhandledKeys.contains(ev.getKeyCode())) { in dispatchKeyEvent()
68 Log.i(TAG, "Unhandled keyEvent: " + ev); in dispatchKeyEvent()
72 mInputCallback.onKeyEvent(ev); in dispatchKeyEvent()
DInputCallback.java23 void onKeyEvent(KeyEvent ev); in onKeyEvent() argument
24 void onMotionEvent(MotionEvent ev); in onMotionEvent() argument
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DEventCapturingTouchListener.java75 MotionEvent ev; in assertPropagated() local
82 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
86 ev); in assertPropagated()
88 received.add(MotionEvent.actionToString(ev.getActionMasked())); in assertPropagated()
89 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
90 while (ev != null) { in assertPropagated()
91 int action = ev.getActionMasked(); in assertPropagated()
101 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
111 MotionEvent ev; in getRawEvents() local
113 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
[all …]
DEventCapturingHoverListener.java72 MotionEvent ev; in assertPropagated() local
80 ev = mEvents.poll(waitTime, SECONDS); in assertPropagated()
83 ev); in assertPropagated()
85 received.add(MotionEvent.actionToString(ev.getActionMasked())); in assertPropagated()
86 ev = mEvents.poll(waitTime, SECONDS); in assertPropagated()
87 while (ev != null) { in assertPropagated()
88 int action = ev.getActionMasked(); in assertPropagated()
98 ev = mEvents.poll(waitTime, SECONDS); in assertPropagated()
/cts/tests/input/src/android/input/cts/
DCaptureEventActivity.kt29 override fun dispatchGenericMotionEvent(ev: MotionEvent?): Boolean { in dispatchGenericMotionEvent()
30 mEvents.add(MotionEvent.obtain(ev)) in dispatchGenericMotionEvent()
34 override fun dispatchTouchEvent(ev: MotionEvent?): Boolean { in dispatchTouchEvent()
35 mEvents.add(MotionEvent.obtain(ev)) in dispatchTouchEvent()
44 override fun dispatchTrackballEvent(ev: MotionEvent?): Boolean { in dispatchTrackballEvent()
45 mEvents.add(MotionEvent.obtain(ev)) in dispatchTrackballEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDragDropTest.java174 private void logEvent(View v, DragEvent ev) { in logEvent() argument
175 if (ev.getAction() == DragEvent.ACTION_DRAG_STARTED) { in logEvent()
178 if (ev.getAction() == DragEvent.ACTION_DRAG_ENDED) { in logEvent()
181 mActual.add(new LogEntry(v, ev.getAction(), ev.getX(), ev.getY(), ev.getClipData(), in logEvent()
182 ev.getClipDescription(), ev.getLocalState(), ev.getResult())); in logEvent()
336 v.setOnDragListener((_v, ev) -> { in setRejectingHandlersOnTree() argument
337 logEvent(_v, ev); in setRejectingHandlersOnTree()
395 mActivity.findViewById(R.id.inner).setOnDragListener((v, ev) -> { in testNoExtraEvents()
396 logEvent(v, ev); in testNoExtraEvents()
399 mActivity.findViewById(R.id.subcontainer).setOnDragListener((v, ev) -> { in testNoExtraEvents()
[all …]
DWindowInputTests.java244 mView.setOnTouchListener((v, ev) -> { in testFilterTouchesWhenObscuredByWindowFromSameUid() argument
246 eventFlags.complete(ev.getFlags()); in testFilterTouchesWhenObscuredByWindowFromSameUid()
290 mView.setOnTouchListener((v, ev) -> { in testFilterTouchesWhenObscuredByWindowFromDifferentUid() argument
343 mView.setOnTouchListener((v, ev) -> { in testFlagTouchesWhenObscuredByWindowFromDifferentUid() argument
345 eventFlags.complete(ev.getFlags()); in testFlagTouchesWhenObscuredByWindowFromDifferentUid()
398 mView.setOnTouchListener((v, ev) -> { in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow() argument
400 eventFlags.complete(ev.getFlags()); in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow()
445 mView.setOnTouchListener((v, ev) -> { in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow() argument
447 eventFlags.complete(ev.getFlags()); in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow()
500 mView.setOnTouchListener((v, ev) -> { in testFlagTouchesWhenPartiallyObscuredByZeroOpacityWindow() argument
[all …]
/cts/apps/CameraITS/tests/scene1_1/
Dtest_ev_compensation_basic.py46 def create_request_with_ev(ev): argument
48 req['android.control.aeExposureCompensation'] = ev
109 for j, ev in enumerate(evs):
112 req = create_request_with_ev(ev)
124 if ev != ev_meta:
Dtest_ev_compensation_advanced.py43 def create_request_with_ev(ev): argument
45 req['android.control.aeExposureCompensation'] = ev
117 for ev in ev_steps:
119 req = create_request_with_ev(ev)
124 if ev_meta != ev:
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceKeyLayoutMapTestActivity.java40 public boolean dispatchKeyEvent(KeyEvent ev) { in dispatchKeyEvent() argument
42 mEvents.put(new KeyEvent(ev)); in dispatchKeyEvent()
/cts/tests/app/app/src/android/app/stubs/
DTestDialog.java322 public boolean dispatchTrackballEvent(MotionEvent ev) { in dispatchTrackballEvent() argument
323 trackballEvent = ev; in dispatchTrackballEvent()
324 return super.dispatchTrackballEvent(ev); in dispatchTrackballEvent()
328 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument
329 touchEvent = ev; in dispatchTouchEvent()
330 dispatchTouchEventResult = super.dispatchTouchEvent(ev); in dispatchTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java205 MotionEvent ev = MotionEvent.obtain(0L, mTime, MotionEvent.ACTION_MOVE, mPx, mPy, 0); in addMovement() local
206 mVelocityTracker.addMovement(ev); in addMovement()
207 ev.recycle(); in addMovement()
DMotionEventTest.java720 private void dump(String label, MotionEvent ev) { in dump() argument
725 … msg.append(" Raw: (").append(ev.getRawX()).append(",").append(ev.getRawY()).append(")\n"); in dump()
726 int pointerCount = ev.getPointerCount(); in dump()
729 .append(ev.getX(i)).append(",").append(ev.getY(i)).append("), orientation=") in dump()
730 .append(ev.getOrientation(i) * 180 / Math.PI).append(" deg\n"); in dump()
DViewGroupTest.java3230 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
3232 return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java1848 public static void parseSensorEvent(int offset, DirectReportSensorEvent ev,
1852 ev.size = byteBuffer.getInt();
1853 ev.token = byteBuffer.getInt();
1854 ev.type = byteBuffer.getInt();
1855 ev.serial = ((long) byteBuffer.getInt()) & 0xFFFFFFFFl; // signed=>unsigned
1856 ev.ts = byteBuffer.getLong();
1857 ev.arrivalTs = SystemClock.elapsedRealtimeNanos();
1858 ev.x = byteBuffer.getFloat();
1859 ev.y = byteBuffer.getFloat();
1860 ev.z = byteBuffer.getFloat();
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java375 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() argument
377 mEvents.put(new KeyEvent(ev)); in onKeyEvent()
384 public void onMotionEvent(MotionEvent ev) { in onMotionEvent() argument
386 for (MotionEvent event : splitBatchedMotionEvent(ev)) { in onMotionEvent()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
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.java1053 final int ev = event.getEventType(); in getEvents() local
1055 if (ev == which) { in getEvents()
/cts/tests/tests/media/assets/hls_variant/344388/
D15.ts63 L��v��{%ۚ�cal�|����ZHf`�f�wG�ev����[��Cy�����B�
1205 …���������������GA����c��!������ ���A�JD_���`�:�}a�`��odk�`J���evY�`�ʎ��������o� -+N�…
D16.ts848 ��ev��-��{��m�u�݌� &li���nm����)d)wYKV'��s7F���ձ ta�_������d�dZ��c��7׌���|k�c��
D10.ts258 …����������������������������GA�������!����� ���A��JD3�����j�?�Z�ev�U$"�NuQv�%�>�@J�…
D11.ts1035 ��5 �}��H�����Z�α�jʻ���|�ׯwQ�� �$�1/��Goݴ ev�X����D�k=�]�Um�Q�#�`���Nl�>��|zڿ/�Ϊp…
D09.ts708 ���+�2!jB��ش�n6B�QO�Ω'`E�7"�!2��5jev�=i�U<(����d�Α���5y9�%��Rdon� փ]MW9tto�Ȧ�q�ݎ~e�]'�:�ӾO…
/cts/tests/tests/media/assets/hls_variant/765178/
D10.ts37 …�J{�������]XH^D�7X��Iy�2d>��."�����<b��'�� �E�a;1 ��oT��s?��)^�-la��ev�o�Q�9u��M��@R�G���…
2353 …�f IF��J��3��Ud#����hd�^�oX�:�ٳ1�d �"�>3�+s:��CZ��.�y&�6��&���m��� �[ev�y���1�k#zfn��Ą
/cts/tests/tests/media/assets/hls_variant/387360/
D19.ts707 …��DN~���`�$�`�(�NtLFܿ8F{��YcB�vEv��U^A^��.�w�L)�jmp�qday���? m���^ev$�3#�5��4lѤ��8~X[�…

12