Home
last modified time | relevance | path

Searched refs:rollback (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DRollbackUnitTest.java17 package com.android.server.rollback;
31 import android.content.rollback.PackageRollbackInfo;
83 Rollback rollback = new Rollback(rollbackId, file, sessionId, USER, INSTALLER); in newEmptyStagedRollbackDefaults() local
85 assertThat(rollback.isEnabling()).isTrue(); in newEmptyStagedRollbackDefaults()
86 assertThat(rollback.getBackupDir().getAbsolutePath()).isEqualTo("/test/testing"); in newEmptyStagedRollbackDefaults()
87 assertThat(rollback.isStaged()).isTrue(); in newEmptyStagedRollbackDefaults()
88 assertThat(rollback.getStagedSessionId()).isEqualTo(567); in newEmptyStagedRollbackDefaults()
96 Rollback rollback = new Rollback(rollbackId, file, -1, USER, INSTALLER); in newEmptyNonStagedRollbackDefaults() local
98 assertThat(rollback.isEnabling()).isTrue(); in newEmptyNonStagedRollbackDefaults()
99 assertThat(rollback.getBackupDir().getAbsolutePath()).isEqualTo("/test/testing"); in newEmptyNonStagedRollbackDefaults()
[all …]
DRollbackStoreTest.java17 package com.android.server.rollback;
22 import android.content.rollback.PackageRollbackInfo;
131 Rollback rollback = mRollbackStore.createNonStagedRollback( in createNonStaged() local
134 assertThat(rollback.getBackupDir().getAbsolutePath()) in createNonStaged()
137 assertThat(rollback.isStaged()).isFalse(); in createNonStaged()
138 assertThat(rollback.info.getRollbackId()).isEqualTo(ID); in createNonStaged()
139 assertThat(rollback.info.getPackages()).isEmpty(); in createNonStaged()
140 assertThat(rollback.isEnabling()).isTrue(); in createNonStaged()
141 assertThat(rollback.getExtensionVersions().toString()) in createNonStaged()
149 Rollback rollback = mRollbackStore.createStagedRollback( in createStaged() local
[all …]
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerServiceImpl.java17 package com.android.server.rollback;
42 import android.content.rollback.IRollbackManager;
43 import android.content.rollback.RollbackInfo;
44 import android.content.rollback.RollbackManager;
200 for (Rollback rollback : mRollbacks) { in RollbackManagerServiceImpl()
201 mAllocatedRollbackIds.put(rollback.info.getRollbackId(), true); in RollbackManagerServiceImpl()
205 for (Rollback rollback : mRollbacks) { in RollbackManagerServiceImpl()
206 deleteRollback(rollback, "Fingerprint changed"); in RollbackManagerServiceImpl()
273 Rollback rollback = getRollbackForSession(sessionId); in RollbackManagerServiceImpl()
274 if (rollback != null && rollback.isEnabling()) { in RollbackManagerServiceImpl()
[all …]
DREADME.md14 A new install parameter ENABLE_ROLLBACK can be specified to enable rollback when
19 $ adb install --enable-rollback FooV2.apk
30 rollback of the update to FooV2.apk can be requested. This can be requested from
34 $ adb shell pm rollback-app com.example.foo
37 When a rollback is requested, the following steps are taken:
43 See below for more details of shell commands for rollback.
49 As mentioned above, it is possible to trigger rollback on device using a shell
55 Watchdog triggered rollback is intended to address severe issues with the
57 rollback.
61 There is a package watchdog service running on device that will trigger rollback
[all …]
DRollbackStore.java17 package com.android.server.rollback;
19 import static com.android.server.rollback.Rollback.rollbackStateFromString;
24 import android.content.rollback.PackageRollbackInfo;
25 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
26 import android.content.rollback.RollbackInfo;
189 private static JSONObject rollbackInfoToJson(RollbackInfo rollback) throws JSONException { in rollbackInfoToJson() argument
191 json.put("rollbackId", rollback.getRollbackId()); in rollbackInfoToJson()
192 json.put("packages", toJson(rollback.getPackages())); in rollbackInfoToJson()
193 json.put("isStaged", rollback.isStaged()); in rollbackInfoToJson()
194 json.put("causePackages", versionedPackagesToJson(rollback.getCausePackages())); in rollbackInfoToJson()
[all …]
DRollbackPackageHealthObserver.java17 package com.android.server.rollback;
31 import android.content.rollback.PackageRollbackInfo;
32 import android.content.rollback.RollbackInfo;
33 import android.content.rollback.RollbackManager;
119 RollbackInfo rollback = getAvailableRollback(failedPackage); in execute() local
120 if (rollback == null) { in execute()
124 mHandler.post(() -> rollbackPackage(rollback, failedPackage, rollbackReason)); in execute()
175 for (RollbackInfo rollback : rollbackManager.getAvailableRollbacks()) { in getAvailableRollback()
176 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in getAvailableRollback()
178 return rollback; in getAvailableRollback()
[all …]
DTEST_MAPPING7 "include-filter": "com.android.server.rollback"
14 "path": "cts/tests/rollback"
17 "path": "cts/hostsidetests/rollback"
DAppDataRollbackHelper.java17 package com.android.server.rollback;
20 import android.content.rollback.PackageRollbackInfo;
21 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
225 boolean commitPendingBackupAndRestoreForUser(int userId, Rollback rollback) { in commitPendingBackupAndRestoreForUser() argument
227 for (PackageRollbackInfo info : rollback.info.getPackages()) { in commitPendingBackupAndRestoreForUser()
255 info, userId, rollback.info.getRollbackId(), Installer.FLAG_STORAGE_CE)) { in commitPendingBackupAndRestoreForUser()
260 if (hasPendingRestore && doRestoreOrWipe(info, userId, rollback.info.getRollbackId(), in commitPendingBackupAndRestoreForUser()
DWatchdogRollbackLogger.java17 package com.android.server.rollback;
37 import android.content.rollback.PackageRollbackInfo;
38 import android.content.rollback.RollbackInfo;
123 RollbackInfo rollback = null; in logRollbackStatusOnBoot() local
126 rollback = info; in logRollbackStatusOnBoot()
131 if (rollback == null) { in logRollbackStatusOnBoot()
140 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in logRollbackStatusOnBoot()
148 int sessionId = rollback.getCommittedSessionId(); in logRollbackStatusOnBoot()
DRollbackManagerInternal.java17 package com.android.server.rollback;
DRollbackManagerService.java17 package com.android.server.rollback;
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DMultiUserRollbackTest.java17 package com.android.tests.rollback;
19 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat;
24 import android.content.rollback.RollbackInfo;
25 import android.content.rollback.RollbackManager;
30 import com.android.cts.rollback.lib.Rollback;
31 import com.android.cts.rollback.lib.RollbackUtils;
98 RollbackInfo rollback = RollbackUtils.waitForAvailableRollback(TestApp.A); in testMultipleUsersUpgradeToV2() local
99 assertThat(rollback).packagesContainsExactly( in testMultipleUsersUpgradeToV2()
141 RollbackInfo rollback = RollbackUtils.waitForAvailableRollback(TestApp.A); in testStagedRollback_Phase3() local
142 assertThat(rollback).packagesContainsExactly(Rollback.from(TestApp.A2).to(TestApp.A1)); in testStagedRollback_Phase3()
[all …]
DStagedRollbackTest.java17 package com.android.tests.rollback;
19 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat;
20 import static com.android.cts.rollback.lib.RollbackUtils.getUniqueRollbackInfoForPackage;
28 import android.content.rollback.RollbackInfo;
29 import android.content.rollback.RollbackManager;
38 import com.android.cts.rollback.lib.Rollback;
39 import com.android.cts.rollback.lib.RollbackUtils;
110 RollbackInfo rollback = getUniqueRollbackInfoForPackage( in testBadApkOnly_Phase2_VerifyInstall() local
112 assertThat(rollback).isNotNull(); in testBadApkOnly_Phase2_VerifyInstall()
113 assertThat(rollback).packagesContainsExactly( in testBadApkOnly_Phase2_VerifyInstall()
[all …]
DRollbackTest.java17 package com.android.tests.rollback;
20 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat;
21 import static com.android.cts.rollback.lib.RollbackUtils.getUniqueRollbackInfoForPackage;
22 import static com.android.cts.rollback.lib.RollbackUtils.waitForAvailableRollback;
23 import static com.android.cts.rollback.lib.RollbackUtils.waitForUnavailableRollback;
35 import android.content.rollback.RollbackInfo;
36 import android.content.rollback.RollbackManager;
47 import com.android.cts.rollback.lib.Rollback;
48 import com.android.cts.rollback.lib.RollbackBroadcastReceiver;
49 import com.android.cts.rollback.lib.RollbackUtils;
[all …]
DNetworkStagedRollbackTest.java17 package com.android.tests.rollback;
19 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat;
20 import static com.android.cts.rollback.lib.RollbackUtils.getUniqueRollbackInfoForPackage;
28 import android.content.rollback.RollbackManager;
37 import com.android.cts.rollback.lib.RollbackUtils;
/frameworks/base/core/java/android/content/rollback/
DIRollbackManager.aidl17 package android.content.rollback;
20 import android.content.rollback.RollbackInfo;
DRollbackInfo.aidl16 package android.content.rollback;
DPackageRollbackInfo.aidl16 package android.content.rollback;
DRollbackManagerFrameworkInitializer.java16 package android.content.rollback;
/frameworks/base/tests/PackageWatchdog/
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
/frameworks/base/tests/RollbackTest/
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
DREADME.txt1 This directory contains a test for the rollback manager service.
/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DOWNERS1 per-file PackageWatchdogTest.java = file:/services/core/java/com/android/server/rollback/OWNERS

123