Home
last modified time | relevance | path

Searched refs:legacyFolder (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DMigrateSystemAppsSnapshotTaskTest.java130 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in testRun_migrate_userExists() local
131 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() local
144 copyTestFileTo(USER_A_SNAPSHOT_FILE, legacyFolder, "99.xml"); in testRun_migrate_userDoesNotExists()
153 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in testRun_migrate_invalidFileName() local
154 copyTestFileTo(USER_A_SNAPSHOT_FILE, legacyFolder, "random.xml"); in testRun_migrate_invalidFileName()
179 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in assertFilesAreMigrated() local
182 assertFalse(legacyFolder.exists()); in assertFilesAreMigrated()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DMigrateSystemAppsSnapshotTask.java59 File legacyFolder = SystemAppsSnapshot.getLegacyFolder(mContext); in migrateIfNecessary() local
60 if (!legacyFolder.exists()) { in migrateIfNecessary()
65 File[] files = legacyFolder.listFiles(); in migrateIfNecessary()
90 FileUtils.deleteContentsAndDir(legacyFolder); in migrateIfNecessary()