Home | History | Annotate | Download | only in installd

Lines Matching refs:DIR

97         DIR* dir = opendir(user_path.c_str());
98 if (dir == nullptr) {
104 while ((ent = readdir(dir))) {
113 closedir(dir);
118 closedir(dir);
179 /* /data/data is dir, return /data/data for legacy system */
269 << "Unexpected dir structure for secondary dex " << location;
286 << "Unexpected dir structure for secondary dex " << location;
303 DIR* dir = opendir(path.c_str());
304 if (dir == NULL) {
311 while ((ent = readdir(dir))) {
323 closedir(dir);
441 static int _delete_dir_contents(DIR *d,
462 DIR *subdir;
516 DIR *d;
540 DIR *d;
574 ALOGE("_copy_dir_files failed to copy dir permissions\n");
577 ALOGE("_copy_dir_files failed to change dir owner\n");
580 DIR *ds = fdopendir(sdfd);
627 DIR *ds = NULL;
628 DIR *dd = NULL;
731 DIR* dir = opendir(parent.c_str());
732 if (dir == nullptr) {
738 while ((ent = readdir(dir))) {
747 closedir(dir);
752 closedir(dir);
764 static int validate_path(const dir_rec_t* dir, const char* path, int maxSubdirs) {
765 size_t dir_len = dir->len;
928 const dir_rec_t* dir = NULL;
930 dir = &android_app_dir;
932 dir = &android_app_private_dir;
934 dir = &android_app_ephemeral_dir;
936 dir = &android_asec_dir;
938 dir = &android_mnt_expand_dir;
946 return validate_path(dir, path, maxSubdirs);