Searched refs:createAndGetNonEmptyFile (Results 1 – 4 of 4) sorted by relevance
/packages/modules/HealthFitness/backuprestore/tests/src/com/android/health/connect/backuprestore/ |
D | HealthConnectBackupAgentTest.java | 88 createAndGetNonEmptyFile(mHealthConnectBackupAgent.getBackupDataDir(), "testFile1"); in testOnRestoreFinished_stagingAll_sendsAllDataForStaging() 89 createAndGetNonEmptyFile(mHealthConnectBackupAgent.getBackupDataDir(), "testFile2"); in testOnRestoreFinished_stagingAll_sendsAllDataForStaging() 110 createAndGetNonEmptyFile(mHealthConnectBackupAgent.getBackupDataDir(), "testFile1"); in testOnRestoreFinished_afterStagingSuccess_deletesLocalData() 129 createAndGetNonEmptyFile(mHealthConnectBackupAgent.getBackupDataDir(), "testFile1"); in testOnRestoreFinished_afterStagingFailure_deletesLocalData() 147 createAndGetNonEmptyFile(mBackupDataDirectory, "testFile1"); in testOnFullBackup_backsUpEverything() 148 createAndGetNonEmptyFile(mBackupDataDirectory, "testFile2"); in testOnFullBackup_backsUpEverything() 158 createAndGetNonEmptyFile(mBackupDataDirectory, "testFile1"); in testOnFullBackup_deviceToDeviceFlag_callsBackupFileNamesWithTrue() 159 createAndGetNonEmptyFile(mBackupDataDirectory, "testFile2"); in testOnFullBackup_deviceToDeviceFlag_callsBackupFileNamesWithTrue() 171 createAndGetNonEmptyFile(mBackupDataDirectory, "testFile1"); in testOnFullBackup_noDeviceToDeviceFlag_callsBackupFileNamesWithFalse() 172 createAndGetNonEmptyFile(mBackupDataDirectory, "testFile2"); in testOnFullBackup_noDeviceToDeviceFlag_callsBackupFileNamesWithFalse() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectServiceImplTest.java | 257 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withValidInput_allFilesStaged() 258 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withValidInput_allFilesStaged() 285 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged() 286 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged() 314 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenStagingProgress_doesStage() 315 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenStagingProgress_doesStage() 345 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenStagingDone_doesNotStage() 346 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenStagingDone_doesNotStage() 550 private static File createAndGetNonEmptyFile(File dir, String fileName) throws IOException { in createAndGetNonEmptyFile() method in HealthConnectServiceImplTest
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectManagerTest.java | 784 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withValidInput_noExceptionsReturned() 785 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withValidInput_noExceptionsReturned() 840 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenNotReadMode_errorIoReturned() 841 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenNotReadMode_errorIoReturned() 911 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned() 912 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned() 982 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withoutPermission_errorSecurityReturned() 983 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withoutPermission_errorSecurityReturned() 1258 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testGetHealthConnectDataState_afterStagingAndMerge_returnsStateIdle() 1259 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testGetHealthConnectDataState_afterStagingAndMerge_returnsStateIdle() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/backuprestore/ |
D | BackupRestoreTest.java | 193 File dbFileToBackup = createAndGetNonEmptyFile(mMockDataDirectory, DATABASE_NAME); in testGetAllBackupData_forDeviceToDevice_copiesAllData() 911 private static File createAndGetNonEmptyFile(File dir, String fileName) throws IOException { in createAndGetNonEmptyFile() method in BackupRestoreTest
|