/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | TransportManagerTest.java | 120 TransportManager transportManager = in testRegisterTransports() local 123 transportManager.registerTransports(); in testRegisterTransports() 126 transportManager, asList(mTransportA1, mTransportA2, mTransportB1)); in testRegisterTransports() 144 TransportManager transportManager = createTransportManager(transport1, transport2); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() local 146 transportManager.registerTransports(); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() 148 assertRegisteredTransports(transportManager, singletonList(transport2)); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() 160 TransportManager transportManager = createTransportManager(null); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports() local 162 transportManager.registerTransports(); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports() 164 assertRegisteredTransports(transportManager, emptyList()); in testRegisterTransports_whenWhitelistIsEmpty_doesNotRegisterTransports() 174 TransportManager transportManager = createTransportManager(null, mTransportA1); in testRegisterTransports_whenOnlyOneTransportWhitelisted_onlyRegistersWhitelistedTransport() local [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportTestUtils.java | 86 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 …]
|
D | BackupManagerServiceTestUtils.java | 69 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/ |
D | BackupHandler.java | 128 TransportManager transportManager = backupManagerService.getTransportManager(); in handleMessage() local 135 transportManager.getCurrentTransportClient(callerLogString); in handleMessage() 142 transportManager in handleMessage() 186 transportManager in handleMessage() 213 transportManager.disposeOfTransportClient(transportClient, callerLogString); in handleMessage()
|
D | PerformInitializeTask.java | 76 TransportManager transportManager, in PerformInitializeTask() argument 82 mTransportManager = transportManager; in PerformInitializeTask()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 116 TransportManager transportManager = mTransportManager; in getAvailableRestoreSets() local 118 transportManager.disposeOfTransportClient(transportClient, caller); in getAvailableRestoreSets() 401 TransportManager transportManager = mTransportManager; in sendRestoreToHandlerLocked() local 403 transportManager.disposeOfTransportClient(transportClient, caller); in sendRestoreToHandlerLocked()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 110 TransportManager transportManager = backupManagerService.getTransportManager(); in newWithCurrentTransport() local 111 TransportClient transportClient = transportManager.getCurrentTransportClient(caller); in newWithCurrentTransport() 114 transportManager.disposeOfTransportClient(transportClient, listenerCaller); in newWithCurrentTransport()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerService.java | 442 TransportManager transportManager = in createAndInitializeService() local 462 transportManager); in createAndInitializeService() 485 TransportManager transportManager) { in createAndInitializeService() argument 493 transportManager); in createAndInitializeService() 516 TransportManager transportManager) { in UserBackupManagerService() argument 625 mTransportManager = checkNotNull(transportManager, "transportManager cannot be null"); in UserBackupManagerService()
|