/frameworks/native/cmds/installd/tests/ |
H A D | installd_utils_test.cpp | 327 char pkgname[pkgnameSize + 1]; local 328 memset(pkgname, 'a', pkgnameSize); 329 pkgname[1] = '.'; 330 pkgname[pkgnameSize] = '\0'; 332 EXPECT_EQ(0, create_pkg_path(path, pkgname, "", 0)) 338 EXPECT_STREQ(pkgname, path + offset)
|
/frameworks/native/cmds/installd/ |
H A D | utils.cpp | 132 int create_pkg_path(char path[PKG_PATH_MAX], const char *pkgname, argument 134 if (!is_valid_package_name(pkgname)) { 139 std::string _tmp(create_data_user_ce_package_path(nullptr, userid, pkgname) + postfix); 358 const char* pkgname, 362 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1) 367 sprintf(path, "%s%s%s/%s", android_data_dir.path, PRIMARY_USER_PREFIX, pkgname, leaf); 779 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, argument 785 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str()) 787 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str()); 357 create_move_path(char path[PKG_PATH_MAX], const char* pkgname, const char* leaf, userid_t userid ATTRIBUTE_UNUSED) argument
|
H A D | InstalldNativeService.cpp | 348 const char* pkgname = packageName.c_str(); local 363 auto path = create_data_user_ce_package_path(uuid_, userId, pkgname); 394 auto path = create_data_user_de_package_path(uuid_, userId, pkgname); 416 create_primary_current_profile_package_dir_path(userId, pkgname); 421 const std::string profile_file = create_current_profile_path(userId, pkgname, 428 create_primary_reference_profile_package_dir_path(pkgname); 449 const char* pkgname = packageName.c_str(); local 456 auto ce_path = create_data_user_ce_package_path(uuid_, userId, pkgname); 457 auto de_path = create_data_user_de_package_path(uuid_, userId, pkgname); 509 const char* pkgname local 551 destroy_app_reference_profile(const std::string& pkgname) argument 557 destroy_app_current_profiles(const std::string& pkgname, userid_t userid) argument 589 const char* pkgname = packageName.c_str(); local 1410 const char* pkgname = packageNames[i].c_str(); local 1782 const char* pkgname = packageName.c_str(); local 1814 const char* pkgname = packageName ? packageName->c_str() : "*"; local 1876 const char* pkgname = packageName.c_str(); local [all...] |
H A D | dexopt.cpp | 122 static bool clear_current_profile(const std::string& pkgname, userid_t user, argument 124 return clear_profile(create_current_profile_path(user, pkgname, is_secondary_dex)); 128 bool clear_primary_reference_profile(const std::string& pkgname) { argument 129 return clear_reference_profile(pkgname, /*is_secondary_dex*/false); 133 bool clear_primary_current_profiles(const std::string& pkgname) { argument 138 success &= clear_current_profile(pkgname, user, /*is_secondary_dex*/false); 144 bool clear_primary_current_profile(const std::string& pkgname, userid_t user) { argument 145 return clear_current_profile(pkgname, user, /*is_secondary_dex*/false); 757 bool analyze_primary_profiles(uid_t uid, const std::string& pkgname) { argument 758 return analyze_profiles(uid, pkgname, /*is_secondary_de 796 dump_profiles(int32_t uid, const std::string& pkgname, const char* code_paths) argument 1135 maybe_open_reference_profile(const std::string& pkgname, const std::string& dex_path, bool profile_guided, bool is_public, int uid, bool is_secondary_dex) argument 1396 process_secondary_dex_dexopt(const char* original_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, std::string* dex_path_out) argument 1490 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* shared_libraries, const char* se_info) argument 1682 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 [all...] |