Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 2127) sorted by relevance

12345678910>>...86

/system/timezone/distro/core/src/main/com/android/timezone/distro/
DFileUtils.java95 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/sepolicy/prebuilts/api/30.0/public/
Diorap_inode2filename.te1 # iorap.inode2filename -> look up file paths from an inode
19 allow iorap_inode2filename apex_data_file:file { getattr };
21 allow iorap_inode2filename apex_mnt_dir:file { getattr };
23 allow iorap_inode2filename apk_data_file:file { getattr };
25 allow iorap_inode2filename app_data_file:file { getattr };
27 allow iorap_inode2filename backup_data_file:file { getattr };
29 allow iorap_inode2filename bluetooth_data_file:file { getattr };
31 allow iorap_inode2filename bootchart_data_file:file { getattr };
33 allow iorap_inode2filename metadata_file:file { getattr };
35 allow iorap_inode2filename packages_list_file:file { getattr };
[all …]
/system/sepolicy/public/
Diorap_inode2filename.te1 # iorap.inode2filename -> look up file paths from an inode
19 allow iorap_inode2filename apex_data_file:file { getattr };
21 allow iorap_inode2filename apex_mnt_dir:file { getattr };
23 allow iorap_inode2filename apk_data_file:file { getattr };
25 allow iorap_inode2filename app_data_file:file { getattr };
27 allow iorap_inode2filename backup_data_file:file { getattr };
29 allow iorap_inode2filename bluetooth_data_file:file { getattr };
31 allow iorap_inode2filename bootchart_data_file:file { getattr };
33 allow iorap_inode2filename metadata_file:file { getattr };
35 allow iorap_inode2filename packages_list_file:file { getattr };
[all …]
Dasan_extract.te11 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/core/libprocessgroup/cgrouprc/
Dcgroup_file.cpp82 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/core/fs_mgr/libfiemap/
Dsplit_fiemap_writer.cpp155 for (const auto& file : files) { in Open() local
156 auto writer = FiemapWriter::Open(file, 0, false); in Open()
194 for (const auto& file : files) { in RemoveSplitFiles() local
195 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles()
203 for (const auto& file : files_) { in HasPinnedExtents() local
204 if (!FiemapWriter::HasPinnedExtents(file->file_path())) { in HasPinnedExtents()
213 for (const auto& file : files_) { in extents() local
214 const auto& extents = file->extents(); in extents()
223 FiemapWriter* file = files_[cursor_index_].get(); in Write() local
229 uint64_t file_bytes_left = file->size() - cursor_file_pos_; in Write()
[all …]
/system/sepolicy/prebuilts/api/27.0/public/
Ddex2oat.te10 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 …]
Dprofman.te5 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 };
Ddrmserver.te22 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 …]
/system/sepolicy/prebuilts/api/26.0/public/
Ddex2oat.te10 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 …]
Dprofman.te5 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 };
/system/sepolicy/prebuilts/api/28.0/public/
Ddex2oat.te10 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 …]
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DBackwardFileTest.java30 import java.nio.file.Files;
31 import java.nio.file.Path;
55 String file = createFile(""); in parseEmpty() local
56 BackwardFile backward = BackwardFile.parse(file); in parseEmpty()
62 String file = createFile( in parseIgnoresCommentsAndEmptyLines() local
68 BackwardFile backward = BackwardFile.parse(file); in parseIgnoresCommentsAndEmptyLines()
77 String file = createFile( in parse() local
87 BackwardFile backward = BackwardFile.parse(file); in parse()
112 String file = createFile( in getDirectLinksWithLoop() local
117 BackwardFile backward = BackwardFile.parse(file); in getDirectLinksWithLoop()
[all …]
DZoneTabFileTest.java26 import java.nio.file.Files;
27 import java.nio.file.Path;
53 String file = createFile(""); in parseEmpty() local
54 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parseEmpty()
60 String file = createFile( in parseIgnoresCommentsAndEmptyLines() local
66 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parseIgnoresCommentsAndEmptyLines()
74 String file = createFile( in parse() local
83 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parse()
95 String file = createFile("GB\tStuff"); in parseMalformedFile() local
96 ZoneTabFile.parse(file); in parseMalformedFile()
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Ddex2oat.te10 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 …]
Dgmscore_app.te17 allow gmscore_app config_gz:file { open read getattr };
38 allow gmscore_app selinuxfs:file r_file_perms;
41 dontaudit gmscore_app exec_type:file r_file_perms;
44 dontaudit gmscore_app net_dns_prop:file r_file_perms;
45 dontaudit gmscore_app proc:file r_file_perms;
46 dontaudit gmscore_app proc_interrupts:file r_file_perms;
47 dontaudit gmscore_app proc_modules:file r_file_perms;
48 dontaudit gmscore_app proc_net:file r_file_perms;
49 dontaudit gmscore_app proc_stat:file r_file_perms;
50 dontaudit gmscore_app proc_version:file r_file_perms;
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Ddex2oat.te10 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/private/
Ddex2oat.te10 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;
19 allow dex2oat system_file:file lock;
21 # Read already open asec_apk_file file descriptors passed by installd.
24 allow dex2oat asec_apk_file:file { read map };
25 allow dex2oat unlabeled:file { read map };
26 allow dex2oat oemfs:file { read map };
28 allow dex2oat apk_tmp_file:file r_file_perms;
29 allow dex2oat user_profile_data_file:file { getattr read lock map };
[all …]
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java21 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/private/
Dbug_map2 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
Ddomain.te26 } 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/sepolicy/prebuilts/api/28.0/
Dvendor_sepolicy.cil476 (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/update_engine/scripts/update_payload/
Dupdate_metadata_pb2.py32 file=DESCRIPTOR,
91 file=DESCRIPTOR,
100 serialized_options=None, file=DESCRIPTOR),
107 serialized_options=None, file=DESCRIPTOR),
129 file=DESCRIPTOR,
138 serialized_options=_b('\030\001'), file=DESCRIPTOR),
145 serialized_options=None, file=DESCRIPTOR),
152 serialized_options=None, file=DESCRIPTOR),
173 file=DESCRIPTOR,
182 serialized_options=None, file=DESCRIPTOR),
[all …]
/system/update_engine/payload_generator/
Ddeflate_utils.cc61 const FilesystemInterface::File& file) { in IsSquashfsImage() argument
63 if (base::EndsWith(file.name, ".img", base::CompareCase::SENSITIVE) && in IsSquashfsImage()
64 utils::BlocksInExtents(file.extents) >= in IsSquashfsImage()
69 file.extents[0].start_block() * kBlockSize, in IsSquashfsImage()
77 bool IsRegularFile(const FilesystemInterface::File& file) { in IsRegularFile() argument
79 if (file.file_stat.st_ino != 0 && in IsRegularFile()
80 (file.file_stat.st_mode & S_IFMT) == S_IFREG) { in IsRegularFile()
88 bool RealignSplittedFiles(const FilesystemInterface::File& file, in RealignSplittedFiles() argument
95 ShiftExtentsOverExtents(file.extents, &in_file.extents)); in RealignSplittedFiles()
97 ShiftBitExtentsOverExtents(file.extents, &in_file.deflates)); in RealignSplittedFiles()
[all …]
/system/extras/verity/
Dbuild_verity_tree.cpp36 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()

12345678910>>...86