Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 49) sorted by relevance

12

/system/libvintf/xsd/halManifest/vts/
DValidateHalManifest.cpp61 for (std::string file_name : files) { in TEST() local
62 if (android::base::StartsWith(file_name, "manifest")) { in TEST()
63 EXPECT_VALID_XML((dir_path + "/"s + file_name).c_str(), xsd); in TEST()
75 for (std::string file_name : files) { in TEST() local
76 EXPECT_VALID_XML((dir_path + "/"s + file_name).c_str(), xsd); in TEST()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp50 std::string BaseFsAvbTest::CalcVBMetaDigest(const std::string& file_name, in CalcVBMetaDigest() argument
52 auto iter = vbmeta_images_.find(file_name); in CalcVBMetaDigest()
73 const std::string& file_name, const std::string& avb_algorithm, uint64_t rollback_index, in GenerateVBMetaImage() argument
100 vbmeta_image.path = test_dir_.Append(file_name); in GenerateVBMetaImage()
115 vbmeta_images_.emplace(file_name, std::move(vbmeta_image)); in GenerateVBMetaImage()
117 return vbmeta_images_[file_name].path; // returns the path. in GenerateVBMetaImage()
145 base::FilePath BaseFsAvbTest::GenerateImage(const std::string& file_name, size_t image_size, in GenerateImage() argument
152 base::FilePath image_path = test_dir_.Append(file_name); in GenerateImage()
209 VBMetaData BaseFsAvbTest::LoadVBMetaData(const std::string& file_name) { in LoadVBMetaData() argument
210 auto iter = vbmeta_images_.find(file_name); in LoadVBMetaData()
[all …]
Dfs_avb_test_util.h76 std::string CalcVBMetaDigest(const std::string& file_name, const std::string& hash_algorithm);
82 const std::string& file_name, const std::string& avb_algorithm, uint64_t rollback_index,
96 base::FilePath GenerateImage(const std::string& file_name, size_t image_size,
114 VBMetaData LoadVBMetaData(const std::string& file_name);
119 std::string InfoImage(const std::string& file_name);
/system/update_engine/
Dp2p_manager_unittest.cc172 string file_name; in TEST_F() local
176 file_name = base::StringPrintf( in TEST_F()
178 EXPECT_EQ(expect, utils::FileExists(file_name.c_str())); in TEST_F()
180 file_name = base::StringPrintf( in TEST_F()
182 EXPECT_TRUE(utils::FileExists(file_name.c_str())); in TEST_F()
246 string file_name; in TEST_F() local
250 file_name = base::StringPrintf( in TEST_F()
252 EXPECT_EQ(expect, utils::FileExists(file_name.c_str())); in TEST_F()
254 file_name = base::StringPrintf( in TEST_F()
256 EXPECT_TRUE(utils::FileExists(file_name.c_str())); in TEST_F()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice_properties.cc46 DeviceProperties::DeviceProperties(const std::string& file_name) in DeviceProperties() argument
78 if (file_name.size() == 0) { in DeviceProperties()
81 LOG_INFO("Reading controller properties from %s.", file_name.c_str()); in DeviceProperties()
82 if (!base::ReadFileToString(base::FilePath(file_name), &properties_raw)) { in DeviceProperties()
/system/extras/memory_replay/tests/
DFileTest.cpp46 std::string file_name = GetTestZip(); in TEST() local
51 GetUnwindInfo(file_name.c_str(), &entries, &num_entries); in TEST()
81 std::string file_name = GetTestDirectory() + "/test.txt"; in TEST() local
86 GetUnwindInfo(file_name.c_str(), &entries, &num_entries); in TEST()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp92 bool ReadDtFile(const std::string& file_name, std::string* dt_value) { in ReadDtFile() argument
93 if (android::base::ReadFileToString(file_name, dt_value)) { in ReadDtFile()
310 std::string file_name = get_android_dt_dir() + "/fstab/compatible"; in IsDtFstabCompatible() local
312 if (ReadDtFile(file_name, &dt_value) && dt_value == "android,fstab") { in IsDtFstabCompatible()
341 std::string file_name; in ReadFstabFromDt() local
344 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
345 if (ReadDtFile(file_name, &value)) { in ReadFstabFromDt()
352 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
353 if (!ReadDtFile(file_name, &value)) { in ReadFstabFromDt()
360 file_name = in ReadFstabFromDt()
[all …]
Dfs_mgr_boot_config.cpp98 std::string file_name = get_android_dt_dir() + "/" + key; in fs_mgr_get_boot_config() local
99 if (android::base::ReadFileToString(file_name, out_val)) { in fs_mgr_get_boot_config()
/system/media/camera/docs/
Dmetadata_parser_xml.py65 def __init__(self, xml, file_name): argument
80 raise ValueError("%s has an invalid XML file" % (file_name))
87 def create_from_file(file_name): argument
100 return MetadataParserXml(open(file_name).read(), file_name)
368 file_name = sys.argv[1] variable
373 parser = MetadataParserXml.create_from_file(file_name)
Dmetadata_validate.py353 file_name = sys.argv[1] variable
354 succ = validate_xml(open(file_name).read()) is not None
357 print("%s: SUCCESS! Document validated" % (file_name))
360 print("%s: ERRORS: Document failed to validate" % (file_name), file=sys.stderr)
/system/core/libprocessgroup/
Dtask_profiles.h31 ProfileAttribute(const CgroupController& controller, const std::string& file_name) in ProfileAttribute() argument
32 : controller_(controller), file_name_(file_name) {} in ProfileAttribute()
35 const std::string& file_name() const { return file_name_; } in file_name() function
36 void Reset(const CgroupController& controller, const std::string& file_name);
191 bool Load(const CgroupMap& cg_map, const std::string& file_name);
Dcgroup_map.cpp105 std::string file_name = StringPrintf("/proc/%d/cgroup", tid); in GetTaskGroup() local
107 if (!android::base::ReadFileToString(file_name, &content)) { in GetTaskGroup()
108 PLOG(ERROR) << "Failed to read " << file_name; in GetTaskGroup()
Dtask_profiles.cpp47 void ProfileAttribute::Reset(const CgroupController& controller, const std::string& file_name) { in Reset() argument
49 file_name_ = file_name; in Reset()
367 bool TaskProfiles::Load(const CgroupMap& cg_map, const std::string& file_name) { in Load() argument
370 if (!android::base::ReadFileToString(file_name, &json_doc)) { in Load()
371 LOG(ERROR) << "Failed to read task profiles from " << file_name; in Load()
/system/iorap/src/inode2filename/
Dout_of_process_inode_resolver.cc39 static const char* file_name = nullptr; in GetCommandFileName()
41 if (file_name == nullptr) { in GetCommandFileName()
56 file_name = file_name_str.c_str(); in GetCommandFileName()
59 return file_name; in GetCommandFileName()
182 const std::string& file_name = rest_of_line; in ParseFromLine() local
184 return InodeResult::makeSuccess(inode, file_name); in ParseFromLine()
Ddata_source.cc101 const std::string& file_name = *dependencies_.text_cache_filename; in EmitInodes() local
104 [file_name](rx::subscriber<InodeResult> dest) { in EmitInodes()
107 std::ifstream ifs{file_name}; in EmitInodes()
/system/extras/boottime_tools/io_analysis/
Dcheck_file_read.py129 def __init__(self, open_time, file_name, process_name, inode, flags): argument
130 self.file_name = file_name
157 % (self.file_name, self.read.total_access, self.write.total_access, self.total_open,\
172 print " filename %s, total reads %d, total writes %d" % (self.file_name,
263 file_name = match.group(4)
270 if file_name.startswith(p):
274 print "Ignore open for file", file_name
279 fevent = FileEvent(time, file_name, process_name, inode, flag)
/system/nfc/utils/
Dconfig.cc115 void ConfigFile::parseFromFile(const std::string& file_name) { in parseFromFile() argument
117 bool config_read = ReadFileToString(file_name, &config); in parseFromFile()
119 LOG(INFO) << "ConfigFile - Parsing file '" << file_name << "'"; in parseFromFile()
/system/nfc/src/adaptation/
Dnfc_config.cc31 std::string searchConfigPath(std::string file_name) { in searchConfigPath() argument
36 path.append(file_name); in searchConfigPath()
/system/core/fastboot/fuzzy_fastboot/
Dtest_listeners.h41 test_part_result.file_name(), test_part_result.line_number(), in OnTestPartResult()
/system/core/adb/client/
Dbugreport.h45 virtual void UpdateProgress(const std::string& file_name, int progress_percentage);
/system/iorap/src/prefetcher/
Dsession.cc216 std::string_view file_name = *file_name_opt; in ReadAhead() local
220 << "path '" << file_name << "', failed to readahead entry."; in ReadAhead()
229 PLOG(ERROR) << "SessionDirect: Failed to fadvise entry " << file_name in ReadAhead()
250 PLOG(ERROR) << "SessionDirect: Failed to mmap entry " << file_name in ReadAhead()
258 PLOG(ERROR) << "SessionDirect: Failed to mlock entry " << file_name in ReadAhead()
368 LOG(VERBOSE) << "ReadAhead: found file entry: " << index_entry.file_name(); in ProcessFd()
377 const auto& path_file_name = index_entry.file_name(); in ProcessFd()
/system/core/libunwindstack/tools/
Dunwind_for_offline.cpp91 std::string file_name; in SaveStack() local
93 file_name = "stack" + std::to_string(i) + ".data"; in SaveStack()
95 file_name = "stack.data"; in SaveStack()
110 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file_name.c_str(), "w+"), &fclose); in SaveStack()
/system/extras/tests/fstest/
Drecovery_test.cpp52 explicit DataFileVerifier(const char* file_name) { in DataFileVerifier() argument
53 strncpy(test_file_, file_name, FILENAME_MAX); in DataFileVerifier()
/system/extras/simpleperf/scripts/
Dutils.py646 for file_name in file_names:
647 if self.is_source_filename(file_name):
648 rparents = self.filename_to_rparents.get(file_name)
650 rparents = self.filename_to_rparents[file_name] = []
657 abstract_parent, file_name = os.path.split(abstract_path)
659 real_rparents = self.filename_to_rparents.get(file_name)
671 return os.path.join(best_matched_rparent[::-1], file_name)
/system/nfc/utils/include/
Dconfig.h46 void parseFromFile(const std::string& file_name);

12