Home
last modified time | relevance | path

Searched refs:component (Results 1 – 25 of 130) sorted by relevance

123456

/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DWindowBecomesPinned.kt27 class WindowBecomesPinned(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.WindowBecomesPinned
28 AssertionTemplateWithComponent(component) {
31 val component = component.build(scenarioInstance) in doEvaluate() constant
32 flicker.assertWm { isNotPinned(component).then().isPinned(component) } in doEvaluate()
DPipWindowBecomesInvisible.kt27 class PipWindowBecomesInvisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.PipWindowBecomesInvisible
28 AssertionTemplateWithComponent(component) {
33 it.isPinned(component.build(scenarioInstance)) in doEvaluate()
34 .isAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
38 it.isNotPinned(component.build(scenarioInstance)) in doEvaluate()
39 .isAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
DAppLayerBecomesVisible.kt22 import android.tools.traces.component.ComponentNameMatcher
28 class AppLayerBecomesVisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppLayerBecomesVisible
29 AssertionTemplateWithComponent(component) {
35 isInvisible(component.build(scenarioInstance)) in doEvaluate()
41 .isVisible(component.build(scenarioInstance), isOptional = true) in doEvaluate()
47 .or(component.build(scenarioInstance)) in doEvaluate()
DAppWindowBecomesVisible.kt22 import android.tools.traces.component.ComponentNameMatcher
28 class AppWindowBecomesVisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppWindowBecomesVisible
29 AssertionTemplateWithComponent(component) {
35 isAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
41 .isAppWindowVisible(component.build(scenarioInstance), isOptional = true) in doEvaluate()
47 .or(component.build(scenarioInstance)) in doEvaluate()
DRotationLayerAppearsAndVanishes.kt22 import android.tools.traces.component.ComponentNameMatcher
28 class RotationLayerAppearsAndVanishes(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.RotationLayerAppearsAndVanishes
29 AssertionTemplateWithComponent(component) {
33 isVisible(component.build(scenarioInstance)) in doEvaluate()
37 .isVisible(component.build(scenarioInstance)) in doEvaluate()
DLayerBecomesVisible.kt26 class LayerBecomesVisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.LayerBecomesVisible
27 AssertionTemplateWithComponent(component) {
31 isInvisible(component.build(scenarioInstance)) in doEvaluate()
33 .isVisible(component.build(scenarioInstance)) in doEvaluate()
DLayerBecomesInvisible.kt26 class LayerBecomesInvisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.LayerBecomesInvisible
27 AssertionTemplateWithComponent(component) {
31 isVisible(component.build(scenarioInstance)) in doEvaluate()
33 .isInvisible(component.build(scenarioInstance)) in doEvaluate()
DWindowMovesToTop.kt24 open class WindowMovesToTop(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.WindowMovesToTop
25 AssertionTemplateWithComponent(component) {
29 isAppWindowNotOnTop(component.build(scenarioInstance)) in doEvaluate()
31 .isAppWindowOnTop(component.build(scenarioInstance)) in doEvaluate()
DAppLayerBecomesInvisible.kt27 class AppLayerBecomesInvisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppLayerBecomesInvisible
28 AssertionTemplateWithComponent(component) {
32 isVisible(component.build(scenarioInstance)) in doEvaluate()
34 .isInvisible(component.build(scenarioInstance)) in doEvaluate()
DNonAppWindowBecomesVisible.kt27 class NonAppWindowBecomesVisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.NonAppWindowBecomesVisible
28 AssertionTemplateWithComponent(component) {
32 isNonAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
34 .isAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
DWindowMovesOutOfTop.kt24 open class WindowMovesOutOfTop(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.WindowMovesOutOfTop
25 AssertionTemplateWithComponent(component) {
29 isAppWindowOnTop(component.build(scenarioInstance)) in doEvaluate()
31 .isAppWindowNotOnTop(component.build(scenarioInstance)) in doEvaluate()
DAppWindowBecomesInvisible.kt27 class AppWindowBecomesInvisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppWindowBecomesInvisible
28 AssertionTemplateWithComponent(component) {
32 isAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
34 .isAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
DNonAppWindowBecomesInvisible.kt27 open class NonAppWindowBecomesInvisible(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.NonAppWindowBecomesInvisible
28 AssertionTemplateWithComponent(component) {
32 isNonAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
34 .isNonAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
DAppLayerReplacesLauncher.kt22 import android.tools.traces.component.ComponentNameMatcher
33 class AppLayerReplacesLauncher(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppLayerReplacesLauncher
34 AssertionTemplateWithComponent(component) {
40 .isVisible(component.build(scenarioInstance)) in doEvaluate()
DLauncherReplacesAppLayer.kt22 import android.tools.traces.component.ComponentNameMatcher
32 class LauncherReplacesAppLayer(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.LauncherReplacesAppLayer
33 AssertionTemplateWithComponent(component) {
37 isVisible(component.build(scenarioInstance)) in doEvaluate()
DAppWindowReplacesLauncherAsTopWindow.kt22 import android.tools.traces.component.ComponentNameMatcher
28 class AppWindowReplacesLauncherAsTopWindow(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppWindowReplacesLauncherAsTopWindow
29 AssertionTemplateWithComponent(component) {
35 .isAppWindowOnTop(component.build(scenarioInstance)) in doEvaluate()
DLauncherWindowReplacesAppAsTopWindow.kt22 import android.tools.traces.component.ComponentNameMatcher
28 class LauncherWindowReplacesAppAsTopWindow(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.LauncherWindowReplacesAppAsTopWindow
29 AssertionTemplateWithComponent(component) {
32 isAppWindowOnTop(component.build(scenarioInstance)) in doEvaluate()
DAppWindowBecomesPinned.kt24 class AppWindowBecomesPinned(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppWindowBecomesPinned
25 AssertionTemplateWithComponent(component) {
29 invoke("appWindowIsNotPinned") { it.isNotPinned(component.build(scenarioInstance)) } in doEvaluate()
31 .invoke("appWindowIsPinned") { it.isPinned(component.build(scenarioInstance)) } in doEvaluate()
DAppLayerIsVisibleAtEnd.kt22 import android.tools.traces.component.ComponentNameMatcher
25 class AppLayerIsVisibleAtEnd(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppLayerIsVisibleAtEnd
26 AssertionTemplateWithComponent(component) {
34 .or(component.build(scenarioInstance)) in doEvaluate()
DAppLayerCoversFullScreenAtStart.kt22 import android.tools.traces.component.ComponentNameMatcher
24 class AppLayerCoversFullScreenAtStart(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppLayerCoversFullScreenAtStart
25 AssertionTemplateWithComponent(component) {
31 visibleRegion(component.build(scenarioInstance).or(ComponentNameMatcher.LETTERBOX)) in doEvaluate()
DAppLayerCoversFullScreenAtEnd.kt22 import android.tools.traces.component.ComponentNameMatcher
24 class AppLayerCoversFullScreenAtEnd(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppLayerCoversFullScreenAtEnd
25 AssertionTemplateWithComponent(component) {
32 visibleRegion(component.build(scenarioInstance).or(ComponentNameMatcher.LETTERBOX)) in doEvaluate()
DAppWindowBecomesTopWindow.kt22 import android.tools.traces.component.ComponentNameMatcher
28 class AppWindowBecomesTopWindow(private val component: ComponentTemplate) : constant in android.tools.flicker.assertors.assertions.AppWindowBecomesTopWindow
29 AssertionTemplateWithComponent(component) {
32 val testApp = component.build(scenarioInstance) in doEvaluate()
DSplitAppLayerBoundsBecomesVisible.kt26 import android.tools.traces.component.IComponentMatcher
29 private val component: ComponentTemplate, constant in android.tools.flicker.assertors.assertions.SplitAppLayerBoundsBecomesVisible
31 ) : AssertionTemplateWithComponent(component) {
34 val app = component.build(scenarioInstance) in doEvaluate()
63 component: IComponentMatcher, in splitAppLayerBoundsSnapToDivider()
70 component, in splitAppLayerBoundsSnapToDivider()
79 component: IComponentMatcher, in LayerTraceEntrySubject()
92 visibleRegion(component) in LayerTraceEntrySubject()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DComponentNameMatcher.kt17 package android.tools.traces.component
24 class ComponentNameMatcher(var component: ComponentName) : IComponentNameMatcher { variable in android.tools.traces.component.ComponentNameMatcher
26 get() = component.packageName
28 get() = component.className
29 override fun toActivityName(): String = component.toActivityName() in toActivityName()
30 override fun toWindowName(): String = component.toWindowName() in toActivityName()
31 override fun toLayerName(): String = component.toLayerName() in toActivityName()
66 override fun toActivityIdentifier(): String = component.toActivityName() in toActivityIdentifier()
69 override fun toWindowIdentifier(): String = component.toWindowName() in toActivityIdentifier()
72 override fun toLayerIdentifier(): String = component.toLayerName() in toActivityIdentifier()
[all …]
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DBatteryUsageStatsHelper.java111 .filter(cm -> cm.component == componentModel.component) in batteryUsageStatsFromBucket()
115 comparableModelComponents.add(componentModel.component); in batteryUsageStatsFromBucket()
120 + componentName(componentModel.component) in batteryUsageStatsFromBucket()
136 totalConsumptionByComponentMetricKey(usage.component), in batteryUsageStatsFromBucket()
139 totalDurationByComponentMetricKey(usage.component), in batteryUsageStatsFromBucket()
141 if (comparableModelComponents.contains(usage.component)) { in batteryUsageStatsFromBucket()
144 PowerComponentModel.MEASURED_ENERGY, usage.component), in batteryUsageStatsFromBucket()
159 if (comparableModelComponents.contains(usage.component)) { in batteryUsageStatsFromBucket()
162 PowerComponentModel.POWER_PROFILE, usage.component), in batteryUsageStatsFromBucket()
186 packageNamesForMetrics, componentPerUid.component), in batteryUsageStatsFromBucket()
[all …]

123456