/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackUnitTest.java | 17 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 …]
|
D | RollbackStoreTest.java | 17 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 …]
|
D | OWNERS | 1 include /services/core/java/com/android/server/rollback/OWNERS
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 17 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 …]
|
D | RollbackStore.java | 17 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 …]
|
D | RollbackPackageHealthObserver.java | 17 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 …]
|
D | README.md | 14 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 …]
|
D | TEST_MAPPING | 7 "include-filter": "com.android.server.rollback" 14 "path": "cts/tests/rollback" 17 "path": "cts/hostsidetests/rollback"
|
D | AppDataRollbackHelper.java | 17 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()
|
D | WatchdogRollbackLogger.java | 17 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()
|
D | RollbackManagerInternal.java | 17 package com.android.server.rollback;
|
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
D | StagedRollbackTest.java | 17 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 …]
|
D | MultiUserRollbackTest.java | 17 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 …]
|
D | RollbackTest.java | 17 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 …]
|
D | NetworkStagedRollbackTest.java | 17 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/ |
D | IRollbackManager.aidl | 17 package android.content.rollback; 20 import android.content.rollback.RollbackInfo;
|
D | PackageRollbackInfo.aidl | 16 package android.content.rollback;
|
D | RollbackInfo.aidl | 16 package android.content.rollback;
|
D | RollbackManagerFrameworkInitializer.java | 16 package android.content.rollback;
|
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/ |
D | MainActivity.java | 27 import android.content.rollback.PackageRollbackInfo; 28 import android.content.rollback.RollbackInfo; 29 import android.content.rollback.RollbackManager;
|
/frameworks/base/tests/RollbackTest/ |
D | OWNERS | 1 include /services/core/java/com/android/server/rollback/OWNERS
|
/frameworks/base/tests/PackageWatchdog/ |
D | OWNERS | 1 include /services/core/java/com/android/server/rollback/OWNERS
|
/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/ |
D | OWNERS | 1 include /services/core/java/com/android/server/rollback/OWNERS
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/ |
D | TEST_MAPPING | 7 "include-filter": "com.android.server.rollback"
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | OWNERS | 1 per-file PackageWatchdogTest.java = file:/services/core/java/com/android/server/rollback/OWNERS
|