Home
last modified time | relevance | path

Searched refs:mEvents (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DEventCapturingMotionEventListener.java41 private final BlockingQueue<MotionEvent> mEvents = new LinkedBlockingQueue<>(); field in EventCapturingMotionEventListener
62 assertThat(mEvents.offer(MotionEvent.obtain(event))).isTrue(); in onMotionEvent()
69 MotionEvent event = mEvents.poll(MIN_WAIT_TIME_SECONDS, SECONDS); in assertNonePropagated()
89 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
100 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
124 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
136 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
139 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
149 return mEvents.peek(); in peek()
154 mEvents.clear(); in clear()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DTestGnssNavigationMessageListener.java42 private final List<GnssNavigationMessage> mEvents; field in TestGnssNavigationMessageListener
49 mEvents = new CopyOnWriteArrayList<GnssNavigationMessage>(); in TestGnssNavigationMessageListener()
54 mEvents.add(event); in onGnssNavigationMessageReceived()
55 if (mEvents.size() > mEventsToCollect) { in onGnssNavigationMessageReceived()
109 return mEvents; in getEvents()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DHingeAngleVerification.java42 private final List<TestSensorEvent> mEvents = new LinkedList<>(); field in HingeAngleVerification
53 mEvents.size() >= 2); in verify()
54 for (int i = 0; i < mEvents.size(); i++) { in verify()
55 TestSensorEvent event = mEvents.get(i); in verify()
103 mEvents.add(event); in addSensorEventInternal()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceKeyLayoutMapTestActivity.java32 private final BlockingQueue<KeyEvent> mEvents = new LinkedBlockingQueue<>(); field in InputDeviceKeyLayoutMapTestActivity
42 mEvents.put(new KeyEvent(ev)); in dispatchKeyEvent()
56 return mEvents.poll(timeoutSeconds, TimeUnit.SECONDS); in getKeyEvent()
DInputDeviceSensorManagerTest.java160 private final BlockingQueue<SensorEvent> mEvents = new LinkedBlockingQueue<>(); field in InputDeviceSensorManagerTest.InputTestSensorEventListener
168 return mEvents.poll(5, TimeUnit.SECONDS); in waitForSensorEvent()
193 mEvents.put(event); in onSensorChanged()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DMyAutofillCallback.java44 private final BlockingQueue<MyEvent> mEvents = new LinkedBlockingQueue<>(); field in MyAutofillCallback
74 Helper.offer(mEvents, event, MY_TIMEOUT.ms()); in offer()
81 final MyEvent event = mEvents.poll(CONNECTION_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in getEvent()
92 final MyEvent event = mEvents.poll(CALLBACK_NOT_CALLED_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertNotCalled()
103 assertWithMessage("Invalid number of events left: %s", mEvents).that(mEvents.size()) in assertNumberUnhandledEvents()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DEventsAssertor.java50 private final List<ContentCaptureEvent> mEvents; field in EventsAssertor
54 mEvents = Collections.unmodifiableList(events); in EventsAssertor()
59 assertThat(mEvents.size()).isAtLeast(size); in isAtLeast()
410 if (mNextEvent >= mEvents.size()) { in assertNextEvent()
413 + mEvents.size() + "): " + mEvents); in assertNextEvent()
417 final ContentCaptureEvent event = mEvents.get(index); in assertNextEvent()
433 } while (mNextEvent < mEvents.size()); in assertNextEvent()
435 + mEvents.size() + "): " + mEvents); in assertNextEvent()
442 for (ContentCaptureEvent event : mEvents) { in assertNoEvent()
457 return mEvents.get(mNextEvent - 1); in getLastEvent()
DCtsContentCaptureService.java363 session.mEvents.add(event); in onContentCaptureEvent()
589 private final List<ContentCaptureEvent> mEvents = new ArrayList<>(); field in CtsContentCaptureService.Session
611 return Collections.unmodifiableList(mEvents).stream().filter( in getEvents()
617 return Collections.unmodifiableList(mEvents); in getUnfilteredEvents()
622 return "[id=" + id + ", context=" + context + ", events=" + mEvents.size() in toString()
724 private final List<MyActivityEvent> mEvents; field in CtsContentCaptureService.EventsAssertor
728 mEvents = Collections.unmodifiableList(events); in EventsAssertor()
729 Log.v(TAG, "EventsAssertor: " + mEvents); in EventsAssertor()
769 if (mNextEvent >= mEvents.size()) { in assertNextEvent()
772 + mEvents.size() + "): " + mEvents); in assertNextEvent()
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DLocalEventQuerier.java33 private final Events mEvents; field in LocalEventQuerier
38 mEvents = Events.getInstance(context, /* needsHistory= */ true); in LocalEventQuerier()
39 mFetchedEvents = new LinkedBlockingDeque<>(mEvents.registerEventListener(this)); in LocalEventQuerier()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DOperationSafetyChangedCallback.java48 private final LinkedBlockingQueue<OperationSafetyChangedEvent> mEvents = field in OperationSafetyChangedCallback
74 mEvents.offer(event);
117 event = mEvents.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in getNextEvent()
135 return "OperationSafetyChangedCallback[events=" + mEvents + "]"; in toString()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventInjectionTest.java60 private final BlockingQueue<KeyEvent> mEvents = new LinkedBlockingQueue<>(); field in KeyEventInjectionTest
78 mEvents.clear(); in setUp()
121 mEvents.add(event); in onKeyDown()
127 mEvents.add(event); in onKeyUp()
191 KeyEvent event = popEvent(mEvents); in checkKeyEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java68 private final BlockingQueue<InputEvent> mEvents; field in InputTestCase
83 mEvents = new LinkedBlockingQueue<>(); in InputTestCase()
103 mEvents.clear(); in setUp()
252 InputEvent event = mEvents.poll(); in assertNoMoreEvents()
305 return mEvents.poll(1, TimeUnit.SECONDS); in waitForEvent()
404 if (mEvents.isEmpty()) { in failWithMessage()
408 for (InputEvent event : mEvents) { in failWithMessage()
423 mEvents.put(new KeyEvent(ev)); in onKeyEvent()
433 mEvents.put(event); in onMotionEvent()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTransactionalApisTest.java139 mEvents.mCallId = id; in TelecomCtsVoipCall()
151 public android.telecom.cts.TelecomCtsVoipCall.CallEvent mEvents = field in TransactionalApisTest.TelecomCtsVoipCall
200 mEvents.resetAllCallbackVerifiers(); in resetAllCallbackVerifiers()
331 }, mCall1.mHandshakes, mCall1.mEvents); in testAddCallWithNullArgument()
609 return call.mEvents.getVideoState(); in waitUntilVideoStateIs()
938 assertNull(mCall1.mEvents.getCurrentCallEndpoint()); in testOnChangedCallEndpoint()
961 assertNull(mCall1.mEvents.getAvailableEndpoints()); in testOnAvailableCallEndpointsChanged()
985 assertFalse(mCall1.mEvents.mWasMuteStateChangedCalled); in testGetMuteState()
1012 assertFalse(mCall1.mEvents.mWasMuteStateChangedCalled); in testRequestMuteState()
1073 assertNull(mCall1.mEvents.mLastEventReceived); in testOnCallEvent()
[all …]
DTelecomCtsVoipCall.java47 mEvents.mCallId = id; in TelecomCtsVoipCall()
90 public CallEvent mEvents = new CallEvent(); field in TelecomCtsVoipCall
93 mEvents.resetAllCallbackVerifiers(); in resetAllCallbackVerifiers()
/cts/tests/surfacecontrol/scvhapp/src/android/server/wm/scvh/
DCrossProcessSurfaceControlViewHostTestService.java52 BlockingQueue<MotionEvent> mEvents = new LinkedBlockingQueue<>(); field in CrossProcessSurfaceControlViewHostTestService.MotionRecordingView
60 mEvents.add(MotionEvent.obtain(e)); in onTouchEvent()
107 return mView.mEvents.poll(WAIT_TIMEOUT_S, TimeUnit.SECONDS); in getMotionEvent()
/cts/tests/tests/car/src/android/car/cts/
DCarServiceHelperServiceUpdatableTest.java250 private final List<UserLifecycleEvent> mEvents = field in CarServiceHelperServiceUpdatableTest.LifecycleListener
259 mEvents.add(event); in onEvent()
291 for (int i = 0; i < mEvents.size(); i++) { in checkEvent()
292 if (mEvents.get(i).getUserHandle().getIdentifier() == userId in checkEvent()
293 && mEvents.get(i).getEventType() == eventType) { in checkEvent()
DCarInputTest.java615 private LinkedBlockingQueue<InputEvent> mEvents = new LinkedBlockingQueue<>(); field in CarInputTest.TestActivity
626 mEvents.add(MotionEvent.obtain(ev)); in dispatchTouchEvent()
632 mEvents.add(new KeyEvent(event)); in dispatchKeyEvent()
638 return mEvents.poll(DEFAULT_WAIT_MS, TimeUnit.MILLISECONDS); in getInputEvent()
646 InputEvent event = mEvents.poll(NO_EVENT_WAIT_MS, TimeUnit.MILLISECONDS); in assertNoEvents()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java367 private List<FileEvent> mEvents = new ArrayList<FileEvent>(); field in FileObserverTest.MockFileObserver
387 mEvents.add(new FileEvent(event, path)); in onEvent()
391 final FileEvent[] events = new FileEvent[mEvents.size()]; in getEvents()
392 mEvents.toArray(events); in getEvents()
393 mEvents.clear(); in getEvents()
/cts/tests/tests/telecom-apps/TransactionalVoipAppMain/src/android/telecom/cts/apps/transactionalvoipappmain/
DTransactionalVoipAppControlMain.java137 }, call.mHandshakes, call.mEvents);
249 call.mEvents.getIsMuted());
279 call.mEvents);
283 call.mEvents.getCurrentCallEndpoint());
302 call.mEvents);
306 call.mEvents.getCallEndpoints());
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java199 mEvents.add(event); in accept()
360 mEvents.add(event); in accept()
370 protected List<AccessibilityEvent> mEvents = new ArrayList<>(); field in AccessibilityEventTest.AccessibilityEventFilter
375 assertEquals(count, mEvents.size()); in assertReceivedEventCount()
379 if (mEvents.size() > 0) { in getLastEvent()
380 return mEvents.get(mEvents.size() - 1); in getLastEvent()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java121 private ArrayList<MotionEvent> mEvents; field in MockIme
625 mEvents = new ArrayList<>(); in onHandleCommand()
627 mEvents.add(MotionEvent.obtain(event))); in onHandleCommand()
639 return mEvents; in onHandleCommand()
1132 if (mEvents != null) {
1133 mEvents.clear();
1142 if (mEvents != null) {
1143 mEvents.clear();
1152 if (mEvents == null) {
1153 mEvents = new ArrayList<>();
[all …]
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/
DServiceReporter.java47 public ArrayList<AppTargetEvent> mEvents = new ArrayList<>(); field in ServiceReporter
119 mEvents.add(event); in onAppTargetEvent()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java108 private Set<Integer> mEvents; field in ErrorLoggingService.EventWaiter
112 mEvents = events; in EventWaiter()
117 return mEvents; in getEvents()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecBlockModelHelper.java278 mEvents = (events != null) ? events : new ArrayList<>(); in SurfaceOutputSlotListener()
295 mEvents.add(new FormatChangeEvent( in onOutputSlot()
309 private final List<FormatChangeEvent> mEvents; field in MediaCodecBlockModelHelper.SurfaceOutputSlotListener
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DQuickAccessWalletClientTest.java459 assertThat(listener.mEvents).hasSize(1); in testAddListener_sendEvent_success()
477 assertThat(listener.mEvents).hasSize(0); in testRemoveListener_sendEvent_shouldNotBeDelivered()
582 private final List<WalletServiceEvent> mEvents = new ArrayList<>(); field in QuickAccessWalletClientTest.TestEventListener
588 mEvents.add(event); in onWalletServiceEvent()

12