Searched refs:focusEvents (Results 1 – 3 of 3) sorted by relevance
101 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 …]
34 eventLog.focusEvents.firstOrNull { !it.hasFocus() }?.let { focusList.add(it) } in <lambda>()35 focusList + eventLog.focusEvents.filter { it.hasFocus() } in <lambda>()
30 val focusEvents: Collection<FocusEvent> = constant in android.tools.traces.events.EventLog