Home
last modified time | relevance | path

Searched refs:mTransportConnection (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportConnectionTest.java91 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/
DPerformClearTask.java34 private final TransportConnection mTransportConnection; field in PerformClearTask
43 mTransportConnection = transportConnection; in PerformClearTask()
55 mTransportConnection.getTransportComponent()); in run()
60 transport = mTransportConnection.connectOrThrow(callerLogString); in run()
DBackupHandler.java314 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/
DUserBackupManagerServiceTest.java94 @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/
DClearParams.java25 public TransportConnection mTransportConnection; field in ClearParams
33 this.mTransportConnection = transportConnection; in ClearParams()
DRestoreGetSetsParams.java27 public final TransportConnection mTransportConnection; field in RestoreGetSetsParams
36 mTransportConnection = _transportConnection; in RestoreGetSetsParams()
DBackupParams.java30 public TransportConnection mTransportConnection; field in BackupParams
45 this.mTransportConnection = transportConnection; in BackupParams()
DRestoreParams.java29 public final TransportConnection mTransportConnection; field in RestoreParams
149 this.mTransportConnection = transportConnection; in RestoreParams()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java94 .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/
DKeyValueBackupTask.java253 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/
DPerformInitializeTaskTest.java288 .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/
DPerformFullTransportBackupTask.java160 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/
DPerformUnifiedRestoreTask.java98 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/
DPerformUnifiedRestoreTaskTest.java93 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/
DActiveRestoreSessionTest.java210 .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/
DUserBackupManagerServiceTest.java248 .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()
DTransportManagerTest.java781 .thenReturn(transportMock.mTransportConnection); in setUpTransports()
784 .thenReturn(transportMock.mTransportConnection); in setUpTransports()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java2710 transportMock.mTransportConnection, in createKeyValueBackupTask()