Home
last modified time | relevance | path

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

12345678910>>...63

/system/extras/pinner/
Dpin_utils.cpp16 for (auto&& file : files_to_write) { in write_pinlist_file()
17 ranges.insert(ranges.end(), file.coverage.ranges.begin(), file.coverage.ranges.end()); in write_pinlist_file()
97 ZipEntryCoverage file; in to_zipfilemem() local
98 file.info = info; in to_zipfilemem()
107 file.coverage.ranges = ranges; in to_zipfilemem()
112 file.coverage.apply_offset(info.offset_in_zip); in to_zipfilemem()
114 file.coverage.compute_total_size(); in to_zipfilemem()
115 return file; in to_zipfilemem()
119 ifstream file(config_file); in parse() local
125 file >> token; in parse()
[all …]
DREADME.md27 ### Sample Use Case 1: Probe Resident Memory for a mapped file or library and dump to console
33 ./pintool file <path_to_your_library> --gen-probe --dump
36 Note: you can use any kind of mapped file such as .so, .apk, etc.
38 ### Sample Use Case 2: Probe per-file Resident Memory for a mapped apk file and dump to console
40 Executing this command will inspect resident memory for a zip file and dump
41 per-file breakdowns.
44 ./pintool file <path_to_myfile.apk> --zip --gen-probe --dump
47 ### Sample Use Case 3: Probe per-file resident memory for a mapped apk, dump and generate pinlist.m…
49 ./pintool file <path_to_myfile.apk> --zip --gen-probe --dump -o pinlist.meta
52 ### Sample Use Case 4: Probe per-file resident memory and filter it with a provided pinconfig
[all …]
/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.cpp156 for (const auto& file : files) { in Open() local
157 auto writer = FiemapWriter::Open(file, 0, false); in Open()
195 for (const auto& file : files) { in RemoveSplitFiles() local
196 if (access(file.c_str(), F_OK) != 0 && (errno == ENOENT || errno == ENAMETOOLONG)) { in RemoveSplitFiles()
199 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles()
207 for (const auto& file : files_) { in HasPinnedExtents() local
208 if (!FiemapWriter::HasPinnedExtents(file->file_path())) { in HasPinnedExtents()
217 for (const auto& file : files_) { in extents() local
218 const auto& extents = file->extents(); in extents()
227 FiemapWriter* file = files_[cursor_index_].get(); in Write() local
[all …]
/system/sepolicy/private/
Dbpfloader.te10 allow bpfloader bpffs_type:file { create getattr read rename setattr };
19 allow bpfloader sysfs_fs_fuse_bpf:file r_file_perms;
21 allow bpfloader proc_bpf:file rw_file_perms;
25 allow bpfloader bpfloader_exec:file execute_no_trans;
35 neverallow { domain } bpffs_type:file ~{ create getattr map open read rename setattr wri…
36 neverallow { domain -bpfloader } bpffs_type:file { create map open rename setattr };
37 …ovider_app -netd -netutils_wrapper -system_server } fs_bpf:file { get…
38 … } fs_bpf_loader:file { getattr re…
39 … -network_stack } fs_bpf_net_private:file { getattr read };
40 … -network_stack -system_server } fs_bpf_net_shared:file { getattr read };
[all …]
Ddex2oat.te12 allow dex2oat vendor_framework_file:file { getattr open read map };
18 allow dex2oat tmpfs:file { read getattr map };
21 allow dex2oat dalvikcache_data_file:file write;
24 allow dex2oat system_file:file lock;
25 allow dex2oat postinstall_file:file lock;
27 # Read already open asec_apk_file file descriptors passed by installd.
30 allow dex2oat asec_apk_file:file { read map };
31 allow dex2oat unlabeled:file { read map };
32 allow dex2oat oemfs:file { read map };
34 allow dex2oat apk_tmp_file:file r_file_perms;
[all …]
Dmediaextractor.te5 allow mediaextractor appdomain_tmpfs:file { getattr map read write };
6 allow mediaextractor mediaserver_tmpfs:file { getattr map read write };
7 allow mediaextractor system_server_tmpfs:file { getattr map read write };
30 allow mediaextractor proc_meminfo:file r_file_perms;
34 # allow mediaextractor read permissions for file sources
35 allow mediaextractor { sdcard_type fuse }:file { getattr read };
36 allow mediaextractor media_rw_data_file:file { getattr read };
37 allow mediaextractor { app_data_file privapp_data_file }:file { getattr read };
40 allow mediaextractor apk_data_file:file { read getattr };
41 allow mediaextractor asec_apk_file:file { read getattr };
[all …]
Dbug_map5 init app_data_file file b/77873135
7 init logpersist file b/77873135
11 init shell_data_file file b/77873135
17 mediaextractor app_data_file file b/77923736
18 mediaextractor radio_data_file file b/77923736
25 shell sysfs_net file b/329380904
26 system_server overlayfs_file file b/142390309
27 system_server sdcardfs file b/77856826
32 vold system_data_file file b/124108085
Dlmkd.te16 allow lmkd debugfs_tracing:file r_file_perms;
19 allow lmkd fs_bpf:file read;
23 allow lmkd fs_bpf_lmkd_memevents_rb:file { read write };
24 allow lmkd fs_bpf_lmkd_memevents_prog:file read;
37 allow lmkd domain:file write;
41 allow lmkd sysfs_lowmemorykiller:file w_file_perms;
53 allow lmkd cgroup:file r_file_perms;
54 allow lmkd cgroup_v2:file r_file_perms;
59 allow lmkd proc_zoneinfo:file r_file_perms;
60 allow lmkd proc_vmstat:file r_file_perms;
[all …]
Ddumpstate.te14 allow dumpstate system_file:file lock;
16 allow dumpstate storaged_exec:file rx_file_perms;
21 allow dumpstate accessibility_trace_data_file:file r_file_perms;
27 allow dumpstate wm_trace_data_file:file r_file_perms;
33 allow dumpstate dropbox_data_file:file r_file_perms;
90 allow dumpstate debugfs_wakeup_sources:file r_file_perms;
95 allow dumpstate sysfs_dmabuf_stats:file r_file_perms;
103 }:file r_file_perms;
127 allow dumpstate gsid_exec:file rx_file_perms;
133 allow dumpstate binderfs_logs_transactions:file r_file_perms;
[all …]
Dasan_extract.te13 allow asan_extract shell_exec:file rx_file_perms;
16 allow asan_extract toolbox_exec:file rx_file_perms;
17 allow asan_extract system_file:file execute_no_trans;
21 allow asan_extract system_file:file unlink;
25 allow asan_extract system_data_file:{ file lnk_file } create_file_perms ;
28 allow asan_extract file_contexts_file:file r_file_perms;
29 allow asan_extract system_data_file:{ dir file } relabelfrom;
31 allow asan_extract system_file:file relabelto;
34 allow asan_extract system_data_file:file execute;
Dprofman.te9 }:file { getattr read map lock };
11 # Allow profman to use file descriptors passed from privileged programs.
17 allow profman artd_tmpfs:file { getattr read map lock };
19 allow profman user_profile_data_file:file { getattr read write lock map };
21 # Dumping profile info opens the application APK file for pretty printing.
22 allow profman asec_apk_file:file { read map };
23 allow profman apk_data_file:file { getattr read map };
26 allow profman oemfs:file { read map };
28 allow profman tmpfs:file { read map };
29 allow profman profman_dump_data_file:file { write map };
[all …]
Ddrmserver.te29 allow drmserver drm_data_file:file create_file_perms;
30 allow drmserver { app_data_file privapp_data_file }:file { read write getattr map };
31 allow drmserver { sdcard_type fuse }:file { read write getattr map };
34 # /data/app/tlcd_sock socket file.
40 # Delete old socket file if present.
43 # After taking a video, drmserver looks at the video file.
47 allow drmserver apk_data_file:file { read getattr map };
48 allow drmserver asec_apk_file:file { read getattr map };
49 allow drmserver ringtone_file:file { read getattr map };
52 allow drmserver radio_data_file:file { read getattr map };
[all …]
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
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/update_engine/payload_generator/
Ddeflate_utils.cc67 const FilesystemInterface::File& file) { in IsSquashfsImage() argument
69 if (base::EndsWith(file.name, ".img", base::CompareCase::SENSITIVE) && in IsSquashfsImage()
70 utils::BlocksInExtents(file.extents) >= in IsSquashfsImage()
75 file.extents[0].start_block() * kBlockSize, in IsSquashfsImage()
83 bool IsRegularFile(const FilesystemInterface::File& file) { in IsRegularFile() argument
85 if (file.file_stat.st_ino != 0 && in IsRegularFile()
86 (file.file_stat.st_mode & S_IFMT) == S_IFREG) { in IsRegularFile()
94 bool RealignSplittedFiles(const FilesystemInterface::File& file, in RealignSplittedFiles() argument
101 ShiftExtentsOverExtents(file.extents, &in_file.extents)); in RealignSplittedFiles()
103 ShiftBitExtentsOverExtents(file.extents, &in_file.deflates)); in RealignSplittedFiles()
[all …]
Dext2_filesystem_unittest.cc87 for (const auto& file : files) { in TEST_F() local
88 EXPECT_EQ(map_files.end(), map_files.find(file.name)) in TEST_F()
89 << "File " << file.name << " repeated in the list."; in TEST_F()
90 map_files[file.name] = file; in TEST_F()
91 ExpectBlocksInRange(file.extents, fs->GetBlockCount()); in TEST_F()
114 for (const auto& file : files) { in TEST_F() local
117 EXPECT_EQ(map_files.end(), map_files.find(file.name)) in TEST_F()
118 << "File " << file.name << " repeated in the list."; in TEST_F()
119 map_files[file.name] = file; in TEST_F()
120 filenames.insert(file.name); in TEST_F()
[all …]
Dext2_filesystem.cc195 File& file = inodes[it_ino]; in GetFiles() local
197 file.name = "<group-descriptors>"; in GetFiles()
199 file.name = base::StringPrintf("<inode-%u>", it_ino); in GetFiles()
202 memset(&file.file_stat, 0, sizeof(file.file_stat)); in GetFiles()
203 file.file_stat.st_ino = it_ino; in GetFiles()
204 file.file_stat.st_mode = it_inode.i_mode; in GetFiles()
205 file.file_stat.st_nlink = it_inode.i_links_count; in GetFiles()
206 file.file_stat.st_uid = it_inode.i_uid; in GetFiles()
207 file.file_stat.st_gid = it_inode.i_gid; in GetFiles()
208 file.file_stat.st_size = it_inode.i_size; in GetFiles()
[all …]
Derofs_filesystem.cc88 auto& file = *p_file; in FillExtentInfo() local
94 auto& compressed_blocks = file.compressed_file_info.blocks; in FillExtentInfo()
103 LOG(FATAL) << "Failed to map blocks for " << file.name << " in " in FillExtentInfo()
112 LOG(ERROR) << "File `" << file.name in FillExtentInfo()
131 file.extents.push_back(ExtentForRange( in FillExtentInfo()
139 if (file.is_compressed) { in FillExtentInfo()
154 file.extents.push_back(ExtentForRange( in FillExtentInfo()
251 File file; in GetFiles() local
252 file.name = info.path; in GetFiles()
253 file.compressed_file_info.zero_padding_enabled = in GetFiles()
[all …]
/system/server_configurable_flags/aconfigd/
Daconfigd_util.cpp48 auto file = dir + "/" + entry->d_name; in RemoveFilesInDir() local
49 if (unlink(file.c_str()) == -1) { in RemoveFilesInDir()
50 return ErrnoError() << "unlink() failed for " << file; in RemoveFilesInDir()
95 Result<uint64_t> GetFileTimeStamp(const std::string& file) { in GetFileTimeStamp() argument
97 int result = stat(file.c_str(), &st); in GetFileTimeStamp()
105 bool FileExists(const std::string& file) { in FileExists() argument
107 return stat(file.c_str(), &st) == 0 ? true : false; in FileExists()
110 bool FileNonZeroSize(const std::string& file) { in FileNonZeroSize() argument
112 return stat(file.c_str(), &st) == 0 ? st.st_size > 0 : false; in FileNonZeroSize()
119 for (const auto& file : files) { in GetFilesDigest() local
[all …]
/system/extras/simpleperf/
Dcmd_merge.cpp37 MergedFileFeature(FileFeature& file) in MergedFileFeature() argument
38 : path_(file.path), in MergedFileFeature()
39 type_(file.type), in MergedFileFeature()
40 min_vaddr_(file.min_vaddr), in MergedFileFeature()
41 file_offset_of_min_vaddr_(file.file_offset_of_min_vaddr), in MergedFileFeature()
42 dex_file_offsets_(std::move(file.dex_file_offsets)) { in MergedFileFeature()
43 for (auto& symbol : file.symbols) { in MergedFileFeature()
48 bool Merge(FileFeature& file) { in Merge() argument
49 if (file.type != type_ || file.min_vaddr != min_vaddr_ || in Merge()
50 file.file_offset_of_min_vaddr != file_offset_of_min_vaddr_ || in Merge()
[all …]
/system/update_engine/scripts/
Dupdate_metadata_pb2.py32 file=DESCRIPTOR,
102 file=DESCRIPTOR,
129 file=DESCRIPTOR,
138 serialized_options=None, file=DESCRIPTOR),
145 serialized_options=None, file=DESCRIPTOR),
167 file=DESCRIPTOR,
176 serialized_options=_b('\030\001'), file=DESCRIPTOR),
183 serialized_options=None, file=DESCRIPTOR),
190 serialized_options=None, file=DESCRIPTOR),
211 file=DESCRIPTOR,
[all …]
/system/sepolicy/tools/
Dseamendc.c42 FILE *file = fopen(path, "r"); in read_binary_policy() local
43 if (!file) { in read_binary_policy()
70 rc = fread(buff, file_size, 1, file); in read_binary_policy()
90 if (file != NULL && fclose(file) == EOF && rc == SEPOL_OK) { in read_binary_policy()
108 FILE *file = NULL; in read_cil_files() local
114 file = fopen(path, "r"); in read_cil_files()
115 if (file == NULL) { in read_cil_files()
136 rc = fread(buff, file_size, 1, file); in read_cil_files()
142 fclose(file); in read_cil_files()
143 file = NULL; in read_cil_files()
[all …]
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java23 import java.nio.file.FileVisitResult;
24 import java.nio.file.FileVisitor;
25 import java.nio.file.Files;
26 import java.nio.file.Path;
27 import java.nio.file.SimpleFileVisitor;
28 import java.nio.file.attribute.BasicFileAttributes;
50 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in deleteDir()
52 return delete(file); in deleteDir()
61 private FileVisitResult delete(Path file) throws IOException { in deleteDir()
62 Files.delete(file); in deleteDir()
/system/sepolicy/private/compat/30.0/
D30.0.compat.cil1 ;; complement CIL file for compatibility between ToT policy and 30.0 vendors.
12 (allow mlsvendorcompat app_data_file (file (ioctl read write create getattr setattr lock append map…
14 (allow mlsvendorcompat privapp_data_file (file (ioctl read write create getattr setattr lock append…
22 (allow dumpstate debugfs (file (ioctl read getattr lock map open watch watch_reads)))
23 (allow dumpstate debugfs_mmc (file (ioctl read getattr lock map open watch watch_reads)))
24 (allow dumpstate debugfs_wakeup_sources (file (ioctl read getattr lock map open watch watch_reads)))
25 (auditallow dumpstate debugfs (file (ioctl read getattr lock map open watch watch_reads)))
28 (allow init debugfs (file (getattr relabelfrom)))
30 (allow init debugfs_file_type (file (create getattr open read write setattr relabelfrom unlink map)…
33 (allow init debugfs_type (file (getattr relabelto)))
[all …]
/system/sepolicy/private/compat/29.0/
D29.0.compat.cil1 ;; complement CIL file for compatibility between ToT policy and 29.0 vendors.
11 (allow mlsvendorcompat app_data_file (file (ioctl read write create getattr setattr lock append map…
13 (allow mlsvendorcompat privapp_data_file (file (ioctl read write create getattr setattr lock append…
21 (allow dumpstate debugfs (file (ioctl read getattr lock map open watch watch_reads)))
22 (allow dumpstate debugfs_mmc (file (ioctl read getattr lock map open watch watch_reads)))
23 (allow dumpstate debugfs_wakeup_sources (file (ioctl read getattr lock map open watch watch_reads)))
24 (auditallow dumpstate debugfs (file (ioctl read getattr lock map open watch watch_reads)))
27 (allow init debugfs (file (getattr relabelfrom)))
29 (allow init debugfs_file_type (file (create getattr open read write setattr relabelfrom unlink map)…
32 (allow init debugfs_type (file (getattr relabelto)))
[all …]

12345678910>>...63