/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/ |
D | WindowManagerTraceSubject.kt | 94 fun windowStates(componentMatcher: IComponentMatcher): List<WindowStateSubject> = windowStates { in <lambda>() 95 componentMatcher.windowMatchesAnyOf(it) in <lambda>() 114 override fun notContains(componentMatcher: IComponentMatcher): WindowManagerTraceSubject = in <lambda>() 115 notContains(componentMatcher, isOptional = false) in <lambda>() 119 componentMatcher: IComponentMatcher, in <lambda>() 123 it.notContains(componentMatcher) in <lambda>() 129 componentMatcher: IComponentMatcher in <lambda>() 130 ): WindowManagerTraceSubject = isAboveAppWindowVisible(componentMatcher, isOptional = false) in <lambda>() 134 componentMatcher: IComponentMatcher, in <lambda>() 141 it.isAboveAppWindowVisible(componentMatcher) in <lambda>() [all …]
|
D | IWindowManagerSubject.kt | 39 fun visibleRegion(componentMatcher: IComponentMatcher? = null): RegionSubjectType 46 fun containsAboveAppWindow(componentMatcher: IComponentMatcher): WMSubjectType 53 fun containsBelowAppWindow(componentMatcher: IComponentMatcher): WMSubjectType 76 fun containsNonAppWindow(componentMatcher: IComponentMatcher): WMSubjectType 83 fun isAppWindowOnTop(componentMatcher: IComponentMatcher): WMSubjectType 90 fun isAppWindowNotOnTop(componentMatcher: IComponentMatcher): WMSubjectType 97 fun doNotOverlap(vararg componentMatcher: IComponentMatcher): WMSubjectType 104 fun containsAppWindow(componentMatcher: IComponentMatcher): WMSubjectType 122 fun contains(componentMatcher: IComponentMatcher): WMSubjectType 130 fun notContainsAppWindow(componentMatcher: IComponentMatcher): WMSubjectType [all …]
|
D | WindowManagerStateSubject.kt | 103 override fun visibleRegion(componentMatcher: IComponentMatcher?): RegionSubject { in <lambda>() 105 if (componentMatcher == null) { in <lambda>() 109 subjects.filter { componentMatcher.windowMatchesAnyOf(it.windowState) } in <lambda>() 117 componentMatcher?.toWindowIdentifier() ?: "<any>", in <lambda>() 130 componentMatcher: IComponentMatcher in <lambda>() 132 if (!wmState.contains(componentMatcher)) { in <lambda>() 133 throw createElementNotFoundException(componentMatcher) in <lambda>() 135 if (!wmState.isAboveAppWindow(componentMatcher)) { in <lambda>() 136 throw createElementNotFoundException(componentMatcher) in <lambda>() 142 componentMatcher: IComponentMatcher in <lambda>() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/ |
D | ILayerSubject.kt | 41 componentMatcher: IComponentMatcher? = null, 50 fun contains(componentMatcher: IComponentMatcher): LayerSubjectType 57 fun notContains(componentMatcher: IComponentMatcher): LayerSubjectType 64 fun isVisible(componentMatcher: IComponentMatcher): LayerSubjectType 71 fun isInvisible(componentMatcher: IComponentMatcher): LayerSubjectType 79 fun isSplashScreenVisibleFor(componentMatcher: IComponentNameMatcher): LayerSubjectType 86 fun hasColor(componentMatcher: IComponentMatcher): LayerSubjectType 93 fun hasNoColor(componentMatcher: IComponentMatcher): LayerSubjectType 100 fun hasRoundedCorners(componentMatcher: IComponentMatcher): LayerSubjectType
|
D | LayersTraceSubject.kt | 120 override fun notContains(componentMatcher: IComponentMatcher): LayersTraceSubject = in <lambda>() 121 notContains(componentMatcher, isOptional = false) in <lambda>() 124 fun notContains(componentMatcher: IComponentMatcher, isOptional: Boolean): LayersTraceSubject = in <lambda>() 127 it.notContains(componentMatcher) in <lambda>() 132 override fun contains(componentMatcher: IComponentMatcher): LayersTraceSubject = in <lambda>() 133 contains(componentMatcher, isOptional = false) in <lambda>() 136 fun contains(componentMatcher: IComponentMatcher, isOptional: Boolean): LayersTraceSubject = in <lambda>() 139 it.contains(componentMatcher) in <lambda>() 144 override fun isVisible(componentMatcher: IComponentMatcher): LayersTraceSubject = in <lambda>() 145 isVisible(componentMatcher, isOptional = false) in <lambda>() [all …]
|
D | LayerTraceEntrySubject.kt | 90 visibleRegion(componentMatcher = null, useCompositionEngineRegionOnly = true) in <lambda>() 93 fun visibleRegion(componentMatcher: IComponentMatcher): RegionSubject = in <lambda>() 94 visibleRegion(componentMatcher, useCompositionEngineRegionOnly = true) in <lambda>() 98 componentMatcher: IComponentMatcher?, in <lambda>() 102 if (componentMatcher == null) { in <lambda>() 108 subjects.filter { componentMatcher.layerMatchesAnyOf(it.layer) } in <lambda>() 116 componentMatcher?.toLayerIdentifier() ?: "<any>", in <lambda>() 136 override fun contains(componentMatcher: IComponentMatcher): LayerTraceEntrySubject = apply { in <lambda>() 137 if (!componentMatcher.layerMatchesAnyOf(entry.flattenedLayers)) { in <lambda>() 142 componentMatcher.toLayerIdentifier(), in <lambda>() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | WindowManagerState.kt | 244 componentMatcher: IComponentMatcher, in <lambda>() 251 stack.getActivity { activity -> activity.hasWindow(componentMatcher) } in <lambda>() 260 fun containsActivity(componentMatcher: IComponentMatcher): Boolean = in <lambda>() 261 rootTasks.any { it.containsActivity(componentMatcher) } in <lambda>() 267 fun getActivity(componentMatcher: IComponentMatcher): Activity? = in <lambda>() 268 rootTasks.firstNotNullOfOrNull { it.getActivity(componentMatcher) } in <lambda>() 279 fun isActivityVisible(componentMatcher: IComponentMatcher): Boolean = in <lambda>() 280 getActivity(componentMatcher)?.isVisible ?: false in <lambda>() 287 fun hasActivityState(componentMatcher: IComponentMatcher, activityState: String): Boolean = in <lambda>() 288 rootTasks.any { it.getActivity(componentMatcher)?.state == activityState } in <lambda>() [all …]
|
D | Activity.kt | 40 fun getWindows(componentMatcher: IComponentMatcher): Collection<WindowState> = getWindows { in <lambda>() 41 componentMatcher.windowMatchesAnyOf(it) in <lambda>() 49 fun hasWindow(componentMatcher: IComponentMatcher): Boolean = in <lambda>() 50 getWindows(componentMatcher).isNotEmpty() in <lambda>()
|
D | DisplayArea.kt | 42 fun containsActivity(componentMatcher: IComponentMatcher): Boolean { in <lambda>() 46 componentMatcher.activityMatchesAnyOf(activities) in <lambda>()
|
D | Task.kt | 110 fun getActivity(componentMatcher: IComponentMatcher): Activity? = getActivity { activity -> in <lambda>() 111 componentMatcher.activityMatchesAnyOf(activity) in <lambda>() 118 fun containsActivity(componentMatcher: IComponentMatcher) = in <lambda>() 119 getActivity(componentMatcher) != null in <lambda>()
|
D | DisplayContent.kt | 89 fun containsActivity(componentMatcher: IComponentMatcher): Boolean = in <lambda>() 90 rootTasks.any { it.containsActivity(componentMatcher) } in <lambda>() 96 fun getTaskDisplayArea(componentMatcher: IComponentMatcher): DisplayArea? { in <lambda>() 99 .filter { it.containsActivity(componentMatcher) } in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/ |
D | WindowManagerStateHelper.kt | 88 fun getWindow(componentMatcher: IComponentMatcher): WindowState? { in getWindow() 90 componentMatcher.windowMatchesAnyOf(it) in getWindow() 98 fun getWindowRegion(componentMatcher: IComponentMatcher): Region = in getWindowRegion() 99 getWindow(componentMatcher)?.frameRegion ?: Region() in getWindowRegion() 191 componentMatcher: IComponentMatcher, in getWindowRegion() 194 withFullScreenAppCondition(componentMatcher) in getWindowRegion() 196 .add(ConditionsFactory.isLayerVisible(componentMatcher)) in getWindowRegion() 207 componentMatcher: IComponentMatcher, in getWindowRegion() 210 withFreeformAppCondition(componentMatcher) in getWindowRegion() 212 .add(ConditionsFactory.isLayerVisible(componentMatcher)) in getWindowRegion() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/ |
D | ConditionsFactory.kt | 189 fun containsActivity(componentMatcher: IComponentMatcher): Condition<DeviceStateDump> = in <lambda>() 191 it.wmState.containsActivity(componentMatcher) in <lambda>() 194 fun containsWindow(componentMatcher: IComponentMatcher): Condition<DeviceStateDump> = in <lambda>() 196 it.wmState.containsWindow(componentMatcher) in <lambda>() 199 fun isWindowSurfaceShown(componentMatcher: IComponentMatcher): Condition<DeviceStateDump> = in <lambda>() 201 it.wmState.isWindowSurfaceShown(componentMatcher) in <lambda>() 204 fun isActivityVisible(componentMatcher: IComponentMatcher): Condition<DeviceStateDump> = in <lambda>() 206 it.wmState.isActivityVisible(componentMatcher) in <lambda>() 229 componentMatcher: IComponentMatcher, in <lambda>() 233 containsActivity(componentMatcher), in <lambda>() [all …]
|
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/ |
D | StandardAppHelper.kt | 44 val componentMatcher: ComponentNameMatcher, constant in android.tools.device.apphelpers.StandardAppHelper 45 ) : IStandardAppHelper, IComponentNameMatcher by componentMatcher { 63 override val packageName = componentMatcher.packageName 65 val packageNameMatcher = ComponentNameMatcher(componentMatcher.packageName, "") 67 override val className = componentMatcher.className 118 !it.wmState.containsActivity(componentMatcher) || in waitForActivityDestroyed() 119 it.wmState.hasActivityState(componentMatcher, PlatformConsts.STATE_DESTROYED) in waitForActivityDestroyed() 178 val expectedWindow = launchedAppComponentMatcherOverride ?: componentMatcher in doWaitShown() 193 override fun toString(): String = componentMatcher.toString() in toString()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | LayerTraceEntry.kt | 69 fun getLayerWithBuffer(componentMatcher: IComponentMatcher): Layer? { in <lambda>() 71 componentMatcher.layerMatchesAnyOf(it) && !it.activeBuffer.isEmpty in <lambda>() 88 componentMatcher: IComponentMatcher? = null in <lambda>() 92 componentMatcher == null || componentMatcher.layerMatchesAnyOf(it) in <lambda>() 111 fun isVisible(componentMatcher: IComponentMatcher): Boolean = in <lambda>() 112 componentMatcher.layerMatchesAnyOf(visibleLayers) in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/ |
D | BaseFlickerTest.kt | 62 componentMatcher: IComponentMatcher, in assertWmVisibleRegion() 67 assertionFactory.createWmVisibleRegionAssertion(componentMatcher, assertion) in assertWmVisibleRegion() 101 componentMatcher: IComponentMatcher, in assertLayersVisibleRegion() 108 componentMatcher, in assertLayersVisibleRegion()
|
D | AssertionFactory.kt | 90 componentMatcher: IComponentMatcher, in createWmVisibleRegionAssertion() 97 val regionTraceSubject = visibleRegion(componentMatcher) in createWmVisibleRegionAssertion() 165 componentMatcher: IComponentMatcher, in createLayersVisibleRegionAssertion() 174 visibleRegion(componentMatcher, useCompositionEngineRegionOnly) in createLayersVisibleRegionAssertion()
|
D | FlickerTest.kt | 57 componentMatcher: IComponentMatcher, 100 componentMatcher: IComponentMatcher,
|
/platform_testing/libraries/flicker/test/src/android/tools/integration/ |
D | NoErrorTest.kt | 65 .getActivitiesForWindow(Utils.setupAndTearDownTestApp.componentMatcher) in <lambda>() 84 .getActivitiesForWindow(Utils.transitionTestApp.componentMatcher) in <lambda>() 102 Utils.setupAndTearDownTestApp.componentMatcher.layerMatchesAnyOf( in <lambda>() 113 Utils.setupAndTearDownTestApp.componentMatcher.layerMatchesAnyOf( in <lambda>() 132 Utils.transitionTestApp.componentMatcher.layerMatchesAnyOf( in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/ |
D | LaunchAppRule.kt | 53 componentMatcher: ComponentNameMatcher, 60 StandardAppHelper(instrumentation, appName, componentMatcher),
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/ |
D | WindowManagerStateSubjectTest.kt | 407 val componentMatcher = in canDetectWindowVisibilityWhen2WindowsHaveSameName() constant 413 .isAppWindowInvisible(componentMatcher) in canDetectWindowVisibilityWhen2WindowsHaveSameName() 419 .isAppWindowVisible(componentMatcher) in canDetectWindowVisibilityWhen2WindowsHaveSameName()
|
D | WindowManagerTraceSubjectTest.kt | 200 val componentMatcher = in <lambda>() constant 205 WindowManagerTraceSubject(chromeTrace, chromeTraceReader).windowStates(componentMatcher) in <lambda>()
|