Home
last modified time | relevance | path

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

12

/cts/tests/tests/hardware/src/android/hardware/input/cts/
DInputCtsActivity.java42 public boolean dispatchGenericMotionEvent(MotionEvent ev) { in dispatchGenericMotionEvent() argument
44 Log.i(TAG, "Unhandled generic motion event: " + ev); in dispatchGenericMotionEvent()
48 mInputCallback.onMotionEvent(ev); in dispatchGenericMotionEvent()
54 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument
56 mInputCallback.onMotionEvent(ev); in dispatchTouchEvent()
62 public boolean dispatchTrackballEvent(MotionEvent ev) { in dispatchTrackballEvent() argument
64 mInputCallback.onMotionEvent(ev); in dispatchTrackballEvent()
70 public boolean dispatchKeyEvent(KeyEvent ev) { in dispatchKeyEvent() argument
72 if (mUnhandledKeys.contains(ev.getKeyCode())) { in dispatchKeyEvent()
73 Log.i(TAG, "Unhandled keyEvent: " + ev); in dispatchKeyEvent()
[all …]
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/
DEventCapturingMotionEventListener.java82 MotionEvent ev; in assertPropagated() local
89 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
96 .that(ev) in assertPropagated()
99 received.add(MotionEvent.actionToString(ev.getActionMasked())); in assertPropagated()
100 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
101 while (ev != null) { in assertPropagated()
102 int action = ev.getActionMasked(); in assertPropagated()
124 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
134 MotionEvent ev; in getRawEvents() local
136 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
[all …]
/cts/tests/input/src/android/input/cts/
DCaptureEventActivity.kt48 override fun dispatchGenericMotionEvent(ev: MotionEvent?): Boolean { in dispatchGenericMotionEvent()
49 events.add(MotionEvent.obtain(ev)) in dispatchGenericMotionEvent()
53 override fun dispatchTouchEvent(ev: MotionEvent?): Boolean { in dispatchTouchEvent()
54 events.add(MotionEvent.obtain(ev)) in dispatchTouchEvent()
63 override fun dispatchTrackballEvent(ev: MotionEvent?): Boolean { in dispatchTrackballEvent()
64 events.add(MotionEvent.obtain(ev)) in dispatchTrackballEvent()
DTwoWindowsActivity.kt118 override fun dispatchGenericMotionEvent(ev: MotionEvent?): Boolean { in dispatchGenericMotionEvent()
119 fail("Unexpected event " + ev) in dispatchGenericMotionEvent()
123 override fun dispatchTouchEvent(ev: MotionEvent?): Boolean { in dispatchTouchEvent()
124 fail("Unexpected event " + ev) in dispatchTouchEvent()
128 override fun dispatchKeyEvent(ev: KeyEvent?): Boolean { in dispatchKeyEvent()
129 fail("Unexpected event " + ev) in dispatchKeyEvent()
133 override fun dispatchTrackballEvent(ev: MotionEvent?): Boolean { in dispatchTrackballEvent()
134 fail("Unexpected event " + ev) in dispatchTrackballEvent()
DVelocityTrackerTest.kt318 var ev = MotionEvent.obtain(0L, mTime, MotionEvent.ACTION_MOVE, mPx, mPy, 0) in addMovement() variable
319 mPlanarVelocityTracker.addMovement(ev) in addMovement()
320 ev.recycle() in addMovement()
322 ev = createScrollMotionEvent() in addMovement()
323 mScrollVelocityTracker.addMovement(ev) in addMovement()
324 ev.recycle() in addMovement()
DInputInjectionTest.kt239 override fun onKeyEvent(ev: KeyEvent?) = onKey(ev!!) in <lambda>()
240 override fun onTouchEvent(ev: MotionEvent?) = onTouch(ev!!) in <lambda>()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DDragDropTest.java192 private void logEvent(View v, DragEvent ev) { in logEvent() argument
193 if (ev.getAction() == DragEvent.ACTION_DRAG_STARTED) { in logEvent()
196 if (ev.getAction() == DragEvent.ACTION_DRAG_ENDED) { in logEvent()
199 mActual.add(new LogEntry(v, ev.getAction(), ev.getX(), ev.getY(), ev.getClipData(), in logEvent()
200 ev.getClipDescription(), ev.getLocalState(), ev.getResult())); in logEvent()
380 v.setOnDragListener((_v, ev) -> { in setRejectingHandlersOnTree() argument
381 logEvent(_v, ev); in setRejectingHandlersOnTree()
439 mActivity.findViewById(R.id.inner).setOnDragListener((v, ev) -> { in testNoExtraEvents()
440 logEvent(v, ev); in testNoExtraEvents()
443 mActivity.findViewById(R.id.subcontainer).setOnDragListener((v, ev) -> { in testNoExtraEvents()
[all …]
/cts/apps/CameraITS/tests/scene1_1/
Dtest_ev_compensation_basic.py46 def create_request_with_ev(ev): argument
49 req['android.control.aeExposureCompensation'] = ev
107 for j, ev in enumerate(evs):
110 req = create_request_with_ev(ev)
119 if ev != ev_meta:
131 logging.debug('lumas per frame ev %d: %s', ev, str(luma_locked))
Dtest_ev_compensation_advanced.py43 def create_request_with_ev(ev): argument
46 req['android.control.aeExposureCompensation'] = ev
115 for ev in ev_steps:
117 req = create_request_with_ev(ev)
122 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/inputmethod/src/android/view/inputmethod/cts/
DInputMethodStatsTest.java321 editText.setOnTouchListener((v, ev) -> { in testFromUser_withImm_showImeRequestFinished()
323 if (ev.getAction() != MotionEvent.ACTION_DOWN) { in testFromUser_withImm_showImeRequestFinished()
348 textView.setOnTouchListener((v, ev) -> { in testFromUser_withImm_hideImeRequestFinished()
350 if (ev.getActionMasked() != MotionEvent.ACTION_DOWN) { in testFromUser_withImm_hideImeRequestFinished()
377 editText.setOnTouchListener((v, ev) -> { in testFromUser_withWic_showImeRequestFinished()
379 if (ev.getActionMasked() != MotionEvent.ACTION_DOWN) { in testFromUser_withWic_showImeRequestFinished()
404 textView.setOnTouchListener((v, ev) -> { in testFromUser_withWic_hideImeRequestFinished()
406 if (ev.getActionMasked() != MotionEvent.ACTION_DOWN) { in testFromUser_withWic_hideImeRequestFinished()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowInputTests.java309 view.setOnTouchListener((v, ev) -> { in testFilterTouchesWhenObscuredByWindowFromSameUid()
311 eventFlags.complete(ev.getFlags()); in testFilterTouchesWhenObscuredByWindowFromSameUid()
340 view.setOnTouchListener((v, ev) -> { in testFilterTouchesWhenObscuredByWindowFromDifferentUid()
371 view.setOnTouchListener((v, ev) -> { in testFlagTouchesWhenObscuredByWindowFromDifferentUid()
373 eventFlags.complete(ev.getFlags()); in testFlagTouchesWhenObscuredByWindowFromDifferentUid()
406 view.setOnTouchListener((v, ev) -> { in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow()
408 eventFlags.complete(ev.getFlags()); in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow()
440 view.setOnTouchListener((v, ev) -> { in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow()
442 eventFlags.complete(ev.getFlags()); in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow()
474 view.setOnTouchListener((v, ev) -> { in testFlagTouchesWhenPartiallyObscuredByZeroOpacityWindow()
[all …]
/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.java421 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() argument
423 mEvents.put(new KeyEvent(ev)); in onKeyEvent()
430 public void onMotionEvent(MotionEvent ev) { in onMotionEvent() argument
432 for (MotionEvent event : splitBatchedMotionEvent(ev)) { in onMotionEvent()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java1746 ContentValues ev = EventHelper.getNewEventValues(account, seed++, cal_id, false); in testEventColors() local
1747 ev.put(Events.EVENT_COLOR_KEY, "badIndex"); in testEventColors()
1750 Uri uri = mContentResolver.insert(Events.CONTENT_URI, ev); in testEventColors()
1758 ev.clear(); in testEventColors()
1759 ev.put(Events.EVENT_COLOR_KEY, "badIndex2"); in testEventColors()
1762 mContentResolver.update(eventUri, ev, null, null); in testEventColors()
1771 ev = EventHelper.getNewEventValues(account, seed++, cal_id, false); in testEventColors()
1773 ev.put(Events.EVENT_COLOR_KEY, defaultColorIndex); in testEventColors()
1775 Uri uri = mContentResolver.insert(Events.CONTENT_URI, ev); in testEventColors()
1780 ev.put(Events.EVENT_COLOR, expectedColor); in testEventColors()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java808 private void dump(String label, MotionEvent ev) { in dump() argument
813 … msg.append(" Raw: (").append(ev.getRawX()).append(",").append(ev.getRawY()).append(")\n"); in dump()
814 int pointerCount = ev.getPointerCount(); in dump()
817 .append(ev.getX(i)).append(",").append(ev.getY(i)).append("), orientation=") in dump()
818 .append(ev.getOrientation(i) * 180 / Math.PI).append(" deg\n"); in dump()
DViewGroupTest.java3258 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
3260 return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java488 public boolean test(ImeEvent ev) {
489 return p.test(ev);
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlViewHostTests.java216 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
220 mSurfaceViewMotionConsumer.accept(ev); in onTouchEvent()
1514 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
1515 int action = ev.getAction(); in onTouchEvent()
1578 mSurfaceViewMotionConsumer = (ev) -> { in testEmbeddedWindowCanTransferTouchGestureToHost()
1744 mSurfaceViewMotionConsumer = (ev) -> { in testTransferHostTouchGestureToEmbedded()
/cts/tests/tests/car/src/android/car/cts/
DCarInputTest.java625 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument
626 mEvents.add(MotionEvent.obtain(ev)); in dispatchTouchEvent()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java1494 final int ev = event.getEventType(); in getEvents() local
1496 if (ev == which) { in getEvents()
2452 final Event ev = new Event(); in testReportUserInteraction() local
2453 userInteractionEvents.getNextEvent(ev); in testReportUserInteraction()
2454 if (ev.getEventType() != Event.USER_INTERACTION) { in testReportUserInteraction()
2457 PersistableBundle interactionExtras = ev.getExtras(); in testReportUserInteraction()
/cts/tests/tests/security/res/raw/
Dcve_2018_13925.ts406 �@�U7\C-��H��R�L� �B����"�u��D�s2g���h��(uF��ev�Q0� ,�4�q�fA�0�:}n�,5��
6001 xҙ�h��蜁�KB��k6�!���Q�n'�T���J�ev,��%�V+�������5����
9082 /j�P�g�Kq���ev�c$P�����
Dcve_2019_2244.ts405 �@�U7\C-��H��R�L� �B����"�u��D�s2g���h��(uF��ev�Q0� ,�4�q�fA�0�:}n�,5��
6004 xҙ�h��蜁�KB��k6�!���Q�n'�T���J�ev,��%�V+�������5����
9088 /j�P�g�Kq���ev�c$P�����

12