/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | BackupManagerServiceTest.java | 123 BackupManagerService backupManagerService = createService(); in testConstructor_doesNotRegisterUsers() local 125 assertThat(backupManagerService.getServiceUsers().size()).isEqualTo(0); in testConstructor_doesNotRegisterUsers() 163 BackupManagerService backupManagerService = createService(); in testStartServiceForUser_registersUser() local 165 backupManagerService.startServiceForUser(mUserOneId); in testStartServiceForUser_registersUser() 167 SparseArray<UserBackupManagerService> serviceUsers = backupManagerService.getServiceUsers(); in testStartServiceForUser_registersUser() 175 BackupManagerService backupManagerService = createService(); in testStartServiceForUser_withServiceInstance_registersUser() local 177 backupManagerService.startServiceForUser(mUserOneId, mUserOneService); in testStartServiceForUser_withServiceInstance_registersUser() 179 SparseArray<UserBackupManagerService> serviceUsers = backupManagerService.getServiceUsers(); in testStartServiceForUser_withServiceInstance_registersUser() 187 BackupManagerService backupManagerService = in testStopServiceForUser_forRegisteredUser_unregistersCorrectUser() local 189 backupManagerService.startServiceForUser(mUserTwoId, mUserTwoService); in testStopServiceForUser_forRegisteredUser_unregistersCorrectUser() [all …]
|
D | UserBackupManagerServiceTest.java | 160 UserBackupManagerService backupManagerService = createUserBackupManagerServiceAndRunTasks(); in testDestinationString() local 162 String destination = backupManagerService.getDestinationString(mTransportName); in testDestinationString() 176 UserBackupManagerService backupManagerService = createUserBackupManagerServiceAndRunTasks(); in testDestinationString_whenTransportNotRegistered() local 178 String destination = backupManagerService.getDestinationString(mTransportName); in testDestinationString_whenTransportNotRegistered() 192 UserBackupManagerService backupManagerService = createUserBackupManagerServiceAndRunTasks(); in testDestinationString_withoutPermission() local 196 () -> backupManagerService.getDestinationString(mTransportName)); in testDestinationString_withoutPermission() 208 UserBackupManagerService backupManagerService = createUserBackupManagerServiceAndRunTasks(); in testIsAppEligibleForBackup_whenAppNotEligible() local 210 boolean result = backupManagerService.isAppEligibleForBackup(PACKAGE_1); in testIsAppEligibleForBackup_whenAppNotEligible() 225 UserBackupManagerService backupManagerService = createUserBackupManagerServiceAndRunTasks(); in testIsAppEligibleForBackup_whenAppEligible() local 227 boolean result = backupManagerService.isAppEligibleForBackup(PACKAGE_1); in testIsAppEligibleForBackup_whenAppEligible() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | BackupHandler.java | 90 private final UserBackupManagerService backupManagerService; field in BackupHandler 97 UserBackupManagerService backupManagerService, HandlerThread backupThread) { in BackupHandler() argument 100 this.backupManagerService = backupManagerService; in BackupHandler() 102 backupManagerService.getAgentTimeoutParameters(), in BackupHandler() 119 backupManagerService.getWakelock().quit(); in handleMessage() 128 TransportManager transportManager = backupManagerService.getTransportManager(); in handleMessage() 131 backupManagerService.setLastBackupPass(System.currentTimeMillis()); in handleMessage() 146 synchronized (backupManagerService.getQueueLock()) { in handleMessage() 147 backupManagerService.setBackupRunning(false); in handleMessage() 149 backupManagerService.getWakelock().release(); in handleMessage() [all …]
|
D | ClearDataObserver.java | 25 private UserBackupManagerService backupManagerService; field in ClearDataObserver 27 public ClearDataObserver(UserBackupManagerService backupManagerService) { in ClearDataObserver() argument 28 this.backupManagerService = backupManagerService; in ClearDataObserver() 32 synchronized (backupManagerService.getClearDataLock()) { in onRemoveCompleted() 33 backupManagerService.setClearingData(false); in onRemoveCompleted() 34 backupManagerService.getClearDataLock().notifyAll(); in onRemoveCompleted()
|
D | PerformInitializeTask.java | 60 UserBackupManagerService backupManagerService, in PerformInitializeTask() argument 65 backupManagerService, in PerformInitializeTask() 66 backupManagerService.getTransportManager(), in PerformInitializeTask() 70 backupManagerService.getBaseStateDir()); in PerformInitializeTask() 75 UserBackupManagerService backupManagerService, in PerformInitializeTask() argument 81 mBackupManagerService = backupManagerService; in PerformInitializeTask()
|
D | PerformClearTask.java | 38 PerformClearTask(UserBackupManagerService backupManagerService, in PerformClearTask() argument 41 mBackupManagerService = backupManagerService; in PerformClearTask() 42 mTransportManager = backupManagerService.getTransportManager(); in PerformClearTask()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | BackupManagerServiceTestUtils.java | 88 UserBackupManagerService backupManagerService = in createUserBackupManagerServiceAndRunTasks() local 98 return backupManagerService; in createUserBackupManagerServiceAndRunTasks() 111 UserBackupManagerService backupManagerService, in setUpBackupManagerServiceBasics() argument 119 when(backupManagerService.getContext()).thenReturn(application); in setUpBackupManagerServiceBasics() 120 when(backupManagerService.getTransportManager()).thenReturn(transportManager); in setUpBackupManagerServiceBasics() 121 when(backupManagerService.getPackageManager()).thenReturn(packageManager); in setUpBackupManagerServiceBasics() 122 when(backupManagerService.getBackupHandler()).thenReturn(backupHandler); in setUpBackupManagerServiceBasics() 123 when(backupManagerService.getCurrentOpLock()).thenReturn(new Object()); in setUpBackupManagerServiceBasics() 124 when(backupManagerService.getQueueLock()).thenReturn(new Object()); in setUpBackupManagerServiceBasics() 125 when(backupManagerService.getActivityManager()).thenReturn(mock(IActivityManager.class)); in setUpBackupManagerServiceBasics() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 100 UserBackupManagerService backupManagerService, in newWithCurrentTransport() argument 110 TransportManager transportManager = backupManagerService.getTransportManager(); in newWithCurrentTransport() 116 backupManagerService, in newWithCurrentTransport() 131 private UserBackupManagerService backupManagerService; field in PerformFullTransportBackupTask 154 public PerformFullTransportBackupTask(UserBackupManagerService backupManagerService, in PerformFullTransportBackupTask() argument 162 this.backupManagerService = backupManagerService; in PerformFullTransportBackupTask() 172 mCurrentOpToken = backupManagerService.generateRandomIntegerToken(); in PerformFullTransportBackupTask() 173 mBackupRunnerOpToken = backupManagerService.generateRandomIntegerToken(); in PerformFullTransportBackupTask() 175 backupManagerService.getAgentTimeoutParameters(), in PerformFullTransportBackupTask() 177 mUserId = backupManagerService.getUserId(); in PerformFullTransportBackupTask() [all …]
|
D | FullBackupObbConnection.java | 48 private UserBackupManagerService backupManagerService; field in FullBackupObbConnection 52 public FullBackupObbConnection(UserBackupManagerService backupManagerService) { in FullBackupObbConnection() argument 53 this.backupManagerService = backupManagerService; in FullBackupObbConnection() 56 backupManagerService.getAgentTimeoutParameters(), in FullBackupObbConnection() 67 backupManagerService.getContext().bindServiceAsUser( in establish() 72 backupManagerService.getContext().unbindService(this); in tearDown() 82 int token = backupManagerService.generateRandomIntegerToken(); in backupObbs() 85 backupManagerService.prepareOperationTimeout( in backupObbs() 88 backupManagerService.getBackupManagerBinder()); in backupObbs() 90 success = backupManagerService.waitUntilOperationComplete(token); in backupObbs()
|
D | FullBackupEngine.java | 56 private UserBackupManagerService backupManagerService; field in FullBackupEngine 87 mPackageManager = backupManagerService.getPackageManager(); in FullBackupRunner() 144 backupManagerService.prepareOperationTimeout( in run() 153 backupManagerService.getBackupManagerBinder(), in run() 185 UserBackupManagerService backupManagerService, in FullBackupEngine() argument 194 this.backupManagerService = backupManagerService; in FullBackupEngine() 205 backupManagerService.getAgentTimeoutParameters(), in FullBackupEngine() 238 backupManagerService, in backupOnePackage() 251 if (!backupManagerService.waitUntilOperationComplete(mOpToken)) { in backupOnePackage() 304 backupManagerService.bindToAgentSynchronous( in initializeAgent() [all …]
|
D | PerformAdbBackupTask.java | 87 public PerformAdbBackupTask(UserBackupManagerService backupManagerService, in PerformAdbBackupTask() argument 93 mUserBackupManagerService = backupManagerService; in PerformAdbBackupTask() 94 mCurrentOpToken = backupManagerService.generateRandomIntegerToken(); in PerformAdbBackupTask()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 82 private UserBackupManagerService backupManagerService; field in PerformUnifiedRestoreTask 167 UserBackupManagerService backupManagerService, in PerformUnifiedRestoreTask() argument 177 this.backupManagerService = backupManagerService; in PerformUnifiedRestoreTask() 178 mUserId = backupManagerService.getUserId(); in PerformUnifiedRestoreTask() 179 mTransportManager = backupManagerService.getTransportManager(); in PerformUnifiedRestoreTask() 180 mEphemeralOpToken = backupManagerService.generateRandomIntegerToken(); in PerformUnifiedRestoreTask() 195 backupManagerService.getAgentTimeoutParameters(), in PerformUnifiedRestoreTask() 208 backupManagerService.getPackageManager(), mUserId); in PerformUnifiedRestoreTask() 224 PackageManager pm = backupManagerService.getPackageManager(); in PerformUnifiedRestoreTask() 244 mAcceptSet.add(0, backupManagerService.getPackageManager().getPackageInfoAsUser( in PerformUnifiedRestoreTask() [all …]
|
D | AdbRestoreFinishedLatch.java | 38 private UserBackupManagerService backupManagerService; field in AdbRestoreFinishedLatch 43 public AdbRestoreFinishedLatch(UserBackupManagerService backupManagerService, in AdbRestoreFinishedLatch() argument 45 this.backupManagerService = backupManagerService; in AdbRestoreFinishedLatch() 49 backupManagerService.getAgentTimeoutParameters(), in AdbRestoreFinishedLatch() 75 backupManagerService.removeOperation(mCurrentOpToken); in operationComplete() 84 backupManagerService.removeOperation(mCurrentOpToken); in handleCancel()
|
D | AdbRestoreFinishedRunnable.java | 19 UserBackupManagerService backupManagerService) { in AdbRestoreFinishedRunnable() argument 22 mBackupManagerService = backupManagerService; in AdbRestoreFinishedRunnable()
|
D | RestoreFileRunnable.java | 40 RestoreFileRunnable(UserBackupManagerService backupManagerService, IBackupAgent agent, in RestoreFileRunnable() argument 52 this.mBackupManagerService = backupManagerService; in RestoreFileRunnable()
|
D | PerformAdbRestoreTask.java | 103 public PerformAdbRestoreTask(UserBackupManagerService backupManagerService, in PerformAdbRestoreTask() argument 106 this.mBackupManagerService = backupManagerService; in PerformAdbRestoreTask() 113 mPackageManagerBackupAgent = backupManagerService.makeMetadataAgent(); in PerformAdbRestoreTask() 116 mObbConnection = new FullBackupObbConnection(backupManagerService); in PerformAdbRestoreTask() 118 backupManagerService.getAgentTimeoutParameters(), in PerformAdbRestoreTask()
|
D | ActiveRestoreSession.java | 64 UserBackupManagerService backupManagerService, in ActiveRestoreSession() argument 67 mBackupManagerService = backupManagerService; in ActiveRestoreSession() 69 mTransportManager = backupManagerService.getTransportManager(); in ActiveRestoreSession() 71 mUserId = backupManagerService.getUserId(); in ActiveRestoreSession()
|
D | FullRestoreEngine.java | 137 public FullRestoreEngine(UserBackupManagerService backupManagerService, in FullRestoreEngine() argument 141 mBackupManagerService = backupManagerService; in FullRestoreEngine() 152 backupManagerService.getAgentTimeoutParameters(), in FullRestoreEngine() 155 mUserId = backupManagerService.getUserId(); in FullRestoreEngine()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowPerformUnifiedRestoreTask.java | 58 UserBackupManagerService backupManagerService, in __constructor__() argument 68 mBackupManagerService = backupManagerService; in __constructor__()
|
D | ShadowKeyValueBackupTask.java | 57 UserBackupManagerService backupManagerService, in __constructor__() argument
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 203 UserBackupManagerService backupManagerService, in start() argument 215 new KeyValueBackupReporter(backupManagerService, observer, monitor); in start() 218 backupManagerService, in start() 292 UserBackupManagerService backupManagerService, in KeyValueBackupTask() argument 302 mBackupManagerService = backupManagerService; in KeyValueBackupTask() 303 mTransportManager = backupManagerService.getTransportManager(); in KeyValueBackupTask() 304 mPackageManager = backupManagerService.getPackageManager(); in KeyValueBackupTask() 317 backupManagerService.getAgentTimeoutParameters(), in KeyValueBackupTask() 319 mStateDirectory = new File(backupManagerService.getBaseStateDir(), transportDirName); in KeyValueBackupTask() 321 mCurrentOpToken = backupManagerService.generateRandomIntegerToken(); in KeyValueBackupTask() [all …]
|
D | KeyValueBackupReporter.java | 71 UserBackupManagerService backupManagerService, in KeyValueBackupReporter() argument 74 mBackupManagerService = backupManagerService; in KeyValueBackupReporter()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueAdbBackupEngine.java | 70 UserBackupManagerService backupManagerService, PackageManager packageManager, in KeyValueAdbBackupEngine() argument 74 mBackupManagerService = backupManagerService; in KeyValueAdbBackupEngine() 91 backupManagerService.getAgentTimeoutParameters(), in KeyValueAdbBackupEngine()
|
D | KeyValueAdbRestoreEngine.java | 48 public KeyValueAdbRestoreEngine(UserBackupManagerService backupManagerService, in KeyValueAdbRestoreEngine() argument 51 mBackupManagerService = backupManagerService; in KeyValueAdbRestoreEngine()
|