Home
last modified time | relevance | path

Searched refs:transportManager (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java125 TransportManager transportManager = in testRegisterTransports() local
128 transportManager.registerTransports(); in testRegisterTransports()
131 transportManager, asList(mTransportA1, mTransportA2, mTransportB1)); in testRegisterTransports()
149 TransportManager transportManager = createTransportManager(transport1, transport2); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() local
151 transportManager.registerTransports(); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport()
153 assertRegisteredTransports(transportManager, singletonList(transport2)); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport()
165 TransportManager transportManager = createTransportManager(null); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports() local
167 transportManager.registerTransports(); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports()
169 assertRegisteredTransports(transportManager, emptyList()); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports()
179 TransportManager transportManager = createTransportManager(null, mTransportA1); in testRegisterTransports_whenOnlyOneTransportWhitelisted_onlyRegistersWhitelistedTransport() local
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java86 TransportManager transportManager, TransportData transport) throws Exception { in setUpCurrentTransport() argument
87 TransportMock transportMock = setUpTransport(transportManager, transport); in setUpCurrentTransport()
89 when(transportManager.getCurrentTransportName()).thenReturn(transport.transportName); in setUpCurrentTransport()
93 when(transportManager.getCurrentTransportClient(any())) in setUpCurrentTransport()
95 when(transportManager.getCurrentTransportClientOrThrow(any())) in setUpCurrentTransport()
99 when(transportManager.getCurrentTransportClient(any())).thenReturn(null); in setUpCurrentTransport()
100 when(transportManager.getCurrentTransportClientOrThrow(any())) in setUpCurrentTransport()
108 TransportManager transportManager, TransportData... transports) throws Exception { in setUpTransports() argument
110 .map(transport -> uncheck(() -> setUpTransport(transportManager, transport))) in setUpTransports()
115 TransportManager transportManager, TransportData transport) throws Exception { in setUpTransport() argument
[all …]
DBackupManagerServiceTestUtils.java69 TransportManager transportManager) { in createUserBackupManagerServiceAndRunTasks() argument
71 userId, context, startBackupThread(null), baseStateDir, dataDir, transportManager); in createUserBackupManagerServiceAndRunTasks()
87 TransportManager transportManager) { in createUserBackupManagerServiceAndRunTasks() argument
96 transportManager); in createUserBackupManagerServiceAndRunTasks()
113 TransportManager transportManager, in setUpBackupManagerServiceBasics() argument
120 when(backupManagerService.getTransportManager()).thenReturn(transportManager); in setUpBackupManagerServiceBasics()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DBackupHandler.java149 TransportManager transportManager = backupManagerService.getTransportManager(); in handleMessage() local
156 transportManager.getCurrentTransportClient(callerLogString); in handleMessage()
163 transportManager in handleMessage()
226 transportManager in handleMessage()
257 transportManager.disposeOfTransportClient(transportConnection, callerLogString); in handleMessage()
DPerformInitializeTask.java76 TransportManager transportManager, in PerformInitializeTask() argument
82 mTransportManager = transportManager; in PerformInitializeTask()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java128 TransportManager transportManager = mTransportManager; in getAvailableRestoreSets() local
130 transportManager.disposeOfTransportClient(transportConnection, caller); in getAvailableRestoreSets()
441 TransportManager transportManager = mTransportManager; in sendRestoreToHandlerLocked() local
443 transportManager.disposeOfTransportClient(transportConnection, caller); in sendRestoreToHandlerLocked()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/
DSystemDataTransferProcessor.java95 CompanionTransportManager transportManager) { in SystemDataTransferProcessor() argument
100 mTransportManager = transportManager; in SystemDataTransferProcessor()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java320 LifecycleOperationStorage operationStorage, TransportManager transportManager, in TestBackupService() argument
322 super(context, packageManager, operationStorage, transportManager, backupHandler, in TestBackupService()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java119 TransportManager transportManager = backupManagerService.getTransportManager(); in newWithCurrentTransport() local
120 TransportConnection transportConnection = transportManager.getCurrentTransportClient( in newWithCurrentTransport()
127 transportManager.disposeOfTransportClient(transportConnection, in newWithCurrentTransport()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceShellCommand.java63 CompanionTransportManager transportManager, in CompanionDeviceShellCommand() argument
71 mTransportManager = transportManager; in CompanionDeviceShellCommand()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java444 TransportManager transportManager = in createAndInitializeService() local
466 transportManager); in createAndInitializeService()
489 TransportManager transportManager) { in createAndInitializeService() argument
504 transportManager); in createAndInitializeService()
522 LifecycleOperationStorage operationStorage, TransportManager transportManager, in UserBackupManagerService() argument
530 mTransportManager = transportManager; in UserBackupManagerService()
561 TransportManager transportManager) { in UserBackupManagerService() argument
657 Objects.requireNonNull(transportManager, "transportManager cannot be null"); in UserBackupManagerService()