/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/ |
D | TransportConnectionTest.java | 91 private TransportConnection mTransportConnection; field in TransportConnectionTest 112 mTransportConnection = in setUp() 139 assertThat(mTransportConnection.getTransportComponent()).isEqualTo(mTransportComponent); in testGetTransportComponent_returnsTransportComponent() 144 mTransportConnection.connectAsync(mTransportConnectionListener, "caller"); in testConnectAsync_callsBindService() 156 mTransportConnection.connectAsync(mTransportConnectionListener, "caller"); in testConnectAsync_callsListenerWhenConnected() 164 eq(mTransportConnection)); in testConnectAsync_callsListenerWhenConnected() 169 mTransportConnection.connectAsync(mTransportConnectionListener, "caller1"); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected() 172 mTransportConnection.connectAsync(mTransportConnectionListener2, "caller2"); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected() 178 eq(mTransportConnection)); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected() 181 eq(mTransportConnection)); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformClearTask.java | 34 private final TransportConnection mTransportConnection; field in PerformClearTask 43 mTransportConnection = transportConnection; in PerformClearTask() 55 mTransportConnection.getTransportComponent()); in run() 60 transport = mTransportConnection.connectOrThrow(callerLogString); in run()
|
D | BackupHandler.java | 314 params.mTransportConnection, in handleMessage() 362 params.mTransportConnection, in handleMessage() 383 params.mTransportConnection.connectOrThrow(callerLogString); in handleMessage() 483 params.mTransportConnection, in handleMessage()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 94 @Mock TransportConnection mTransportConnection; field in UserBackupManagerServiceTest 192 mTransportConnection, /* transportDirName */ "", OnTaskFinishedListener.NOP); in getRequestBackupParams_appIsEligibleForFullBackup() 208 mTransportConnection, /* transportDirName */ "", OnTaskFinishedListener.NOP); in getRequestBackupParams_appIsEligibleForKeyValueBackup() 224 mTransportConnection, /* transportDirName */ "", OnTaskFinishedListener.NOP); in getRequestBackupParams_appIsNotEligibleForBackup() 234 when(mTransportConnection.connectOrThrow(any())).thenReturn(mBackupTransport); in testGetBackupDestinationFromTransport_returnsCloudByDefault() 237 int backupDestination = mService.getBackupDestinationFromTransport(mTransportConnection); in testGetBackupDestinationFromTransport_returnsCloudByDefault() 249 when(mTransportConnection.connectOrThrow(any())).thenReturn(mBackupTransport); in testGetBackupDestinationFromTransport_returnsDeviceTransferForD2dTransport() 253 int backupDestination = mService.getBackupDestinationFromTransport(mTransportConnection); in testGetBackupDestinationFromTransport_returnsDeviceTransferForD2dTransport() 292 .thenReturn(mTransportConnection); in testReportDelayedRestoreResult_sendsLogsToMonitor() 293 when(mTransportConnection.connectOrThrow(any())).thenReturn(mBackupTransport); in testReportDelayedRestoreResult_sendsLogsToMonitor()
|
/frameworks/base/services/backup/java/com/android/server/backup/params/ |
D | ClearParams.java | 25 public TransportConnection mTransportConnection; field in ClearParams 33 this.mTransportConnection = transportConnection; in ClearParams()
|
D | RestoreGetSetsParams.java | 27 public final TransportConnection mTransportConnection; field in RestoreGetSetsParams 36 mTransportConnection = _transportConnection; in RestoreGetSetsParams()
|
D | BackupParams.java | 30 public TransportConnection mTransportConnection; field in BackupParams 45 this.mTransportConnection = transportConnection; in BackupParams()
|
D | RestoreParams.java | 29 public final TransportConnection mTransportConnection; field in RestoreParams 149 this.mTransportConnection = transportConnection; in RestoreParams()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportTestUtils.java | 94 .thenReturn(transportMock.mTransportConnection); in setUpCurrentTransport() 96 .thenReturn(transportMock.mTransportConnection); in setUpCurrentTransport() 126 .thenReturn(transportMock.mTransportConnection); in setUpTransport() 128 .thenReturn(transportMock.mTransportConnection); in setUpTransport() 202 @Nullable public final TransportConnection mTransportConnection; field in TransportTestUtils.TransportMock 210 this.mTransportConnection = transportConnection; in TransportMock()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 253 private final TransportConnection mTransportConnection; field in KeyValueBackupTask 324 mTransportConnection = transportConnection; in KeyValueBackupTask() 427 mTransportConnection.connectOrThrow("KVBT.informTransportOfEmptyBackups()"); in informTransportOfUnchangedApps() 472 mTransportConnection, packageInfo.packageName); in isEligibleForNoDataCall() 617 BackupTransportClient transport = mTransportConnection.connectOrThrow( in startTask() 649 mTransportConnection, in createFullBackupTask() 778 BackupTransportClient transport = mTransportConnection.connectOrThrow( in finishTask() 851 mTransportConnection.connectOrThrow("KVBT.triggerTransportInitializationLocked"); in triggerTransportInitializationLocked() 934 BackupTransportClient transport = mTransportConnection.connectOrThrow( in extractAgentData() 1094 mTransportConnection.connectOrThrow("KVBT.transportPerformBackup()"); in transportPerformBackup() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 288 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testRun_withMultipleTransports() 306 .disposeOfTransportClient(eq(transportMocks.get(0).mTransportConnection), any()); in testRun_whenOnlyOneTransportFails_disposesAllTransports() 308 .disposeOfTransportClient(eq(transportMocks.get(1).mTransportConnection), any()); in testRun_whenOnlyOneTransportFails_disposesAllTransports() 332 registeredTransportConnection = transportMocks.get(1).mTransportConnection; in testRun_whenOnlyOneTransportNotRegistered() 352 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testRun_whenTransportNotAvailable() 361 TransportConnection transportConnection = transportMock.mTransportConnection; in testRun_whenTransportThrowsDeadObjectException()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 160 private final TransportConnection mTransportConnection; field in PerformFullTransportBackupTask 182 mTransportConnection = transportConnection; in PerformFullTransportBackupTask() 317 mTransportConnection.getConnectedTransport("PFTBT.handleCancel()"); in handleCancel() 369 BackupTransportClient transport = mTransportConnection.connect("PFTBT.run()"); in run() 429 mTransportConnection, quota, mBackupRunnerOpToken, in run() 731 final TransportConnection mTransportConnection; field in PerformFullTransportBackupTask.SinglePackageBackupPreflight 741 mTransportConnection = transportConnection; in SinglePackageBackupPreflight() 778 mTransportConnection.connectOrThrow("PFTBT$SPBP.preflightFullBackup()"); in preflightFullBackup()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 98 private final TransportConnection mTransportConnection; field in PerformUnifiedRestoreTask 192 mTransportConnection = transportConnection; in PerformUnifiedRestoreTask() 226 mTransportConnection = transportConnection; in PerformUnifiedRestoreTask() 424 mTransportConnection.getTransportComponent()); in startRestore() 435 mTransportConnection.connectOrThrow("PerformUnifiedRestoreTask.startRestore()"); in startRestore() 579 mTransportConnection.connectOrThrow( in dispatchNextRestore() 869 mTransportConnection.connectOrThrow( in initiateOneRestore() 1161 mTransportConnection.connectOrThrow(callerLogString); in run() 1281 mTransportConnection.connectOrThrow(callerLogString); in run() 1349 BackupTransportClient transport = mTransportConnection.connectOrThrow(callerLogString); in finalizeRestore()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTaskTest.java | 93 private TransportConnection mTransportConnection; field in PerformUnifiedRestoreTaskTest 138 mRestoreTask = new PerformUnifiedRestoreTask(mBackupManagerService, mTransportConnection, in setUp() 385 when(mTransportConnection.connectOrThrow(any())).thenReturn(transport); in setupForRestoreKeyValueState()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 210 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testGetAvailableRestoreSets() 244 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testGetAvailableRestoreSets_forNullRestoreSets() 262 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testRestoreAll() 350 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testRestorePackages_for2Packages() 472 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testRestorePackage_whenCallerIsPackage()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 248 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testIsAppEligibleForBackup_whenAppEligible() 287 .disposeOfTransportClient(eq(transportMock.mTransportConnection), any()); in testFilterAppsEligibleForBackup() 362 .disposeOfTransportClient(eq(mNewTransportMock.mTransportConnection), any()); in testSelectBackupTransport() 420 .disposeOfTransportClient(eq(mNewTransportMock.mTransportConnection), any()); in testSelectBackupTransportAsync()
|
D | TransportManagerTest.java | 781 .thenReturn(transportMock.mTransportConnection); in setUpTransports() 784 .thenReturn(transportMock.mTransportConnection); in setUpTransports()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 2710 transportMock.mTransportConnection, in createKeyValueBackupTask()
|