Home
last modified time | relevance | path

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

12345678910>>...46

/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/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;
Dfastbootd.te14 allow fastbootd functionfs:dir search;
24 allow fastbootd device:dir r_dir_perms;
26 # For dev/block/by-name dir
27 allow fastbootd block_device:dir r_dir_perms;
50 allow fastbootd {rootfs tmpfs}:dir mounton;
51 allow fastbootd metadata_file:dir { search getattr };
52 allow fastbootd gsi_metadata_file:dir rw_dir_perms;
67 allow fastbootd rootfs:dir r_dir_perms;
71 allow fastbootd sysfs_dt_firmware_android:dir r_dir_perms;
77 allow fastbootd block_device:dir getattr;
[all …]
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/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/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
26 platform_app nfc_data_file dir b/74331887
30 system_server storage_stub_file dir b/145267097
/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/private/
Dbug_map4 gmscore_app system_data_file dir b/146166941
8 init nativetest_data_file dir b/77873135
9 init pstorefs dir b/77873135
10 init shell_data_file dir b/77873135
15 isolated_app privapp_data_file dir b/119596573
16 isolated_app app_data_file dir b/120394782
20 mediaprovider mnt_media_rw_file dir b/77925342
21 mediaprovider shell_data_file dir b/77925342
28 platform_app nfc_data_file dir b/74331887
32 system_server storage_stub_file dir b/145267097
/system/bt/gd/
DAndroid.mk1 LOCAL_PATH := $(call my-dir)
43 …$(call intermediates-dir-for,PACKAGING,bluetooth_cert_src_and_bin,HOST)/bluetooth_cert_src_and_bin…
72 …$(call intermediates-dir-for,PACKAGING,bluetooth_cert_tests_py_package,HOST)/bluetooth_cert_tests.…
80 @rm -rf $(dir $@)bluetooth_cert_tests
81 @rm -rf $(dir $@)acts
82 @mkdir -p $(dir $@)bluetooth_cert_tests
83 @mkdir -p $(dir $@)acts
84 $(hide) unzip -o -q $(PRIVATE_acts_zip) "tools/test/connectivity/acts/framework/*" -d $(dir $@)acts
85 $(hide) unzip -o -q $(PRIVATE_cert_src_and_bin_zip) -d $(dir $@)bluetooth_cert_tests
86 $(hide) unzip -o -q $(PRIVATE_cert_generated_py_zip) -d $(dir $@)bluetooth_cert_tests
[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 …]
/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 …]
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/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/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 …]
/system/vold/
DKeyStorage.cpp230 static KeymasterOperation begin(Keymaster& keymaster, const std::string& dir, in begin() argument
235 auto kmKeyPath = dir + "/" + kFn_keymaster_key_blob; in begin()
246 LOG(DEBUG) << "Upgrading key: " << dir; in begin()
249 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in begin()
256 if (!android::vold::FsyncDirectory(dir)) { in begin()
257 LOG(ERROR) << "Key dir sync failed: " << dir; in begin()
261 LOG(ERROR) << "Key deletion failed during upgrade, continuing anyway: " << dir; in begin()
265 LOG(INFO) << "Key upgraded: " << dir; in begin()
269 static bool encryptWithKeymasterKey(Keymaster& keymaster, const std::string& dir, in encryptWithKeymasterKey() argument
275 auto opHandle = begin(keymaster, dir, km::KeyPurpose::ENCRYPT, keyParams, opParams, authToken, in encryptWithKeymasterKey()
[all …]

12345678910>>...46