Home
last modified time | relevance | path

Searched refs:transportClient (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/backup/java/com/android/server/backup/params/
DRestoreParams.java28 public final TransportClient transportClient; field in RestoreParams
42 TransportClient transportClient, in createForSinglePackage() argument
49 transportClient, in createForSinglePackage()
64 TransportClient transportClient, in createForRestoreAtInstall() argument
73 transportClient, in createForRestoreAtInstall()
88 TransportClient transportClient, in createForRestoreAll() argument
94 transportClient, in createForRestoreAll()
109 TransportClient transportClient, in createForRestorePackages() argument
117 transportClient, in createForRestorePackages()
129 TransportClient transportClient, in RestoreParams() argument
[all …]
DClearParams.java25 public TransportClient transportClient; field in ClearParams
30 TransportClient transportClient, in ClearParams() argument
33 this.transportClient = transportClient; in ClearParams()
DBackupParams.java29 public TransportClient transportClient; field in BackupParams
39 public BackupParams(TransportClient transportClient, String dirName, in BackupParams() argument
43 this.transportClient = transportClient; in BackupParams()
DRestoreGetSetsParams.java28 public final TransportClient transportClient; field in RestoreGetSetsParams
37 transportClient = _transportClient; in RestoreGetSetsParams()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportClientManager.java96 TransportClient transportClient = in getTransportClient() local
105 mTransportClientsCallerMap.put(transportClient, caller); in getTransportClient()
110 formatMessage(null, caller, "Retrieving " + transportClient)); in getTransportClient()
111 return transportClient; in getTransportClient()
123 public void disposeOfTransportClient(TransportClient transportClient, String caller) { in disposeOfTransportClient() argument
124 transportClient.unbind(caller); in disposeOfTransportClient()
125 transportClient.markAsDisposed(); in disposeOfTransportClient()
130 formatMessage(null, caller, "Disposing of " + transportClient)); in disposeOfTransportClient()
131 mTransportClientsCallerMap.remove(transportClient); in disposeOfTransportClient()
139 for (TransportClient transportClient : mTransportClientsCallerMap.keySet()) { in dump()
[all …]
DTransportClient.java333 (requestedTransport, transportClient) ->
653 private TransportConnection(Context context, TransportClient transportClient) { in TransportConnection() argument
655 mTransportClientRef = new WeakReference<>(transportClient); in TransportConnection()
660 TransportClient transportClient = mTransportClientRef.get(); in onServiceConnected() local
661 if (transportClient == null) { in onServiceConnected()
665 transportClient.onServiceConnected(binder); in onServiceConnected()
670 TransportClient transportClient = mTransportClientRef.get(); in onServiceDisconnected() local
671 if (transportClient == null) { in onServiceDisconnected()
675 transportClient.onServiceDisconnected(); in onServiceDisconnected()
680 TransportClient transportClient = mTransportClientRef.get(); in onBindingDied() local
[all …]
DTransportConnectionListener.java36 @Nullable IBackupTransport transport, TransportClient transportClient); in onTransportConnectionResult() argument
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportClientManagerTest.java78 TransportClient transportClient = in testGetTransportClient() local
82 transportClient.connectAsync(mTransportConnectionListener, "caller"); in testGetTransportClient()
96 TransportClient transportClient = in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent() local
99 transportClient.connectAsync(mTransportConnectionListener, "caller"); in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
111 TransportClient transportClient = in testDisposeOfTransportClient() local
114 mTransportClientManager.disposeOfTransportClient(transportClient, "caller"); in testDisposeOfTransportClient()
116 verify(transportClient).unbind(any()); in testDisposeOfTransportClient()
117 verify(transportClient).markAsDisposed(); in testDisposeOfTransportClient()
DTransportClientTest.java353 TransportClient transportClient = spy(mTransportClient); in testConnect_callsThroughToConnectAsync() local
357 listener.onTransportConnectionResult(mTransportBinder, transportClient); in testConnect_callsThroughToConnectAsync()
360 .when(transportClient) in testConnect_callsThroughToConnectAsync()
364 runInWorkerThread(() -> transportClient.connect("caller")); in testConnect_callsThroughToConnectAsync()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java100 TransportClient transportClient = in getAvailableRestoreSets() local
103 if (transportClient == null) { in getAvailableRestoreSets()
119 transportManager.disposeOfTransportClient(transportClient, caller); in getAvailableRestoreSets()
124 new RestoreGetSetsParams(transportClient, this, observer, monitor, listener)); in getAvailableRestoreSets()
176 (transportClient, listener) -> in restoreAll()
178 transportClient, in restoreAll()
267 (transportClient, listener) -> in restorePackages()
269 transportClient, in restorePackages()
360 (transportClient, listener) -> in restorePackage()
362 transportClient, in restorePackage()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java116 TransportClient transportClient = in run() local
118 if (transportClient == null) { in run()
122 transportClientsToDisposeOf.add(transportClient); in run()
127 transportClient.getTransportComponent()); in run()
131 IBackupTransport transport = transportClient.connectOrThrow(callerLogString); in run()
173 for (TransportClient transportClient : transportClientsToDisposeOf) { in run()
174 mTransportManager.disposeOfTransportClient(transportClient, callerLogString); in run()
DBackupHandler.java106 TransportClient transportClient = in handleMessage() local
109 transportClient != null in handleMessage()
110 ? transportClient.connect(callerLogString) in handleMessage()
113 if (transportClient != null) { in handleMessage()
115 .disposeOfTransportClient(transportClient, callerLogString); in handleMessage()
159 .disposeOfTransportClient(transportClient, caller); in handleMessage()
162 transportClient, in handleMessage()
185 transportManager.disposeOfTransportClient(transportClient, callerLogString); in handleMessage()
246 params.transportClient, in handleMessage()
293 params.transportClient, in handleMessage()
[all …]
DPerformClearTask.java39 TransportClient transportClient, PackageInfo packageInfo, in PerformClearTask() argument
43 mTransportClient = transportClient; in PerformClearTask()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java94 .thenReturn(transportMock.transportClient); in setUpCurrentTransport()
96 .thenReturn(transportMock.transportClient); in setUpCurrentTransport()
126 .thenReturn(transportMock.transportClient); in setUpTransport()
128 .thenReturn(transportMock.transportClient); in setUpTransport()
201 @Nullable public final TransportClient transportClient; field in TransportTestUtils.TransportMock
206 @Nullable TransportClient transportClient, in TransportMock() argument
209 this.transportClient = transportClient; in TransportMock()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java288 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRun_withMultipleTransports()
306 .disposeOfTransportClient(eq(transportMocks.get(0).transportClient), any()); in testRun_whenOnlyOneTransportFails_disposesAllTransports()
308 .disposeOfTransportClient(eq(transportMocks.get(1).transportClient), any()); in testRun_whenOnlyOneTransportFails_disposesAllTransports()
331 TransportClient registeredTransportClient = transportMocks.get(1).transportClient; in testRun_whenOnlyOneTransportNotRegistered()
350 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRun_whenTransportNotAvailable()
359 TransportClient transportClient = transportMock.transportClient; in testRun_whenTransportThrowsDeadObjectException() local
365 verify(mTransportManager).disposeOfTransportClient(eq(transportClient), any()); in testRun_whenTransportThrowsDeadObjectException()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java118 @Nullable TransportClient transportClient, in appIsRunningAndEligibleForBackupWithTransport()
131 if (transportClient != null) { in appIsRunningAndEligibleForBackupWithTransport()
134 transportClient.connectOrThrow( in appIsRunningAndEligibleForBackupWithTransport()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java436 TransportClient transportClient = in testGetTransportClient_forRegisteredTransport() local
439 assertThat(transportClient.getTransportComponent()) in testGetTransportClient_forRegisteredTransport()
456 TransportClient transportClient = in testGetTransportClient_forOldNameOfTransportThatChangedName_returnsNull() local
459 assertThat(transportClient).isNull(); in testGetTransportClient_forOldNameOfTransportThatChangedName_returnsNull()
474 TransportClient transportClient = transportManager.getTransportClient("newName", "caller"); in testGetTransportClient_forNewNameOfTransportThatChangedName() local
476 assertThat(transportClient.getTransportComponent()) in testGetTransportClient_forNewNameOfTransportThatChangedName()
485 TransportClient transportClient = transportManager.getCurrentTransportClient("caller"); in testGetCurrentTransportClient() local
487 assertThat(transportClient.getTransportComponent()) in testGetCurrentTransportClient()
665 .thenReturn(transportMock.transportClient); in setUpTransports()
668 .thenReturn(transportMock.transportClient); in setUpTransports()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java111 TransportClient transportClient = transportManager.getCurrentTransportClient(caller); in newWithCurrentTransport() local
114 transportManager.disposeOfTransportClient(transportClient, listenerCaller); in newWithCurrentTransport()
117 transportClient, in newWithCurrentTransport()
155 TransportClient transportClient, in PerformFullTransportBackupTask() argument
163 mTransportClient = transportClient; in PerformFullTransportBackupTask()
696 TransportClient transportClient, in SinglePackageBackupPreflight() argument
700 mTransportClient = transportClient; in SinglePackageBackupPreflight()
810 TransportClient transportClient, long quota, int currentOpToken, int transportFlags) in SinglePackageBackupRunner() argument
817 transportClient, quota, mEphemeralToken, transportFlags); in SinglePackageBackupRunner()
/frameworks/base/services/backup/java/com/android/server/backup/
DTransportManager.java497 public void disposeOfTransportClient(TransportClient transportClient, String caller) { in disposeOfTransportClient() argument
498 mTransportClientManager.disposeOfTransportClient(transportClient, caller); in disposeOfTransportClient()
639 TransportClient transportClient = in registerTransport() local
644 transport = transportClient.connectOrThrow(callerLogString); in registerTransport()
647 mTransportClientManager.disposeOfTransportClient(transportClient, callerLogString); in registerTransport()
665 mTransportClientManager.disposeOfTransportClient(transportClient, callerLogString); in registerTransport()
DUserBackupManagerService.java1641 final TransportClient transportClient; in requestBackup() local
1647 transportClient = in requestBackup()
1658 caller -> mTransportManager.disposeOfTransportClient(transportClient, caller); in requestBackup()
1696 msg.obj = new BackupParams(transportClient, transportDirName, kvBackupList, fullBackupList, in requestBackup()
2435 TransportClient transportClient = in clearBackupData() local
2438 if (transportClient == null) { in clearBackupData()
2448 mTransportManager.disposeOfTransportClient(transportClient, caller); in clearBackupData()
2452 new ClearParams(transportClient, info, listener)); in clearBackupData()
3087 TransportClient transportClient = in updateStateForTransport() local
3089 if (transportClient != null) { in updateStateForTransport()
[all …]
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowKeyValueBackupTask.java58 TransportClient transportClient, in __constructor__() argument
DShadowAppBackupUtils.java57 @Nullable TransportClient transportClient, in appIsRunningAndEligibleForBackupWithTransport()
DShadowPerformUnifiedRestoreTask.java59 TransportClient transportClient, in __constructor__() argument
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java202 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testGetAvailableRestoreSets()
235 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testGetAvailableRestoreSets_forNullRestoreSets()
253 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRestoreAll()
341 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRestorePackages_for2Packages()
463 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRestorePackage_whenCallerIsPackage()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java204 TransportClient transportClient, in start() argument
219 transportClient, in start()
293 TransportClient transportClient, in KeyValueBackupTask() argument
305 mTransportClient = transportClient; in KeyValueBackupTask()

12