Searched refs:filename (Results 1 - 25 of 174) sorted by last modified time

1234567

/system/webservd/webservd/
H A Drequest.cc42 const char* filename,
49 return self->ProcessPostData(key, filename, content_type, transfer_encoding,
265 const char* filename,
274 return AddPostFieldData(key, filename, content_type, transfer_encoding, data,
359 const char* filename,
364 if (filename) {
366 new FileInfo{key, filename, content_type ? content_type : "",
39 PostDataIterator(void* cls, MHD_ValueKind , const char* key, const char* filename, const char* content_type, const char* transfer_encoding, const char* data, uint64_t off, size_t size) argument
264 ProcessPostData(const char* key, const char* filename, const char* content_type, const char* transfer_encoding, const char* data, uint64_t off, size_t size) argument
358 AddPostFieldData(const char* key, const char* filename, const char* content_type, const char* transfer_encoding, const char* data, size_t size) argument
H A Drequest.h148 const char* filename,
162 const char* filename,
/system/vold/
H A DKeyStorage.cpp177 static bool readFileToString(const std::string& filename, std::string* result) { argument
178 if (!android::base::ReadFileToString(filename, result)) {
179 PLOG(ERROR) << "Failed to read from " << filename;
185 static bool writeStringToFile(const std::string& payload, const std::string& filename) { argument
186 if (!android::base::WriteStringToFile(payload, filename)) {
187 PLOG(ERROR) << "Failed to write to " << filename;
H A DLoop.cpp44 char filename[256]; local
50 sprintf(filename, "/dev/block/loop%d", i);
52 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) {
54 SLOGE("Unable to open %s (%s)", filename, strerror(errno));
68 SLOGE("Unable to get loop status for %s (%s)", filename,
73 asprintf(&tmp, "%s %d %lld:%lld %llu %lld:%lld %lld 0x%x {%s} {%s}", filename, li.lo_number,
86 char filename[256]; local
94 sprintf(filename, "/dev/block/loop%d", i);
96 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) {
98 SLOGE("Unable to open %s (%s)", filename, strerro
133 char filename[256]; local
[all...]
H A DVolumeManager.cpp1161 int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* filename) { argument
1236 const bool privateFile = !strcmp(ftsent->fts_name, filename);
H A Dcryptfs.c2847 static int cryptfs_SHA256_fileblock(const char* filename, __le8* buf) argument
2849 int fd = open(filename, O_RDONLY|O_CLOEXEC);
2851 SLOGE("Error opening file %s", filename);
2858 SLOGE("Error reading file %s", filename);
/system/update_engine/common/
H A Dprefs.cc119 base::FilePath filename; local
120 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename));
121 if (!base::ReadFileToString(filename, value)) {
129 base::FilePath filename; local
130 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename));
131 if (!base::DirectoryExists(filename.DirName())) {
134 TEST_AND_RETURN_FALSE(base::CreateDirectory(filename.DirName()));
136 TEST_AND_RETURN_FALSE(base::WriteFile(filename, value.data(), value.size()) ==
142 base::FilePath filename; local
143 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename));
148 base::FilePath filename; local
[all...]
H A Dprefs.h123 // Sets |filename| to the full path to the file containing the data
126 base::FilePath* filename) const;
H A Dtest_utils.cc153 bool BindToUnusedLoopDevice(const string& filename, argument
188 int data_fd = open(filename.c_str(),
200 base::FilePath(filename).BaseName().value().c_str(),
H A Dtest_utils.h60 // Binds provided |filename| to an unused loopback device, whose name is written
65 bool BindToUnusedLoopDevice(const std::string& filename,
H A Dutils.cc617 string* filename,
622 DCHECK(filename || fd);
630 if (filename) {
631 *filename = buf.data();
616 MakeTempFile(const string& base_filename_template, string* filename, int* fd) argument
H A Dutils.h144 // stores the name of the new temporary file in |filename|. If |fd| is
149 std::string* filename,
/system/update_engine/
H A Domaha_request_action_unittest.cc107 "<packages><package hash=\"not-used\" name=\"" + filename + "\" "
126 return codebase + filename;
134 string filename = "file.signed"; member in struct:__anon2017::FakeUpdateResponse
/system/update_engine/payload_generator/
H A Dext2_filesystem.cc122 const string& filename) {
123 if (filename.empty())
126 result->filename_ = filename;
128 errcode_t err = ext2fs_open(filename.c_str(),
135 LOG(ERROR) << "Opening ext2fs " << filename;
121 CreateFromFile( const string& filename) argument
H A Dext2_filesystem.h35 const std::string& filename);
H A Dfake_filesystem.cc41 void FakeFilesystem::AddFile(const std::string& filename, argument
44 file.name = filename;
H A Dfake_filesystem.h46 void AddFile(const std::string& filename, const std::vector<Extent> extents);
H A Dmapfile_filesystem.cc44 const string& filename, const string& mapfile_filename) {
45 if (filename.empty() || mapfile_filename.empty())
48 off_t file_size = utils::FileSize(filename);
53 LOG(ERROR) << "Image file " << filename << " has a size of " << file_size
43 CreateFromFile( const string& filename, const string& mapfile_filename) argument
H A Dmapfile_filesystem.h38 const std::string& filename, const std::string& mapfile_filename);
H A Draw_filesystem.cc28 const std::string& filename, uint64_t block_size, uint64_t block_count) {
30 result->filename_ = filename;
27 Create( const std::string& filename, uint64_t block_size, uint64_t block_count) argument
H A Draw_filesystem.h33 const std::string& filename, uint64_t block_size, uint64_t block_count);
/system/update_engine/sample_images/
H A Dgenerate_images.sh197 # generate_fs <filename> <kind> <size> [block_size] [block_groups]
199 local filename="$1"
211 trap 'cleanup "${mntdir}"; rm -f "${filename}"' INT TERM EXIT
214 if [[ -e "${filename}" ]]; then
215 rm -f "${filename}"
217 truncate --size="${size}" "${filename}"
219 mkfs.ext2 "${mkfs_opts[@]}" "${filename}"
220 sudo mount "${filename}" "${mntdir}" -o loop
/system/tpm/attestation/client/
H A Dmain.cc168 base::FilePath filename(command_line->GetSwitchValueASCII("input"));
169 if (!base::ReadFileToString(filename, &input)) {
170 LOG(ERROR) << "Failed to read file: " << filename.value();
182 base::FilePath filename(command_line->GetSwitchValueASCII("input"));
183 if (!base::ReadFileToString(filename, &input)) {
184 LOG(ERROR) << "Failed to read file: " << filename.value();
196 base::FilePath filename(command_line->GetSwitchValueASCII("input"));
197 if (!base::ReadFileToString(filename, &input)) {
198 LOG(ERROR) << "Failed to read file: " << filename.value();
211 base::FilePath filename(command_lin
[all...]
/system/tpm/attestation/common/
H A Dproto_print.py389 def FormatFile(filename):
390 subprocess.call(['clang-format', '-i', '-style=Chromium', filename])
/system/tools/aidl/
H A Daidl.cpp72 bool check_filename(const std::string& filename, argument
82 if (!IoDelegate::GetAbsolutePath(filename, &fn)) {
110 // Input filename under cygwin most likely has / separators
130 filename.c_str(), line, name.c_str(), expected.c_str());
136 bool check_filenames(const std::string& filename, const AidlDocument* doc) { argument
143 return check_filename(filename, interface->GetPackage(),
150 success &= check_filename(filename, item->GetPackage(), item->GetName(),
157 bool gather_types(const std::string& filename, argument
165 return types->AddBinderType(*interface, filename);
168 success &= types->AddParcelableType(*item, filename);
174 check_types(const string& filename, const AidlInterface* c, TypeNamespace* types) argument
354 check_and_assign_method_ids(const char * filename, const std::vector<std::unique_ptr<AidlMethod>>& items) argument
457 parse_preprocessed_file(const IoDelegate& io_delegate, const string& filename, TypeNamespace* types) argument
[all...]

Completed in 170 milliseconds

1234567