Lines Matching refs:dex_path
292 static bool get_secondary_dex_location(const std::string& dex_path, in get_secondary_dex_location() argument
294 size_t dirIndex = dex_path.rfind('/'); in get_secondary_dex_location()
298 if (dirIndex == dex_path.size() - 1) { in get_secondary_dex_location()
301 *out_dir_name = dex_path.substr(0, dirIndex); in get_secondary_dex_location()
302 *out_file_name = dex_path.substr(dirIndex + 1); in get_secondary_dex_location()
884 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, in validate_secondary_dex_path() argument
889 if (dex_path.empty()) { return false; } in validate_secondary_dex_path()
891 if (dex_path[0] != '/') { return false; } in validate_secondary_dex_path()
893 if (dex_path[dex_path.size() - 1] == '/') { return false; } in validate_secondary_dex_path()
895 if (dex_path.find("/.") != std::string::npos) { return false; } in validate_secondary_dex_path()
897 if (dex_path.size() > PKG_PATH_MAX) { return false; } in validate_secondary_dex_path()
906 if (strncmp(dex_path.c_str(), app_private_dir.c_str(), app_private_dir.size()) != 0) { in validate_secondary_dex_path()
911 if (strncmp(dex_path.c_str(), app_private_dir_symlink.c_str(), in validate_secondary_dex_path()