/system/core/init/ |
H A D | import_parser.cpp | 46 void ImportParser::EndFile(const std::string& filename) { argument 51 PLOG(ERROR) << "could not import file '" << s << "' from '" << filename << "'"; local
|
H A D | parser.h | 32 const char *filename; member in struct:parse_state
|
H A D | init_parser.cpp | 43 void Parser::ParseData(const std::string& filename, const std::string& data) { argument 49 state.filename = filename.c_str(); 81 if (!section_parser->ParseLineSection(args, state.filename,
|
/system/extras/perfprofd/quipper/ |
H A D | perf_utils.h | 39 bool FileToBuffer(const string& filename, std::vector<char>* contents); 42 bool BufferToFile(const string& filename, const CharContainer& contents) { argument 43 FILE* fp = fopen(filename.c_str(), "wb"); 93 bool FileExists(const string& filename); 97 bool ReadFileToData(const string& filename, std::vector<char>* data); 99 // Writes contents of |data| to a file with name |filename|, overwriting any 101 bool WriteDataToFile(const std::vector<char>& data, const string& filename);
|
/system/update_engine/payload_generator/ |
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 | fake_filesystem.cc | 41 void FakeFilesystem::AddFile(const std::string& filename, argument 44 file.name = filename;
|
/system/chre/host/common/test/ |
H A D | chre_test_client.cc | 153 void sendLoadNanoappRequest(SocketClient& client, const char *filename) { argument 154 std::ifstream file(filename, std::ios::binary | std::ios::ate); 156 LOGE("Couldn't open file '%s': %s", filename, strerror(errno));
|
/system/extras/ext4_utils/ |
H A D | blk_alloc_to_base_fs.c | 26 static void usage(char *filename) argument 28 fprintf(stderr, "Usage: %s input_blk_alloc_file output_base_fs_file \n", filename); 34 char filename[MAX_PATH], file_version[MAX_FILE_VERSION], *spaced_allocs = NULL; local 64 while(fscanf(blk_alloc_file, "%s ", filename) != EOF) { 66 fprintf(base_fs_file, "%s ", filename);
|
H A D | contents.h | 25 const char *filename; member in struct:dentry 40 u32 make_file(const char *filename, u64 len);
|
H A D | extent.c | 57 u64 backing_len, const char *filename) 68 sparse_file_add_file(ext4_sparse_file, filename, offset, len, 227 const char *filename) 230 // TODO(mkayyash): base_fs_allocations is sorted by filename, consider 231 // storing it in an array and then binary searching for a filename match instead 232 while (prealloc && prealloc->filename != NULL) { 233 if (!strcmp(filename, prealloc->filename)) { 254 extent_create_backing_file(alloc, len, filename); 56 extent_create_backing_file(struct block_allocation *alloc, u64 backing_len, const char *filename) argument 226 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument
|
H A D | make_ext4fs_main.c | 62 fprintf(stderr, " <filename> [[<directory>] <target_out_directory>]\n"); 68 const char *filename = NULL; local 234 fprintf(stderr, "Expected filename after options\n"); 239 filename = argv[optind++]; 253 if (strcmp(filename, "-")) { 254 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); 273 if (exitcode && strcmp(filename, "-")) 274 unlink(filename);
|
/system/extras/f2fs_utils/ |
H A D | make_f2fs_main.c | 39 fprintf(stderr, " <filename>\n"); 45 const char *filename = NULL; local 62 fprintf(stderr, "Expected filename after options\n"); 67 filename = argv[optind++]; 75 if (strcmp(filename, "-")) { 76 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); 88 if (exitcode && strcmp(filename, "-")) 89 unlink(filename);
|
/system/libufdt/tests/src/ |
H A D | util.c | 48 char *load_file(const char *filename, size_t *len_ptr) { argument 49 FILE *fp = fopen(filename, "r"); 61 int write_buf_to_file(const char *filename, argument 66 fout = fopen(filename, "wb"); 82 int write_fdt_to_file(const char *filename, const void *fdt) { argument 83 return write_buf_to_file(filename, fdt, fdt_totalsize(fdt));
|
H A D | extract_dtb.c | 47 int find_and_write_dtb(const char *filename, argument 76 printf("Output %s\n", filename); 85 if (write_fdt_to_file(filename, fdt_ptr) != 0) { 86 fprintf(stderr, "Write file error: %s\n", filename); 107 char filename[128]; local 112 snprintf(filename, sizeof(filename), "%s.%d", out_dtb_filename, index); 113 tag_pos = find_and_write_dtb(filename, buf, buf_size);
|
/system/nfc/src/adaptation/ |
H A D | CrcChecksum.cpp | 86 ** filename: file name. 91 bool crcChecksumVerifyIntegrity(const char* filename) { argument 92 ALOGD("%s: filename=%s", __func__, filename); 94 int fileStream = open(filename, O_RDONLY);
|
H A D | libmain.c | 81 char filename[256], filename2[256]; local 83 memset(filename, 0, sizeof(filename)); 88 ALOGE("%s: filename too long", __func__); 91 sprintf(filename, "%s%u", filename2, block); 93 ALOGD("%s: buffer len=%u; file=%s", __func__, nbytes, filename); 94 int fileStream = open(filename, O_RDONLY); 134 char filename[256], filename2[256]; local 136 memset(filename, 0, sizeof(filename)); 182 char filename[256], filename2[256]; local 222 char filename[256], filename2[256]; local [all...] |
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | utils.c | 25 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf) argument 32 fd = open(filename, O_RDONLY); 34 fprintf(stderr, "Can't open '%s': %s\n", filename, strerror(errno)); 38 fprintf(stderr, "Can't stat '%s': %s\n", filename, strerror(errno)); 44 fprintf(stderr, "Can't mmap '%s': %s\n", filename, strerror(errno));
|
/system/core/libsparse/ |
H A D | simg2simg.c | 52 char filename[4096]; local 92 ret = snprintf(filename, sizeof(filename), "%s.%d", argv[2], i); 93 if (ret >= (int)sizeof(filename)) { 98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
|
/system/extras/ioshark/ |
H A D | compile_ioshark.h | 20 char *filename; member in struct:files_db_s 68 return (((struct files_db_s *)node)->filename); 74 void *files_db_add(char *filename); 75 void *files_db_lookup(char *filename);
|
H A D | compile_ioshark_subr.c | 34 static int filename_cache_lookup(char *filename);; 59 free(s->filename); 74 if (strcmp(db_node->filename, pathname) == 0) 81 void *files_db_add(char *filename) argument 86 if ((db_node = files_db_lookup(filename))) 88 hash = jenkins_one_at_a_time_hash(filename, strlen(filename)); 91 db_node->filename = strdup(filename); 93 filename_cache_lookup(filename); 162 filename_cache_lookup(char *filename) argument [all...] |
/system/tools/aidl/ |
H A D | generate_java.cpp | 57 int generate_java(const string& filename, const string& originalSrc, argument 68 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename);
|
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 29 char *filename; local 38 if (asprintf(&filename, "/proc/%d/cmdline", pid) < 0) { 43 f = fopen(filename, "r"); 57 free(filename);
|
/system/core/logd/ |
H A D | LogCommand.cpp | 70 char filename[256]; local 71 snprintf(filename, sizeof(filename), "/proc/%u/status", pid); 96 FILE* file = fopen(filename, "r");
|
/system/extras/tests/pagingtest/ |
H A D | pagingtest.c | 19 int create_tmp_file(char *filename, off_t size) { argument 27 fd = mkstemp(filename); 39 if (unlink(filename)) {
|
/system/nfc/halimpl/bcm2079x/adaptation/ |
H A D | NonVolatileStore.cpp | 67 char filename[256]; local 71 ALOGE("%s: filename too long", __func__); 74 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block); 76 ALOGD("%s: buffer len=%u; file=%s", __func__, nbytes, filename); 77 int fileStream = open(filename, O_RDONLY); 119 char filename[256]; local 124 ALOGE("%s: filename too long", __func__); 127 snprintf(filename, sizeof(filename), " 185 char filename[256]; local 225 char filename[256]; local [all...] |