Searched defs:dex_path (Results 1 - 5 of 5) sorted by relevance

/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp423 const std::string& dex_path, int uid, int storage_flag) {
424 EXPECT_TRUE(validate_secondary_dex_path(package_name, dex_path, /*volume_uuid*/ nullptr, uid,
426 << dex_path << " should be allowed as a valid secondary dex path";
430 const std::string& dex_path, int uid, int storage_flag) {
431 EXPECT_FALSE(validate_secondary_dex_path(package_name, dex_path, /*volume_uuid*/ nullptr, uid,
433 << dex_path << " should not be allowed as a valid secondary dex path";
422 pass_secondary_dex_validation(const std::string& package_name, const std::string& dex_path, int uid, int storage_flag) argument
429 fail_secondary_dex_validation(const std::string& package_name, const std::string& dex_path, int uid, int storage_flag) argument
H A Dinstalld_dexopt_test.cpp449 const std::string& dex_path,
452 std::string path = dex_path;
461 std::string::size_type name_end = dex_path.rfind('.');
462 std::string::size_type name_start = dex_path.rfind('/');
464 dex_path.substr(name_start + 1, name_end - name_start) + type;
448 GetPrimaryDexArtifact(const char* oat_dir, const std::string& dex_path, const std::string& type) argument
/frameworks/native/cmds/installd/
H A Dutils.cpp245 // Returns true on success, false on failure (if the dex_path does not have the expected
247 static bool get_secondary_dex_location(const std::string& dex_path, argument
249 size_t dirIndex = dex_path.rfind('/');
253 if (dirIndex == dex_path.size() - 1) {
256 *out_dir_name = dex_path.substr(0, dirIndex);
257 *out_file_name = dex_path.substr(dirIndex + 1);
815 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, argument
820 if (dex_path.empty()) { return false; }
822 if (dex_path[0] != '/') { return false; }
824 if (dex_path[dex_pat
[all...]
H A DInstalldNativeService.cpp1183 char dex_path[PKG_PATH_MAX]; local
1192 if (!create_cache_path(dex_path, path, instruction_set)) {
1196 ALOGV("unlink %s\n", dex_path);
1197 if (unlink(dex_path) < 0) {
1201 return error(StringPrintf("Failed to unlink %s", dex_path));
H A Ddexopt.cpp1151 static bool validate_dex_path_size(const std::string& dex_path) { argument
1152 if (dex_path.size() >= (PKG_PATH_MAX - 8)) {
1153 LOG(ERROR) << "dex_path too long: " << dex_path;
1363 const std::string& dex_path, const char* profile_name, bool profile_guided,
1386 location = dex_path;
1638 static bool prepare_secondary_dex_oat_dir(const std::string& dex_path, int uid, argument
1640 unsigned long dirIndex = dex_path.rfind('/');
1642 LOG(ERROR ) << "Unexpected dir structure for secondary dex " << dex_path;
1645 std::string dex_dir = dex_path
1362 maybe_open_reference_profile(const std::string& pkgname, const std::string& dex_path, const char* profile_name, bool profile_guided, bool is_public, int uid, bool is_secondary_dex) argument
1686 process_secondary_dexoptanalyzer_result(const std::string& dex_path, int result, int* dexopt_needed_out, std::string* error_msg) argument
1748 check_secondary_dex_access(const std::string& dex_path) argument
1775 create_secondary_dex_oat_layout(const std::string& dex_path, const std::string& isa, char* out_oat_dir, char* out_oat_isa_dir, char* out_oat_path, std::string* error_msg) argument
1824 process_secondary_dex_dexopt(const std::string& dex_path, const char* pkgname, int dexopt_flags, const char* volume_uuid, int uid, const char* instruction_set, const char* compiler_filter, bool* is_public_out, int* dexopt_needed_out, std::string* oat_dir_out, bool downgrade, const char* class_loader_context, std::string* error_msg) argument
1940 format_dexopt_error(int status, const char* dex_path) argument
1951 dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* instruction_set, int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter, const char* volume_uuid, const char* class_loader_context, const char* se_info, bool downgrade, int target_sdk_version, const char* profile_name, const char* dex_metadata_path, const char* compilation_reason, std::string* error_msg) argument
2165 reconcile_secondary_dex_file(const std::string& dex_path, const std::string& pkgname, int uid, const std::vector<std::string>& isas, const std::unique_ptr<std::string>& volume_uuid, int storage_flag, bool* out_secondary_dex_exists) argument
2288 hash_secondary_dex_file(const std::string& dex_path, const std::string& pkgname, int uid, const std::unique_ptr<std::string>& volume_uuid, int storage_flag, std::vector<uint8_t>* out_secondary_dex_hash) argument
[all...]

Completed in 213 milliseconds