Searched refs:dex_path (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 1103 static bool validate_dex_path_size(const std::string& dex_path) { in validate_dex_path_size() argument 1104 if (dex_path.size() >= (PKG_PATH_MAX - 8)) { in validate_dex_path_size() 1105 LOG(ERROR) << "dex_path too long: " << dex_path; in validate_dex_path_size() 1313 const std::string& dex_path, const char* profile_name, bool profile_guided, in maybe_open_reference_profile() argument 1336 location = dex_path; in maybe_open_reference_profile() 1600 static bool prepare_secondary_dex_oat_dir(const std::string& dex_path, int uid, in prepare_secondary_dex_oat_dir() argument 1602 unsigned long dirIndex = dex_path.rfind('/'); in prepare_secondary_dex_oat_dir() 1604 LOG(ERROR ) << "Unexpected dir structure for secondary dex " << dex_path; in prepare_secondary_dex_oat_dir() 1607 std::string dex_dir = dex_path.substr(0, dirIndex); in prepare_secondary_dex_oat_dir() 1612 LOG(ERROR) << "Could not prepare oat dir for secondary dex: " << dex_path; in prepare_secondary_dex_oat_dir() [all …]
|
D | utils.cpp | 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() [all …]
|
D | dexopt.h | 105 bool reconcile_secondary_dex_file(const std::string& dex_path, 110 bool hash_secondary_dex_file(const std::string& dex_path,
|
D | utils.h | 140 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path,
|
D | InstalldNativeService.cpp | 1409 char dex_path[PKG_PATH_MAX]; in rmdex() local 1418 if (!create_cache_path(dex_path, path, instruction_set)) { in rmdex() 1422 ALOGV("unlink %s\n", dex_path); in rmdex() 1423 if (unlink(dex_path) < 0) { in rmdex() 1427 return error(StringPrintf("Failed to unlink %s", dex_path)); in rmdex()
|
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 425 const std::string& dex_path, int uid, int storage_flag) { in pass_secondary_dex_validation() argument 426 EXPECT_TRUE(validate_secondary_dex_path(package_name, dex_path, /*volume_uuid*/ nullptr, uid, in pass_secondary_dex_validation() 428 << dex_path << " should be allowed as a valid secondary dex path"; in pass_secondary_dex_validation() 432 const std::string& dex_path, int uid, int storage_flag) { in fail_secondary_dex_validation() argument 433 EXPECT_FALSE(validate_secondary_dex_path(package_name, dex_path, /*volume_uuid*/ nullptr, uid, in fail_secondary_dex_validation() 435 << dex_path << " should not be allowed as a valid secondary dex path"; in fail_secondary_dex_validation()
|
D | installd_dexopt_test.cpp | 530 const std::string& dex_path, in GetPrimaryDexArtifact() argument 533 std::string path = dex_path; in GetPrimaryDexArtifact() 542 std::string::size_type name_end = dex_path.rfind('.'); in GetPrimaryDexArtifact() 543 std::string::size_type name_start = dex_path.rfind('/'); in GetPrimaryDexArtifact() 545 dex_path.substr(name_start + 1, name_end - name_start) + type; in GetPrimaryDexArtifact()
|