/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
D | FileUtils.java | 95 public static void makeWorldReadable(File file) throws IOException { in makeWorldReadable() argument 96 if (!file.setReadable(true, false /* ownerOnly */)) { in makeWorldReadable() 97 throw new IOException("Unable to make " + file + " world-readable"); in makeWorldReadable() 108 public static void ensureFileDoesNotExist(File file) throws IOException { in ensureFileDoesNotExist() argument 109 if (file.exists()) { in ensureFileDoesNotExist() 110 if (!file.isFile()) { in ensureFileDoesNotExist() 111 throw new IOException(file + " is not a file"); in ensureFileDoesNotExist() 113 doDelete(file); in ensureFileDoesNotExist() 117 public static void doDelete(File file) throws IOException { in doDelete() argument 118 if (!file.delete()) { in doDelete() [all …]
|
/system/core/fs_mgr/libfiemap_writer/ |
D | split_fiemap_writer.cpp | 132 for (const auto& file : files) { in Open() local 133 auto writer = FiemapWriter::Open(file, 0, false); in Open() 171 for (const auto& file : files) { in RemoveSplitFiles() local 172 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles() 180 for (const auto& file : files_) { in HasPinnedExtents() local 181 if (!FiemapWriter::HasPinnedExtents(file->file_path())) { in HasPinnedExtents() 190 for (const auto& file : files_) { in extents() local 191 const auto& extents = file->extents(); in extents() 200 FiemapWriter* file = files_[cursor_index_].get(); in Write() local 206 uint64_t file_bytes_left = file->size() - cursor_file_pos_; in Write() [all …]
|
/system/core/libprocessgroup/cgrouprc/ |
D | cgroup_file.cpp | 82 static auto* file = LoadRcFile(); in GetInstance() local 83 return file; in GetInstance() 87 auto file = GetInstance(); in ACgroupFile_getVersion() local 88 if (file == nullptr) return 0; in ACgroupFile_getVersion() 89 return file->version_; in ACgroupFile_getVersion() 93 auto file = GetInstance(); in ACgroupFile_getControllerCount() local 94 if (file == nullptr) return 0; in ACgroupFile_getControllerCount() 95 return file->controller_count_; in ACgroupFile_getControllerCount() 99 auto file = GetInstance(); in ACgroupFile_getController() local 100 if (file == nullptr) return nullptr; in ACgroupFile_getController() [all …]
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | dex2oat.te | 10 allow dex2oat vendor_framework_file:file { getattr open read }; 12 allow dex2oat tmpfs:file { read getattr }; 15 allow dex2oat dalvikcache_data_file:file write; 17 # the oat file is symlinked to the original file in /system. 22 allow dex2oat system_file:file lock; 24 # Read already open asec_apk_file file descriptors passed by installd. 27 allow dex2oat asec_apk_file:file read; 28 allow dex2oat unlabeled:file read; 29 allow dex2oat oemfs:file read; 31 allow dex2oat apk_tmp_file:file r_file_perms; [all …]
|
D | profman.te | 5 allow profman user_profile_data_file:file { getattr read write lock }; 7 # Dumping profile info opens the application APK file for pretty printing. 8 allow profman asec_apk_file:file { read }; 9 allow profman apk_data_file:file { read }; 10 allow profman oemfs:file { read }; 12 allow profman tmpfs:file { read }; 13 allow profman profman_dump_data_file:file { write }; 20 allow profman app_data_file:file { getattr read write lock };
|
D | drmserver.te | 22 allow drmserver drm_data_file:file create_file_perms; 24 allow drmserver app_data_file:file { read write getattr }; 25 allow drmserver sdcard_type:file { read write getattr }; 30 # /data/app/tlcd_sock socket file. 34 # Delete old socket file if present. 37 # After taking a video, drmserver looks at the video file. 41 allow drmserver apk_data_file:file { read getattr }; 42 allow drmserver asec_apk_file:file { read getattr }; 43 allow drmserver ringtone_file:file { read getattr }; 46 allow drmserver radio_data_file:file { read getattr }; [all …]
|
D | asan_extract.te | 11 allow asan_extract shell_exec:file rx_file_perms; 14 allow asan_extract toolbox_exec:file rx_file_perms; 15 allow asan_extract system_file:file execute_no_trans; 19 allow asan_extract system_file:file unlink; 23 allow asan_extract system_data_file:{ file lnk_file } create_file_perms ; 26 allow asan_extract file_contexts_file:file r_file_perms; 27 allow asan_extract system_data_file:{ dir file } relabelfrom; 29 allow asan_extract system_file:file relabelto; 32 allow asan_extract system_data_file:file execute;
|
D | shell.te | 13 allow shell pstorefs:file r_file_perms; 20 allow shell anr_data_file:file r_file_perms; 24 allow shell shell_data_file:file create_file_perms; 25 allow shell shell_data_file:file rx_file_perms; 30 allow shell profman_dump_data_file:file { getattr unlink }; 35 allow shell nativetest_data_file:file rx_file_perms; 47 allow shell system_file:file x_file_perms; 48 allow shell toolbox_exec:file rx_file_perms; 49 allow shell tzdatacheck_exec:file rx_file_perms; 50 allow shell shell_exec:file rx_file_perms; [all …]
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | dex2oat.te | 10 allow dex2oat vendor_framework_file:file { getattr open read }; 12 allow dex2oat tmpfs:file { read getattr }; 15 allow dex2oat dalvikcache_data_file:file write; 17 # the oat file is symlinked to the original file in /system. 22 allow dex2oat system_file:file lock; 24 # Read already open asec_apk_file file descriptors passed by installd. 27 allow dex2oat asec_apk_file:file read; 28 allow dex2oat unlabeled:file read; 29 allow dex2oat oemfs:file read; 31 allow dex2oat apk_tmp_file:file r_file_perms; [all …]
|
D | profman.te | 5 allow profman user_profile_data_file:file { getattr read write lock }; 7 # Dumping profile info opens the application APK file for pretty printing. 8 allow profman asec_apk_file:file { read }; 9 allow profman apk_data_file:file { read }; 10 allow profman oemfs:file { read }; 12 allow profman tmpfs:file { read }; 13 allow profman profman_dump_data_file:file { write }; 20 allow profman app_data_file:file { getattr read write lock };
|
D | drmserver.te | 22 allow drmserver drm_data_file:file create_file_perms; 24 allow drmserver app_data_file:file { read write getattr }; 25 allow drmserver sdcard_type:file { read write getattr }; 30 # /data/app/tlcd_sock socket file. 34 # Delete old socket file if present. 37 # After taking a video, drmserver looks at the video file. 41 allow drmserver apk_data_file:file { read getattr }; 42 allow drmserver asec_apk_file:file { read getattr }; 43 allow drmserver ringtone_file:file { read getattr }; 46 allow drmserver radio_data_file:file { read getattr }; [all …]
|
D | asan_extract.te | 11 allow asan_extract shell_exec:file rx_file_perms; 14 allow asan_extract toolbox_exec:file rx_file_perms; 15 allow asan_extract system_file:file execute_no_trans; 19 allow asan_extract system_file:file unlink; 23 allow asan_extract system_data_file:{ file lnk_file } create_file_perms ; 26 allow asan_extract file_contexts_file:file r_file_perms; 27 allow asan_extract system_data_file:{ dir file } relabelfrom; 29 allow asan_extract system_file:file relabelto; 32 allow asan_extract system_data_file:file execute;
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | dex2oat.te | 10 allow dex2oat vendor_framework_file:file { getattr open read }; 12 allow dex2oat tmpfs:file { read getattr }; 15 allow dex2oat dalvikcache_data_file:file write; 17 # the oat file is symlinked to the original file in /system. 22 allow dex2oat system_file:file lock; 24 # Read already open asec_apk_file file descriptors passed by installd. 27 allow dex2oat asec_apk_file:file read; 28 allow dex2oat unlabeled:file read; 29 allow dex2oat oemfs:file read; 31 allow dex2oat apk_tmp_file:file r_file_perms; [all …]
|
D | drmserver.te | 22 allow drmserver drm_data_file:file create_file_perms; 24 allow drmserver app_data_file:file { read write getattr }; 25 allow drmserver sdcard_type:file { read write getattr }; 30 # /data/app/tlcd_sock socket file. 34 # Delete old socket file if present. 37 # After taking a video, drmserver looks at the video file. 41 allow drmserver apk_data_file:file { read getattr }; 42 allow drmserver asec_apk_file:file { read getattr }; 43 allow drmserver ringtone_file:file { read getattr }; 46 allow drmserver radio_data_file:file { read getattr }; [all …]
|
D | asan_extract.te | 11 allow asan_extract shell_exec:file rx_file_perms; 14 allow asan_extract toolbox_exec:file rx_file_perms; 15 allow asan_extract system_file:file execute_no_trans; 19 allow asan_extract system_file:file unlink; 23 allow asan_extract system_data_file:{ file lnk_file } create_file_perms ; 26 allow asan_extract file_contexts_file:file r_file_perms; 27 allow asan_extract system_data_file:{ dir file } relabelfrom; 29 allow asan_extract system_file:file relabelto; 32 allow asan_extract system_data_file:file execute;
|
/system/sepolicy/private/ |
D | dex2oat.te | 10 allow dex2oat vendor_framework_file:file { getattr open read map }; 12 allow dex2oat tmpfs:file { read getattr map }; 15 allow dex2oat dalvikcache_data_file:file write; 17 # the oat file is symlinked to the original file in /system. 22 allow dex2oat system_file:file lock; 24 # Read already open asec_apk_file file descriptors passed by installd. 27 allow dex2oat asec_apk_file:file { read map }; 28 allow dex2oat unlabeled:file { read map }; 29 allow dex2oat oemfs:file { read map }; 31 allow dex2oat apk_tmp_file:file r_file_perms; [all …]
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | dex2oat.te | 10 allow dex2oat vendor_framework_file:file { getattr open read map }; 12 allow dex2oat tmpfs:file { read getattr map }; 15 allow dex2oat dalvikcache_data_file:file write; 17 # the oat file is symlinked to the original file in /system. 22 allow dex2oat system_file:file lock; 24 # Read already open asec_apk_file file descriptors passed by installd. 27 allow dex2oat asec_apk_file:file { read map }; 28 allow dex2oat unlabeled:file { read map }; 29 allow dex2oat oemfs:file { read map }; 31 allow dex2oat apk_tmp_file:file r_file_perms; [all …]
|
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ |
D | ZoneTabFileTest.java | 24 import java.nio.file.Files; 25 import java.nio.file.Path; 51 String file = createFile(""); in parseEmpty() local 52 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parseEmpty() 58 String file = createFile( in parseIgnoresCommentsAndEmptyLines() local 64 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parseIgnoresCommentsAndEmptyLines() 72 String file = createFile( in parse() local 81 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parse() 93 String file = createFile("GB\tStuff"); in parseMalformedFile() local 95 ZoneTabFile.parse(file); in parseMalformedFile() [all …]
|
D | TestUtils.java | 21 import java.nio.file.FileVisitResult; 22 import java.nio.file.FileVisitor; 23 import java.nio.file.Files; 24 import java.nio.file.Path; 25 import java.nio.file.SimpleFileVisitor; 26 import java.nio.file.attribute.BasicFileAttributes; 48 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in deleteDir() 50 return delete(file); in deleteDir() 59 private FileVisitResult delete(Path file) throws IOException { in deleteDir() 60 Files.delete(file); in deleteDir()
|
/system/sepolicy/prebuilts/api/28.0/ |
D | vendor_sepolicy.cil | 476 (allow init_28_0 hal_audio_default_exec (file (read getattr map execute open))) 478 (allow hal_audio_default hal_audio_default_exec (file (read getattr map execute entrypoint open))) 482 (typetransition hal_audio_default tmpfs_28_0 file hal_audio_default_tmpfs) 483 (allow hal_audio_default hal_audio_default_tmpfs (file (read write getattr map))) 485 (allow init_28_0 hal_audiocontrol_default_exec (file (read getattr map execute open))) 487 (allow hal_audiocontrol_default hal_audiocontrol_default_exec (file (read getattr map execute entry… 491 (typetransition hal_audiocontrol_default tmpfs_28_0 file hal_audiocontrol_default_tmpfs) 492 (allow hal_audiocontrol_default hal_audiocontrol_default_tmpfs (file (read write getattr map))) 494 (allow init_28_0 hal_authsecret_default_exec (file (read getattr map execute open))) 496 (allow hal_authsecret_default hal_authsecret_default_exec (file (read getattr map execute entrypoin… [all …]
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | bug_map | 2 dexoptanalyzer apk_data_file file 77853712 3 dexoptanalyzer app_data_file file 77853712 8 init app_data_file file 77873135 10 init logpersist file 77873135 14 init shell_data_file file 77873135 18 mediaextractor app_data_file file 77923736 19 mediaextractor radio_data_file file 77923736 31 postinstall_dexopt user_profile_data_file file 77958490 40 system_server sdcardfs file 77856826
|
D | domain.te | 26 } debugfs_tracing_debug:file no_rw_file_perms; 36 } proc:file no_rw_file_perms; 44 } sysfs:file no_rw_file_perms; 52 } device:{ blk_file file } no_rw_file_perms; 60 } debugfs:file no_rw_file_perms; 72 } debugfs_tracing:file no_rw_file_perms; 78 } inotify:file no_rw_file_perms; 95 } pstorefs:file no_rw_file_perms; 102 } configfs:file no_rw_file_perms; 111 } functionfs:file no_rw_file_perms; [all …]
|
/system/extras/verity/ |
D | build_verity_tree.cpp | 36 struct sparse_file* file; in generate_verity_tree() local 38 file = sparse_file_import(data_fd, false, false); in generate_verity_tree() 40 file = sparse_file_import_auto(data_fd, false, verbose); in generate_verity_tree() 43 if (!file) { in generate_verity_tree() 48 int64_t len = sparse_file_len(file, false, false); in generate_verity_tree() 67 sparse_file_callback(file, false, false, hash_callback, builder); in generate_verity_tree() 68 sparse_file_destroy(file); in generate_verity_tree()
|
/system/sepolicy/public/ |
D | asan_extract.te | 11 allow asan_extract shell_exec:file rx_file_perms; 14 allow asan_extract toolbox_exec:file rx_file_perms; 15 allow asan_extract system_file:file execute_no_trans; 19 allow asan_extract system_file:file unlink; 23 allow asan_extract system_data_file:{ file lnk_file } create_file_perms ; 26 allow asan_extract file_contexts_file:file r_file_perms; 27 allow asan_extract system_data_file:{ dir file } relabelfrom; 29 allow asan_extract system_file:file relabelto; 32 allow asan_extract system_data_file:file execute;
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | asan_extract.te | 11 allow asan_extract shell_exec:file rx_file_perms; 14 allow asan_extract toolbox_exec:file rx_file_perms; 15 allow asan_extract system_file:file execute_no_trans; 19 allow asan_extract system_file:file unlink; 23 allow asan_extract system_data_file:{ file lnk_file } create_file_perms ; 26 allow asan_extract file_contexts_file:file r_file_perms; 27 allow asan_extract system_data_file:{ dir file } relabelfrom; 29 allow asan_extract system_file:file relabelto; 32 allow asan_extract system_data_file:file execute;
|