Home
last modified time | relevance | path

Searched refs:expectedEvents (Results 1 – 11 of 11) sorted by relevance

/aosp12/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
H A DCarPropertyTest.java166 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_HVAC_TEST_JSON); in testHvacHardButtonOperations() local
187 VhalEventVerifier verifier = new VhalEventVerifier(expectedEvents); in testHvacHardButtonOperations()
189 for (CarPropertyValue event : expectedEvents) { in testHvacHardButtonOperations()
199 injectEventFromVehicleSide(expectedEvents, propMgr); in testHvacHardButtonOperations()
215 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_INFO_TEST_JSON); in testStaticInfoOperations() local
218 for (CarPropertyValue expectedEvent : expectedEvents) { in testStaticInfoOperations()
274 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_PROPERTY_TEST_JSON); in testPropertyEventOutOfOrder() local
278 injectEventFromVehicleSide(expectedEvents, propMgr); in testPropertyEventOutOfOrder()
366 private void injectEventFromVehicleSide(List<CarPropertyValue> expectedEvents, in injectEventFromVehicleSide() argument
368 for (CarPropertyValue propertyValue : expectedEvents) { in injectEventFromVehicleSide()
H A DVhalEventVerifier.java51 VhalEventVerifier(List<CarPropertyValue> expectedEvents) { in VhalEventVerifier() argument
52 mExpectedEvents = expectedEvents; in VhalEventVerifier()
55 mCond = new ConditionVariable(expectedEvents.isEmpty()); in VhalEventVerifier()
H A DCarDiagnosticTest.java97 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_DIAGNOSTIC_TEST_JSON); in testDiagnosticEvents() local
98 VhalEventVerifier verifier = new VhalEventVerifier(expectedEvents); in testDiagnosticEvents()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DEventHub_test.cpp98 std::vector<RawEvent> getEvents(std::optional<size_t> expectedEvents = std::nullopt);
101 std::vector<RawEvent> EventHubTest::getEvents(std::optional<size_t> expectedEvents) { in getEvents() argument
108 if (expectedEvents) { in getEvents()
117 if (expectedEvents && events.size() >= *expectedEvents) { in getEvents()
/aosp12/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
H A DLogEventChecker.java114 for (Map.Entry<String, List<Pattern>> expectedEvents : mExpectedEvents.entrySet()) { in lowLevelMismatchDiagnostics()
115 String sequence = expectedEvents.getKey(); in lowLevelMismatchDiagnostics()
118 final int mismatchPosition = getMismatchPosition(expectedEvents.getValue(), actual); in lowLevelMismatchDiagnostics()
123 expectedEvents.getValue(), in lowLevelMismatchDiagnostics()
H A DWorkspace.java288 @Nullable Runnable expectedEvents) { in dropDraggedIcon() argument
295 if (expectedEvents != null) { in dropDraggedIcon()
296 expectedEvents.run(); in dropDraggedIcon()
/aosp12/hardware/interfaces/automotive/vehicle/2.0/default/tests/
H A DVehicleHalTestUtils.h114 bool waitForExpectedEvents(size_t expectedEvents) { in waitForExpectedEvents() argument
117 if (expectedEvents == 0 && mReceivedEvents.size() == 0) { in waitForExpectedEvents()
123 while (expectedEvents != mReceivedEvents.size()) { in waitForExpectedEvents()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMagnificationGesturesObserverTest.java152 MotionEvent... expectedEvents) { in verifyCacheMotionEvents() argument
153 Assert.assertEquals("events size doesn't match", expectedEvents.length, in verifyCacheMotionEvents()
156 Assert.assertTrue(compareMotionEvent(expectedEvents[i], actualEvents.get(i).mEvent)); in verifyCacheMotionEvents()
/aosp12/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
H A DCarUserManagerLifeCycleTest.java122 List<UserLifecycleEvent> expectedEvents = startListener.waitForEvents(); in testLifecycleListener() local
123 Log.d(TAG, "Received expected events: " + expectedEvents); in testLifecycleListener()
124 for (UserLifecycleEvent event : expectedEvents) { in testLifecycleListener()
/aosp12/hardware/interfaces/automotive/vehicle/2.0/vts/functional/
H A DVtsHalAutomotiveVehicleV2_0TargetTest.cpp61 bool waitForExpectedEvents(size_t expectedEvents) { in waitForExpectedEvents() argument
64 if (expectedEvents == 0 && mReceivedEvents.size() == 0) { in waitForExpectedEvents()
68 while (expectedEvents != mReceivedEvents.size()) { in waitForExpectedEvents()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
H A DCountQuotaTrackerTest.java242 LongArrayQueue expectedEvents = new LongArrayQueue(); in testDeleteObsoleteEventsLocked() local
243 expectedEvents.addLast(now - HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
244 expectedEvents.addLast(now - 1); in testDeleteObsoleteEventsLocked()
250 assertTrue(longArrayQueueEquals(expectedEvents, remainingEvents)); in testDeleteObsoleteEventsLocked()