Home
last modified time | relevance | path

Searched refs:transportConnection (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportConnectionManager.java111 TransportConnection transportConnection = in getTransportClient() local
120 mTransportClientsCallerMap.put(transportConnection, caller); in getTransportClient()
125 formatMessage(null, caller, "Retrieving " + transportConnection)); in getTransportClient()
126 return transportConnection; in getTransportClient()
138 public void disposeOfTransportClient(TransportConnection transportConnection, String caller) { in disposeOfTransportClient() argument
139 transportConnection.unbind(caller); in disposeOfTransportClient()
140 transportConnection.markAsDisposed(); in disposeOfTransportClient()
145 formatMessage(null, caller, "Disposing of " + transportConnection)); in disposeOfTransportClient()
146 mTransportClientsCallerMap.remove(transportConnection); in disposeOfTransportClient()
154 for (TransportConnection transportConnection : mTransportClientsCallerMap.keySet()) { in dump()
[all …]
DTransportConnection.java668 TransportConnection transportConnection) { in TransportConnectionMonitor() argument
670 mTransportClientRef = new WeakReference<>(transportConnection); in TransportConnectionMonitor()
675 TransportConnection transportConnection = mTransportClientRef.get(); in onServiceConnected() local
676 if (transportConnection == null) { in onServiceConnected()
684 transportConnection.onServiceConnected(binder); in onServiceConnected()
689 TransportConnection transportConnection = mTransportClientRef.get(); in onServiceDisconnected() local
690 if (transportConnection == null) { in onServiceDisconnected()
694 transportConnection.onServiceDisconnected(); in onServiceDisconnected()
699 TransportConnection transportConnection = mTransportClientRef.get(); in onBindingDied() local
700 if (transportConnection == null) { in onBindingDied()
[all …]
DTransportConnectionListener.java36 TransportConnection transportConnection); in onTransportConnectionResult() argument
/frameworks/base/services/backup/java/com/android/server/backup/params/
DRestoreParams.java44 TransportConnection transportConnection, in createForSinglePackage() argument
52 transportConnection, in createForSinglePackage()
68 TransportConnection transportConnection, in createForRestoreAtInstall() argument
78 transportConnection, in createForRestoreAtInstall()
94 TransportConnection transportConnection, in createForRestoreAll() argument
101 transportConnection, in createForRestoreAll()
117 TransportConnection transportConnection, in createForRestorePackages() argument
126 transportConnection, in createForRestorePackages()
139 TransportConnection transportConnection, in RestoreParams() argument
149 this.mTransportConnection = transportConnection; in RestoreParams()
DClearParams.java30 TransportConnection transportConnection, in ClearParams() argument
33 this.mTransportConnection = transportConnection; in ClearParams()
DBackupParams.java41 public BackupParams(TransportConnection transportConnection, String dirName, in BackupParams() argument
45 this.mTransportConnection = transportConnection; in BackupParams()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportConnectionManagerTest.java78 TransportConnection transportConnection = in testGetTransportClient() local
82 transportConnection.connectAsync(mTransportConnectionListener, "caller"); in testGetTransportClient()
96 TransportConnection transportConnection = in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent() local
100 transportConnection.connectAsync(mTransportConnectionListener, "caller"); in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
112 TransportConnection transportConnection = in testDisposeOfTransportClient() local
115 mTransportConnectionManager.disposeOfTransportClient(transportConnection, "caller"); in testDisposeOfTransportClient()
117 verify(transportConnection).unbind(any()); in testDisposeOfTransportClient()
118 verify(transportConnection).markAsDisposed(); in testDisposeOfTransportClient()
DTransportConnectionTest.java361 TransportConnection transportConnection = spy(mTransportConnection); in testConnect_callsThroughToConnectAsync() local
366 transportConnection); in testConnect_callsThroughToConnectAsync()
369 .when(transportConnection) in testConnect_callsThroughToConnectAsync()
373 runInWorkerThread(() -> transportConnection.connect("caller")); in testConnect_callsThroughToConnectAsync()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java116 TransportConnection transportConnection = in run() local
118 if (transportConnection == null) { in run()
122 transportClientsToDisposeOf.add(transportConnection); in run()
127 transportConnection.getTransportComponent()); in run()
131 BackupTransportClient transport = transportConnection.connectOrThrow( in run()
174 for (TransportConnection transportConnection : transportClientsToDisposeOf) { in run()
175 mTransportManager.disposeOfTransportClient(transportConnection, callerLogString); in run()
DBackupHandler.java155 TransportConnection transportConnection = in handleMessage() local
158 transportConnection != null in handleMessage()
159 ? transportConnection.connect(callerLogString) in handleMessage()
162 if (transportConnection != null) { in handleMessage()
164 .disposeOfTransportClient(transportConnection, callerLogString); in handleMessage()
227 .disposeOfTransportClient(transportConnection, in handleMessage()
232 transportConnection, in handleMessage()
257 transportManager.disposeOfTransportClient(transportConnection, callerLogString); in handleMessage()
DPerformClearTask.java39 TransportConnection transportConnection, PackageInfo packageInfo, in PerformClearTask() argument
43 mTransportConnection = transportConnection; in PerformClearTask()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java111 TransportConnection transportConnection = in getAvailableRestoreSets() local
114 if (transportConnection == null) { in getAvailableRestoreSets()
130 transportManager.disposeOfTransportClient(transportConnection, caller); in getAvailableRestoreSets()
135 new RestoreGetSetsParams(transportConnection, this, observer, monitor, in getAvailableRestoreSets()
423 TransportConnection transportConnection = in sendRestoreToHandlerLocked() local
425 if (transportConnection == null) { in sendRestoreToHandlerLocked()
443 transportManager.disposeOfTransportClient(transportConnection, caller); in sendRestoreToHandlerLocked()
447 msg.obj = restoreParamsBuilder.apply(transportConnection, listener); in sendRestoreToHandlerLocked()
DPerformUnifiedRestoreTask.java187 TransportConnection transportConnection, in PerformUnifiedRestoreTask() argument
192 mTransportConnection = transportConnection; in PerformUnifiedRestoreTask()
208 TransportConnection transportConnection, in PerformUnifiedRestoreTask() argument
226 mTransportConnection = transportConnection; in PerformUnifiedRestoreTask()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java1880 final TransportConnection transportConnection; in requestBackup() local
1887 transportConnection = in requestBackup()
1889 backupDestination = getBackupDestinationFromTransport(transportConnection); in requestBackup()
1900 caller -> mTransportManager.disposeOfTransportClient(transportConnection, caller); in requestBackup()
1906 transportConnection, transportDirName, listener); in requestBackup()
1914 TransportConnection transportConnection, String transportDirName, in getRequestBackupParams() argument
1960 return new BackupParams(transportConnection, transportDirName, kvBackupList, fullBackupList, in getRequestBackupParams()
2715 TransportConnection transportConnection = in clearBackupData() local
2718 if (transportConnection == null) { in clearBackupData()
2728 .disposeOfTransportClient(transportConnection, caller); in clearBackupData()
[all …]
DTransportManager.java578 public void disposeOfTransportClient(TransportConnection transportConnection, String caller) { in disposeOfTransportClient() argument
579 mTransportConnectionManager.disposeOfTransportClient(transportConnection, caller); in disposeOfTransportClient()
723 TransportConnection transportConnection = in registerTransport() local
728 transport = transportConnection.connectOrThrow(callerLogString); in registerTransport()
732 mTransportConnectionManager.disposeOfTransportClient(transportConnection, in registerTransport()
756 mTransportConnectionManager.disposeOfTransportClient(transportConnection, callerLogString); in registerTransport()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java120 TransportConnection transportConnection = transportManager.getCurrentTransportClient( in newWithCurrentTransport() local
122 if (transportConnection == null) { in newWithCurrentTransport()
127 transportManager.disposeOfTransportClient(transportConnection, in newWithCurrentTransport()
132 transportConnection, in newWithCurrentTransport()
173 TransportConnection transportConnection, in PerformFullTransportBackupTask() argument
182 mTransportConnection = transportConnection; in PerformFullTransportBackupTask()
737 TransportConnection transportConnection, in SinglePackageBackupPreflight() argument
741 mTransportConnection = transportConnection; in SinglePackageBackupPreflight()
851 TransportConnection transportConnection, long quota, int currentOpToken, in SinglePackageBackupRunner() argument
858 transportConnection, quota, mEphemeralToken, transportFlags); in SinglePackageBackupRunner()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java550 TransportConnection transportConnection = in testGetTransportClient_forRegisteredTransport() local
553 assertThat(transportConnection.getTransportComponent()) in testGetTransportClient_forRegisteredTransport()
570 TransportConnection transportConnection = in testGetTransportClient_forOldNameOfTransportThatChangedName_returnsNull() local
573 assertThat(transportConnection).isNull(); in testGetTransportClient_forOldNameOfTransportThatChangedName_returnsNull()
588 TransportConnection transportConnection = transportManager.getTransportClient( in testGetTransportClient_forNewNameOfTransportThatChangedName() local
591 assertThat(transportConnection.getTransportComponent()) in testGetTransportClient_forNewNameOfTransportThatChangedName()
600 TransportConnection transportConnection = transportManager.getCurrentTransportClient( in testGetCurrentTransportClient() local
603 assertThat(transportConnection.getTransportComponent()) in testGetCurrentTransportClient()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java272 @Nullable TransportConnection transportConnection, in appIsRunningAndEligibleForBackupWithTransport()
283 if (transportConnection != null) { in appIsRunningAndEligibleForBackupWithTransport()
286 transportConnection.connectOrThrow( in appIsRunningAndEligibleForBackupWithTransport()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowBackupEligibilityRules.java56 @Nullable TransportConnection transportConnection, in appIsRunningAndEligibleForBackupWithTransport()
DShadowKeyValueBackupTask.java61 TransportConnection transportConnection, in __constructor__() argument
DShadowPerformUnifiedRestoreTask.java62 TransportConnection transportConnection, in __constructor__() argument
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java207 @Nullable TransportConnection transportConnection, in TransportMock() argument
210 this.mTransportConnection = transportConnection; in TransportMock()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java216 TransportConnection transportConnection, in start() argument
234 transportConnection, in start()
311 TransportConnection transportConnection, in KeyValueBackupTask() argument
324 mTransportConnection = transportConnection; in KeyValueBackupTask()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java361 TransportConnection transportConnection = transportMock.mTransportConnection; in testRun_whenTransportThrowsDeadObjectException() local
367 verify(mTransportManager).disposeOfTransportClient(eq(transportConnection), any()); in testRun_whenTransportThrowsDeadObjectException()