Lines Matching refs:android_system_dirs
256 for (i = 0; i < android_system_dirs.count; i++) {
257 if (android_system_dirs.dirs[i].path != NULL) {
258 free(android_system_dirs.dirs[i].path);
262 free(android_system_dirs.dirs);
297 android_system_dirs.count = 2;
299 android_system_dirs.dirs = calloc(android_system_dirs.count, sizeof(dir_rec_t));
300 if (android_system_dirs.dirs == NULL) {
306 if (get_path_from_env(&android_system_dirs.dirs[0], "ANDROID_ROOT") < 0) {
312 char *system_app_path = build_string2(android_system_dirs.dirs[0].path, APP_SUBDIR);
313 android_system_dirs.dirs[0].path = system_app_path;
314 android_system_dirs.dirs[0].len = strlen(system_app_path);
318 android_system_dirs.dirs[1].path = "/vendor/app/";
319 android_system_dirs.dirs[1].len = strlen(android_system_dirs.dirs[1].path);