Searched refs:file_name (Results 1 - 18 of 18) sorted by last modified time

/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/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);
/system/tools/aidl/
H A Dtype_cpp.cpp525 const string& file_name) {
526 Add(new BinderType(b, file_name));
524 AddBinderType(const AidlInterface& b, const string& file_name) argument
/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)
335 file_name = sys.argv[1] variable in class:MetadataParserXml
338 parser = MetadataParserXml.create_from_file(file_name)
H A Dmetadata_validate.py316 file_name = sys.argv[1] variable
317 succ = validate_xml(file(file_name).read()) is not None
320 print "%s: SUCCESS! Document validated" %(file_name)
323 print >> sys.stderr, "%s: ERRORS: Document failed to validate" %(file_name)
/system/keymaster/
H A Dandroid_keymaster_test.cpp1671 static string read_file(const string& file_name) { argument
1672 ifstream file_stream(file_name, std::ios::binary);
/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/init/
H A Dutil.cpp403 const std::string file_name = get_android_dt_dir() + sub_path; local
404 if (android::base::ReadFileToString(file_name, dt_content)) {
H A Dinit.cpp535 std::string file_name = get_android_dt_dir() + dp->d_name; local
537 android::base::ReadFileToString(file_name, &dt_file);
/system/core/libziparchive/
H A Dzip_archive.cc352 const uint8_t* file_name = ptr + sizeof(CentralDirectoryRecord); local
354 if (file_name + file_name_length > cd_end) {
362 if (!IsValidEntryName(file_name, file_name_length)) {
368 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;
1363 std::string file_name = android::base::StringPrintf( local
1366 bool file_ok = android::base::ReadFileToString(file_name, &file);
1367 android::base::WriteStringToFile(setId, file_name, S_IRUSR | S_IWUSR,
/system/core/trusty/keymaster/
H A Dtrusty_keymaster_device_test.cpp436 static string read_file(const string& file_name) { argument
437 ifstream file_stream(file_name, std::ios::binary);
/system/core/adb/
H A Dbugreport.h45 virtual void UpdateProgress(const std::string& file_name, int progress_percentage);
/system/core/debuggerd/tombstoned/
H A Dtombstoned.cpp114 std::string file_name = StringPrintf("%s%02d", file_name_prefix_.c_str(), next_artifact_); local
118 if (unlinkat(dir_fd_, file_name.c_str(), 0) != 0 && errno != ENOENT) {
119 PLOG(FATAL) << "failed to unlink tombstone at " << dir_path_ << "/" << file_name; local
122 result.reset(openat(dir_fd_, file_name.c_str(),
125 PLOG(FATAL) << "failed to create tombstone at " << dir_path_ << "/" << file_name; local
129 return {std::move(result), dir_path_ + "/" + file_name};
/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.cpp183 static bool read_dt_file(const std::string& file_name, std::string* dt_value) argument
185 if (android::base::ReadFileToString(file_name, dt_value)) {
389 std::string file_name = get_android_dt_dir() + "/fstab/compatible"; local
390 if (read_dt_file(file_name, &dt_value)) {
416 std::string file_name; local
419 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name);
420 if (read_dt_file(file_name, &value)) {
427 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name);
428 if (!read_dt_file(file_name, &value)) {
436 file_name
468 std::string file_name = get_android_dt_dir() + "/compatible"; local
[all...]
/system/bt/vendor_libs/test_vendor_lib/include/
H A Ddual_mode_controller.h50 explicit Properties(const std::string& file_name);
/system/bt/vendor_libs/test_vendor_lib/src/
H A Ddual_mode_controller.cc671 DualModeController::Properties::Properties(const std::string& file_name) argument
702 file_name.c_str());
703 if (!base::ReadFileToString(base::FilePath(file_name), &properties_raw)) {

Completed in 1238 milliseconds