Loading tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java +18 −13 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ public class AppLaunch extends InstrumentationTestCase { // optional parameter: comma separated list of required account types before proceeding // with the app launch private static final String KEY_REQUIRED_ACCOUNTS = "required_accounts"; private static final String KEY_SKIP_INITIAL_LAUNCH = "skip_initial_launch"; private static final String WEARABLE_ACTION_GOOGLE = "com.google.android.wearable.action.GOOGLE"; private static final int INITIAL_LAUNCH_IDLE_TIMEOUT = 60000; //60s to allow app to idle Loading @@ -74,6 +75,7 @@ public class AppLaunch extends InstrumentationTestCase { private int mLaunchIterations = 10; private Bundle mResult = new Bundle(); private Set<String> mRequiredAccounts; private boolean mSkipInitialLaunch = false; @Override protected void setUp() throws Exception { Loading @@ -97,6 +99,7 @@ public class AppLaunch extends InstrumentationTestCase { parseArgs(args); checkAccountSignIn(); if (!mSkipInitialLaunch) { // do initial app launch, without force stopping for (String app : mNameToResultKey.keySet()) { long launchTime = startApp(app, false); Loading @@ -112,6 +115,7 @@ public class AppLaunch extends InstrumentationTestCase { closeApp(app, false); sleep(BETWEEN_LAUNCH_SLEEP_TIMEOUT); } } // do the real app launch now for (int i = 0; i < mLaunchIterations; i++) { for (String app : mNameToResultKey.keySet()) { Loading Loading @@ -174,6 +178,7 @@ public class AppLaunch extends InstrumentationTestCase { mRequiredAccounts.add(accountType); } } mSkipInitialLaunch = "true".equals(args.getString(KEY_SKIP_INITIAL_LAUNCH)); } private boolean hasLeanback(Context context) { Loading Loading
tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java +18 −13 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ public class AppLaunch extends InstrumentationTestCase { // optional parameter: comma separated list of required account types before proceeding // with the app launch private static final String KEY_REQUIRED_ACCOUNTS = "required_accounts"; private static final String KEY_SKIP_INITIAL_LAUNCH = "skip_initial_launch"; private static final String WEARABLE_ACTION_GOOGLE = "com.google.android.wearable.action.GOOGLE"; private static final int INITIAL_LAUNCH_IDLE_TIMEOUT = 60000; //60s to allow app to idle Loading @@ -74,6 +75,7 @@ public class AppLaunch extends InstrumentationTestCase { private int mLaunchIterations = 10; private Bundle mResult = new Bundle(); private Set<String> mRequiredAccounts; private boolean mSkipInitialLaunch = false; @Override protected void setUp() throws Exception { Loading @@ -97,6 +99,7 @@ public class AppLaunch extends InstrumentationTestCase { parseArgs(args); checkAccountSignIn(); if (!mSkipInitialLaunch) { // do initial app launch, without force stopping for (String app : mNameToResultKey.keySet()) { long launchTime = startApp(app, false); Loading @@ -112,6 +115,7 @@ public class AppLaunch extends InstrumentationTestCase { closeApp(app, false); sleep(BETWEEN_LAUNCH_SLEEP_TIMEOUT); } } // do the real app launch now for (int i = 0; i < mLaunchIterations; i++) { for (String app : mNameToResultKey.keySet()) { Loading Loading @@ -174,6 +178,7 @@ public class AppLaunch extends InstrumentationTestCase { mRequiredAccounts.add(accountType); } } mSkipInitialLaunch = "true".equals(args.getString(KEY_SKIP_INITIAL_LAUNCH)); } private boolean hasLeanback(Context context) { Loading