/system/webservd/webservd/ |
H A D | request.cc | 42 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 D | request.h | 148 const char* filename, 162 const char* filename,
|
/system/vold/ |
H A D | KeyStorage.cpp | 177 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 D | Loop.cpp | 44 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 D | VolumeManager.cpp | 1161 int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* filename) { argument 1236 const bool privateFile = !strcmp(ftsent->fts_name, filename);
|
H A D | cryptfs.c | 2847 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 D | prefs.cc | 119 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 D | prefs.h | 123 // Sets |filename| to the full path to the file containing the data 126 base::FilePath* filename) const;
|
H A D | test_utils.cc | 153 bool BindToUnusedLoopDevice(const string& filename, argument 188 int data_fd = open(filename.c_str(), 200 base::FilePath(filename).BaseName().value().c_str(),
|
H A D | test_utils.h | 60 // Binds provided |filename| to an unused loopback device, whose name is written 65 bool BindToUnusedLoopDevice(const std::string& filename,
|
H A D | utils.cc | 617 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 D | utils.h | 144 // stores the name of the new temporary file in |filename|. If |fd| is 149 std::string* filename,
|
/system/update_engine/ |
H A D | omaha_request_action_unittest.cc | 107 "<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 D | ext2_filesystem.cc | 122 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 D | ext2_filesystem.h | 35 const std::string& filename);
|
H A D | fake_filesystem.cc | 41 void FakeFilesystem::AddFile(const std::string& filename, argument 44 file.name = filename;
|
H A D | fake_filesystem.h | 46 void AddFile(const std::string& filename, const std::vector<Extent> extents);
|
H A D | mapfile_filesystem.cc | 44 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 D | mapfile_filesystem.h | 38 const std::string& filename, const std::string& mapfile_filename);
|
H A D | raw_filesystem.cc | 28 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 D | raw_filesystem.h | 33 const std::string& filename, uint64_t block_size, uint64_t block_count);
|
/system/update_engine/sample_images/ |
H A D | generate_images.sh | 197 # 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 D | main.cc | 168 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 D | proto_print.py | 389 def FormatFile(filename): 390 subprocess.call(['clang-format', '-i', '-style=Chromium', filename])
|
/system/tools/aidl/ |
H A D | aidl.cpp | 72 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...] |