Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/src/com/android/server/backup/
DBackupManagerServiceTest.java84 @Mock private TransportManager mTransportManager; field in BackupManagerServiceTest
134 when(mTransportManager.getTransportCurrentDestinationString(eq(mTransportName))) in testDestinationString()
146 when(mTransportManager.getTransportCurrentDestinationString(eq(mTransportName))) in testDestinationString_whenTransportNotRegistered()
158 when(mTransportManager.getTransportCurrentDestinationString(eq(mTransportName))) in testDestinationString_withoutPermission()
172 TransportMock transportMock = setUpCurrentTransport(mTransportManager, backupTransport()); in testIsAppEligibleForBackup_whenAppEligible()
180 verify(mTransportManager) in testIsAppEligibleForBackup_whenAppEligible()
187 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_whenAppNotEligible()
199 setUpCurrentTransport(mTransportManager, mTransport); in testIsAppEligibleForBackup_withoutPermission()
210 TransportMock transportMock = setUpCurrentTransport(mTransportManager, mTransport); in testFilterAppsEligibleForBackup()
221 verify(mTransportManager) in testFilterAppsEligibleForBackup()
[all …]
DPerformBackupTaskTest.java117 @Mock private TransportManager mTransportManager; field in PerformBackupTaskTest
166 mTransportManager, in setUp()
522 TransportTestUtils.setUpTransport(mTransportManager, transport); in setUpTransport()
/frameworks/base/services/robotests/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java74 @Mock private TransportManager mTransportManager; field in PerformInitializeTaskTest
220 setUpTransports(mTransportManager, transport1, transport2); in testRun_whenOnlyOneTransportFails()
238 mTransportManager, backupTransport(), d2dTransport(), localTransport()); in testRun_withMultipleTransports()
258 verify(mTransportManager).getTransportClient(eq(transport.transportName), any()); in testRun_withMultipleTransports()
259 verify(mTransportManager) in testRun_withMultipleTransports()
269 setUpTransports(mTransportManager, transport1, transport2); in testRun_whenOnlyOneTransportFails_disposesAllTransports()
277 verify(mTransportManager) in testRun_whenOnlyOneTransportFails_disposesAllTransports()
279 verify(mTransportManager) in testRun_whenOnlyOneTransportFails_disposesAllTransports()
285 setUpTransports(mTransportManager, mTransport.unregistered()); in testRun_whenTransportNotRegistered()
290 verify(mTransportManager, never()).disposeOfTransportClient(any(), any()); in testRun_whenTransportNotRegistered()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java54 private final TransportManager mTransportManager; field in ActiveRestoreSession
68 mTransportManager = backupManagerService.getTransportManager(); in ActiveRestoreSession()
98 mTransportManager.getTransportClient( in getAvailableRestoreSets()
114 TransportManager transportManager = mTransportManager; in getAvailableRestoreSets()
162 if (!mTransportManager.isTransportRegistered(mTransportName)) { in restoreAll()
249 if (!mTransportManager.isTransportRegistered(mTransportName)) { in restoreSome()
325 if (!mTransportManager.isTransportRegistered(mTransportName)) { in restorePackage()
377 mTransportManager.getTransportClient(mTransportName, callerLogString); in sendRestoreToHandlerLocked()
394 TransportManager transportManager = mTransportManager; in sendRestoreToHandlerLocked()
DPerformUnifiedRestoreTask.java84 private final TransportManager mTransportManager; field in PerformUnifiedRestoreTask
178 mTransportManager = backupManagerService.getTransportManager(); in PerformUnifiedRestoreTask()
368 mTransportManager.getTransportDirName(mTransportClient.getTransportComponent()); in startRestore()
/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()
171 mTransportManager.disposeOfTransportClient(transportClient, callerLogString); in run()
DPerformClearTask.java33 private final TransportManager mTransportManager; field in PerformClearTask
42 mTransportManager = backupManagerService.getTransportManager(); in PerformClearTask()
54 mTransportManager.getTransportDirName(mTransportClient.getTransportComponent()); in run()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java239 private final TransportManager mTransportManager; field in BackupManagerService
361 return mTransportManager; in getTransportManager()
872 mTransportManager = transportManager; in BackupManagerService()
873 mTransportManager.setOnTransportRegisteredListener(this::onTransportRegistered); in BackupManagerService()
876 mTransportManager::registerTransports, INITIALIZATION_DELAY_MILLIS); in BackupManagerService()
1236 () -> mTransportManager.onPackageChanged(pkgName, components));
1287 () -> mTransportManager.onPackageAdded(packageName));
1313 () -> mTransportManager.onPackageRemoved(pkgName));
1624 mTransportManager.getTransportDirName( in requestBackup()
1625 mTransportManager.getCurrentTransportName()); in requestBackup()
[all …]
/frameworks/base/services/robotests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java93 @Mock private TransportManager mTransportManager; field in ActiveRestoreSessionTest
136 mTransportManager, in setUp()
196 verify(mTransportManager) in testGetAvailableRestoreSets()
229 verify(mTransportManager) in testGetAvailableRestoreSets_forNullRestoreSets()
247 verify(mTransportManager) in testRestoreAll()
336 verify(mTransportManager) in testRestoreSome_for2Packages()
458 verify(mTransportManager) in testRestorePackage_whenCallerIsPackage()
577 return TransportTestUtils.setUpTransport(mTransportManager, transport); in setUpTransport()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java474 private final TransportManager mTransportManager; field in ServiceStateTracker
508 mTransportManager = new TransportManager(); in ServiceStateTracker()
510 for (int transportType : mTransportManager.getAvailableTransports()) { in ServiceStateTracker()