Home
last modified time | relevance | path

Searched refs:android_system_dirs (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/cmds/installd/
Dglobals.cpp44 dir_rec_array_t android_system_dirs; variable
53 for (i = 0; i < android_system_dirs.count; i++) { in free_globals()
54 if (android_system_dirs.dirs[i].path != NULL) { in free_globals()
55 free(android_system_dirs.dirs[i].path); in free_globals()
59 free(android_system_dirs.dirs); in free_globals()
109 android_system_dirs.count = 4; in init_globals_from_data_and_root()
111 android_system_dirs.dirs = (dir_rec_t*) calloc(android_system_dirs.count, sizeof(dir_rec_t)); in init_globals_from_data_and_root()
112 if (android_system_dirs.dirs == NULL) { in init_globals_from_data_and_root()
122 android_system_dirs.dirs[0].path = build_string2(android_root_dir.path, APP_SUBDIR); in init_globals_from_data_and_root()
123 android_system_dirs.dirs[0].len = strlen(android_system_dirs.dirs[0].path); in init_globals_from_data_and_root()
[all …]
Dglobals.h48 extern dir_rec_array_t android_system_dirs;
Dutils.cpp990 for (i = 0; i < android_system_dirs.count; i++) { in validate_system_app_path()
991 const size_t dir_len = android_system_dirs.dirs[i].len; in validate_system_app_path()
992 if (!strncmp(path, android_system_dirs.dirs[i].path, dir_len)) { in validate_system_app_path()
993 return validate_path(android_system_dirs.dirs + i, path, 1); in validate_system_app_path()
/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp69 android_system_dirs.count = 2; in SetUp()
71android_system_dirs.dirs = (dir_rec_t*) calloc(android_system_dirs.count, sizeof(dir_rec_t)); in SetUp()
72 android_system_dirs.dirs[0].path = (char*) TEST_SYSTEM_DIR1; in SetUp()
73 android_system_dirs.dirs[0].len = strlen(TEST_SYSTEM_DIR1); in SetUp()
75 android_system_dirs.dirs[1].path = (char*) TEST_SYSTEM_DIR2; in SetUp()
76 android_system_dirs.dirs[1].len = strlen(TEST_SYSTEM_DIR2); in SetUp()
80 free(android_system_dirs.dirs); in TearDown()