Searched defs:pkgname (Results 1 - 4 of 4) sorted by relevance

/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp325 char pkgname[pkgnameSize + 1]; local
326 memset(pkgname, 'a', pkgnameSize);
327 pkgname[1] = '.';
328 pkgname[pkgnameSize] = '\0';
330 EXPECT_EQ(0, create_pkg_path(path, pkgname, "", 0))
336 EXPECT_STREQ(pkgname, path + offset)
/frameworks/native/cmds/installd/
H A Dutils.cpp132 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);
382 const char* pkgname,
386 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1)
391 sprintf(path, "%s%s%s/%s", android_data_dir.path, PRIMARY_USER_PREFIX, pkgname, leaf);
803 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, argument
823 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str())
825 volume_uuid, multiuser_get_user_id(uid), pkgname.c_str());
381 create_move_path(char path[PKG_PATH_MAX], const char* pkgname, const char* leaf, userid_t userid ATTRIBUTE_UNUSED) argument
H A DInstalldNativeService.cpp354 const char* pkgname = packageName.c_str(); local
369 auto path = create_data_user_ce_package_path(uuid_, userId, pkgname);
400 auto path = create_data_user_de_package_path(uuid_, userId, pkgname);
422 create_primary_current_profile_package_dir_path(userId, pkgname);
427 const std::string profile_file = create_current_profile_path(userId, pkgname,
434 create_primary_reference_profile_package_dir_path(pkgname);
455 const char* pkgname = packageName.c_str(); local
462 auto ce_path = create_data_user_ce_package_path(uuid_, userId, pkgname);
463 auto de_path = create_data_user_de_package_path(uuid_, userId, pkgname);
515 const char* pkgname local
557 destroy_app_reference_profile(const std::string& pkgname) argument
563 destroy_app_current_profiles(const std::string& pkgname, userid_t userid) argument
595 const char* pkgname = packageName.c_str(); local
1416 const char* pkgname = packageNames[i].c_str(); local
1802 const char* pkgname = packageName.c_str(); local
1844 const char* pkgname = packageName ? packageName->c_str() : "*"; local
1907 const char* pkgname = packageName.c_str(); local
[all...]
H A Ddexopt.cpp122 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);
761 bool analyze_primary_profiles(uid_t uid, const std::string& pkgname) { argument
762 return analyze_profiles(uid, pkgname, /*is_secondary_de
800 dump_profiles(int32_t uid, const std::string& pkgname, const char* code_paths) argument
1218 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
1482 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, bool downgrade) argument
1580 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) argument
1783 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...]

Completed in 68 milliseconds