Home
last modified time | relevance | path

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

12345678910>>...32

/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java53 File dir = createTempDir(); in testDeleteRecursive() local
54 File file1 = createRegularFile(dir, "file1"); in testDeleteRecursive()
55 File file2 = createRegularFile(dir, "file2"); in testDeleteRecursive()
56 File symLink1 = createSymlink(file1, dir, "symLink1"); in testDeleteRecursive()
57 File subDir = createDir(dir, "subDir"); in testDeleteRecursive()
60 File symLink2 = createSymlink(file1, dir, "symLink2"); in testDeleteRecursive()
68 File[] filesToDelete = { dir, file1, file2, symLink1, subDir, file3, file4, symLink2, in testDeleteRecursive()
74 FileUtils.deleteRecursive(dir); in testDeleteRecursive()
80 File dir = createTempDir(); in testIsSymlink() local
81 File subDir = createDir(dir, "subDir"); in testIsSymlink()
[all …]
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.h63 #define ddop_open(dir, a1, a2, ...) dir.ops->op_open(a1, a2, __VA_ARGS__) argument
64 #define ddop_close(dir, a1) dir.ops->op_close(a1) argument
65 #define ddop_fcntl(dir, a1, a2, ...) dir.ops->op_fcntl(a1, a2, __VA_ARGS__) argument
66 #define ddop_ioctl(dir, a1, a2, ...) dir.ops->op_ioctl(a1, a2, __VA_ARGS__) argument
67 #define ddop_fsync(dir, a1) dir.ops->op_fsync(a1) argument
68 #define ddop_ftruncate(dir, a1, a2) dir.ops->op_ftruncate(a1, a2) argument
69 #define ddop_lseek(dir, a1, a2, a3) dir.ops->op_lseek(a1, a2, a3) argument
70 #define ddop_read(dir, a1, a2, a3) dir.ops->op_read(a1, a2, a3) argument
71 #define ddop_write(dir, a1, a2, a3) dir.ops->op_write(a1, a2, a3) argument
/system/extras/ext4_utils/
Dext4_crypt_init_extensions.cpp44 static int set_system_de_policy_on(char const* dir);
61 int e4crypt_set_directory_policy(const char* dir) in e4crypt_set_directory_policy() argument
63 if (!dir || strncmp(dir, "/data/", 6)) { in e4crypt_set_directory_policy()
68 if (strcmp(dir, "/data/media/obb") == 0) { in e4crypt_set_directory_policy()
70 set_system_de_policy_on(dir); in e4crypt_set_directory_policy()
78 if (strchr(dir + 6, '/')) { in e4crypt_set_directory_policy()
95 if ((prefix + d) == dir) { in e4crypt_set_directory_policy()
96 LOG(INFO) << "Not setting policy on " << dir; in e4crypt_set_directory_policy()
100 return set_system_de_policy_on(dir); in e4crypt_set_directory_policy()
103 static int set_system_de_policy_on(char const* dir) { in set_system_de_policy_on() argument
[all …]
/system/core/adb/
Dremount_service.cpp40 static std::string find_proc_mount(const char* dir) { in find_proc_mount() argument
48 if (strcmp(dir, e->mnt_dir) == 0) { in find_proc_mount()
56 static std::string find_fstab_mount(const char* dir) { in find_fstab_mount() argument
59 struct fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab.get(), dir); in find_fstab_mount()
65 static std::string find_mount(const char* dir, bool is_root) { in find_mount() argument
67 return find_fstab_mount(dir); in find_mount()
69 return find_proc_mount(dir); in find_mount()
85 static bool remount_partition(int fd, const char* dir) { in remount_partition() argument
86 if (!directory_exists(dir)) { in remount_partition()
89 bool is_root = strcmp(dir, "/") == 0; in remount_partition()
[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/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
Dtraced_probes.te14 allow traced_probes debugfs_tracing:dir r_dir_perms;
35 allow traced_probes system_file:dir { open read };
40 allow traced_probes apk_data_file:dir { getattr open read search };
41 allow traced_probes dalvikcache_data_file:dir { getattr open read search };
43 allow traced_probes system_data_file:dir { getattr open read search };
45 allow traced_probes system_app_data_file:dir { getattr open read search };
46 allow traced_probes backup_data_file:dir { getattr open read search };
47 allow traced_probes bootstat_data_file:dir { getattr open read search };
48 allow traced_probes update_engine_data_file:dir { getattr open read search };
49 allow traced_probes update_engine_log_data_file:dir { getattr open read search };
[all …]
Dplatform_app.te14 allow platform_app shell_data_file:dir search;
19 allow platform_app { apk_tmp_file apk_private_tmp_file }:dir rw_dir_perms;
21 allow platform_app apk_private_data_file:dir search;
23 allow platform_app asec_apk_file:dir create_dir_perms;
27 allow platform_app media_rw_data_file:dir create_dir_perms;
31 allow platform_app cache_file:dir create_dir_perms;
36 allow platform_app mnt_media_rw_file:dir r_dir_perms;
37 allow platform_app sdcard_type:dir create_dir_perms;
41 allow platform_app rootfs:dir getattr;
66 allow platform_app preloads_data_file:dir r_dir_perms;
[all …]
/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
Dtraced_probes.te14 allow traced_probes debugfs_tracing:dir r_dir_perms;
35 allow traced_probes system_file:dir { open read };
40 allow traced_probes apk_data_file:dir { getattr open read search };
41 allow traced_probes dalvikcache_data_file:dir { getattr open read search };
43 allow traced_probes system_data_file:dir { getattr open read search };
45 allow traced_probes system_app_data_file:dir { getattr open read search };
46 allow traced_probes backup_data_file:dir { getattr open read search };
47 allow traced_probes bootstat_data_file:dir { getattr open read search };
48 allow traced_probes update_engine_data_file:dir { getattr open read search };
49 allow traced_probes update_engine_log_data_file:dir { getattr open read search };
[all …]
/system/sepolicy/prebuilts/api/26.0/public/
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 …]
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;
Dinstalld.te8 allow installd dalvikcache_data_file:dir relabelto;
12 allow installd apk_data_file:dir { create_dir_perms relabelfrom };
18 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
19 allow installd oemfs:dir r_dir_perms;
21 allow installd cgroup:dir create_dir_perms;
23 allow installd mnt_expand_file:dir { search getattr };
40 allow installd asec_image_file:dir search;
47 allow installd system_data_file:dir create_dir_perms;
51 allow installd media_rw_data_file:dir create_dir_perms;
54 allow installd system_data_file:dir relabelfrom;
[all …]
/system/sepolicy/prebuilts/api/27.0/public/
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 …]
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;
Dinstalld.te8 allow installd dalvikcache_data_file:dir relabelto;
12 allow installd apk_data_file:dir { create_dir_perms relabelfrom };
18 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
19 allow installd oemfs:dir r_dir_perms;
21 allow installd cgroup:dir create_dir_perms;
23 allow installd mnt_expand_file:dir { search getattr };
40 allow installd asec_image_file:dir search;
47 allow installd system_data_file:dir create_dir_perms;
51 allow installd media_rw_data_file:dir create_dir_perms;
54 allow installd system_data_file:dir relabelfrom;
[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;
Dinstalld.te8 allow installd dalvikcache_data_file:dir relabelto;
12 allow installd apk_data_file:dir { create_dir_perms relabelfrom };
18 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
19 allow installd oemfs:dir r_dir_perms;
21 allow installd cgroup:dir create_dir_perms;
22 allow installd mnt_expand_file:dir { search getattr };
39 allow installd asec_image_file:dir search;
46 allow installd system_data_file:dir create_dir_perms;
52 allow installd media_rw_data_file:dir create_dir_perms;
55 allow installd system_data_file:dir relabelfrom;
[all …]
Dvold.te6 allow vold cache_file:dir r_dir_perms;
46 allow vold block_device:dir create_dir_perms;
47 allow vold device:dir write;
49 allow vold rootfs:dir mounton;
50 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
52 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
56 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
60 allow vold media_rw_data_file:dir create_dir_perms;
64 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
67 allow vold mnt_user_file:dir create_dir_perms;
[all …]
/system/sepolicy/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;
Dinstalld.te8 allow installd dalvikcache_data_file:dir relabelto;
12 allow installd apk_data_file:dir { create_dir_perms relabelfrom };
18 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
19 allow installd oemfs:dir r_dir_perms;
21 allow installd cgroup:dir create_dir_perms;
22 allow installd mnt_expand_file:dir { search getattr };
39 allow installd asec_image_file:dir search;
46 allow installd system_data_file:dir create_dir_perms;
52 allow installd media_rw_data_file:dir create_dir_perms;
55 allow installd system_data_file:dir relabelfrom;
[all …]
Dvold.te6 allow vold cache_file:dir r_dir_perms;
46 allow vold block_device:dir create_dir_perms;
47 allow vold device:dir write;
49 allow vold rootfs:dir mounton;
50 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
52 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
56 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
60 allow vold media_rw_data_file:dir create_dir_perms;
64 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
67 allow vold mnt_user_file:dir create_dir_perms;
[all …]
/system/vold/
DKeyStorage.cpp201 static KeymasterOperation begin(Keymaster& keymaster, const std::string& dir, in begin() argument
206 auto kmKeyPath = dir + "/" + kFn_keymaster_key_blob; in begin()
217 LOG(DEBUG) << "Upgrading key: " << dir; in begin()
220 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in begin()
227 LOG(ERROR) << "Key deletion failed during upgrade, continuing anyway: " << dir; in begin()
230 LOG(INFO) << "Key upgraded: " << dir; in begin()
234 static bool encryptWithKeymasterKey(Keymaster& keymaster, const std::string& dir, in encryptWithKeymasterKey() argument
241 begin(keymaster, dir, km::KeyPurpose::ENCRYPT, keyParams, opParams, authToken, &outParams); in encryptWithKeymasterKey()
262 static bool decryptWithKeymasterKey(Keymaster& keymaster, const std::string& dir, in decryptWithKeymasterKey() argument
271 begin(keymaster, dir, km::KeyPurpose::DECRYPT, keyParams, opParams, authToken, nullptr); in decryptWithKeymasterKey()
[all …]
/system/sepolicy/prebuilts/api/27.0/private/
Dplatform_app.te15 allow platform_app shell_data_file:dir search;
20 allow platform_app { apk_tmp_file apk_private_tmp_file }:dir rw_dir_perms;
22 allow platform_app apk_private_data_file:dir search;
24 allow platform_app asec_apk_file:dir create_dir_perms;
28 allow platform_app media_rw_data_file:dir create_dir_perms;
32 allow platform_app cache_file:dir create_dir_perms;
37 allow platform_app mnt_media_rw_file:dir r_dir_perms;
38 allow platform_app vfat:dir create_dir_perms;
42 allow platform_app rootfs:dir getattr;
62 allow platform_app preloads_data_file:dir r_dir_perms;
[all …]
/system/sepolicy/prebuilts/api/26.0/private/
Dplatform_app.te15 allow platform_app shell_data_file:dir search;
20 allow platform_app { apk_tmp_file apk_private_tmp_file }:dir rw_dir_perms;
22 allow platform_app apk_private_data_file:dir search;
24 allow platform_app asec_apk_file:dir create_dir_perms;
28 allow platform_app media_rw_data_file:dir create_dir_perms;
32 allow platform_app cache_file:dir create_dir_perms;
37 allow platform_app mnt_media_rw_file:dir r_dir_perms;
38 allow platform_app vfat:dir create_dir_perms;
59 allow platform_app preloads_data_file:dir r_dir_perms;
61 allow platform_app preloads_media_file:dir r_dir_perms;

12345678910>>...32