Home
last modified time | relevance | path

Searched refs:PackageWatchdog (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java57 import com.android.server.PackageWatchdog.HealthCheckState;
58 import com.android.server.PackageWatchdog.MonitoredPackage;
59 import com.android.server.PackageWatchdog.ObserverInternal;
60 import com.android.server.PackageWatchdog.PackageHealthObserver;
61 import com.android.server.PackageWatchdog.PackageHealthObserverImpact;
114 private List<PackageWatchdog> mAllocatedWatchdogs;
120 private PackageWatchdog.BootThreshold mSpyBootThreshold;
191 PackageWatchdog.PROPERTY_WATCHDOG_EXPLICIT_HEALTH_CHECK_ENABLED, in setUp()
195 PackageWatchdog.PROPERTY_WATCHDOG_TRIGGER_FAILURE_COUNT, in setUp()
196 Integer.toString(PackageWatchdog.DEFAULT_TRIGGER_FAILURE_COUNT), false); in setUp()
[all …]
DCrashRecoveryTest.java113 private List<PackageWatchdog> mAllocatedWatchdogs;
123 private PackageWatchdog.BootThreshold mSpyBootThreshold;
196 PackageWatchdog.PROPERTY_WATCHDOG_EXPLICIT_HEALTH_CHECK_ENABLED, in setUp()
200 PackageWatchdog.PROPERTY_WATCHDOG_TRIGGER_FAILURE_COUNT, in setUp()
201 Integer.toString(PackageWatchdog.DEFAULT_TRIGGER_FAILURE_COUNT), false); in setUp()
212 for (PackageWatchdog watchdog : mAllocatedWatchdogs) { in tearDown()
220 PackageWatchdog watchdog = createWatchdog(); in testBootLoopWithRescueParty()
225 for (int i = 0; i < PackageWatchdog.DEFAULT_BOOT_LOOP_TRIGGER_COUNT; i++) { in testBootLoopWithRescueParty()
260 PackageWatchdog watchdog = createWatchdog(); in testBootLoopWithRollbackPackageHealthObserver()
266 for (int i = 0; i < PackageWatchdog.DEFAULT_BOOT_LOOP_TRIGGER_COUNT; i++) { in testBootLoopWithRollbackPackageHealthObserver()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java56 import com.android.server.PackageWatchdog.PackageHealthObserverImpact;
119 private PackageWatchdog mMockPackageWatchdog;
126 private PackageWatchdog.BootThreshold mSpyBootThreshold;
146 .spyStatic(PackageWatchdog.class) in setUp()
221 doAnswer((Answer<PackageWatchdog>) invocationOnMock -> mMockPackageWatchdog) in setUp()
222 .when(() -> PackageWatchdog.getInstance(mMockContext)); in setUp()
490 CALLING_PACKAGE1, 1), PackageWatchdog.FAILURE_REASON_APP_CRASH, 1); in testNonPersistentAppCrashDetectionWithScopedResets()
495 CALLING_PACKAGE1, 1), PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING, 2); in testNonPersistentAppCrashDetectionWithScopedResets()
500 CALLING_PACKAGE1, 1), PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING, 3); in testNonPersistentAppCrashDetectionWithScopedResets()
505 CALLING_PACKAGE1, 1), PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING, 4); in testNonPersistentAppCrashDetectionWithScopedResets()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/
DRollbackPackageHealthObserverTest.java53 import com.android.server.PackageWatchdog;
82 private PackageWatchdog mMockPackageWatchdog;
120 .spyStatic(PackageWatchdog.class) in setup()
126 doAnswer((Answer<PackageWatchdog>) invocationOnMock -> mMockPackageWatchdog) in setup()
127 .when(() -> PackageWatchdog.getInstance(mMockContext)); in setup()
175 assertEquals(PackageWatchdog.PackageHealthObserverImpact.USER_IMPACT_LEVEL_0, in testHealthCheckLevels()
177 PackageWatchdog.FAILURE_REASON_NATIVE_CRASH, 1)); in testHealthCheckLevels()
178 assertEquals(PackageWatchdog.PackageHealthObserverImpact.USER_IMPACT_LEVEL_0, in testHealthCheckLevels()
180 PackageWatchdog.FAILURE_REASON_APP_CRASH, 1)); in testHealthCheckLevels()
188 assertEquals(PackageWatchdog.PackageHealthObserverImpact.USER_IMPACT_LEVEL_30, in testHealthCheckLevels()
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java45 import com.android.server.PackageWatchdog;
46 import com.android.server.PackageWatchdog.FailureReasons;
47 import com.android.server.PackageWatchdog.PackageHealthObserver;
48 import com.android.server.PackageWatchdog.PackageHealthObserverImpact;
101 PackageWatchdog.getInstance(mContext).registerHealthObserver(this); in RollbackPackageHealthObserver()
128 if (failureReason == PackageWatchdog.FAILURE_REASON_NATIVE_CRASH) { in onHealthCheckFailed()
143 if (failureReason == PackageWatchdog.FAILURE_REASON_NATIVE_CRASH in onHealthCheckFailed()
165 if (rollbackReason == PackageWatchdog.FAILURE_REASON_NATIVE_CRASH) { in execute()
180 if (rollbackReason == PackageWatchdog.FAILURE_REASON_NATIVE_CRASH) { in execute()
215 PackageWatchdog.FAILURE_REASON_BOOT_LOOP); in executeBootLoopMitigation()
[all …]
DWatchdogRollbackLogger.java46 import com.android.server.PackageWatchdog;
252 static int mapFailureReasonToMetric(@PackageWatchdog.FailureReasons int failureReason) { in mapFailureReasonToMetric()
254 case PackageWatchdog.FAILURE_REASON_NATIVE_CRASH: in mapFailureReasonToMetric()
256 case PackageWatchdog.FAILURE_REASON_EXPLICIT_HEALTH_CHECK: in mapFailureReasonToMetric()
258 case PackageWatchdog.FAILURE_REASON_APP_CRASH: in mapFailureReasonToMetric()
260 case PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING: in mapFailureReasonToMetric()
262 case PackageWatchdog.FAILURE_REASON_BOOT_LOOP: in mapFailureReasonToMetric()
DRollbackManagerServiceImpl.java70 import com.android.server.PackageWatchdog;
1320 PackageWatchdog.getInstance(mContext).dump(ipw);
DREADME.md209 when a rollback can be performed by `PackageWatchdog`.
/frameworks/base/services/core/java/com/android/server/crashrecovery/
DCrashRecoveryHelper.java30 import com.android.server.PackageWatchdog;
93 PackageWatchdog.getInstance(mContext).onPackageFailure(pkgList, failureReason); in registerConnectivityModuleHealthListener()
/frameworks/base/services/core/java/com/android/server/
DRescueParty.java51 import com.android.server.PackageWatchdog.FailureReasons;
52 import com.android.server.PackageWatchdog.PackageHealthObserver;
53 import com.android.server.PackageWatchdog.PackageHealthObserverImpact;
160 PackageWatchdog.getInstance(context).registerHealthObserver( in registerHealthObserver()
367 PackageWatchdog.getInstance(context).startObservingHealth( in startObservingPackages()
836 if (!isDisabled() && (failureReason == PackageWatchdog.FAILURE_REASON_APP_CRASH in onHealthCheckFailed()
837 || failureReason == PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING)) { in onHealthCheckFailed()
856 if (failureReason == PackageWatchdog.FAILURE_REASON_APP_CRASH in execute()
857 || failureReason == PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING) { in execute()
DPackageWatchdog.java87 public class PackageWatchdog { class
173 private static PackageWatchdog sPackageWatchdog;
228 private PackageWatchdog(Context context) { in PackageWatchdog() method in PackageWatchdog
243 PackageWatchdog(Context context, AtomicFile policyFile, Handler shortTaskHandler, in PackageWatchdog() method in PackageWatchdog
262 public static PackageWatchdog getInstance(Context context) { in getInstance()
263 synchronized (PackageWatchdog.class) { in getInstance()
265 new PackageWatchdog(context); in getInstance()
1025 PackageWatchdog.FAILURE_REASON_EXPLICIT_HEALTH_CHECK, 1); in onHealthCheckFailed()
1413 public static ObserverInternal read(TypedXmlPullParser parser, PackageWatchdog watchdog) { in read()
DOWNERS39 per-file PackageWatchdog.java = file:/services/core/java/com/android/server/crashrecovery/OWNERS
/frameworks/base/services/core/java/com/android/server/am/
DAppErrors.java65 import com.android.server.PackageWatchdog;
84 private final PackageWatchdog mPackageWatchdog;
145 AppErrors(Context context, ActivityManagerService service, PackageWatchdog watchdog) { in AppErrors()
600 PackageWatchdog.FAILURE_REASON_APP_CRASH); in crashApplicationInner()
1143 PackageWatchdog.FAILURE_REASON_APP_NOT_RESPONDING);
/frameworks/base/services/java/com/android/server/
DSystemServer.java1205 PackageWatchdog.getInstance(mSystemContext).noteBoot(); in startBootstrapServices()
2925 PackageWatchdog.getInstance(mSystemContext).noteBoot(); in startOtherServices()
/frameworks/base/services/
Dart-wear-profile53 Lcom/android/server/PackageWatchdog$$ExternalSyntheticLambda0;
54 Lcom/android/server/PackageWatchdog$$ExternalSyntheticLambda6;
55 Lcom/android/server/PackageWatchdog$$ExternalSyntheticLambda7;
56 Lcom/android/server/PackageWatchdog$$ExternalSyntheticLambda8;
57 Lcom/android/server/PackageWatchdog$$ExternalSyntheticLambda9;
58 Lcom/android/server/PackageWatchdog$BootThreshold;
59 Lcom/android/server/PackageWatchdog$ObserverInternal;
60 Lcom/android/server/PackageWatchdog$PackageHealthObserver;
61 Lcom/android/server/PackageWatchdog$SystemClock;
62 Lcom/android/server/PackageWatchdog;
[all …]
Dart-profile122PackageWatchdog$MonitoredPackage;->updateHealthCheckStateLocked()I+]Lcom/android/server/PackageWat…
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java205 import com.android.server.PackageWatchdog;
3040 PackageWatchdog.getInstance(mContext).writeNow();