Searched refs:MonitoredPackage (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/ |
D | PackageWatchdog.java | 229 List<MonitoredPackage> packages = new ArrayList<>(); in startObservingHealth() 232 packages.add(new MonitoredPackage(packageNames.get(i), durationMs, false)); in startObservingHealth() 472 MonitoredPackage monitoredPackage = observer.mPackages.get(packageName); in onHealthCheckPassed() 501 Iterator<MonitoredPackage> pit = oit.next().mPackages.values().iterator(); in onSupportedPackages() 503 MonitoredPackage monitoredPackage = pit.next(); in onSupportedPackages() 533 Iterator<MonitoredPackage> pit = in getPackagesPendingHealthChecksLocked() 536 MonitoredPackage monitoredPackage = pit.next(); in getPackagesPendingHealthChecksLocked() 592 ArrayMap<String, MonitoredPackage> packages = mAllObservers.valueAt(oIndex).mPackages; in getNextStateSyncMillisLocked() 594 MonitoredPackage mp = packages.valueAt(pIndex); in getNextStateSyncMillisLocked() 621 Set<MonitoredPackage> failedPackages = in pruneObserversLocked() [all …]
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | PackageWatchdogTest.java | 47 import com.android.server.PackageWatchdog.MonitoredPackage; 689 MonitoredPackage m1 = wd.new MonitoredPackage(APP_A, LONG_DURATION, in testPackageHealthCheckStateTransitions() 691 MonitoredPackage m2 = wd.new MonitoredPackage(APP_B, LONG_DURATION, false); in testPackageHealthCheckStateTransitions() 692 MonitoredPackage m3 = wd.new MonitoredPackage(APP_C, LONG_DURATION, false); in testPackageHealthCheckStateTransitions() 693 MonitoredPackage m4 = wd.new MonitoredPackage(APP_D, LONG_DURATION, SHORT_DURATION, true); in testPackageHealthCheckStateTransitions() 697 assertEquals(MonitoredPackage.STATE_INACTIVE, m1.getHealthCheckStateLocked()); in testPackageHealthCheckStateTransitions() 699 assertEquals(MonitoredPackage.STATE_INACTIVE, m1.handleElapsedTimeLocked(SHORT_DURATION)); in testPackageHealthCheckStateTransitions() 701 assertEquals(MonitoredPackage.STATE_ACTIVE, m1.setHealthCheckActiveLocked(SHORT_DURATION)); in testPackageHealthCheckStateTransitions() 703 assertEquals(MonitoredPackage.STATE_PASSED, m1.tryPassHealthCheckLocked()); in testPackageHealthCheckStateTransitions() 707 assertEquals(MonitoredPackage.STATE_INACTIVE, m2.getHealthCheckStateLocked()); in testPackageHealthCheckStateTransitions() [all …]
|
/frameworks/base/services/ |
D | art-profile | 18389 Lcom/android/server/PackageWatchdog$MonitoredPackage;
|