Searched refs:PKG_PATH_MAX (Results 1 – 8 of 8) sorted by relevance
/frameworks/native/cmds/installd/ |
D | installd_deps.h | 40 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],
|
D | utils.h | 68 int create_pkg_path(char path[PKG_PATH_MAX], 99 int create_user_config_path(char path[PKG_PATH_MAX], userid_t userid); 101 int create_move_path(char path[PKG_PATH_MAX],
|
D | installd.cpp | 64 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()
|
D | otapreopt.cpp | 735 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, in calculate_oat_file_path() argument 759 PKG_PATH_MAX, in calculate_oat_file_path() 774 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument 796 if (new_path.length() >= PKG_PATH_MAX) { in calculate_odex_file_path() 804 bool create_cache_path(char path[PKG_PATH_MAX], in create_cache_path() argument 814 if (srclen > PKG_PATH_MAX) { // XXX: PKG_NAME_MAX? in create_cache_path() 828 if (assembled_path.length() + 1 > PKG_PATH_MAX) { in create_cache_path()
|
D | commands.cpp | 612 char dex_path[PKG_PATH_MAX]; in rm_dex() 872 char zip_location_arg[strlen("--zip-location=") + PKG_PATH_MAX]; in run_dex2oat() 874 char oat_location_arg[strlen("--oat-location=") + PKG_PATH_MAX]; in run_dex2oat() 1454 if (strlen(file_name) + strlen(extension) + 1 > PKG_PATH_MAX) { in add_extension_to_file_name() 1493 if (strlen(apk_path) >= (PKG_PATH_MAX - 8)) { in create_oat_out_path() 1652 char out_path[PKG_PATH_MAX]; in dexopt() 1658 char in_odex_path[PKG_PATH_MAX]; in dexopt() 1706 char swap_file_name[PKG_PATH_MAX]; in dexopt() 1830 char boot_marker_path[PKG_PATH_MAX]; in mark_boot_complete() 2079 char oat_instr_dir[PKG_PATH_MAX]; in create_oat_dir() [all …]
|
D | installd_constants.h | 35 constexpr size_t PKG_PATH_MAX = 256u; /* max size of any path we use */ variable
|
D | utils.cpp | 136 int create_pkg_path(char path[PKG_PATH_MAX], const char *pkgname, in create_pkg_path() argument 145 if (strlen(tmp) >= PKG_PATH_MAX) { in create_pkg_path() 251 int create_move_path(char path[PKG_PATH_MAX], in create_move_path() argument 257 >= PKG_PATH_MAX) { in create_move_path()
|
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 314 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()
|