Home
last modified time | relevance | path

Searched refs:MonitoredPackage (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java246 List<MonitoredPackage> packages = new ArrayList<>(); in startObservingHealth()
249 packages.add(new MonitoredPackage(packageNames.get(i), durationMs, false)); in startObservingHealth()
490 MonitoredPackage monitoredPackage = observer.mPackages.get(packageName); in onHealthCheckPassed()
519 Iterator<MonitoredPackage> pit = oit.next().mPackages.values().iterator(); in onSupportedPackages()
521 MonitoredPackage monitoredPackage = pit.next(); in onSupportedPackages()
551 Iterator<MonitoredPackage> pit = in getPackagesPendingHealthChecksLocked()
554 MonitoredPackage monitoredPackage = pit.next(); in getPackagesPendingHealthChecksLocked()
610 ArrayMap<String, MonitoredPackage> packages = mAllObservers.valueAt(oIndex).mPackages; in getNextStateSyncMillisLocked()
612 MonitoredPackage mp = packages.valueAt(pIndex); in getNextStateSyncMillisLocked()
639 Set<MonitoredPackage> failedPackages = in pruneObserversLocked()
[all …]
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java47 import com.android.server.PackageWatchdog.MonitoredPackage;
698 MonitoredPackage m1 = wd.new MonitoredPackage(APP_A, LONG_DURATION, in testPackageHealthCheckStateTransitions()
700 MonitoredPackage m2 = wd.new MonitoredPackage(APP_B, LONG_DURATION, false); in testPackageHealthCheckStateTransitions()
701 MonitoredPackage m3 = wd.new MonitoredPackage(APP_C, LONG_DURATION, false); in testPackageHealthCheckStateTransitions()
702 MonitoredPackage m4 = wd.new MonitoredPackage(APP_D, LONG_DURATION, SHORT_DURATION, true); in testPackageHealthCheckStateTransitions()
706 assertEquals(MonitoredPackage.STATE_INACTIVE, m1.getHealthCheckStateLocked()); in testPackageHealthCheckStateTransitions()
708 assertEquals(MonitoredPackage.STATE_INACTIVE, m1.handleElapsedTimeLocked(SHORT_DURATION)); in testPackageHealthCheckStateTransitions()
710 assertEquals(MonitoredPackage.STATE_ACTIVE, m1.setHealthCheckActiveLocked(SHORT_DURATION)); in testPackageHealthCheckStateTransitions()
712 assertEquals(MonitoredPackage.STATE_PASSED, m1.tryPassHealthCheckLocked()); in testPackageHealthCheckStateTransitions()
716 assertEquals(MonitoredPackage.STATE_INACTIVE, m2.getHealthCheckStateLocked()); in testPackageHealthCheckStateTransitions()
[all …]
/frameworks/base/services/
Dart-profile18389 Lcom/android/server/PackageWatchdog$MonitoredPackage;