Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/src/com/android/server/backup/
DTransportManagerTest.java115 TransportManager transportManager = in testRegisterTransports() local
118 transportManager.registerTransports(); in testRegisterTransports()
121 transportManager, asList(mTransportA1, mTransportA2, mTransportB1)); in testRegisterTransports()
139 TransportManager transportManager = createTransportManager(transport1, transport2); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() local
141 transportManager.registerTransports(); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport()
143 assertRegisteredTransports(transportManager, singletonList(transport2)); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport()
155 TransportManager transportManager = createTransportManager(null); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports() local
157 transportManager.registerTransports(); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports()
159 assertRegisteredTransports(transportManager, emptyList()); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports()
169 TransportManager transportManager = createTransportManager(null, mTransportA1); in testRegisterTransports_whenOnlyOneTransportWhitelisted_onlyRegistersWhitelistedTransport() local
[all …]
/frameworks/base/services/robotests/src/com/android/server/backup/testing/
DTransportTestUtils.java81 TransportManager transportManager, TransportData transport) throws Exception { in setUpCurrentTransport() argument
82 TransportMock transportMock = setUpTransports(transportManager, transport).get(0); in setUpCurrentTransport()
84 when(transportManager.getCurrentTransportClient(any())) in setUpCurrentTransport()
92 TransportManager transportManager, TransportData... transports) throws Exception { in setUpTransports() argument
94 .map(transport -> uncheck(() -> setUpTransport(transportManager, transport))) in setUpTransports()
99 TransportManager transportManager, TransportData transport) throws Exception { in setUpTransport() argument
109 when(transportManager.getTransportClient(eq(transportName), any())) in setUpTransport()
111 when(transportManager.getTransportClientOrThrow(eq(transportName), any())) in setUpTransport()
113 when(transportManager.getTransportName(transportComponent)).thenReturn(transportName); in setUpTransport()
114 when(transportManager.getTransportDirName(eq(transportName))) in setUpTransport()
[all …]
DBackupManagerServiceTestUtils.java44 TransportManager transportManager, in setUpBackupManagerServiceBasics() argument
50 when(backupManagerService.getTransportManager()).thenReturn(transportManager); in setUpBackupManagerServiceBasics()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DBackupHandler.java97 TransportManager transportManager = backupManagerService.getTransportManager(); in handleMessage() local
104 transportManager.getCurrentTransportClient(callerLogString); in handleMessage()
111 transportManager in handleMessage()
156 transportManager in handleMessage()
177 transportManager.disposeOfTransportClient(transportClient, 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.java114 TransportManager transportManager = mTransportManager; in getAvailableRestoreSets() local
116 transportManager.disposeOfTransportClient(transportClient, caller); in getAvailableRestoreSets()
394 TransportManager transportManager = mTransportManager; in sendRestoreToHandlerLocked() local
396 transportManager.disposeOfTransportClient(transportClient, caller); in sendRestoreToHandlerLocked()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java109 TransportManager transportManager = backupManagerService.getTransportManager(); in newWithCurrentTransport() local
110 TransportClient transportClient = transportManager.getCurrentTransportClient(caller); in newWithCurrentTransport()
113 transportManager.disposeOfTransportClient(transportClient, listenerCaller); in newWithCurrentTransport()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java759 TransportManager transportManager = in create() local
778 transportManager); in create()
788 TransportManager transportManager) { in BackupManagerService() argument
872 mTransportManager = transportManager; in BackupManagerService()