Home
last modified time | relevance | path

Searched refs:backupManagerService (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceTest.java123 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 …]
DUserBackupManagerServiceTest.java160 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/
DBackupHandler.java90 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 …]
DClearDataObserver.java25 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()
DPerformInitializeTask.java60 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()
DPerformClearTask.java38 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/
DBackupManagerServiceTestUtils.java88 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/
DPerformFullTransportBackupTask.java100 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 …]
DFullBackupObbConnection.java48 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()
DFullBackupEngine.java56 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 …]
DPerformAdbBackupTask.java87 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/
DPerformUnifiedRestoreTask.java82 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 …]
DAdbRestoreFinishedLatch.java38 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()
DAdbRestoreFinishedRunnable.java19 UserBackupManagerService backupManagerService) { in AdbRestoreFinishedRunnable() argument
22 mBackupManagerService = backupManagerService; in AdbRestoreFinishedRunnable()
DRestoreFileRunnable.java40 RestoreFileRunnable(UserBackupManagerService backupManagerService, IBackupAgent agent, in RestoreFileRunnable() argument
52 this.mBackupManagerService = backupManagerService; in RestoreFileRunnable()
DPerformAdbRestoreTask.java103 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()
DActiveRestoreSession.java64 UserBackupManagerService backupManagerService, in ActiveRestoreSession() argument
67 mBackupManagerService = backupManagerService; in ActiveRestoreSession()
69 mTransportManager = backupManagerService.getTransportManager(); in ActiveRestoreSession()
71 mUserId = backupManagerService.getUserId(); in ActiveRestoreSession()
DFullRestoreEngine.java137 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/
DShadowPerformUnifiedRestoreTask.java58 UserBackupManagerService backupManagerService, in __constructor__() argument
68 mBackupManagerService = backupManagerService; in __constructor__()
DShadowKeyValueBackupTask.java57 UserBackupManagerService backupManagerService, in __constructor__() argument
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java203 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 …]
DKeyValueBackupReporter.java71 UserBackupManagerService backupManagerService, in KeyValueBackupReporter() argument
74 mBackupManagerService = backupManagerService; in KeyValueBackupReporter()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbBackupEngine.java70 UserBackupManagerService backupManagerService, PackageManager packageManager, in KeyValueAdbBackupEngine() argument
74 mBackupManagerService = backupManagerService; in KeyValueAdbBackupEngine()
91 backupManagerService.getAgentTimeoutParameters(), in KeyValueAdbBackupEngine()
DKeyValueAdbRestoreEngine.java48 public KeyValueAdbRestoreEngine(UserBackupManagerService backupManagerService, in KeyValueAdbRestoreEngine() argument
51 mBackupManagerService = backupManagerService; in KeyValueAdbRestoreEngine()