Home
last modified time | relevance | path

Searched refs:logPackage (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java204 int rollbackId, @Nullable VersionedPackage logPackage) { in listenForStagedSessionReady() argument
210 rollbackId, this /* BroadcastReceiver */, logPackage); in listenForStagedSessionReady()
221 BroadcastReceiver listener, @Nullable VersionedPackage logPackage) { in handleStagedSessionChange() argument
236 saveStagedRollbackId(rollbackId, logPackage); in handleStagedSessionChange()
237 WatchdogRollbackLogger.logEvent(logPackage, in handleStagedSessionChange()
244 WatchdogRollbackLogger.logEvent(logPackage, in handleStagedSessionChange()
281 private void saveStagedRollbackId(int stagedRollbackId, @Nullable VersionedPackage logPackage) { in saveStagedRollbackId() argument
283 writeStagedRollbackId(mLastStagedRollbackIdsFile, stagedRollbackId, logPackage); in saveStagedRollbackId()
287 @Nullable VersionedPackage logPackage) { in writeStagedRollbackId() argument
291 String logPackageName = logPackage != null ? logPackage.getPackageName() : ""; in writeStagedRollbackId()
[all …]
DWatchdogRollbackLogger.java177 for (VersionedPackage logPackage: logPackages) { in logApexdRevert()
178 logEvent(logPackage, in logApexdRevert()
193 public static void logEvent(@Nullable VersionedPackage logPackage, int type, in logEvent() argument
196 + " logPackage: " + logPackage in logEvent()
199 if (logPackage != null) { in logEvent()
203 logPackage.getPackageName(), in logEvent()
204 logPackage.getVersionCode(), in logEvent()
221 logTestProperties(logPackage, type, rollbackReason, failingPackageName); in logEvent()
236 private static void logTestProperties(@Nullable VersionedPackage logPackage, int type, in logTestProperties() argument
245 SystemProperties.set(key + ".logPackage", logPackage != null ? logPackage.toString() : ""); in logTestProperties()
/frameworks/base/tests/RollbackTest/lib/src/com/android/tests/rollback/host/
DWatchdogEventLogger.java74 public boolean watchdogEventOccurred(String type, String logPackage, in watchdogEventOccurred() argument
77 && matchProperty(type, "logPackage", logPackage) in watchdogEventOccurred()
99 void eventOccurred(String type, String logPackage, String rollbackReason, in eventOccurred() argument
102 + "failedPackageName=%s)", type, logPackage, rollbackReason, failedPackageName) in eventOccurred()
103 .that(mActual.watchdogEventOccurred(type, logPackage, rollbackReason, in eventOccurred()
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DWatchdogRollbackLoggerTest.java79 VersionedPackage logPackage = WatchdogRollbackLogger.getLogPackage(mMockContext, in testLogPackageHasNoMetadata() local
81 assertThat(logPackage).isNull(); in testLogPackageHasNoMetadata()
97 VersionedPackage logPackage = WatchdogRollbackLogger.getLogPackage(mMockContext, in testLogPackageParentKeyIsNull() local
99 assertThat(logPackage).isNull(); in testLogPackageParentKeyIsNull()
115 VersionedPackage logPackage = WatchdogRollbackLogger.getLogPackage(mMockContext, in testLogPackageHasParentKey() local
118 assertThat(logPackage).isEqualTo(expectedLogPackage); in testLogPackageHasParentKey()
136 VersionedPackage logPackage = WatchdogRollbackLogger.getLogPackage(mMockContext, in testLogPackageNameNotFound() local
138 assertThat(logPackage).isNull(); in testLogPackageNameNotFound()