Searched refs:file_name (Results 1 - 25 of 28) sorted by relevance

12

/system/bt/vendor_libs/test_vendor_lib/src/
H A Ddevice_properties.cc50 DeviceProperties::DeviceProperties(const std::string& file_name) argument
80 file_name.c_str());
81 if (!base::ReadFileToString(base::FilePath(file_name), &properties_raw)) {
/system/core/adb/
H A Dbugreport.h45 virtual void UpdateProgress(const std::string& file_name, int progress_percentage);
/system/core/fs_mgr/
H A Dfs_mgr_boot_config.cpp67 std::string file_name = get_android_dt_dir() + "/" + key; local
68 if (android::base::ReadFileToString(file_name, out_val)) {
H A Dfs_mgr_fstab.cpp193 static bool read_dt_file(const std::string& file_name, std::string* dt_value) argument
195 if (android::base::ReadFileToString(file_name, dt_value)) {
402 std::string file_name = get_android_dt_dir() + "/fstab/compatible"; local
403 if (read_dt_file(file_name, &dt_value)) {
430 std::string file_name; local
433 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name);
434 if (read_dt_file(file_name, &value)) {
441 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name);
442 if (!read_dt_file(file_name, &value)) {
449 file_name
495 std::string file_name = get_android_dt_dir() + "/compatible"; local
904 std::string file_name = get_android_dt_dir() + "/boot_devices"; local
[all...]
/system/update_engine/
H A Dp2p_manager_unittest.cc167 string file_name; local
171 file_name = base::StringPrintf(
174 EXPECT_EQ(expect, utils::FileExists(file_name.c_str()));
176 file_name = base::StringPrintf(
179 EXPECT_TRUE(utils::FileExists(file_name.c_str()));
240 string file_name; local
244 file_name = base::StringPrintf(
247 EXPECT_EQ(expect, utils::FileExists(file_name.c_str()));
249 file_name = base::StringPrintf(
252 EXPECT_TRUE(utils::FileExists(file_name
258 CheckP2PFile(const string& p2p_dir, const string& file_name, ssize_t expected_size, ssize_t expected_size_xattr) argument
312 CreateP2PFile(string p2p_dir, string file_name, size_t size, size_t size_xattr) argument
[all...]
/system/media/camera/docs/
H A Dmetadata_parser_xml.py64 def __init__(self, xml, file_name):
71 file_name: Source of the XML block, only for debugging/errors
79 raise ValueError("%s has an invalid XML file" % (file_name))
86 def create_from_file(file_name):
91 file_name: Name of the XML file to load and parse.
99 return MetadataParserXml(file(file_name).read(), file_name)
363 file_name = sys.argv[1] variable in class:MetadataParserXml
368 parser = MetadataParserXml.create_from_file(file_name)
H A 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/nfc/src/adaptation/
H A Dnfc_config.cc34 const string file_name = "libnfc-nci.conf"; local
37 path.append(file_name);
/system/nfc/utils/
H A Dconfig.cc110 void ConfigFile::parseFromFile(const std::string& file_name) { argument
112 bool config_read = ReadFileToString(file_name, &config);
114 LOG(INFO) << "ConfigFile - Parsing file '" << file_name << "'";
/system/nfc/utils/include/
H A Dconfig.h46 void parseFromFile(const std::string& file_name);
/system/extras/boottime_tools/io_analysis/
H A Dcheck_file_read.py129 def __init__(self, open_time, file_name, process_name, inode, flags):
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)
268 #print "open", pid, process_name, file_name, inode
270 if file_name.startswith(p):
274 print "Ignore open for file", file_name
279 fevent = FileEvent(time, file_name, process_nam
[all...]
/system/bt/vendor_libs/test_vendor_lib/include/
H A Ddevice_properties.h46 explicit DeviceProperties(const std::string& file_name);
/system/core/libunwindstack/tools/
H A Dunwind_for_offline.cpp84 std::string file_name; local
86 file_name = "stack" + std::to_string(i) + ".data";
88 file_name = "stack.data";
103 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file_name.c_str(), "w+"), &fclose);
/system/extras/tests/fstest/
H A Drecovery_test.cpp50 explicit DataFileVerifier(const char* file_name) { argument
51 strncpy(test_file_, file_name, FILENAME_MAX);
/system/core/libnativeloader/
H A Dnative_loader.cpp137 static void insert_vndk_version_str(std::string* file_name) { argument
138 CHECK(file_name != nullptr);
139 size_t insert_pos = file_name->find_last_of(".");
141 insert_pos = file_name->length();
143 file_name->insert(insert_pos, vndk_version_str());
/system/extras/simpleperf/scripts/
H A Dreport_html.py436 for file_name in file_names:
437 if self.is_source_filename(file_name):
438 rparents = self.filename_to_rparents.get(file_name)
440 rparents = self.filename_to_rparents[file_name] = []
447 abstract_parent, file_name = os.path.split(abstract_path)
449 real_rparents = self.filename_to_rparents.get(file_name)
461 return os.path.join(best_matched_rparent[::-1], file_name)
/system/core/libprocessgroup/
H A Dprocessgroup.cpp324 static bool SetProcessGroupValue(uid_t uid, int pid, const std::string& file_name, int64_t value) { argument
330 auto path = ConvertUidPidToPath(uid, pid) + file_name;
/system/core/debuggerd/tombstoned/
H A Dtombstoned.cpp132 std::string file_name = local
135 return file_name;
/system/core/init/
H A Dutil.cpp398 const std::string file_name = get_android_dt_dir() + sub_path; local
399 if (android::base::ReadFileToString(file_name, dt_content)) {
H A Dinit.cpp408 std::string file_name = get_android_dt_dir() + dp->d_name; local
410 android::base::ReadFileToString(file_name, &dt_file);
/system/iot/attestation/at-factory-tool/
H A Datft.py124 for file_name in os.listdir(self.log_dir):
125 if (os.path.isfile(os.path.join(self.log_dir, file_name)) and
126 file_name.startswith('atft_log_')):
127 log_files.append(file_name)
207 for file_name in os.listdir(self.log_dir):
208 if (os.path.isfile(os.path.join(self.log_dir, file_name)) and
209 file_name.startswith('atft_log_')):
210 log_files.append(file_name)
/system/tools/aidl/
H A Dtype_cpp.cpp528 const string& file_name) {
529 Add(new BinderType(b, file_name));
527 AddBinderType(const AidlInterface& b, const string& file_name) argument
/system/core/libziparchive/
H A Dzip_archive.cc360 const uint8_t* file_name = ptr + sizeof(CentralDirectoryRecord); local
362 if (file_name + file_name_length > cd_end) {
370 if (!IsValidEntryName(file_name, file_name_length)) {
376 entry_name.name = file_name;
/system/core/logcat/
H A Dlogcat.cpp671 std::string file_name = directory; local
672 file_name += "/";
673 file_name += dp->d_name;
675 if (!android::base::ReadFileToString(file_name, &file)) continue;
1362 std::string file_name = android::base::StringPrintf( local
1365 bool file_ok = android::base::ReadFileToString(file_name, &file);
1366 android::base::WriteStringToFile(setId, file_name, S_IRUSR | S_IWUSR,
/system/tpm/attestation/common/
H A Dtpm_utility_v1.cc56 std::string GetFirstByte(const char* file_name) { argument
58 base::ReadFileToString(base::FilePath(file_name), &content);

Completed in 694 milliseconds

12