Loading tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java +12 −11 Original line number Diff line number Diff line Loading @@ -302,7 +302,7 @@ public class AppLaunch extends InstrumentationTestCase { atraceLogger.atraceStop(); } } closeApp(launch.getApp(), true); closeApp(launch.getApp()); sleep(BETWEEN_LAUNCH_SLEEP_TIMEOUT); } } finally { Loading Loading @@ -575,14 +575,16 @@ public class AppLaunch extends InstrumentationTestCase { } } private void closeApp(String appName, boolean forceStopApp) { private void startHomeIntent() { Intent homeIntent = new Intent(Intent.ACTION_MAIN); homeIntent.addCategory(Intent.CATEGORY_HOME); homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); getInstrumentation().getContext().startActivity(homeIntent); sleep(POST_LAUNCH_IDLE_TIMEOUT); if (forceStopApp) { } private void closeApp(String appName) { Intent startIntent = mNameToIntent.get(appName); if (startIntent != null) { String packageName = startIntent.getComponent().getPackageName(); Loading @@ -593,7 +595,6 @@ public class AppLaunch extends InstrumentationTestCase { } } } } private void sleep(int time) { try { Loading Loading
tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java +12 −11 Original line number Diff line number Diff line Loading @@ -302,7 +302,7 @@ public class AppLaunch extends InstrumentationTestCase { atraceLogger.atraceStop(); } } closeApp(launch.getApp(), true); closeApp(launch.getApp()); sleep(BETWEEN_LAUNCH_SLEEP_TIMEOUT); } } finally { Loading Loading @@ -575,14 +575,16 @@ public class AppLaunch extends InstrumentationTestCase { } } private void closeApp(String appName, boolean forceStopApp) { private void startHomeIntent() { Intent homeIntent = new Intent(Intent.ACTION_MAIN); homeIntent.addCategory(Intent.CATEGORY_HOME); homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); getInstrumentation().getContext().startActivity(homeIntent); sleep(POST_LAUNCH_IDLE_TIMEOUT); if (forceStopApp) { } private void closeApp(String appName) { Intent startIntent = mNameToIntent.get(appName); if (startIntent != null) { String packageName = startIntent.getComponent().getPackageName(); Loading @@ -593,7 +595,6 @@ public class AppLaunch extends InstrumentationTestCase { } } } } private void sleep(int time) { try { Loading