Home
last modified time | relevance | path

Searched refs:PKG_PATH_MAX (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/cmds/installd/
Dinstalld_deps.h40 extern bool calculate_oat_file_path(char path[PKG_PATH_MAX],
51 extern bool calculate_odex_file_path(char path[PKG_PATH_MAX],
56 extern bool create_cache_path(char path[PKG_PATH_MAX],
Ddexopt.h124 bool calculate_oat_file_path_default(char path[PKG_PATH_MAX], const char *oat_dir,
127 bool calculate_odex_file_path_default(char path[PKG_PATH_MAX], const char *apk_path,
130 bool create_cache_path_default(char path[PKG_PATH_MAX], const char *src,
Dinstalld.cpp54 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
59 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
64 bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *instruction_set) { in create_cache_path() argument
Dotapreopt.cpp608 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, in calculate_oat_file_path() argument
632 PKG_PATH_MAX, in calculate_oat_file_path()
647 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
669 if (new_path.length() >= PKG_PATH_MAX) { in calculate_odex_file_path()
677 bool create_cache_path(char path[PKG_PATH_MAX], in create_cache_path() argument
687 if (srclen > PKG_PATH_MAX) { // XXX: PKG_NAME_MAX? in create_cache_path()
701 if (assembled_path.length() + 1 > PKG_PATH_MAX) { in create_cache_path()
Ddexopt.cpp1189 if (dex_path.size() >= (PKG_PATH_MAX - 8)) { in validate_dex_path_size()
1443 char in_odex_path[PKG_PATH_MAX]; in open_vdex_files_for_dex2oat()
1557 char oat_path[PKG_PATH_MAX]; in maybe_open_oat_and_vdex_file()
1696 char oat_dir[PKG_PATH_MAX]; in prepare_secondary_dex_oat_dir()
1697 snprintf(oat_dir, PKG_PATH_MAX, "%s/oat", dex_dir.c_str()); in prepare_secondary_dex_oat_dir()
1825 snprintf(out_oat_dir, PKG_PATH_MAX, "%s/oat", apk_dir.c_str()); in create_secondary_dex_oat_layout()
1826 snprintf(out_oat_isa_dir, PKG_PATH_MAX, "%s/%s", out_oat_dir, isa.c_str()); in create_secondary_dex_oat_layout()
1964 char oat_path[PKG_PATH_MAX]; in process_secondary_dex_dexopt()
1965 char oat_dir[PKG_PATH_MAX]; in process_secondary_dex_dexopt()
1966 char oat_isa_dir[PKG_PATH_MAX]; in process_secondary_dex_dexopt()
[all …]
Dinstalld_constants.h34 constexpr size_t PKG_PATH_MAX = 1024u; /* max size of any path we use */ variable
Dutils.h110 int create_user_config_path(char path[PKG_PATH_MAX], userid_t userid);
DInstalldNativeService.cpp1502 char dex_path[PKG_PATH_MAX]; in rmdex()
2666 char oat_instr_dir[PKG_PATH_MAX]; in createOatDir()
2677 snprintf(oat_instr_dir, PKG_PATH_MAX, "%s/%s", oat_dir, instruction_set); in createOatDir()
2708 char from_path[PKG_PATH_MAX]; in linkFile()
2709 char to_path[PKG_PATH_MAX]; in linkFile()
2710 snprintf(from_path, PKG_PATH_MAX, "%s/%s", from_base, relative_path); in linkFile()
2711 snprintf(to_path, PKG_PATH_MAX, "%s/%s", to_base, relative_path); in linkFile()
Dutils.cpp897 if (dex_path.size() > PKG_PATH_MAX) { return false; } in validate_secondary_dex_path()
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp54 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
59 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
64 bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *instruction_set) { in create_cache_path() argument
228 char buf[PKG_PATH_MAX]; in TEST_F()
238 char buf[PKG_PATH_MAX]; in TEST_F()
245 char buf[PKG_PATH_MAX]; in TEST_F()
Dinstalld_cache_test.cpp50 bool calculate_oat_file_path(char path[PKG_PATH_MAX] ATTRIBUTE_UNUSED, in calculate_oat_file_path()
57 bool calculate_odex_file_path(char path[PKG_PATH_MAX] ATTRIBUTE_UNUSED, in calculate_odex_file_path()
63 bool create_cache_path(char path[PKG_PATH_MAX] ATTRIBUTE_UNUSED, in create_cache_path()
Dinstalld_dexopt_test.cpp73 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
78 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
83 bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *instruction_set) { in create_cache_path() argument
Dinstalld_utils_test.cpp62 for (size_t i = seed.size(); i < PKG_PATH_MAX; i++) { in create_too_long_path()