Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7de8eab3 authored by Pablo Gamito's avatar Pablo Gamito Committed by Android (Google) Code Review
Browse files

Merge "Rename ComponentMatcher to ComponentNameMatcher"

parents 8f156474 77d6c8a6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import com.android.server.wm.flicker.statusBarLayerPositionAtStartAndEnd
import com.android.server.wm.flicker.statusBarWindowIsAlwaysVisible
import com.android.server.wm.flicker.taskBarLayerIsVisibleAtStartAndEnd
import com.android.server.wm.flicker.taskBarWindowIsAlwaysVisible
import com.android.server.wm.traces.common.ComponentMatcher
import com.android.server.wm.traces.parser.windowmanager.WindowManagerStateHelper
import org.junit.Assume
import org.junit.Test
+5 −5
Original line number Diff line number Diff line
@@ -17,10 +17,10 @@
@file:JvmName("CommonConstants")
package com.android.wm.shell.flicker

import com.android.server.wm.traces.common.ComponentMatcher
import com.android.server.wm.traces.common.ComponentNameMatcher

const val SYSTEM_UI_PACKAGE_NAME = "com.android.systemui"
val APP_PAIR_SPLIT_DIVIDER_COMPONENT = ComponentMatcher("", "AppPairSplitDivider#")
val DOCKED_STACK_DIVIDER_COMPONENT = ComponentMatcher("", "DockedStackDivider#")
val SPLIT_SCREEN_DIVIDER_COMPONENT = ComponentMatcher("", "StageCoordinatorSplitDivider#")
val SPLIT_DECOR_MANAGER = ComponentMatcher("", "SplitDecorManager#")
val APP_PAIR_SPLIT_DIVIDER_COMPONENT = ComponentNameMatcher("", "AppPairSplitDivider#")
val DOCKED_STACK_DIVIDER_COMPONENT = ComponentNameMatcher("", "DockedStackDivider#")
val SPLIT_SCREEN_DIVIDER_COMPONENT = ComponentNameMatcher("", "StageCoordinatorSplitDivider#")
val SPLIT_DECOR_MANAGER = ComponentNameMatcher("", "SplitDecorManager#")
+2 −2
Original line number Diff line number Diff line
@@ -17,10 +17,10 @@
package com.android.wm.shell.flicker.helpers

import android.app.Instrumentation
import com.android.server.wm.traces.common.IComponentMatcher
import com.android.server.wm.traces.common.ComponentNameMatcher

class AppPairsHelper(
    instrumentation: Instrumentation,
    activityLabel: String,
    component: IComponentMatcher
    component: ComponentNameMatcher
) : BaseAppHelper(instrumentation, activityLabel, component)
+2 −5
Original line number Diff line number Diff line
@@ -26,13 +26,13 @@ import androidx.test.uiautomator.UiObject2
import androidx.test.uiautomator.Until
import com.android.compatibility.common.util.SystemUtil
import com.android.server.wm.flicker.helpers.StandardAppHelper
import com.android.server.wm.traces.common.IComponentMatcher
import com.android.server.wm.traces.common.IComponentNameMatcher
import java.io.IOException

abstract class BaseAppHelper(
    instrumentation: Instrumentation,
    launcherName: String,
    component: IComponentMatcher
    component: IComponentNameMatcher
) : StandardAppHelper(
    instrumentation,
    launcherName,
@@ -46,9 +46,6 @@ abstract class BaseAppHelper(
            hasSystemFeature(FEATURE_LEANBACK) || hasSystemFeature(FEATURE_LEANBACK_ONLY)
        }

    val defaultWindowName: String
        get() = toWindowName()

    val ui: UiObject2?
        get() = uiDevice.findObject(appSelector)

+2 −2
Original line number Diff line number Diff line
@@ -19,12 +19,12 @@ package com.android.wm.shell.flicker.helpers
import android.app.Instrumentation
import android.content.Context
import android.provider.Settings
import com.android.server.wm.traces.common.IComponentMatcher
import com.android.server.wm.traces.common.ComponentNameMatcher

class MultiWindowHelper(
    instrumentation: Instrumentation,
    activityLabel: String,
    componentsInfo: IComponentMatcher
    componentsInfo: ComponentNameMatcher
) : BaseAppHelper(instrumentation, activityLabel, componentsInfo) {

    companion object {
Loading