Home
last modified time | relevance | path

Searched refs:delete_dir_contents (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/cmds/installd/
Dinstalld.cpp153 delete_dir_contents(keychain_added_dir, 1, nullptr); in initialize_directories()
156 delete_dir_contents(keychain_removed_dir, 1, nullptr); in initialize_directories()
Dutils.h130 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false);
140 int delete_dir_contents(const char *pathname,
DInstalldNativeService.cpp1204 if (delete_dir_contents(path) != 0) { in clearAppData()
1222 if (delete_dir_contents(path) != 0) { in clearAppData()
1249 if (delete_dir_contents(path, true) != 0) { in clearAppData()
1257 if (delete_dir_contents(path, true) != 0) { in clearAppData()
1261 if (delete_dir_contents(path, true) != 0) { in clearAppData()
1302 if (delete_dir_contents(filepath, true) != 0) { in clearSdkSandboxDataPackageDirectory()
1607 if (delete_dir_contents(to.c_str(), 1, nullptr) != 0) { in snapshotAppData()
1615 if (delete_dir_contents(to.c_str(), 1, nullptr) != 0) { in snapshotAppData()
1635 rc = delete_dir_contents(rollback_package_path, true /* ignore_if_missing */); in snapshotAppData()
1689 rc = delete_dir_contents(rollback_package_path, true /* ignore_if_missing */); in snapshotAppData()
[all …]
Dutils.cpp649 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() function
650 return delete_dir_contents(pathname.c_str(), 0, nullptr, ignore_if_missing); in delete_dir_contents()
654 return delete_dir_contents(pathname.c_str(), 1, nullptr, ignore_if_missing); in delete_dir_contents_and_dir()
657 int delete_dir_contents(const char *pathname, in delete_dir_contents() function
717 return delete_dir_contents(dir_to_delete, 1, exclusion_predicate, ignore_if_missing); in rename_delete_dir_contents()
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp707 ASSERT_EQ(0, delete_dir_contents(fake_package_ce_path, true)); in TearDown()
708 ASSERT_EQ(0, delete_dir_contents(fake_package_de_path, true)); in TearDown()