Home
last modified time | relevance | path

Searched refs:rollback (Results 1 – 25 of 68) 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;
94 Rollback rollback = createStagedRollback(rollbackId, file, sessionId); in newEmptyStagedRollbackDefaults() local
96 assertThat(rollback.isEnabling()).isTrue(); in newEmptyStagedRollbackDefaults()
97 assertThat(rollback.getBackupDir().getAbsolutePath()).isEqualTo("/test/testing"); in newEmptyStagedRollbackDefaults()
98 assertThat(rollback.isStaged()).isTrue(); in newEmptyStagedRollbackDefaults()
99 assertThat(rollback.getOriginalSessionId()).isEqualTo(567); in newEmptyStagedRollbackDefaults()
107 Rollback rollback = createNonStagedRollback(rollbackId, file); in newEmptyNonStagedRollbackDefaults() local
109 assertThat(rollback.isEnabling()).isTrue(); in newEmptyNonStagedRollbackDefaults()
110 assertThat(rollback.getBackupDir().getAbsolutePath()).isEqualTo("/test/testing"); in newEmptyNonStagedRollbackDefaults()
[all …]
DRollbackStoreTest.java17 package com.android.server.rollback;
23 import android.content.rollback.PackageRollbackInfo;
133 Rollback rollback = mRollbackStore.createNonStagedRollback( in createNonStaged() local
136 assertThat(rollback.getBackupDir().getAbsolutePath()) in createNonStaged()
139 assertThat(rollback.isStaged()).isFalse(); in createNonStaged()
140 assertThat(rollback.getOriginalSessionId()).isEqualTo(567); in createNonStaged()
141 assertThat(rollback.info.getRollbackId()).isEqualTo(ID); in createNonStaged()
142 assertThat(rollback.info.getPackages()).isEmpty(); in createNonStaged()
143 assertThat(rollback.info.getRollbackImpactLevel()).isEqualTo( in createNonStaged()
145 assertThat(rollback.isEnabling()).isTrue(); in createNonStaged()
[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;
43 import android.content.rollback.IRollbackManager;
44 import android.content.rollback.RollbackInfo;
45 import android.content.rollback.RollbackManager;
205 for (Rollback rollback : mRollbacks) { in RollbackManagerServiceImpl()
206 mAllocatedRollbackIds.put(rollback.info.getRollbackId(), true); in RollbackManagerServiceImpl()
210 for (Rollback rollback : mRollbacks) { in RollbackManagerServiceImpl()
211 deleteRollback(rollback, "Fingerprint changed"); in RollbackManagerServiceImpl()
275 Rollback rollback = getRollbackForSession(sessionId); in RollbackManagerServiceImpl()
276 if (rollback != null && rollback.isEnabling()) { in RollbackManagerServiceImpl()
[all …]
DRollbackStore.java17 package com.android.server.rollback;
19 import static com.android.server.rollback.Rollback.rollbackStateFromString;
25 import android.content.rollback.PackageRollbackInfo;
26 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
27 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;
28 import android.content.rollback.PackageRollbackInfo;
29 import android.content.rollback.RollbackInfo;
30 import android.content.rollback.RollbackManager;
172 RollbackInfo rollback = getRollbackForPackage(failedPackage, lowImpactRollbacks); in execute() local
173 if (rollback != null) { in execute()
174 mHandler.post(() -> rollbackPackage(rollback, failedPackage, rollbackReason)); in execute()
185 RollbackInfo rollback = getAvailableRollback(failedPackage); in execute() local
186 if (rollback != null) { in execute()
187 mHandler.post(() -> rollbackPackage(rollback, failedPackage, rollbackReason)); in execute()
[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 …]
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;
38 import android.content.rollback.PackageRollbackInfo;
39 import android.content.rollback.RollbackInfo;
124 RollbackInfo rollback = null; in logRollbackStatusOnBoot() local
127 rollback = info; in logRollbackStatusOnBoot()
132 if (rollback == null) { in logRollbackStatusOnBoot()
141 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in logRollbackStatusOnBoot()
149 int sessionId = rollback.getCommittedSessionId(); in logRollbackStatusOnBoot()
DRollbackManagerInternal.java17 package com.android.server.rollback;
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
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;
27 import android.content.rollback.RollbackInfo;
28 import android.content.rollback.RollbackManager;
36 import com.android.cts.rollback.lib.Rollback;
37 import com.android.cts.rollback.lib.RollbackUtils;
103 RollbackInfo rollback = getUniqueRollbackInfoForPackage( in testPreviouslyAbandonedRollbacks_Phase2_Rollback() local
105 RollbackUtils.rollback(rollback.getRollbackId()); in testPreviouslyAbandonedRollbacks_Phase2_Rollback()
233 RollbackInfo rollback = getUniqueRollbackInfoForPackage( in testWatchdogMonitorsAcrossReboots_Phase3_VerifyRollback() local
[all …]
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 …]
DRollbackTest.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;
21 import static com.android.cts.rollback.lib.RollbackUtils.waitForAvailableRollback;
22 import static com.android.cts.rollback.lib.RollbackUtils.waitForUnavailableRollback;
34 import android.content.rollback.RollbackInfo;
35 import android.content.rollback.RollbackManager;
45 import com.android.cts.rollback.lib.Rollback;
46 import com.android.cts.rollback.lib.RollbackBroadcastReceiver;
47 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;
DPackageRollbackInfo.aidl16 package android.content.rollback;
DRollbackInfo.aidl16 package android.content.rollback;
DRollbackManagerFrameworkInitializer.java16 package android.content.rollback;
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/
DMainActivity.java27 import android.content.rollback.PackageRollbackInfo;
28 import android.content.rollback.RollbackInfo;
29 import android.content.rollback.RollbackManager;
/frameworks/base/tests/RollbackTest/
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
/frameworks/base/tests/PackageWatchdog/
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/
DOWNERS1 include /services/core/java/com/android/server/rollback/OWNERS
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/
DTEST_MAPPING7 "include-filter": "com.android.server.rollback"
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DOWNERS1 per-file PackageWatchdogTest.java = file:/services/core/java/com/android/server/rollback/OWNERS

123