Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 1343) sorted by relevance

12345678910>>...54

/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java54 File dir = createTempDir(); in testDeleteRecursive() local
55 File file1 = createRegularFile(dir, "file1"); in testDeleteRecursive()
56 File file2 = createRegularFile(dir, "file2"); in testDeleteRecursive()
57 File symLink1 = createSymlink(file1, dir, "symLink1"); in testDeleteRecursive()
58 File subDir = createDir(dir, "subDir"); in testDeleteRecursive()
61 File symLink2 = createSymlink(file1, dir, "symLink2"); in testDeleteRecursive()
69 File[] filesToDelete = { dir, file1, file2, symLink1, subDir, file3, file4, symLink2, in testDeleteRecursive()
75 FileUtils.deleteRecursive(dir); in testDeleteRecursive()
81 File dir = createTempDir(); in testIsSymlink() local
82 File subDir = createDir(dir, "subDir"); in testIsSymlink()
[all …]
/system/sepolicy/prebuilts/api/30.0/public/
Diorap_inode2filename.te18 allow iorap_inode2filename apex_data_file:dir { getattr open read search };
20 allow iorap_inode2filename apex_mnt_dir:dir { getattr open read search };
22 allow iorap_inode2filename apk_data_file:dir { getattr open read search };
24 allow iorap_inode2filename app_data_file:dir { getattr open read search };
26 allow iorap_inode2filename backup_data_file:dir { getattr open read search };
28 allow iorap_inode2filename bluetooth_data_file:dir { getattr open read search };
30 allow iorap_inode2filename bootchart_data_file:dir { getattr open read search };
32 allow iorap_inode2filename metadata_file:dir { getattr open read search search };
34 allow iorap_inode2filename packages_list_file:dir { getattr open read search };
36 allow iorap_inode2filename privapp_data_file:dir { getattr open read search };
[all …]
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
8 allow sdcardd tmpfs:dir r_dir_perms;
9 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
10 allow sdcardd storage_file:dir search;
11 allow sdcardd storage_stub_file:dir { search mounton };
15 allow sdcardd sdcard_type:dir create_dir_perms;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
27 allow sdcardd install_data_file:dir search;
34 allow sdcardd mnt_expand_file:dir search;
Dvold.te6 allow vold cache_file:dir r_dir_perms;
44 allowxperm vold { fs_type file_type }:dir ioctl FITRIM;
48 allowxperm vold data_file_type:dir ioctl {
61 } data_file_type:dir ioctl { FS_IOC_SET_ENCRYPTION_POLICY };
67 } data_file_type:dir ioctl { FS_IOC_ADD_ENCRYPTION_KEY FS_IOC_REMOVE_ENCRYPTION_KEY };
79 allow vold block_device:dir create_dir_perms;
80 allow vold device:dir write;
82 allow vold rootfs:dir mounton;
83 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
85 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Dbug_map6 init nativetest_data_file dir 77873135
7 init pstorefs dir 77873135
8 init shell_data_file dir 77873135
13 isolated_app privapp_data_file dir 119596573
14 isolated_app app_data_file dir 120394782
18 mediaprovider mnt_media_rw_file dir 77925342
19 mediaprovider shell_data_file dir 77925342
24 platform_app nfc_data_file dir 74331887
27 system_server storage_stub_file dir 112609936
/system/sepolicy/prebuilts/api/31.0/public/
Diorap_inode2filename.te18 allow iorap_inode2filename apex_data_file:dir { getattr open read search };
20 allow iorap_inode2filename apex_mnt_dir:dir { getattr open read search };
22 allow iorap_inode2filename apk_data_file:dir { getattr open read search };
24 allow iorap_inode2filename app_data_file_type:dir { getattr open read search };
26 allow iorap_inode2filename backup_data_file:dir { getattr open read search };
28 allow iorap_inode2filename bootchart_data_file:dir { getattr open read search };
30 allow iorap_inode2filename metadata_file:dir { getattr open read search search };
32 allow iorap_inode2filename packages_list_file:dir { getattr open read search };
34 allow iorap_inode2filename property_data_file:dir { getattr open read search };
36 allow iorap_inode2filename resourcecache_data_file:dir { getattr open read search };
[all …]
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
5 allow sdcardd cgroup_v2:dir create_dir_perms;
7 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
9 allow sdcardd tmpfs:dir r_dir_perms;
10 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
11 allow sdcardd storage_file:dir search;
12 allow sdcardd storage_stub_file:dir { search mounton };
16 allow sdcardd sdcard_type:dir create_dir_perms;
19 allow sdcardd media_rw_data_file:dir create_dir_perms;
28 allow sdcardd install_data_file:dir search;
[all …]
/system/sepolicy/public/
Diorap_inode2filename.te18 allow iorap_inode2filename apex_data_file:dir { getattr open read search };
20 allow iorap_inode2filename apex_mnt_dir:dir { getattr open read search };
22 allow iorap_inode2filename apk_data_file:dir { getattr open read search };
24 allow iorap_inode2filename app_data_file_type:dir { getattr open read search };
26 allow iorap_inode2filename backup_data_file:dir { getattr open read search };
28 allow iorap_inode2filename bootchart_data_file:dir { getattr open read search };
30 allow iorap_inode2filename metadata_file:dir { getattr open read search search };
32 allow iorap_inode2filename packages_list_file:dir { getattr open read search };
34 allow iorap_inode2filename property_data_file:dir { getattr open read search };
36 allow iorap_inode2filename resourcecache_data_file:dir { getattr open read search };
[all …]
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
5 allow sdcardd cgroup_v2:dir create_dir_perms;
7 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
9 allow sdcardd tmpfs:dir r_dir_perms;
10 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
11 allow sdcardd storage_file:dir search;
12 allow sdcardd storage_stub_file:dir { search mounton };
16 allow sdcardd sdcard_type:dir create_dir_perms;
19 allow sdcardd media_rw_data_file:dir create_dir_perms;
28 allow sdcardd install_data_file:dir search;
[all …]
/system/core/init/
Dfscrypt_init_extensions.cpp60 static void delete_dir_contents(const std::string& dir) { in delete_dir_contents() argument
61 char* const paths[2] = {const_cast<char*>(dir.c_str()), nullptr}; in delete_dir_contents()
69 if (dir == cur->fts_path) { in delete_dir_contents()
122 static bool EnsurePolicyOrLog(const EncryptionPolicy& policy, const std::string& dir) { in EnsurePolicyOrLog() argument
123 if (!EnsurePolicy(policy, dir)) { in EnsurePolicyOrLog()
126 LOG(ERROR) << "Setting " << ref_hex << " policy on " << dir << " failed!"; in EnsurePolicyOrLog()
132 static bool SetPolicyOn(const std::string& ref_basename, const std::string& dir) { in SetPolicyOn() argument
135 if (!EnsurePolicyOrLog(policy, dir)) return false; in SetPolicyOn()
140 const std::string& dir) { in FscryptSetDirectoryPolicy() argument
144 if (SetPolicyOn(ref_basename, dir) || action == FscryptAction::kAttempt) { in FscryptSetDirectoryPolicy()
[all …]
/system/extras/tests/storage/
Dopentest.c31 char *dir; in main() local
41 dir = argv[1]; in main()
49 if (stat(dir, &statbuf)) { in main()
50 fprintf(stderr, "Cannot stat %s\n", dir); in main()
55 fprintf(stderr, "%s is not a directory!\n", dir); in main()
59 if (access(dir, R_OK | W_OK)) { in main()
60 fprintf(stderr, "No access to %s\n", dir); in main()
70 if (chdir(dir)) { in main()
71 fprintf(stderr, "Cannot chdir to %s\n", dir); in main()
/system/sepolicy/prebuilts/api/28.0/private/
Dbug_map11 init nativetest_data_file dir 77873135
12 init pstorefs dir 77873135
13 init shell_data_file dir 77873135
21 mediaprovider mnt_media_rw_file dir 77925342
22 mediaprovider shell_data_file dir 77925342
28 platform_app nfc_data_file dir 74331887
32 priv_app system_data_file dir 72811052
33 profman apk_data_file dir 77922323
42 untrusted_app_25 system_data_file dir 72550646
43 untrusted_app_27 system_data_file dir 72550646
/system/sepolicy/prebuilts/api/30.0/private/
Dbug_map3 gmscore_app system_data_file dir b/146166941
7 init nativetest_data_file dir b/77873135
8 init pstorefs dir b/77873135
9 init shell_data_file dir b/77873135
14 isolated_app privapp_data_file dir b/119596573
15 isolated_app app_data_file dir b/120394782
19 mediaprovider mnt_media_rw_file dir b/77925342
20 mediaprovider shell_data_file dir b/77925342
27 platform_app nfc_data_file dir b/74331887
31 system_server storage_stub_file dir b/145267097
/system/bpf/bpfloader/
DBpfLoader.cpp55 const char* const dir; member
60 .dir = "/apex/com.android.tethering/etc/bpf/",
65 .dir = "/system/etc/bpf/",
72 DIR* dir; in loadAllElfObjects() local
75 if ((dir = opendir(progDir)) != NULL) { in loadAllElfObjects()
76 while ((ent = readdir(dir)) != NULL) { in loadAllElfObjects()
92 closedir(dir); in loadAllElfObjects()
118 if (loadAllElfObjects(location.dir, location.prefix) != 0) { in main()
119 ALOGE("=== CRITICAL FAILURE LOADING BPF PROGRAMS FROM %s ===", location.dir); in main()
/system/bt/gd/
DAndroid.mk1 LOCAL_PATH := $(call my-dir)
48 …$(call intermediates-dir-for,PACKAGING,bluetooth_cert_src_and_bin,HOST)/bluetooth_cert_src_and_bin…
77 …$(call intermediates-dir-for,PACKAGING,bluetooth_cert_tests_py_package,HOST)/bluetooth_cert_tests.…
85 @rm -rf $(dir $@)bluetooth_cert_tests
86 @rm -rf $(dir $@)acts
87 @mkdir -p $(dir $@)bluetooth_cert_tests
88 @mkdir -p $(dir $@)acts
89 $(hide) unzip -o -q $(PRIVATE_acts_zip) "tools/test/connectivity/acts/framework/*" -d $(dir $@)acts
90 $(hide) unzip -o -q $(PRIVATE_cert_src_and_bin_zip) -d $(dir $@)bluetooth_cert_tests
91 $(hide) unzip -o -q $(PRIVATE_cert_generated_py_zip) -d $(dir $@)bluetooth_cert_tests
[all …]
/system/sepolicy/private/
Dbug_map3 gmscore_app system_data_file dir b/146166941
7 init nativetest_data_file dir b/77873135
8 init pstorefs dir b/77873135
9 init shell_data_file dir b/77873135
14 isolated_app privapp_data_file dir b/119596573
15 isolated_app app_data_file dir b/120394782
19 mediaprovider mnt_media_rw_file dir b/77925342
20 mediaprovider shell_data_file dir b/77925342
27 platform_app nfc_data_file dir b/74331887
/system/sepolicy/prebuilts/api/31.0/private/
Dbug_map3 gmscore_app system_data_file dir b/146166941
7 init nativetest_data_file dir b/77873135
8 init pstorefs dir b/77873135
9 init shell_data_file dir b/77873135
14 isolated_app privapp_data_file dir b/119596573
15 isolated_app app_data_file dir b/120394782
19 mediaprovider mnt_media_rw_file dir b/77925342
20 mediaprovider shell_data_file dir b/77925342
27 platform_app nfc_data_file dir b/74331887
/system/sepolicy/prebuilts/api/27.0/public/
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
8 allow sdcardd tmpfs:dir r_dir_perms;
9 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
10 allow sdcardd storage_file:dir search;
11 allow sdcardd storage_stub_file:dir { search mounton };
15 allow sdcardd sdcard_type:dir create_dir_perms;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
32 allow sdcardd mnt_expand_file:dir search;
Dvold.te6 allow vold cache_file:dir r_dir_perms;
38 allow vold block_device:dir create_dir_perms;
39 allow vold device:dir write;
41 allow vold rootfs:dir mounton;
42 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
44 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
48 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
52 allow vold media_rw_data_file:dir create_dir_perms;
56 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
59 allow vold mnt_user_file:dir create_dir_perms;
[all …]
/system/sepolicy/prebuilts/api/28.0/public/
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
8 allow sdcardd tmpfs:dir r_dir_perms;
9 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
10 allow sdcardd storage_file:dir search;
11 allow sdcardd storage_stub_file:dir { search mounton };
15 allow sdcardd sdcard_type:dir create_dir_perms;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
32 allow sdcardd mnt_expand_file:dir search;
/system/sepolicy/prebuilts/api/26.0/public/
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
8 allow sdcardd tmpfs:dir r_dir_perms;
9 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
10 allow sdcardd storage_file:dir search;
11 allow sdcardd storage_stub_file:dir { search mounton };
15 allow sdcardd sdcard_type:dir create_dir_perms;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
32 allow sdcardd mnt_expand_file:dir search;
Dvold.te6 allow vold cache_file:dir r_dir_perms;
35 allow vold block_device:dir create_dir_perms;
36 allow vold device:dir write;
38 allow vold rootfs:dir mounton;
39 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
41 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
45 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
49 allow vold media_rw_data_file:dir create_dir_perms;
53 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
56 allow vold mnt_user_file:dir create_dir_perms;
[all …]
/system/vold/
DKeyStorage.cpp223 static bool CommitUpgradedKey(Keymaster& keymaster, const std::string& dir) { in CommitUpgradedKey() argument
224 auto blob_file = dir + "/" + kFn_keymaster_key_blob; in CommitUpgradedKey()
225 auto upgraded_blob_file = dir + "/" + kFn_keymaster_key_blob_upgraded; in CommitUpgradedKey()
235 if (!FsyncDirectory(dir)) return false; in CommitUpgradedKey()
254 for (auto& dir : key_dirs_to_commit) { in DeferredCommitKeys() local
255 LOG(INFO) << "Committing upgraded key " << dir; in DeferredCommitKeys()
256 CommitUpgradedKey(keymaster, dir); in DeferredCommitKeys()
263 static bool IsKeyCommitPending(const std::string& dir) { in IsKeyCommitPending() argument
265 if (IsSameFile(dir, dir_to_commit)) return true; in IsKeyCommitPending()
272 static void ScheduleKeyCommit(const std::string& dir) { in ScheduleKeyCommit() argument
[all …]
/system/sepolicy/prebuilts/api/29.0/public/
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
8 allow sdcardd tmpfs:dir r_dir_perms;
9 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
10 allow sdcardd storage_file:dir search;
11 allow sdcardd storage_stub_file:dir { search mounton };
15 allow sdcardd sdcard_type:dir create_dir_perms;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
33 allow sdcardd mnt_expand_file:dir search;
Dvold.te6 allow vold cache_file:dir r_dir_perms;
44 allowxperm vold { fs_type file_type }:dir ioctl FITRIM;
47 allowxperm vold data_file_type:dir ioctl {
62 allow vold block_device:dir create_dir_perms;
63 allow vold device:dir write;
65 allow vold rootfs:dir mounton;
66 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
68 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
72 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
76 allow vold media_rw_data_file:dir create_dir_perms;
[all …]

12345678910>>...54