Searched refs:android_system_dirs (Results 1 - 5 of 5) sorted by relevance

/frameworks/native/cmds/installd/
H A Dinstalld.c296 for (i = 0; i < android_system_dirs.count; i++) {
297 if (android_system_dirs.dirs[i].path != NULL) {
298 free(android_system_dirs.dirs[i].path);
302 free(android_system_dirs.dirs);
337 android_system_dirs.count = 4;
339 android_system_dirs.dirs = calloc(android_system_dirs.count, sizeof(dir_rec_t));
340 if (android_system_dirs.dirs == NULL) {
351 android_system_dirs.dirs[0].path = build_string2(android_root_dir.path, APP_SUBDIR);
352 android_system_dirs
[all...]
H A Dinstalld.h104 extern dir_rec_array_t android_system_dirs;
H A Dutils.c942 for (i = 0; i < android_system_dirs.count; i++) {
943 const size_t dir_len = android_system_dirs.dirs[i].len;
944 if (!strncmp(path, android_system_dirs.dirs[i].path, dir_len)) {
945 return validate_path(android_system_dirs.dirs + i, path);
H A Dcommands.c32 dir_rec_array_t android_system_dirs; variable
/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp64 android_system_dirs.count = 2;
66 android_system_dirs.dirs = (dir_rec_t*) calloc(android_system_dirs.count, sizeof(dir_rec_t));
67 android_system_dirs.dirs[0].path = TEST_SYSTEM_DIR1;
68 android_system_dirs.dirs[0].len = strlen(TEST_SYSTEM_DIR1);
70 android_system_dirs.dirs[1].path = TEST_SYSTEM_DIR2;
71 android_system_dirs.dirs[1].len = strlen(TEST_SYSTEM_DIR2);
75 free(android_system_dirs.dirs);

Completed in 61 milliseconds