Searched refs:HealthCheckState (Results 1 – 2 of 2) sorted by relevance
1342 if (oldState != HealthCheckState.FAILED in prunePackagesLocked()1343 && newState == HealthCheckState.FAILED) { in prunePackagesLocked()1478 HealthCheckState.ACTIVE,1479 HealthCheckState.INACTIVE,1480 HealthCheckState.PASSED,1481 HealthCheckState.FAILED})1482 public @interface HealthCheckState { annotation in PackageWatchdog1537 private int mHealthCheckState = HealthCheckState.INACTIVE;1657 if (mHealthCheckState == HealthCheckState.INACTIVE) { in setHealthCheckActiveLocked()1677 if (mHealthCheckState == HealthCheckState.ACTIVE) { in handleElapsedTimeLocked()[all …]
57 import com.android.server.PackageWatchdog.HealthCheckState;929 assertThat(m1.getHealthCheckStateLocked()).isEqualTo(HealthCheckState.INACTIVE); in testPackageHealthCheckStateTransitions()931 assertThat(m1.handleElapsedTimeLocked(SHORT_DURATION)).isEqualTo(HealthCheckState.INACTIVE); in testPackageHealthCheckStateTransitions()934 HealthCheckState.ACTIVE); in testPackageHealthCheckStateTransitions()936 assertThat(m1.tryPassHealthCheckLocked()).isEqualTo(HealthCheckState.PASSED); in testPackageHealthCheckStateTransitions()940 assertThat(m2.getHealthCheckStateLocked()).isEqualTo(HealthCheckState.INACTIVE); in testPackageHealthCheckStateTransitions()943 HealthCheckState.ACTIVE); in testPackageHealthCheckStateTransitions()945 assertThat(m2.handleElapsedTimeLocked(SHORT_DURATION)).isEqualTo(HealthCheckState.FAILED); in testPackageHealthCheckStateTransitions()949 assertThat(m3.getHealthCheckStateLocked()).isEqualTo(HealthCheckState.INACTIVE); in testPackageHealthCheckStateTransitions()951 assertThat(m3.handleElapsedTimeLocked(LONG_DURATION)).isEqualTo(HealthCheckState.FAILED); in testPackageHealthCheckStateTransitions()[all …]