Home
last modified time | relevance | path

Searched refs:focusEvents (Results 1 – 3 of 3) sorted by relevance

/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/events/
DEventLogMonitorTest.kt101 assertEquals(2, eventLog.focusEvents.size) in canCaptureFocusEventLogs()
104 eventLog.focusEvents.first().window in canCaptureFocusEventLogs()
106 assertEquals(FocusEvent.Type.LOST, eventLog.focusEvents.first().type) in canCaptureFocusEventLogs()
109 eventLog.focusEvents.drop(1).first().window in canCaptureFocusEventLogs()
111 assertEquals(FocusEvent.Type.GAINED, eventLog.focusEvents.drop(1).first().type) in canCaptureFocusEventLogs()
113 eventLog.focusEvents.first().timestamp <= eventLog.focusEvents.drop(1).first().timestamp in canCaptureFocusEventLogs()
115 assertEquals(eventLog.focusEvents.first().reason, "test") in canCaptureFocusEventLogs()
157 assertEquals(2, eventLog.focusEvents.size) in onlyCapturesLastTransition()
160 eventLog.focusEvents.first().window in onlyCapturesLastTransition()
162 assertEquals(FocusEvent.Type.LOST, eventLog.focusEvents.first().type) in onlyCapturesLastTransition()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/events/
DEventLogSubject.kt34 eventLog.focusEvents.firstOrNull { !it.hasFocus() }?.let { focusList.add(it) } in <lambda>()
35 focusList + eventLog.focusEvents.filter { it.hasFocus() } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DEventLog.kt30 val focusEvents: Collection<FocusEvent> = constant in android.tools.traces.events.EventLog