Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/backup/java/com/android/server/backup/transport/
H A 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()
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()
155 String caller = mTransportClientsCallerMap.get(transportConnection); in dump()
156 pw.println(" " + transportConnection + " [" + caller + "]"); in dump()
[all …]
H A DTransportConnection.java666 TransportConnection transportConnection) { in TransportConnectionMonitor() argument
668 mTransportClientRef = new WeakReference<>(transportConnection); in TransportConnectionMonitor()
673 TransportConnection transportConnection = mTransportClientRef.get(); in onServiceConnected() local
674 if (transportConnection == null) { in onServiceConnected()
682 transportConnection.onServiceConnected(binder); in onServiceConnected()
687 TransportConnection transportConnection = mTransportClientRef.get(); in onServiceDisconnected() local
688 if (transportConnection == null) { in onServiceDisconnected()
692 transportConnection.onServiceDisconnected(); in onServiceDisconnected()
697 TransportConnection transportConnection = mTransportClientRef.get(); in onBindingDied() local
698 if (transportConnection == null) { in onBindingDied()
[all …]
H A DTransportConnectionListener.java36 TransportConnection transportConnection); in onTransportConnectionResult() argument
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/params/
H A 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()
H A DClearParams.java30 TransportConnection transportConnection, in ClearParams() argument
33 this.mTransportConnection = transportConnection; in ClearParams()
H A DBackupParams.java41 public BackupParams(TransportConnection transportConnection, String dirName, in BackupParams() argument
45 this.mTransportConnection = transportConnection; in BackupParams()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
H A 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()
H A DTransportConnectionTest.java360 TransportConnection transportConnection = spy(mTransportConnection); in testConnect_callsThroughToConnectAsync() local
365 transportConnection); in testConnect_callsThroughToConnectAsync()
368 .when(transportConnection) in testConnect_callsThroughToConnectAsync()
372 runInWorkerThread(() -> transportConnection.connect("caller")); in testConnect_callsThroughToConnectAsync()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/internal/
H A 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()
H A 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()
H A DPerformClearTask.java39 TransportConnection transportConnection, PackageInfo packageInfo, in PerformClearTask() argument
43 mTransportConnection = transportConnection; in PerformClearTask()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/restore/
H A DActiveRestoreSession.java106 TransportConnection transportConnection = in getAvailableRestoreSets() local
109 if (transportConnection == null) { in getAvailableRestoreSets()
125 transportManager.disposeOfTransportClient(transportConnection, caller); in getAvailableRestoreSets()
130 new RestoreGetSetsParams(transportConnection, this, observer, monitor, in getAvailableRestoreSets()
404 TransportConnection transportConnection = in sendRestoreToHandlerLocked() local
406 if (transportConnection == null) { in sendRestoreToHandlerLocked()
424 transportManager.disposeOfTransportClient(transportConnection, caller); in sendRestoreToHandlerLocked()
428 msg.obj = restoreParamsBuilder.apply(transportConnection, listener); in sendRestoreToHandlerLocked()
H A DPerformUnifiedRestoreTask.java175 TransportConnection transportConnection) { in PerformUnifiedRestoreTask() argument
179 mTransportConnection = transportConnection; in PerformUnifiedRestoreTask()
194 TransportConnection transportConnection, in PerformUnifiedRestoreTask() argument
212 mTransportConnection = transportConnection; in PerformUnifiedRestoreTask()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/
H A DUserBackupManagerService.java1883 transportConnection = in requestBackup()
2714 if (transportConnection == null) { in clearBackupData()
3092 if (transportConnection != null) { in reportDelayedRestoreResult()
3644 TransportConnection transportConnection = in updateStateForTransport() local
3646 if (transportConnection != null) { in updateStateForTransport()
3902 TransportConnection transportConnection = in restoreAtInstall() local
3904 if (transportConnection == null) { in restoreAtInstall()
3962 if (transportConnection != null) { in restoreAtInstall()
4034 if (transportConnection != null) { in beginRestoreSession()
4107 if (transportConnection != null) { in isAppEligibleForBackup()
[all …]
H A 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()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
H A 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()
734 TransportConnection transportConnection, in SinglePackageBackupPreflight() argument
738 mTransportConnection = transportConnection; in SinglePackageBackupPreflight()
848 TransportConnection transportConnection, long quota, int currentOpToken, in SinglePackageBackupRunner() argument
855 transportConnection, quota, mEphemeralToken, transportFlags); in SinglePackageBackupRunner()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/
H A 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()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DBackupEligibilityRules.java257 @Nullable TransportConnection transportConnection, in appIsRunningAndEligibleForBackupWithTransport()
268 if (transportConnection != null) { in appIsRunningAndEligibleForBackupWithTransport()
271 transportConnection.connectOrThrow( in appIsRunningAndEligibleForBackupWithTransport()
/aosp14/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
H A DShadowBackupEligibilityRules.java56 @Nullable TransportConnection transportConnection, in appIsRunningAndEligibleForBackupWithTransport()
H A DShadowKeyValueBackupTask.java61 TransportConnection transportConnection, in __constructor__() argument
H A DShadowPerformUnifiedRestoreTask.java62 TransportConnection transportConnection, in __constructor__() argument
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
H A DTransportTestUtils.java207 @Nullable TransportConnection transportConnection, in TransportMock() argument
210 this.mTransportConnection = transportConnection; in TransportMock()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
H A DKeyValueBackupTask.java216 TransportConnection transportConnection, in start() argument
234 transportConnection, in start()
311 TransportConnection transportConnection, in KeyValueBackupTask() argument
324 mTransportConnection = transportConnection; in KeyValueBackupTask()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
H A DPerformInitializeTaskTest.java361 TransportConnection transportConnection = transportMock.mTransportConnection; in testRun_whenTransportThrowsDeadObjectException() local
367 verify(mTransportManager).disposeOfTransportClient(eq(transportConnection), any()); in testRun_whenTransportThrowsDeadObjectException()