/system/core/init/ |
H A D | import_parser.cpp | 46 void ImportParser::EndFile(const std::string& filename) { argument 52 s.c_str(), filename.c_str(), strerror(errno));
|
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/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 | 23 const char *filename; member in struct:dentry 38 u32 make_file(const char *filename, u64 len);
|
H A D | extent.c | 56 u64 backing_len, const char *filename) 67 sparse_file_add_file(ext4_sparse_file, filename, offset, len, 226 const char *filename) 229 // TODO(mkayyash): base_fs_allocations is sorted by filename, consider 230 // storing it in an array and then binary searching for a filename match instead 231 while (prealloc && prealloc->filename != NULL) { 232 if (!strcmp(filename, prealloc->filename)) { 253 extent_create_backing_file(alloc, len, filename); 55 extent_create_backing_file(struct block_allocation *alloc, u64 backing_len, const char *filename) argument 225 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument
|
H A D | make_ext4fs_main.c | 61 fprintf(stderr, " <filename> [[<directory>] <target_out_directory>]\n"); 67 const char *filename = NULL; local 227 fprintf(stderr, "Expected filename after options\n"); 232 filename = argv[optind++]; 246 if (strcmp(filename, "-")) { 247 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); 266 if (exitcode && strcmp(filename, "-")) 267 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/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/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);
|
H A D | io_delegate.cpp | 84 const string& filename, 87 std::ifstream in(filename, std::ios::in | std::ios::binary); 83 GetFileContents( const string& filename, const string& content_suffix) const argument
|
/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); 97 FILE *file = fopen(filename, "r");
|
/system/core/metricsd/uploader/ |
H A D | system_profile_cache.cc | 172 const std::string& filename) { 174 base::FilePath filepath(filename); 171 GetPersistentGUID( const std::string& filename) argument
|
/system/extras/simpleperf/ |
H A D | gtest_main.cpp | 190 std::string GetTestData(const std::string& filename) { argument 191 return testdata_dir + filename;
|
/system/extras/tests/pagingtest/ |
H A D | pagingtest.c | 17 int create_tmp_file(char *filename, off_t size) { argument 23 fd = mkstemp(filename); 35 if (unlink(filename)) {
|
/system/security/keystore/ |
H A D | keystore.h | 30 const uint8_t* filename; member in struct:__anon1895 70 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId); 71 ResponseCode put(const char* filename, Blob* keyBlob, uid_t userId); 72 ResponseCode del(const char* filename, const BlobType type, uid_t userId); 76 void addGrant(const char* filename, uid_t granteeUid); 77 bool removeGrant(const char* filename, uid_t granteeUid); 78 bool hasGrant(const char* filename, const uid_t uid) const { argument 79 return getGrant(filename, uid) != NULL; 82 ResponseCode importKey(const uint8_t* key, size_t keyLen, const char* filename, uid_t userId, 127 const grant_t* getGrant(const char* filename, uid_ [all...] |
/system/update_engine/common/ |
H A D | prefs.cc | 38 base::FilePath filename; local 39 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 40 if (!base::ReadFileToString(filename, value)) { 48 base::FilePath filename; local 49 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 50 if (!base::DirectoryExists(filename.DirName())) { 53 TEST_AND_RETURN_FALSE(base::CreateDirectory(filename.DirName())); 55 TEST_AND_RETURN_FALSE(base::WriteFile(filename, value.data(), value.size()) == 100 base::FilePath filename; local 101 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 106 base::FilePath filename; local [all...] |
/system/connectivity/shill/test-scripts/ |
H A D | crypto_util_pb2.py | 34 filename=None, variable 76 filename=None, variable 111 filename=None, variable 146 filename=None, variable 195 filename=None, variable
|
/system/core/debuggerd/ |
H A D | getevent.cpp | 108 char* filename; local 123 filename = devname + strlen(devname); 124 *filename++ = '/'; 129 strcpy(filename, event->name); 145 char* filename; local 152 filename = devname + strlen(devname); 153 *filename++ = '/'; 158 strcpy(filename, de->d_name);
|
/system/core/liblog/ |
H A D | pmsg_writer.c | 203 /* Write a buffer as filename references (tag = <basedir>:<basename>) */ 207 const char *filename, 226 cp = strdup(filename); 204 __android_log_pmsg_file_write( log_id_t logId, char prio, const char *filename, const char *buf, size_t len) argument
|