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

Commit f344e269 authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Move shared platform consts to PlatformConsts file

Bug: 276431133
Test: atest FlickerLibTest
Change-Id: Ide73b9e7c57792a724a74305fd0994a89ff6f8df
parent 12bf1a33
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@
package com.android.server.wm.flicker.helpers

import android.app.Instrumentation
import android.tools.common.PlatformConsts
import android.tools.common.traces.component.ComponentNameMatcher
import android.tools.common.traces.wm.WindowManagerState.Companion.STATE_RESUMED
import android.tools.device.apphelpers.StandardAppHelper
import android.tools.device.helpers.FIND_TIMEOUT
import android.tools.device.traces.parsers.WindowManagerStateHelper
@@ -54,8 +54,8 @@ constructor(
        launchButton.click()
        wmHelper
            .StateSyncBuilder()
            .withActivityState(SECONDARY_ACTIVITY_COMPONENT, STATE_RESUMED)
            .withActivityState(MAIN_ACTIVITY_COMPONENT, STATE_RESUMED)
            .withActivityState(SECONDARY_ACTIVITY_COMPONENT, PlatformConsts.STATE_RESUMED)
            .withActivityState(MAIN_ACTIVITY_COMPONENT, PlatformConsts.STATE_RESUMED)
            .waitForAndVerify()
    }

@@ -73,8 +73,8 @@ constructor(
        launchButton.click()
        wmHelper
            .StateSyncBuilder()
            .withActivityState(PLACEHOLDER_PRIMARY_COMPONENT, STATE_RESUMED)
            .withActivityState(PLACEHOLDER_SECONDARY_COMPONENT, STATE_RESUMED)
            .withActivityState(PLACEHOLDER_PRIMARY_COMPONENT, PlatformConsts.STATE_RESUMED)
            .withActivityState(PLACEHOLDER_SECONDARY_COMPONENT, PlatformConsts.STATE_RESUMED)
            .waitForAndVerify()
    }