Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 43) 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/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/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/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()
316 std::string file_name = get_android_dt_dir() + "/fstab/compatible"; in IsDtFstabCompatible() local
318 if (ReadDtFile(file_name, &dt_value) && dt_value == "android,fstab") { in IsDtFstabCompatible()
347 std::string file_name; in ReadFstabFromDt() local
350 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
351 if (ReadDtFile(file_name, &value)) { in ReadFstabFromDt()
358 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
359 if (!ReadDtFile(file_name, &value)) { in ReadFstabFromDt()
366 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.py64 def __init__(self, xml, file_name): argument
79 raise ValueError("%s has an invalid XML file" % (file_name))
86 def create_from_file(file_name): argument
99 return MetadataParserXml(file(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(file(file_name).read()) is not None
357 print "%s: SUCCESS! Document validated" %(file_name)
360 print >> sys.stderr, "%s: ERRORS: Document failed to validate" %(file_name)
/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/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/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.py650 for file_name in file_names:
651 if self.is_source_filename(file_name):
652 rparents = self.filename_to_rparents.get(file_name)
654 rparents = self.filename_to_rparents[file_name] = []
661 abstract_parent, file_name = os.path.split(abstract_path)
663 real_rparents = self.filename_to_rparents.get(file_name)
675 return os.path.join(best_matched_rparent[::-1], file_name)
/system/nfc/utils/include/
Dconfig.h46 void parseFromFile(const std::string& file_name);
/system/core/logcat/
Dlogcat.cpp480 std::string file_name = directory; in lastLogTime() local
481 file_name += "/"; in lastLogTime()
482 file_name += dp->d_name; in lastLogTime()
484 if (!android::base::ReadFileToString(file_name, &file)) continue; in lastLogTime()
931 std::string file_name = StringPrintf("%s.id", output_file_name_); in Run() local
933 bool file_ok = android::base::ReadFileToString(file_name, &file); in Run()
934 android::base::WriteStringToFile(setId, file_name, S_IRUSR | S_IWUSR, in Run()
/system/core/libprocessgroup/setup/
Dcgroup_map_write.cpp174 static bool ReadDescriptorsFromFile(const std::string& file_name, in ReadDescriptorsFromFile() argument
179 if (!android::base::ReadFileToString(file_name, &json_doc)) { in ReadDescriptorsFromFile()
180 PLOG(ERROR) << "Failed to read task profiles from " << file_name; in ReadDescriptorsFromFile()
/system/incremental_delivery/incfs/kernel-headers/linux/
Dincrementalfs.h225 __aligned_u64 file_name; member

12