Home
last modified time | relevance | path

Searched refs:getEvents (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/native/services/inputflinger/tests/
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() function in EventHubTest
112 mEventHub->getEvents(timeout.count(), eventBuffer.data(), eventBuffer.size()); in getEvents()
133 std::vector<RawEvent> events = getEvents(); in consumeInitialDeviceAddedEvents()
150 std::vector<RawEvent> events = getEvents(2); in waitForDeviceCreation()
167 std::vector<RawEvent> events = getEvents(2); in waitForDeviceClose()
178 std::vector<RawEvent> events = getEvents(); in assertNoMoreEvents()
192 std::vector<RawEvent> events = getEvents(4); in TEST_F()
/frameworks/native/libs/gui/
DDisplayEventReceiver.cpp101 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, in getEvents() function in android::DisplayEventReceiver
103 return DisplayEventReceiver::getEvents(mDataChannel.get(), events, count); in getEvents()
106 ssize_t DisplayEventReceiver::getEvents(gui::BitTube* dataChannel, in getEvents() function in android::DisplayEventReceiver
DDisplayEventDispatcher.cpp156 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { in processPendingEvents()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java308 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testBrightnessEvent()
347 = mTracker.getEvents(0, false).getList(); in testBrightnessFullPopulatedEvent()
348 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testBrightnessFullPopulatedEvent()
384 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testIgnoreAutomaticBrightnessChange()
395 events = mTracker.getEvents(0, true).getList(); in testIgnoreAutomaticBrightnessChange()
416 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testLimitedBufferSize()
473 List<BrightnessChangeEvent> events = tracker.getEvents(0, true).getList(); in testReadEvents()
492 events = tracker.getEvents(1, true).getList(); in testReadEvents()
516 events = tracker.getEvents(0, true).getList(); in testReadEvents()
549 assertEquals(0, tracker.getEvents(0, true).getList().size()); in testFailedRead()
[all …]
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h143 ssize_t getEvents(Event* events, size_t count);
144 static ssize_t getEvents(gui::BitTube* dataChannel, Event* events, size_t count);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java248 LongArrayQueue remainingEvents = mQuotaTracker.getEvents(TEST_USER_ID, TEST_PACKAGE, in testDeleteObsoleteEventsLocked()
273 mQuotaTracker.getEvents(TEST_USER_ID, "com.android.test.remove", "tag1")); in testAppRemoval()
275 mQuotaTracker.getEvents(TEST_USER_ID, "com.android.test.remove", "tag2")); in testAppRemoval()
277 mQuotaTracker.getEvents(TEST_USER_ID, "com.android.test.remove", "tag3")); in testAppRemoval()
279 mQuotaTracker.getEvents(TEST_USER_ID, "com.android.test.stay", "tag1"))); in testAppRemoval()
281 mQuotaTracker.getEvents(TEST_USER_ID, "com.android.test.stay", "tag2"))); in testAppRemoval()
301 assertNull(mQuotaTracker.getEvents(TEST_USER_ID, TEST_PACKAGE, "tag1")); in testUserRemoval()
302 assertNull(mQuotaTracker.getEvents(TEST_USER_ID, TEST_PACKAGE, "tag2")); in testUserRemoval()
303 assertNull(mQuotaTracker.getEvents(TEST_USER_ID, TEST_PACKAGE, "tag3")); in testUserRemoval()
304 longArrayQueueEquals(expected, mQuotaTracker.getEvents(10, TEST_PACKAGE, "tag4")); in testUserRemoval()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java236 final List<ConnectivityMetricsEvent> events = getEvents(); in cmdList()
249 final List<IpConnectivityEvent> events = IpConnectivityEventBuilder.toProto(getEvents()); in listEventsAsProtos()
284 private List<ConnectivityMetricsEvent> getEvents() { in getEvents() method in IpConnectivityMetrics
/frameworks/native/services/surfaceflinger/tests/vsync/
Dvsync.cpp36 while ((n = q->getEvents(buffer, 1)) > 0) { in receiver()
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorEventQueue.h59 ssize_t getEvents(ASensorEvent *events, size_t count);
DASensorEventQueue.cpp86 ssize_t ASensorEventQueue::getEvents(ASensorEvent *events, size_t count) { in getEvents() function in ASensorEventQueue
/frameworks/base/telecomm/java/android/telecom/Logging/
DEventManager.java199 public List<Event> getEvents() { in getEvents() method in EventManager.EventRecord
240 for (Event event : getEvents()) { in dump()
336 for (Event ev : er.getEvents()) { in dumpEventsTimeline()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java57 final KeyEvent shortcutKeyEvent = keyCharMap.getEvents(new char[] { shortcutKey })[0]; in chordMenuKey()
/frameworks/native/services/surfaceflinger/tests/
DSetFrameRateOverride_test.cpp59 while (mDisplayEventReceiver->getEvents(&event, 1) > 0) { in setFrameRateAndListenEvents()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockSwitchControllerTest.java182 when(mClockController.getEvents()).thenReturn(mClockEvents); in setup()
183 when(mSmallClockController.getEvents()).thenReturn(mClockFaceEvents); in setup()
184 when(mLargeClockController.getEvents()).thenReturn(mClockFaceEvents); in setup()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java156 mClock.getSmallClock().getEvents().onTargetRegionChanged(new Rect( in updateClockTargetRegions()
164 mClock.getLargeClock().getEvents().onTargetRegionChanged( in updateClockTargetRegions()
DKeyguardClockSwitchController.java367 clock.getSmallClock().getEvents().onTimeTick(); in refresh()
368 clock.getLargeClock().getEvents().onTimeTick(); in refresh()
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp136 while (mDisplayEventReceiver.getEvents(buf, 100) > 0) { in waitForVsync()
/frameworks/base/core/java/android/service/ambientcontext/
DAmbientContextDetectionResult.java62 public @NonNull List<AmbientContextEvent> getEvents() { in getEvents() method in AmbientContextDetectionResult
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerPerUserService.java411 observer.onEvents(detectionResult.getEvents()); in createDetectionResultRemoteCallback()
412 Slog.i(TAG, "Got detection result of " + detectionResult.getEvents() in createDetectionResultRemoteCallback()
/frameworks/native/services/displayservice/
DDisplayEventReceiver.cpp96 while ((n = mFwkReceiver.getEvents(buf, SIZE)) > 0) { in handleEvent()
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp44 int evs = receiver_.getEvents(&ev_, 1); in notify()
47 evs = receiver_.getEvents(&ev_, 1); in notify()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java84 public List<MotionEvent> getEvents() { in getEvents() method in Interaction
DAutomator.java170 for (MotionEvent event : interaction.getEvents()) { in doInteraction()
/frameworks/base/libs/input/
DPointerControllerContext.cpp185 while ((n = mDisplayEventReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { in handleVsyncEvents()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp190 while ((n = DisplayEventReceiver::getEvents(&mInjector.tube, buffer, 8)) > 0) { in injectorCallback()

12