/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupManagerTest.java | 46 private BackupManager mBackupManager; field in BackupManagerTest 59 mBackupManager = new BackupManager(mContext); in setUp() 66 mBackupManager.setFrameworkSchedulingEnabled(true); in testSetFrameworkSchedulingEnabled_delegatesToService() 78 BackupRestoreEventLogger logger = mBackupManager.getBackupRestoreEventLogger(agent); in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup() 89 BackupRestoreEventLogger logger = mBackupManager.getBackupRestoreEventLogger(agent); in testGetBackupRestoreEventLogger_returnsRestoreLoggerForRestore() 99 () -> mBackupManager.getBackupRestoreEventLogger(agent)); in testGetBackupRestoreEventLogger_uninitialisedAgent_throwsException() 104 BackupRestoreEventLogger logger = mBackupManager.getDelayedRestoreLogger(); in testGetDelayedRestoreLogger_returnsRestoreLogger()
|
/frameworks/base/services/robotests/backup/src/com/android/commands/bmgr/ |
D | BmgrTest.java | 36 @Mock private IBackupManager mBackupManager; field in BmgrTest 43 mBmgr = new Bmgr(mBackupManager); in setUp() 53 verify(mBackupManager).isBackupServiceActive(UserHandle.USER_SYSTEM); in testRun_whenUserNotSpecified_callsBackupManagerAsSystemUser() 61 verify(mBackupManager).isBackupServiceActive(10); in testRun_whenUserSpecified_callsBackupManagerAsSpecifiedUser()
|
/frameworks/base/services/robotests/backup/src/com/android/commands/bu/ |
D | AdbBackupTest.java | 39 @Mock private IBackupManager mBackupManager; field in AdbBackupTest 45 mBackup = new Backup(mBackupManager); in setUp() 52 verify(mBackupManager).isBackupServiceActive(UserHandle.USER_SYSTEM); in testRun_whenUserNotSpecified_callsAdbBackupAsSystemUser() 59 verify(mBackupManager).isBackupServiceActive(10); in testRun_whenUserSpecified_callsBackupManagerAsSpecifiedUser()
|
/frameworks/base/services/backup/java/com/android/server/backup/remote/ |
D | ServiceBackupCallback.java | 31 private final IBackupManager mBackupManager; field in ServiceBackupCallback 35 mBackupManager = backupManager; in ServiceBackupCallback() 41 mBackupManager.opComplete(mToken, result); in operationComplete()
|
/frameworks/base/cmds/bu/src/com/android/commands/bu/ |
D | Backup.java | 38 IBackupManager mBackupManager; field in Backup 42 mBackupManager = backupManager; in Backup() 46 mBackupManager = IBackupManager.Stub.asInterface(ServiceManager.getService("backup")); in Backup() 59 if (mBackupManager == null) { in run() 154 … mBackupManager.adbBackup(userId, fd, saveApks, saveObbs, saveShared, doWidgets, doEverything, in doBackup() 174 mBackupManager.adbRestore(userId, fd); in doRestore() 198 return mBackupManager.isBackupServiceActive(userId); in isBackupActiveForUser()
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
D | HugeBackupActivity.java | 63 BackupManager mBackupManager; field in HugeBackupActivity 82 mBackupManager = new BackupManager(this); in onCreate() 123 mBackupManager.dataChanged(); in populateUI() 195 mBackupManager.dataChanged(); in recordNewUIState() 204 mBackupManager.requestRestore( in onRestoreButtonClick()
|
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/ |
D | BackupRestoreConfirmation.java | 66 IBackupManager mBackupManager; field in BackupRestoreConfirmation 142 …mBackupManager = IBackupManager.Stub.asInterface(ServiceManager.getService(Context.BACKUP_SERVICE)… in onCreate() 292 mBackupManager.acknowledgeFullBackupOrRestore(mToken, in sendAcknowledgement() 305 return mBackupManager.hasBackupPassword(); in haveBackupPassword()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | PeopleSpaceUtilsTest.java | 200 private BackupManager mBackupManager; field in PeopleSpaceUtilsTest 253 Optional.empty(), mBackupManager); in testAugmentTileFromNotification() 293 Optional.empty(), mBackupManager); in testAugmentTileFromNotificationGroupWithSender() 326 Optional.empty(), mBackupManager); in testAugmentTileFromNotificationGroupWithImageUri() 359 Optional.empty(), mBackupManager); in testAugmentTileFromNotificationGroupWithAudioUri() 377 Optional.empty(), mBackupManager); in testAugmentTileFromNotificationNoContent()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 131 private BackupManager mBackupManager; field in WallpaperBackupAgent 152 mBackupManager = new BackupManager(getBaseContext()); in onCreate() 153 mEventLogger = new WallpaperEventLogger(mBackupManager, /* wallpaperAgent */ this); in onCreate() 1012 mBackupManager.getDelayedRestoreLogger()); in getWallpaperPackageMonitor() 1021 mBackupManager.reportDelayedRestoreResult(logger.getBackupRestoreLogger()); in getWallpaperPackageMonitor() 1031 mBackupManager.getDelayedRestoreLogger()); in getWallpaperPackageMonitor() 1051 mBackupManager.reportDelayedRestoreResult(logger.getBackupRestoreLogger()); in getWallpaperPackageMonitor() 1147 mBackupManager = backupManager;
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 455 UserBackupManagerService mBackupManager; field in ActiveRestoreSession.EndRestoreRunnable 459 mBackupManager = manager; in EndRestoreRunnable() 471 mBackupManager.clearRestoreSession(mSession); in run()
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgentTest.java | 114 private BackupManager mBackupManager; field in WallpaperBackupAgentTest 755 when(mBackupManager.getDelayedRestoreLogger()).thenReturn(logger); in testUpdateWallpaperComponent_delayedRestore_logsSuccess() 756 mWallpaperBackupAgent.setBackupManagerForTesting(mBackupManager); in testUpdateWallpaperComponent_delayedRestore_logsSuccess() 779 when(mBackupManager.getDelayedRestoreLogger()).thenReturn(logger); in testUpdateWallpaperComponent_delayedRestoreFails_logsFailure() 780 mWallpaperBackupAgent.setBackupManagerForTesting(mBackupManager); in testUpdateWallpaperComponent_delayedRestoreFails_logsFailure() 801 when(mBackupManager.getDelayedRestoreLogger()).thenReturn(logger); in testUpdateWallpaperComponent_delayedRestore_packageNotInstalled_logsFailure() 802 mWallpaperBackupAgent.setBackupManagerForTesting(mBackupManager); in testUpdateWallpaperComponent_delayedRestore_packageNotInstalled_logsFailure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/ |
D | PeopleSpaceWidgetManager.java | 153 private BackupManager mBackupManager; field in PeopleSpaceWidgetManager 207 mBackupManager = new BackupManager(context); in PeopleSpaceWidgetManager() 284 mBackupManager = backupManager; in PeopleSpaceWidgetManager() 617 appWidgetId, mBackupManager); in augmentTileFromNotifications() 878 tile.getContactUri(), mBackupManager); in addNewWidget()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 207 private FakeIBackupManager mBackupManager; field in KeyValueBackupTaskTest 241 mBackupManager = spy(FakeIBackupManager.class); in setUp() 259 when(mBackupManagerService.getBackupManagerBinder()).thenReturn(mBackupManager); in setUp() 2720 mBackupManager.setUp(mBackupHandler, task); in createKeyValueBackupTask()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
D | PeopleSpaceWidgetManagerTest.java | 261 private BackupManager mBackupManager; field in PeopleSpaceWidgetManagerTest 281 Optional.of(mBubbles), mUserManager, mBackupManager, mINotificationManager, in setUp()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 2957 private final BackupManager mBackupManager; 2964 mBackupManager = new BackupManager(getContext()); 3869 mBackupManager.dataChanged();
|