Searched refs:timedMessages (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/utils/testutils/java/com/android/server/accessibility/test/ |
D | MessageCapturingHandler.java | 34 public List<Pair<Message, Long>> timedMessages = new ArrayList<>(); field in MessageCapturingHandler 53 timedMessages.add(new Pair<>(Message.obtain(message), uptimeMillis)); in sendMessageAtTime() 62 Message message = timedMessages.remove(0).first; in sendOneMessage() 69 while (!timedMessages.isEmpty()) { in sendAllMessages() 75 Message message = timedMessages.remove(timedMessages.size() - 1).first; in sendLastMessage() 90 for (int i = 0; i < timedMessages.size(); i++) { in removeAllMessages() 91 Message message = timedMessages.get(i).first; in removeAllMessages() 99 return !timedMessages.isEmpty(); in hasMessages() 103 for (int i = 0; i < timedMessages.size(); i++) { in removeStaleMessages() 104 Message message = timedMessages.get(i).first; in removeStaleMessages() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyEventDispatcherTest.java | 277 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_shouldPassToFramework() 292 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterOneServiceReturnsFalse_shouldPassToFramework() 308 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterOneServiceReturnsTrue_shouldNotPassToFramework() 321 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_thenServiceReturnsFalse_shouldPassToFrameworkOnce() 343 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterServiceReturnsFalse_shouldPassToFrameworkOnce() 357 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterServiceReturnsTrue_shouldNotPassToFramework() 552 assertEquals(1, mInputEventsHandler.timedMessages.size()); in assertOneKeyEventSentToFramework() 561 assertEquals(2, mInputEventsHandler.timedMessages.size()); in assertTwoKeyEventsSentToFrameworkInOrder() 575 return handler.timedMessages.get(i).first; in getTimedMessage()
|