Home
last modified time | relevance | path

Searched refs:mTransportManager (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java116 @Mock private TransportManager mTransportManager; field in UserBackupManagerServiceTest
175 when(mTransportManager.getTransportCurrentDestinationString(eq(mTransportName))) in testDestinationString()
191 when(mTransportManager.getTransportCurrentDestinationString(eq(mTransportName))) in testDestinationString_whenTransportNotRegistered()
207 when(mTransportManager.getTransportCurrentDestinationString(eq(mTransportName))) in testDestinationString_withoutPermission()
223 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_whenAppNotEligible()
239 TransportMock transportMock = setUpCurrentTransport(mTransportManager, backupTransport()); in testIsAppEligibleForBackup_whenAppEligible()
247 verify(mTransportManager) in testIsAppEligibleForBackup_whenAppEligible()
258 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_withoutPermission()
276 TransportMock transportMock = setUpCurrentTransport(mTransportManager, mTransport); in testFilterAppsEligibleForBackup()
286 verify(mTransportManager) in testFilterAppsEligibleForBackup()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java76 @Mock private TransportManager mTransportManager; field in PerformInitializeTaskTest
248 setUpTransports(mTransportManager, transport1, transport2); in testRun_whenOnlyOneTransportFails()
266 mTransportManager, backupTransport(), d2dTransport(), localTransport()); in testRun_withMultipleTransports()
286 verify(mTransportManager).getTransportClient(eq(transport.transportName), any()); in testRun_withMultipleTransports()
287 verify(mTransportManager) in testRun_withMultipleTransports()
297 setUpTransports(mTransportManager, transport1, transport2); in testRun_whenOnlyOneTransportFails_disposesAllTransports()
305 verify(mTransportManager) in testRun_whenOnlyOneTransportFails_disposesAllTransports()
307 verify(mTransportManager) in testRun_whenOnlyOneTransportFails_disposesAllTransports()
313 setUpTransports(mTransportManager, mTransport.unregistered()); in testRun_whenTransportNotRegistered()
318 verify(mTransportManager, never()).disposeOfTransportClient(any(), any()); in testRun_whenTransportNotRegistered()
[all …]
DSetupObserverTest.java68 @Mock private TransportManager mTransportManager; field in SetupObserverTest
88 mTransportManager); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTaskTest.java42 TransportManager mTransportManager; field in PerformFullTransportBackupTaskTest
48 when(mBackupManagerService.getTransportManager()).thenReturn(mTransportManager); in setUp()
53 when(mTransportManager.getCurrentTransportClient(any())).thenReturn(null); in testNewWithCurrentTransport_noTransportConnection_throws()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java53 private final TransportManager mTransportManager; field in PerformInitializeTask
82 mTransportManager = transportManager; in PerformInitializeTask()
117 mTransportManager.getTransportClient(transportName, callerLogString); in run()
126 mTransportManager.getTransportDirName( in run()
175 mTransportManager.disposeOfTransportClient(transportConnection, callerLogString); in run()
DPerformClearTask.java33 private final TransportManager mTransportManager; field in PerformClearTask
42 mTransportManager = backupManagerService.getTransportManager(); in PerformClearTask()
54 mTransportManager.getTransportDirName( in run()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java63 private final TransportManager mTransportManager; field in ActiveRestoreSession
80 mTransportManager = backupManagerService.getTransportManager(); in ActiveRestoreSession()
112 mTransportManager.getTransportClient( in getAvailableRestoreSets()
128 TransportManager transportManager = mTransportManager; in getAvailableRestoreSets()
177 if (!mTransportManager.isTransportRegistered(mTransportName)) { in restoreAll()
270 if (!mTransportManager.isTransportRegistered(mTransportName)) { in restorePackages()
371 if (!mTransportManager.isTransportRegistered(mTransportName)) { in restorePackage()
424 mTransportManager.getTransportClient(mTransportName, callerLogString); in sendRestoreToHandlerLocked()
441 TransportManager transportManager = mTransportManager; in sendRestoreToHandlerLocked()
DPerformUnifiedRestoreTask.java96 private final TransportManager mTransportManager; field in PerformUnifiedRestoreTask
193 mTransportManager = null; in PerformUnifiedRestoreTask()
221 mTransportManager = backupManagerService.getTransportManager(); in PerformUnifiedRestoreTask()
423 mTransportManager.getTransportDirName( in startRestore()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java322 private final TransportManager mTransportManager; field in UserBackupManagerService
530 mTransportManager = transportManager; in UserBackupManagerService()
656 mTransportManager = in UserBackupManagerService()
658 mTransportManager.setOnTransportRegisteredListener(this::onTransportRegistered); in UserBackupManagerService()
661 mTransportManager::registerTransports, INITIALIZATION_DELAY_MILLIS); in UserBackupManagerService()
743 return mTransportManager; in getTransportManager()
1359 mTransportManager.onPackageChanged(
1414 () -> mTransportManager.onPackageAdded(packageName));
1442 () -> mTransportManager.onPackageRemoved(packageName));
1885 mTransportManager.getTransportDirName( in requestBackup()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java151 private final CompanionTransportManager mTransportManager; field in CompanionDeviceManagerService
187 mTransportManager = new CompanionTransportManager(context, mAssociationStore); in CompanionDeviceManagerService()
191 mCompanionAppBinder, mSystemDataTransferRequestStore, mTransportManager); in CompanionDeviceManagerService()
195 mSystemDataTransferRequestStore, mTransportManager); in CompanionDeviceManagerService()
198 mCrossDeviceSyncController = new CrossDeviceSyncController(getContext(), mTransportManager); in CompanionDeviceManagerService()
384 mTransportManager.addListener(listener); in addOnTransportsChangedListener()
392 mTransportManager.removeListener(listener); in removeOnTransportsChangedListener()
400 mTransportManager.sendMessage(messageType, data, associationIds); in sendMessage()
409 mTransportManager.addListener(messageType, listener); in addOnMessageReceivedListener()
418 mTransportManager.removeListener(messageType, listener); in removeOnMessageReceivedListener()
[all …]
DCompanionDeviceShellCommand.java54 private final CompanionTransportManager mTransportManager; field in CompanionDeviceShellCommand
71 mTransportManager = transportManager; in CompanionDeviceShellCommand()
261 mTransportManager.createEmulatedTransport(associationId); in onCommand()
266 mTransportManager.createEmulatedTransport(associationId) in onCommand()
278 mTransportManager.createEmulatedTransport(associationId) in onCommand()
290 mTransportManager.createEmulatedTransport(associationId) in onCommand()
315 mTransportManager.createEmulatedTransport(associationId) in onCommand()
377 mTransportManager.createEmulatedTransport(associationId) in onCommand()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/
DSystemDataTransferProcessor.java86 private final CompanionTransportManager mTransportManager; field in SystemDataTransferProcessor
100 mTransportManager = transportManager; in SystemDataTransferProcessor()
112 mTransportManager.addListener(MESSAGE_REQUEST_PERMISSION_RESTORE, messageListener); in SystemDataTransferProcessor()
211 Future<?> future = mTransportManager in startSystemDataTransfer()
/frameworks/base/services/companion/java/com/android/server/companion/association/
DDisassociationProcessor.java69 private final CompanionTransportManager mTransportManager; field in DisassociationProcessor
90 mTransportManager = companionTransportManager; in DisassociationProcessor()
125 mTransportManager.detachSystemDataTransport(id); in disassociate()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java99 @Mock private TransportManager mTransportManager; field in ActiveRestoreSessionTest
148 mTransportManager, in setUp()
209 verify(mTransportManager) in testGetAvailableRestoreSets()
243 verify(mTransportManager) in testGetAvailableRestoreSets_forNullRestoreSets()
261 verify(mTransportManager) in testRestoreAll()
349 verify(mTransportManager) in testRestorePackages_for2Packages()
471 verify(mTransportManager) in testRestorePackage_whenCallerIsPackage()
603 return TransportTestUtils.setUpTransport(mTransportManager, transport); in setUpTransport()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java68 private TransportManager mTransportManager; field in ActiveRestoreSessionTest
87 when(mBackupManagerService.getTransportManager()).thenReturn(mTransportManager); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java95 @Mock TransportManager mTransportManager; field in UserBackupManagerServiceTest
124 mTransportManager, mBackupHandler); in setUp()
290 when(mTransportManager.getCurrentTransportName()).thenReturn(TEST_TRANSPORT); in testReportDelayedRestoreResult_sendsLogsToMonitor()
291 when(mTransportManager.getTransportClientOrThrow(eq(TEST_TRANSPORT), anyString())) in testReportDelayedRestoreResult_sendsLogsToMonitor()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java192 @Mock private TransportManager mTransportManager; field in KeyValueBackupTaskTest
248 USER_ID, mContext, mBaseStateDir, mDataDir, mTransportManager)); in setUp()
252 mTransportManager, in setUp()
2581 TransportTestUtils.setUpTransport(mTransportManager, transport); in setUpTransport()