Lines Matching refs:dex_path
247 static bool get_secondary_dex_location(const std::string& dex_path, in get_secondary_dex_location() argument
249 size_t dirIndex = dex_path.rfind('/'); in get_secondary_dex_location()
253 if (dirIndex == dex_path.size() - 1) { in get_secondary_dex_location()
256 *out_dir_name = dex_path.substr(0, dirIndex); in get_secondary_dex_location()
257 *out_file_name = dex_path.substr(dirIndex + 1); in get_secondary_dex_location()
815 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, in validate_secondary_dex_path() argument
820 if (dex_path.empty()) { return false; } in validate_secondary_dex_path()
822 if (dex_path[0] != '/') { return false; } in validate_secondary_dex_path()
824 if (dex_path[dex_path.size() - 1] == '/') { return false; } in validate_secondary_dex_path()
826 if (dex_path.find("/.") != std::string::npos) { return false; } in validate_secondary_dex_path()
828 if (dex_path.size() > PKG_PATH_MAX) { return false; } in validate_secondary_dex_path()
837 if (strncmp(dex_path.c_str(), app_private_dir.c_str(), app_private_dir.size()) != 0) { in validate_secondary_dex_path()
842 if (strncmp(dex_path.c_str(), app_private_dir_symlink.c_str(), in validate_secondary_dex_path()