Home
last modified time | relevance | path

Searched refs:mBackupDataOutput (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java98 @Mock private BackupDataOutput mBackupDataOutput; field in BatteryBackupHelperTest
138 mBatteryBackupHelper.performBackup(null, mBackupDataOutput, null); in performBackup_emptyPowerList_backupPowerList()
140 verify(mBackupDataOutput, atLeastOnce()).writeEntityHeader(anyString(), anyInt()); in performBackup_emptyPowerList_backupPowerList()
146 mBatteryBackupHelper.performBackup(null, mBackupDataOutput, null); in performBackup_remoteException_notBackupPowerList()
148 verify(mBackupDataOutput, never()).writeEntityHeader(anyString(), anyInt()); in performBackup_remoteException_notBackupPowerList()
157 mBatteryBackupHelper.performBackup(null, mBackupDataOutput, null); in performBackup_nonOwner_ignoreAllBackupAction()
159 verify(mBackupDataOutput, never()).writeEntityHeader(anyString(), anyInt()); in performBackup_nonOwner_ignoreAllBackupAction()
172 mBatteryBackupHelper.backupOptimizationMode(mBackupDataOutput, null); in backupOptimizationMode_nullInstalledApps_ignoreBackupOptimization()
174 verify(mBackupDataOutput, never()).writeEntityHeader(anyString(), anyInt()); in backupOptimizationMode_nullInstalledApps_ignoreBackupOptimization()
182 mBatteryBackupHelper.backupOptimizationMode(mBackupDataOutput, allowlistedApps); in backupOptimizationMode_backupOptimizationMode()
[all …]
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
DCallLogBackupAgentTest.java74 @Mock BackupDataOutput mBackupDataOutput; field in CallLogBackupAgentTest
260 mCallLogBackupAgent.runBackup(state, mBackupDataOutput, calls); in testRunBackup_NoCalls()
266 Mockito.verifyNoMoreInteractions(mBackupDataOutput); in testRunBackup_NoCalls()
277 when(mBackupDataOutput.writeEntityData(any(byte[].class), anyInt())) in testRunBackup_OneNewCall_ErrorAddingCall()
279 mCallLogBackupAgent.runBackup(state, mBackupDataOutput, calls); in testRunBackup_OneNewCall_ErrorAddingCall()
307 mCallLogBackupAgent.runBackup(state, mBackupDataOutput, calls); in testRunBackup_OneNewCall()
313 verify(mBackupDataOutput).writeEntityHeader(eq("101"), Matchers.anyInt()); in testRunBackup_OneNewCall()
314 verify(mBackupDataOutput).writeEntityData((byte[]) Matchers.any(), Matchers.anyInt()); in testRunBackup_OneNewCall()
396 mCallLogBackupAgent.runBackup(state, mBackupDataOutput, calls); in testRunBackup_MultipleCall()
402 InOrder inOrder = Mockito.inOrder(mBackupDataOutput); in testRunBackup_MultipleCall()
[all …]
/packages/modules/HealthFitness/backuprestore/tests/src/com/android/health/connect/backuprestore/
DHealthConnectBackupAgentTest.java73 @Mock private BackupDataOutput mBackupDataOutput; field in HealthConnectBackupAgentTest