Merge "allow top sleeping state in app process verification" into mnc-dev

This commit is contained in:
Guang Zhu
2015-05-09 00:27:55 +00:00
committed by Android (Google) Code Review

View File

@@ -208,7 +208,8 @@ public class AppCompatibility extends InstrumentationTestCase {
private boolean ensureForegroundActivity(RunningAppProcessInfo info) {
Log.d(TAG, String.format("ensureForegroundActivity: proc=%s, pid=%d, state=%d",
info.processName, info.pid, info.processState));
return info.processState == ActivityManager.PROCESS_STATE_TOP;
return info.processState == ActivityManager.PROCESS_STATE_TOP
|| info.processState == ActivityManager.PROCESS_STATE_TOP_SLEEPING;
}
/**