Searched refs:timedMessages (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MessageCapturingHandler.java | 34 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 …]
|
D | KeyEventDispatcherTest.java | 271 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_shouldPassToFramework() 286 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterOneServiceReturnsFalse_shouldPassToFramework() 302 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterOneServiceReturnsTrue_shouldNotPassToFramework() 315 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_thenServiceReturnsFalse_shouldPassToFrameworkOnce() 337 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterServiceReturnsFalse_shouldPassToFrameworkOnce() 351 assertEquals(1, mMessageCapturingHandler.timedMessages.size()); in testEventTimesOut_afterServiceReturnsTrue_shouldNotPassToFramework() 546 assertEquals(1, mInputEventsHandler.timedMessages.size()); in assertOneKeyEventSentToFramework() 555 assertEquals(2, mInputEventsHandler.timedMessages.size()); in assertTwoKeyEventsSentToFrameworkInOrder() 569 return handler.timedMessages.get(i).first; in getTimedMessage()
|