Add background activity action

Background activity action is designed for wakeup alarm anomaly.
This cl also change the parameter in anomaly action interface
from "packageName" to "anomaly"

Bug: 36921529
Test: RunSettingsRoboTests
Change-Id: Ibde69f351f81043641f228f0e74deaa2e230c08a
This commit is contained in:
jackqdyulei
2017-05-19 14:42:24 -07:00
parent 1dd31158a8
commit e379be8277
9 changed files with 161 additions and 6 deletions

View File

@@ -42,9 +42,11 @@ public class Anomaly implements Parcelable {
}
@Retention(RetentionPolicy.SOURCE)
@IntDef({AnomalyActionType.FORCE_STOP})
@IntDef({AnomalyActionType.FORCE_STOP,
AnomalyActionType.BACKGROUND_CHECK})
public @interface AnomalyActionType {
int FORCE_STOP = 0;
int BACKGROUND_CHECK = 1;
}
@AnomalyType