/system/libvintf/xsd/halManifest/vts/ |
D | ValidateHalManifest.cpp | 61 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/ |
D | fs_avb_test_util.cpp | 50 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 …]
|
D | fs_avb_test_util.h | 76 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/ |
D | p2p_manager_unittest.cc | 172 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/ |
D | FileTest.cpp | 46 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/ |
D | device_properties.cc | 46 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/ |
D | fs_mgr_fstab.cpp | 92 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 …]
|
D | fs_mgr_boot_config.cpp | 98 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/ |
D | metadata_parser_xml.py | 64 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)
|
D | metadata_validate.py | 353 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/ |
D | task_profiles.h | 31 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);
|
D | cgroup_map.cpp | 105 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()
|
D | task_profiles.cpp | 47 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/ |
D | check_file_read.py | 129 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/ |
D | config.cc | 115 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/ |
D | nfc_config.cc | 31 std::string searchConfigPath(std::string file_name) { in searchConfigPath() argument 36 path.append(file_name); in searchConfigPath()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | test_listeners.h | 41 test_part_result.file_name(), test_part_result.line_number(), in OnTestPartResult()
|
/system/core/adb/client/ |
D | bugreport.h | 45 virtual void UpdateProgress(const std::string& file_name, int progress_percentage);
|
/system/core/libunwindstack/tools/ |
D | unwind_for_offline.cpp | 91 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/ |
D | recovery_test.cpp | 52 explicit DataFileVerifier(const char* file_name) { in DataFileVerifier() argument 53 strncpy(test_file_, file_name, FILENAME_MAX); in DataFileVerifier()
|
/system/extras/simpleperf/scripts/ |
D | utils.py | 650 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/ |
D | config.h | 46 void parseFromFile(const std::string& file_name);
|
/system/core/logcat/ |
D | logcat.cpp | 480 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/ |
D | cgroup_map_write.cpp | 174 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/ |
D | incrementalfs.h | 225 __aligned_u64 file_name; member
|