Home
last modified time | relevance | path

Searched refs:wmState (Results 1 – 19 of 19) sorted by relevance

/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubject.kt60 val wmState: WindowManagerState, in <lambda>() constant in android.tools.flicker.subject.wm.WindowManagerStateSubject
64 override val timestamp = wmState.timestamp in <lambda>()
66 val subjects by lazy { wmState.windowStates.map { WindowStateSubject(reader, timestamp, it) } } in <lambda>()
69 get() = subjects.filter { wmState.appWindows.contains(it.windowState) } in <lambda>()
72 get() = subjects.filter { wmState.nonAppWindows.contains(it.windowState) } in <lambda>()
75 get() = subjects.filter { wmState.aboveAppWindows.contains(it.windowState) } in <lambda>()
78 get() = subjects.filter { wmState.belowAppWindows.contains(it.windowState) } in <lambda>()
81 get() = subjects.filter { wmState.visibleWindows.contains(it.windowState) } in <lambda>()
84 get() = subjects.filter { wmState.visibleAppWindows.contains(it.windowState) } in <lambda>()
89 assertion(this.wmState) in <lambda>()
[all …]
DWindowManagerTraceSubject.kt575 subject.wmState.windowStates in <lambda>()
595 subjects.filter { it.wmState.timestamp.elapsedNanos in startTime..endTime } in <lambda>()
605 subjects.first { it.wmState.timestamp.elapsedNanos == timestamp } in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DWindowManagerStateHelperTest.kt73 var wmState: WindowManagerState = _wmState in <lambda>() variable
77 wmState = value.wmState in <lambda>()
148 fun getNavBarComponent(wmState: WindowManagerState) = in <lambda>()
149 if (wmState.isTablet || !ConditionsFactory.isPhoneNavBar()) ComponentNameMatcher.TASK_BAR in <lambda>()
163 val wmState = iterator.next() in <lambda>() constant
165 mutableListOf(ComponentNameMatcher.STATUS_BAR, getNavBarComponent(wmState)) in <lambda>()
166 if (wmState.isWindowSurfaceShown(ComponentNameMatcher.SPLASH_SCREEN)) { in <lambda>()
169 if (wmState.isWindowSurfaceShown(ComponentNameMatcher.SNAPSHOT)) { in <lambda>()
173 wmState.visibleWindows in <lambda>()
177 if (wmState.inputMethodWindowState?.isSurfaceShown == true) { in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DConditionsFactory.kt46 fun getNavBarComponent(wmState: WindowManagerState): IComponentMatcher { in <lambda>()
48 if (wmState.isTablet || !isPhoneNavBar()) { in <lambda>()
73 val component = getNavBarComponent(it.wmState) in <lambda>()
74 it.wmState.isWindowSurfaceShown(component) in <lambda>()
83 val component = getNavBarComponent(it.wmState) in <lambda>()
90 val component = getNavBarComponent(it.wmState) in <lambda>()
103 it.wmState.isWindowSurfaceShown(ComponentNameMatcher.NAV_BAR) in <lambda>()
125 it.wmState.isWindowSurfaceShown(ComponentNameMatcher.TASK_BAR) in <lambda>()
147 it.wmState.isWindowSurfaceShown(ComponentNameMatcher.STATUS_BAR) in <lambda>()
162 Condition("isHomeActivityVisible") { it.wmState.isHomeActivityVisible } in <lambda>()
[all …]
DDeviceStateDump.kt27 override val wmState: WindowManagerState, constant in android.tools.traces.DeviceStateDump
29 ) : NullableDeviceStateDump(wmState, layerState)
DNullableDeviceStateDump.kt28 open val wmState: WindowManagerState?, constant in android.tools.traces.NullableDeviceStateDump
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DStatusBarLayerPositionAtStart.kt44 val wmState = in getExpectedStatusBarPosition() constant
48 wmState.getDisplay(PlatformConsts.DEFAULT_DISPLAY) ?: error("Display not found") in getExpectedStatusBarPosition()
DStatusBarLayerPositionAtEnd.kt43 val wmState = in getExpectedStatusBarPosition() constant
47 wmState.getDisplay(PlatformConsts.DEFAULT_DISPLAY) ?: error("Display not found") in getExpectedStatusBarPosition()
DHasAtMostOneWindowMatching.kt35 it.wmState.windowStates.count { window -> matcher.windowMatchesAnyOf(window) } in <lambda>()
DAppWindowRemainInsideDisplayBounds.kt32 val display = entry.wmState.displays.minByOrNull { it.id }!! in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/
DUtilsTest.kt58 Truth.assertThat(currState.wmState).isNotNull() in canFetchCurrentDeviceStateOnlyWm()
68 Truth.assertThat(currState.wmState).isNull() in canFetchCurrentDeviceStateOnlyLayers()
75 val wmArray = currState.wmState?.asTrace()?.entries ?: emptyList() in canParseCurrentDeviceState()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/
DWindowManagerStateHelper.kt89 return this.currentState.wmState.windowStates.firstOrNull { in getWindow()
169 val wmState = internalState?.wmState in getWindowRegion() constant
172 if (wmState != null) { in getWindowRegion()
270 it.wmState.hasActivityState(componentMatcher, state) in getWindowRegion()
423 add("noAppWindowsOnTop") { it.wmState.topVisibleAppWindow == null } in getWindowRegion()
426 fun withKeyguardShowing() = add("withKeyguardShowing") { it.wmState.isKeyguardShowing } in getWindowRegion()
488 state.wmState.getMatchingVisibleWindowState( in shouldWaitForActivities()
497 } else if (!state.wmState.isActivityVisible(activityState.activityMatcher)) { in shouldWaitForActivities()
DDeviceDumpParser.kt60 wmState = in <lambda>()
100 nullableDump.wmState ?: error("WMState dump missing"), in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DNoErrorTest.kt64 it.wmState in <lambda>()
83 it.wmState in <lambda>()
DFullLegacyTestRun.kt55 .wmState
68 setup { flicker.scenario.setIsTablet(wmHelper.currentState.wmState.isTablet) } in buildFlicker()
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DStandardAppHelper.kt118 !it.wmState.containsActivity(componentMatcher) || in waitForActivityDestroyed()
119 it.wmState.hasActivityState(componentMatcher, PlatformConsts.STATE_DESTROYED) in waitForActivityDestroyed()
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/
DChangeDisplayOrientationRule.kt98 if (wmHelper.currentState.wmState.canRotate) { in setRotation()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubjectTest.kt241 val appWindowNames = firstEntry.wmState.appWindows.map { it.name } in canDetectAppWindowVisibilitySubject()
377 Truth.assertThat(entry.wmState.taskFragments.size).isEqualTo(2) in canDetectTaskFragment()
387 Truth.assertThat(entry.wmState.isHomeActivityVisible).isTrue() in canDetectIsHomeActivityVisibleTablet()
/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DWindowUtils.kt52 return currState.wmState.getRotation(PlatformConsts.DEFAULT_DISPLAY)