/frameworks/base/services/backup/java/com/android/server/backup/params/ |
D | RestoreParams.java | 28 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 …]
|
D | ClearParams.java | 25 public TransportClient transportClient; field in ClearParams 30 TransportClient transportClient, in ClearParams() argument 33 this.transportClient = transportClient; in ClearParams()
|
D | BackupParams.java | 29 public TransportClient transportClient; field in BackupParams 39 public BackupParams(TransportClient transportClient, String dirName, in BackupParams() argument 43 this.transportClient = transportClient; in BackupParams()
|
D | RestoreGetSetsParams.java | 28 public final TransportClient transportClient; field in RestoreGetSetsParams 37 transportClient = _transportClient; in RestoreGetSetsParams()
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportClientManager.java | 96 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 …]
|
D | TransportClient.java | 333 (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 …]
|
D | TransportConnectionListener.java | 36 @Nullable IBackupTransport transport, TransportClient transportClient); in onTransportConnectionResult() argument
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/ |
D | TransportClientManagerTest.java | 78 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()
|
D | TransportClientTest.java | 353 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/ |
D | ActiveRestoreSession.java | 99 TransportClient transportClient = in getAvailableRestoreSets() local 102 if (transportClient == null) { in getAvailableRestoreSets() 118 transportManager.disposeOfTransportClient(transportClient, caller); in getAvailableRestoreSets() 123 new RestoreGetSetsParams(transportClient, this, observer, monitor, listener)); in getAvailableRestoreSets() 175 (transportClient, listener) -> in restoreAll() 177 transportClient, in restoreAll() 266 (transportClient, listener) -> in restorePackages() 268 transportClient, in restorePackages() 359 (transportClient, listener) -> in restorePackage() 361 transportClient, in restorePackage() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformInitializeTask.java | 116 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()
|
D | BackupHandler.java | 134 TransportClient transportClient = in handleMessage() local 137 transportClient != null in handleMessage() 138 ? transportClient.connect(callerLogString) in handleMessage() 141 if (transportClient != null) { in handleMessage() 143 .disposeOfTransportClient(transportClient, callerLogString); in handleMessage() 187 .disposeOfTransportClient(transportClient, caller); in handleMessage() 190 transportClient, in handleMessage() 213 transportManager.disposeOfTransportClient(transportClient, callerLogString); in handleMessage() 274 params.transportClient, in handleMessage() 321 params.transportClient, in handleMessage() [all …]
|
D | PerformClearTask.java | 39 TransportClient transportClient, PackageInfo packageInfo, in PerformClearTask() argument 43 mTransportClient = transportClient; in PerformClearTask()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportTestUtils.java | 94 .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/ |
D | PerformInitializeTaskTest.java | 288 .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/robotests/backup/src/com/android/server/backup/ |
D | TransportManagerTest.java | 436 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/utils/ |
D | AppBackupUtils.java | 118 @Nullable TransportClient transportClient, in appIsRunningAndEligibleForBackupWithTransport() 131 if (transportClient != null) { in appIsRunningAndEligibleForBackupWithTransport() 134 transportClient.connectOrThrow( in appIsRunningAndEligibleForBackupWithTransport()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 111 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/ |
D | TransportManager.java | 497 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()
|
D | UserBackupManagerService.java | 1710 final TransportClient transportClient; in requestBackup() local 1716 transportClient = in requestBackup() 1727 caller -> mTransportManager.disposeOfTransportClient(transportClient, caller); in requestBackup() 1765 msg.obj = new BackupParams(transportClient, transportDirName, kvBackupList, fullBackupList, in requestBackup() 2504 TransportClient transportClient = in clearBackupData() local 2507 if (transportClient == null) { in clearBackupData() 2517 mTransportManager.disposeOfTransportClient(transportClient, caller); in clearBackupData() 2521 new ClearParams(transportClient, info, listener)); in clearBackupData() 3156 TransportClient transportClient = in updateStateForTransport() local 3158 if (transportClient != null) { in updateStateForTransport() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 203 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testGetAvailableRestoreSets() 236 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testGetAvailableRestoreSets_forNullRestoreSets() 254 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRestoreAll() 342 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRestorePackages_for2Packages() 464 .disposeOfTransportClient(eq(transportMock.transportClient), any()); in testRestorePackage_whenCallerIsPackage()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowKeyValueBackupTask.java | 58 TransportClient transportClient, in __constructor__() argument
|
D | ShadowAppBackupUtils.java | 57 @Nullable TransportClient transportClient, in appIsRunningAndEligibleForBackupWithTransport()
|
D | ShadowPerformUnifiedRestoreTask.java | 59 TransportClient transportClient, in __constructor__() argument
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 204 TransportClient transportClient, in start() argument 219 transportClient, in start() 293 TransportClient transportClient, in KeyValueBackupTask() argument 305 mTransportClient = transportClient; in KeyValueBackupTask()
|