Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/AppPairsTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -70,8 +70,8 @@ class AppPairsTest( eachRun { executeShellCommand(composePairsCommand( primaryTaskId, secondaryTaskId, false /* pair */)) primaryApp.forceStop() secondaryApp.forceStop() primaryApp.exit() secondaryApp.exit() } } assertions { Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/BaseAppHelper.kt +0 −8 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.wm.shell.flicker.helpers import android.app.ActivityManager import android.app.Instrumentation import android.content.ComponentName import android.content.Context Loading Loading @@ -46,9 +45,6 @@ abstract class BaseAppHelper( protected val context: Context get() = mInstrumentation.context private val activityManager: ActivityManager? get() = context.getSystemService(ActivityManager::class.java) private val appSelector = By.pkg(packageName).depth(0) protected val isTelevision: Boolean Loading Loading @@ -77,10 +73,6 @@ abstract class BaseAppHelper( return uiDevice.wait(Until.gone(appSelector), APP_CLOSE_WAIT_TIME_MS) } fun forceStop() { activityManager?.forceStopPackage(packageName) } override fun getOpenAppIntent(): Intent { val intent = Intent() intent.component = launcherActivityComponent Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/PipKeyboardTest.kt +3 −3 Original line number Diff line number Diff line Loading @@ -76,12 +76,12 @@ class PipKeyboardTest( } teardown { test { keyboardApp.forceStop() keyboardApp.exit() if (device.hasPipWindow()) { device.closePipWindow() } testApp.forceStop() testApp.exit() this.setRotation(Surface.ROTATION_0) } } Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/TvPipTestBase.kt +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ abstract class TvPipTestBase : PipTestBase(rotationToString(ROTATION_0), ROTATIO open fun tearDown() { if (!isTelevision) return testApp.forceStop() testApp.exit() // Wait for 1 second, and check if the SystemUI has been alive and well since the start. SystemClock.sleep(AFTER_TEXT_PROCESS_CHECK_DELAY) Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/EnterSplitScreenTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -60,8 +60,8 @@ class EnterSplitScreenTest( } teardown { eachRun { splitScreenApp.forceStop() secondaryApp.forceStop() splitScreenApp.exit() secondaryApp.exit() } } assertions { Loading Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/AppPairsTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -70,8 +70,8 @@ class AppPairsTest( eachRun { executeShellCommand(composePairsCommand( primaryTaskId, secondaryTaskId, false /* pair */)) primaryApp.forceStop() secondaryApp.forceStop() primaryApp.exit() secondaryApp.exit() } } assertions { Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/BaseAppHelper.kt +0 −8 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.wm.shell.flicker.helpers import android.app.ActivityManager import android.app.Instrumentation import android.content.ComponentName import android.content.Context Loading Loading @@ -46,9 +45,6 @@ abstract class BaseAppHelper( protected val context: Context get() = mInstrumentation.context private val activityManager: ActivityManager? get() = context.getSystemService(ActivityManager::class.java) private val appSelector = By.pkg(packageName).depth(0) protected val isTelevision: Boolean Loading Loading @@ -77,10 +73,6 @@ abstract class BaseAppHelper( return uiDevice.wait(Until.gone(appSelector), APP_CLOSE_WAIT_TIME_MS) } fun forceStop() { activityManager?.forceStopPackage(packageName) } override fun getOpenAppIntent(): Intent { val intent = Intent() intent.component = launcherActivityComponent Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/PipKeyboardTest.kt +3 −3 Original line number Diff line number Diff line Loading @@ -76,12 +76,12 @@ class PipKeyboardTest( } teardown { test { keyboardApp.forceStop() keyboardApp.exit() if (device.hasPipWindow()) { device.closePipWindow() } testApp.forceStop() testApp.exit() this.setRotation(Surface.ROTATION_0) } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/TvPipTestBase.kt +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ abstract class TvPipTestBase : PipTestBase(rotationToString(ROTATION_0), ROTATIO open fun tearDown() { if (!isTelevision) return testApp.forceStop() testApp.exit() // Wait for 1 second, and check if the SystemUI has been alive and well since the start. SystemClock.sleep(AFTER_TEXT_PROCESS_CHECK_DELAY) Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/EnterSplitScreenTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -60,8 +60,8 @@ class EnterSplitScreenTest( } teardown { eachRun { splitScreenApp.forceStop() secondaryApp.forceStop() splitScreenApp.exit() secondaryApp.exit() } } assertions { Loading