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.h111 bool calculate_oat_file_path_default(char path[PKG_PATH_MAX], const char *oat_dir,
114 bool calculate_odex_file_path_default(char path[PKG_PATH_MAX], const char *apk_path,
117 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
Ddexopt.cpp331 char zip_location_arg[arraysize("--zip-location=") + PKG_PATH_MAX]; in run_dex2oat()
335 char oat_location_arg[arraysize("--oat-location=") + PKG_PATH_MAX]; in run_dex2oat()
346 size_t class_loader_context_size = arraysize("--class-loader-context=") + PKG_PATH_MAX; in run_dex2oat()
424 char base_dir[arraysize("--classpath-dir=") + PKG_PATH_MAX]; in run_dex2oat()
1152 if (dex_path.size() >= (PKG_PATH_MAX - 8)) { in validate_dex_path_size()
1413 char in_odex_path[PKG_PATH_MAX]; in open_vdex_files_for_dex2oat()
1527 char oat_path[PKG_PATH_MAX]; in maybe_open_oat_and_vdex_file()
1654 char oat_dir[PKG_PATH_MAX]; in prepare_secondary_dex_oat_dir()
1655 snprintf(oat_dir, PKG_PATH_MAX, "%s/oat", dex_dir.c_str()); in prepare_secondary_dex_oat_dir()
1786 snprintf(out_oat_dir, PKG_PATH_MAX, "%s/oat", apk_dir.c_str()); in create_secondary_dex_oat_layout()
[all …]
Dotapreopt.cpp774 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, in calculate_oat_file_path() argument
798 PKG_PATH_MAX, in calculate_oat_file_path()
813 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
835 if (new_path.length() >= PKG_PATH_MAX) { in calculate_odex_file_path()
843 bool create_cache_path(char path[PKG_PATH_MAX], in create_cache_path() argument
853 if (srclen > PKG_PATH_MAX) { // XXX: PKG_NAME_MAX? in create_cache_path()
867 if (assembled_path.length() + 1 > PKG_PATH_MAX) { in create_cache_path()
Dinstalld_constants.h34 constexpr size_t PKG_PATH_MAX = 1024u; /* max size of any path we use */ variable
Dutils.h100 int create_user_config_path(char path[PKG_PATH_MAX], userid_t userid);
DInstalldNativeService.cpp1183 char dex_path[PKG_PATH_MAX]; in rmdex()
1988 char boot_marker_path[PKG_PATH_MAX]; in markBootComplete()
2322 char oat_instr_dir[PKG_PATH_MAX]; in createOatDir()
2333 snprintf(oat_instr_dir, PKG_PATH_MAX, "%s/%s", oat_dir, instruction_set); in createOatDir()
2364 char from_path[PKG_PATH_MAX]; in linkFile()
2365 char to_path[PKG_PATH_MAX]; in linkFile()
2366 snprintf(from_path, PKG_PATH_MAX, "%s/%s", from_base, relative_path); in linkFile()
2367 snprintf(to_path, PKG_PATH_MAX, "%s/%s", to_base, relative_path); in linkFile()
Dutils.cpp828 if (dex_path.size() > PKG_PATH_MAX) { return false; } in validate_secondary_dex_path()
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp46 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
51 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
56 bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *instruction_set) { in create_cache_path() argument
220 char buf[PKG_PATH_MAX]; in TEST_F()
230 char buf[PKG_PATH_MAX]; in TEST_F()
237 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.cpp69 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
74 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
79 bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *instruction_set) { in create_cache_path() argument
Dinstalld_utils_test.cpp60 for (size_t i = seed.size(); i < PKG_PATH_MAX; i++) { in create_too_long_path()