Lines Matching refs:dex_path
289 static bool get_secondary_dex_location(const std::string& dex_path, in get_secondary_dex_location() argument
291 size_t dirIndex = dex_path.rfind('/'); in get_secondary_dex_location()
295 if (dirIndex == dex_path.size() - 1) { in get_secondary_dex_location()
298 *out_dir_name = dex_path.substr(0, dirIndex); in get_secondary_dex_location()
299 *out_file_name = dex_path.substr(dirIndex + 1); in get_secondary_dex_location()
881 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, in validate_secondary_dex_path() argument
886 if (dex_path.empty()) { return false; } in validate_secondary_dex_path()
888 if (dex_path[0] != '/') { return false; } in validate_secondary_dex_path()
890 if (dex_path[dex_path.size() - 1] == '/') { return false; } in validate_secondary_dex_path()
892 if (dex_path.find("/.") != std::string::npos) { return false; } in validate_secondary_dex_path()
894 if (dex_path.size() > PKG_PATH_MAX) { return false; } in validate_secondary_dex_path()
903 if (strncmp(dex_path.c_str(), app_private_dir.c_str(), app_private_dir.size()) != 0) { in validate_secondary_dex_path()
908 if (strncmp(dex_path.c_str(), app_private_dir_symlink.c_str(), in validate_secondary_dex_path()