Home
last modified time | relevance | path

Searched refs:file_data (Results 1 – 7 of 7) sorted by relevance

/system/core/libprocessgroup/cgrouprc/
Dcgroup_file.cpp56 CgroupFile* file_data = (CgroupFile*)mmap(nullptr, file_size, PROT_READ, MAP_SHARED, fd, 0); in LoadRcFile() local
57 if (file_data == MAP_FAILED) { in LoadRcFile()
62 if (file_data->version_ != CgroupFile::FILE_CURR_VERSION) { in LoadRcFile()
64 munmap(file_data, file_size); in LoadRcFile()
68 auto expected = sizeof(CgroupFile) + file_data->controller_count_ * sizeof(CgroupController); in LoadRcFile()
72 munmap(file_data, file_size); in LoadRcFile()
76 return file_data; in LoadRcFile()
/system/core/libunwindstack/tests/
DMapsTest.cpp453 std::string file_data; in TEST() local
455 file_data += CreateEntry(index); in TEST()
467 file_data.erase(file_data.size() - 1); in TEST()
468 file_data += ' ' + overlap1_name + '\n'; in TEST()
477 file_data += CreateEntry(index); in TEST()
485 file_data.erase(file_data.size() - 1); in TEST()
486 file_data += ' '; in TEST()
488 file_data += overlap2_name + '\n'; in TEST()
494 file_data += CreateEntry(index); in TEST()
497 ASSERT_TRUE(android::base::WriteStringToFile(file_data, tf.path, 0660, getuid(), getgid())); in TEST()
[all …]
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc82 string file_data; in GetFiles() local
83 if (!base::ReadFileToString(base::FilePath(mapfile_filename_), &file_data)) { in GetFiles()
91 file_data, "\n", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); in GetFiles()
Ddelta_diff_utils_unittest.cc93 brillo::Blob file_data(part.size); in InitializePartitionWithUniqueBlocks() local
102 file_data.begin() + i * block_size); in InitializePartitionWithUniqueBlocks()
104 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
422 brillo::Blob file_data(block_size_ * 10, 'a'); in TEST_F() local
423 for (size_t offset = 0; offset < file_data.size(); offset += block_size_) in TEST_F()
424 file_data[offset] = 'a' + offset / block_size_; in TEST_F()
428 offset += file_data.size()) { in TEST_F()
430 file_data.begin(), file_data.end(), partition_data.begin() + offset); in TEST_F()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp347 std::string file_data; in StartDataCollection() local
348 if (!data->SerializeToString(&file_data)) { in StartDataCollection()
352 if (!android::base::WriteStringToFile(file_data, getStoragePath())) { in StartDataCollection()
358 std::string file_data; in Print() local
359 if (!android::base::ReadFileToString(getStoragePath(), &file_data)) { in Print()
364 if (!data->ParsePartialFromString(file_data)) { in Print()
/system/memory/lmkd/
Dlmkd.cpp1643 static struct reread_data file_data = { in zoneinfo_parse() local
1657 if ((buf = reread_file(&file_data)) == NULL) { in zoneinfo_parse()
1672 ALOGE("%s parse error", file_data.filename); in zoneinfo_parse()
1680 ALOGE("%s parse error", file_data.filename); in zoneinfo_parse()
1688 ALOGE("%s parse error", file_data.filename); in zoneinfo_parse()
1694 ALOGE("%s parse error", file_data.filename); in zoneinfo_parse()
1742 static struct reread_data file_data = { in meminfo_parse() local
1752 if ((buf = reread_file(&file_data)) == NULL) { in meminfo_parse()
1759 ALOGE("%s parse error", file_data.filename); in meminfo_parse()
1797 static struct reread_data file_data = { in vmstat_parse() local
[all …]
/system/extras/simpleperf/scripts/
Dreport_html.py830 file_data = {}
832 file_data['path'] = ''
833 file_data['code'] = {}
835 file_data['path'] = source_file.real_path
839 file_data['code'] = code_map
840 file_list.append(file_data)