Searched refs:filename (Results 1 - 25 of 174) sorted by relevance

1234567

/system/extras/ext4_utils/
H A Dmake_ext4fs.h26 int make_ext4fs(const char *filename, long long len,
28 int make_ext4fs_directory(const char *filename, long long len,
H A Dblk_alloc_to_base_fs.c26 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 Dextent.h25 struct ext4_inode *inode, u64 len, const char *filename);
/system/extras/simpleperf/
H A Dread_elf.h24 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id);
25 bool GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id);
26 bool GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
44 bool ParseSymbolsFromElfFile(const std::string& filename, const BuildId& expected_build_id,
46 bool ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset,
50 bool ReadMinExecutableVirtualAddressFromElfFile(const std::string& filename,
54 bool ReadSectionFromElfFile(const std::string& filename, const std::string& section_name,
60 bool IsValidElfPath(const std::string& filename);
H A Dread_elf.cpp53 bool IsValidElfPath(const std::string& filename) { argument
54 if (!IsRegularFile(filename)) {
58 FILE* fp = fopen(filename.c_str(), mode.c_str());
90 bool GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id) { argument
92 if (!android::base::ReadFileToString(filename, &content)) {
93 LOG(DEBUG) << "can't read note file " << filename;
97 LOG(DEBUG) << "can't read build_id from note file " << filename;
146 static BinaryRet OpenObjectFile(const std::string& filename, uint64_t file_offset = 0, argument
149 FileHelper fhelper = FileHelper::OpenReadOnly(filename);
151 PLOG(DEBUG) << "failed to open " << filename;
183 GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id) argument
192 GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, uint32_t file_size, BuildId* build_id) argument
286 ParseSymbolsFromElfFile(const std::string& filename, const BuildId& expected_build_id, std::function<void(const ElfFileSymbol&)> callback) argument
294 ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, uint32_t file_size, const BuildId& expected_build_id, std::function<void(const ElfFileSymbol&)> callback) argument
330 ReadMinExecutableVirtualAddressFromElfFile(const std::string& filename, const BuildId& expected_build_id, uint64_t* min_vaddr) argument
376 ReadSectionFromElfFile(const std::string& filename, const std::string& section_name, std::string* content) argument
[all...]
H A Dthread_tree.cpp84 const std::string& filename) {
89 Dso* dso = FindKernelDsoOrNew(filename);
96 Dso* ThreadTree::FindKernelDsoOrNew(const std::string& filename) { argument
97 if (filename == DEFAULT_KERNEL_MMAP_NAME) {
103 auto it = module_dso_tree_.find(filename);
105 module_dso_tree_[filename] = Dso::CreateDso(DSO_KERNEL_MODULE, filename);
106 it = module_dso_tree_.find(filename);
112 uint64_t time, const std::string& filename) {
114 Dso* dso = FindUserDsoOrNew(filename);
83 AddKernelMap(uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument
111 AddThreadMap(int pid, int tid, uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument
121 FindUserDsoOrNew(const std::string& filename) argument
230 std::string filename = local
[all...]
H A Drecord_equal_test.h19 ASSERT_EQ(r1.filename, r2.filename);
30 ASSERT_EQ(r1.filename, r2.filename);
/system/extras/f2fs_utils/
H A Dmake_f2fs_main.c39 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/vold/
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...]
/system/security/keystore/
H A Dkeystore.h30 const uint8_t* filename; member in struct:__anon1902
72 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId);
73 ResponseCode put(const char* filename, Blob* keyBlob, uid_t userId);
74 ResponseCode del(const char* filename, const BlobType type, uid_t userId);
78 void addGrant(const char* filename, uid_t granteeUid);
79 bool removeGrant(const char* filename, uid_t granteeUid);
80 bool hasGrant(const char* filename, const uid_t uid) const { argument
81 return getGrant(filename, uid) != NULL;
84 ResponseCode importKey(const uint8_t* key, size_t keyLen, const char* filename, uid_t userId,
129 const grant_t* getGrant(const char* filename, uid_
[all...]
/system/extras/perfprofd/quipper/
H A Dperf_utils.h39 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);
H A Dperf_utils.cc122 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) +
123 GetUint64AlignedStringLength(event.mmap.filename);
140 offset = sizeof(event.mmap2) - sizeof(event.mmap2.filename) +
141 GetUint64AlignedStringLength(event.mmap2.filename);
153 bool ReadFileToData(const string& filename, std::vector<char>* data) { argument
154 std::ifstream in(filename.c_str(), std::ios::binary);
156 LOG(ERROR) << "Failed to open file " << filename;
167 LOG(ERROR) << "Error reading from file " << filename;
173 bool WriteDataToFile(const std::vector<char>& data, const string& filename) { argument
174 std::ofstream out(filename
[all...]
/system/core/init/
H A Dimport_parser.cpp46 void ImportParser::EndFile(const std::string& filename) { argument
52 s.c_str(), filename.c_str(), strerror(errno));
H A Dimport_parser.h32 const std::string& filename, int line,
38 void EndFile(const std::string& filename) override;
H A Dparser.h32 const char *filename; member in struct:parse_state
/system/update_engine/payload_generator/
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
/system/extras/tests/sdcard/
H A Dsysutil.cpp65 void printErrno(const char *msg, const char *filename) argument
67 fprintf(stderr, "# %s %s %d %s\n", msg, filename, errno, strerror(errno));
72 // @param filename Of the file to read.
77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) argument
84 int fd = open(filename, O_RDONLY);
90 printErrno("Failed to open", filename);
112 printErrno("Failed to read", filename);
138 fprintf(stderr, "Buffer too small for %s\n", filename);
146 int writeStringToFile(const char *filename, const char *start, bool must_exist=true) argument
148 int fd = open(filename, O_WRONL
201 writeIntToFile(const char *filename, long value) argument
242 char filename[FILENAME_MAX]; local
259 char filename[FILENAME_MAX]; local
[all...]
/system/core/libcutils/
H A Dsched_policy.c112 char* filename; local
116 filename = "/dev/cpuctl/tasks";
117 fg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
119 SLOGE("open of %s failed: %s\n", filename, strerror(errno));
122 filename = "/dev/cpuctl/bg_non_interactive/tasks";
123 bg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC);
125 SLOGE("open of %s failed: %s\n", filename, strerror(errno));
134 filename = "/dev/cpuset/foreground/tasks";
135 fg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC);
136 filename
[all...]
/system/sepolicy/tools/sepolicy-analyze/
H A Dutils.h14 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
H A Dutils.c25 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/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...]
/system/extras/pagecache/
H A Dpagecache.py30 filename, filesize = self._inode_to_filename[(device_number, inode)]
31 if filename not in self._file_pages:
32 self._file_pages[filename] = [1, 0]
34 self._file_pages[filename][0] += 1
38 if filename not in self._file_size:
39 self._file_size[filename] = filesize
43 filename, filesize = self._inode_to_filename[(device_number, inode)]
44 if filename not in self._file_pages:
45 self._file_pages[filename] = [0, 1]
47 self._file_pages[filename][
[all...]
/system/core/libutils/
H A DTokenizer.cpp38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, argument
40 mFilename(filename), mFileMap(fileMap),
52 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { argument
56 int fd = ::open(filename.string(), O_RDONLY);
59 ALOGE("Error opening file '%s': %s", filename.string(), strerror(errno));
64 ALOGE("Error getting size of file '%s': %s", filename.string(), strerror(errno));
86 ALOGE("Error reading file '%s': %s", filename.string(), strerror(errno));
95 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length);
103 status_t Tokenizer::fromContents(const String8& filename, argument
105 *outTokenizer = new Tokenizer(filename, NUL
[all...]
/system/core/libsparse/
H A Dsimg2simg.c52 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/core/gatekeeperd/
H A Dgatekeeperd.cpp78 char filename[21]; local
79 sprintf(filename, "%u", uid);
80 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR);
82 ALOGE("could not open file: %s: %s", filename, strerror(errno));
90 const char *filename = ".coldboot"; local
91 if (access(filename, F_OK) == -1) {
92 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR);
94 ALOGE("could not open file: %s : %s", filename, strerror(errno));
104 char filename[21]; local
105 sprintf(filename, "
112 char filename[21]; local
123 char filename[21]; local
[all...]

Completed in 630 milliseconds

1234567