Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Dglobals.cpp60 dir_rec_array_t android_system_dirs; variable
69 for (i = 0; i < android_system_dirs.count; i++) { in free_globals()
70 if (android_system_dirs.dirs[i].path != NULL) { in free_globals()
71 free(android_system_dirs.dirs[i].path); in free_globals()
75 free(android_system_dirs.dirs); in free_globals()
125 android_system_dirs.count = 4; in init_globals_from_data_and_root()
127 android_system_dirs.dirs = (dir_rec_t*) calloc(android_system_dirs.count, sizeof(dir_rec_t)); in init_globals_from_data_and_root()
128 if (android_system_dirs.dirs == NULL) { in init_globals_from_data_and_root()
138 android_system_dirs.dirs[0].path = build_string2(android_root_dir.path, APP_SUBDIR); in init_globals_from_data_and_root()
139 android_system_dirs.dirs[0].len = strlen(android_system_dirs.dirs[0].path); in init_globals_from_data_and_root()
[all …]
Dglobals.h53 extern dir_rec_array_t android_system_dirs;
Dutils.cpp1080 for (i = 0; i < android_system_dirs.count; i++) { in validate_system_app_path()
1081 const size_t dir_len = android_system_dirs.dirs[i].len; in validate_system_app_path()
1082 if (!strncmp(path, android_system_dirs.dirs[i].path, dir_len)) { in validate_system_app_path()
1083 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()