Searched refs:legacyFolder (Results 1 – 2 of 2) sorted by relevance
130 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in testRun_migrate_userExists() local131 copyTestFileTo(USER_A_SNAPSHOT_FILE, legacyFolder, "10.xml"); in testRun_migrate_userExists()132 copyTestFileTo(USER_B_SNAPSHOT_FILE, legacyFolder, "11.xml"); in testRun_migrate_userExists()143 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in testRun_migrate_userDoesNotExists() local144 copyTestFileTo(USER_A_SNAPSHOT_FILE, legacyFolder, "99.xml"); in testRun_migrate_userDoesNotExists()153 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in testRun_migrate_invalidFileName() local154 copyTestFileTo(USER_A_SNAPSHOT_FILE, legacyFolder, "random.xml"); in testRun_migrate_invalidFileName()179 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in assertFilesAreMigrated() local182 assertFalse(legacyFolder.exists()); in assertFilesAreMigrated()
59 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in migrateIfNecessary() local60 if (!legacyFolder.exists()) { in migrateIfNecessary()65 File[] files = legacyFolder.listFiles(); in migrateIfNecessary()90 FileUtils.deleteContentsAndDir(legacyFolder); in migrateIfNecessary()