Home
last modified time | relevance | path

Searched refs:PKG_PATH_MAX (Results 1 – 8 of 8) 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],
Dotapreopt.cpp505 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, in calculate_oat_file_path() argument
529 snprintf(path, PKG_PATH_MAX, "%s/%s/%s.odex.b", oat_dir, instruction_set, in calculate_oat_file_path()
540 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
542 if (StringPrintf("%soat/%s/odex.b", apk_path, instruction_set).length() + 1 > PKG_PATH_MAX) { in calculate_odex_file_path()
566 CHECK_LT(new_path.length(), PKG_PATH_MAX); in calculate_odex_file_path()
571 bool create_cache_path(char path[PKG_PATH_MAX], in create_cache_path() argument
581 if (srclen > PKG_PATH_MAX) { // XXX: PKG_NAME_MAX? in create_cache_path()
595 if (assembled_path.length() + 1 > PKG_PATH_MAX) { in create_cache_path()
Dutils.h65 int create_pkg_path(char path[PKG_PATH_MAX],
96 int create_user_config_path(char path[PKG_PATH_MAX], userid_t userid);
98 int create_move_path(char path[PKG_PATH_MAX],
Dinstalld.cpp64 bool calculate_oat_file_path(char path[PKG_PATH_MAX], in calculate_oat_file_path() argument
89 snprintf(path, PKG_PATH_MAX, "%s/%s/%s.odex", oat_dir, instruction_set, file_name); in calculate_oat_file_path()
99 bool calculate_odex_file_path(char path[PKG_PATH_MAX], in calculate_odex_file_path() argument
103 + strlen("/") + strlen("odex") + 1 > PKG_PATH_MAX) { in calculate_odex_file_path()
128 bool create_cache_path(char path[PKG_PATH_MAX], in create_cache_path() argument
138 if (srclen > PKG_PATH_MAX) { // XXX: PKG_NAME_MAX? in create_cache_path()
150 if (dstlen > PKG_PATH_MAX) { in create_cache_path()
Dcommands.cpp509 char dex_path[PKG_PATH_MAX]; in rm_dex()
764 char zip_location_arg[strlen("--zip-location=") + PKG_PATH_MAX]; in run_dex2oat()
766 char oat_location_arg[strlen("--oat-location=") + PKG_PATH_MAX]; in run_dex2oat()
1326 if (strlen(file_name) + strlen(extension) + 1 > PKG_PATH_MAX) { in add_extension_to_file_name()
1365 if (strlen(apk_path) >= (PKG_PATH_MAX - 8)) { in create_oat_out_path()
1397 char out_path[PKG_PATH_MAX]; in dexopt()
1398 char swap_file_name[PKG_PATH_MAX]; in dexopt()
1399 char image_path[PKG_PATH_MAX]; in dexopt()
1401 char in_odex_path[PKG_PATH_MAX]; in dexopt()
1598 char boot_marker_path[PKG_PATH_MAX]; in mark_boot_complete()
[all …]
Dinstalld_constants.h59 constexpr size_t PKG_PATH_MAX = 256u; /* max size of any path we use */ variable
Dutils.cpp131 int create_pkg_path(char path[PKG_PATH_MAX], const char *pkgname, in create_pkg_path() argument
140 if (strlen(tmp) >= PKG_PATH_MAX) { in create_pkg_path()
246 int create_move_path(char path[PKG_PATH_MAX], in create_move_path() argument
252 >= PKG_PATH_MAX) { in create_move_path()
/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp314 char path[PKG_PATH_MAX]; in TEST_F()
333 char path[PKG_PATH_MAX]; in TEST_F()
346 char path[PKG_PATH_MAX]; in TEST_F()
349 size_t postfixSize = PKG_PATH_MAX; in TEST_F()
359 char path[PKG_PATH_MAX]; in TEST_F()
372 char path[PKG_PATH_MAX]; in TEST_F()
385 char path[PKG_PATH_MAX]; in TEST_F()
395 char path[PKG_PATH_MAX]; in TEST_F()
402 char path[PKG_PATH_MAX]; in TEST_F()