/system/libufdt/tests/src/ |
H A D | util.h | 22 char *load_file(const char *filename, size_t *len_ptr); 23 int write_buf_to_file(const char *filename, const void *buf, size_t buf_size); 24 int write_fdt_to_file(const char *filename, const void *fdt);
|
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/halimpl/bcm2079x/adaptation/ |
H A D | NonVolatileStore.cpp | 68 char filename[256]; local 72 ALOGE("%s: filename too long", __func__); 75 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block); 77 ALOGD("%s: buffer len=%u; file=%s", __func__, nbytes, filename); 78 int fileStream = open(filename, O_RDONLY); 120 char filename[256]; local 125 ALOGE("%s: filename too long", __func__); 128 snprintf(filename, sizeof(filename), " 186 char filename[256]; local 226 char filename[256]; local [all...] |
/system/timezone/ |
H A D | tzdatautil.py | 22 for filename in os.listdir(dir_name): 23 if filename.startswith('tzdata20') and filename.endswith('.tar.gz'): 24 matching_files.append(filename);
|
H A D | download-iana-data.py | 33 def FtpRetrieveFile(ftp, filename): 34 ftp.retrbinary('RETR %s' % filename, open(filename, 'wb').write) 63 for filename in ftp.nlst(): 64 if "/" in filename: 68 if filename.startswith('tzdata20') and filename.endswith('.tar.gz'): 69 iana_tar_filenames.append(filename)
|
/system/nfc/src/adaptation/ |
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/nfc/src/include/ |
H A D | CrcChecksum.h | 42 ** filename: file name. 47 bool crcChecksumVerifyIntegrity(const char* filename);
|
/system/libufdt/tests/ |
H A D | run_tests.sh | 20 # Usage: run_test_case <filename> <description> 22 # filename: The file name for ./gen_test.sh to generate and run the 24 # - ./testdata/${filename}.base_dts 25 # - ./testdata/${filename}.add_dts 26 # - ./testdata/${filename}.add_ov_dts (optional) 30 local filename="$1" 34 ./gen_test.sh "${filename}" >&2 || 35 die "Test case: ${filename} failed!!"
|
/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/extras/simpleperf/ |
H A D | read_elf.h | 42 ElfStatus GetBuildIdFromNoteFile(const std::string& filename, BuildId* build_id); 43 ElfStatus GetBuildIdFromElfFile(const std::string& filename, BuildId* build_id); 44 ElfStatus GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, 62 ElfStatus ParseSymbolsFromElfFile(const std::string& filename, 65 ElfStatus ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, 69 ElfStatus ReadMinExecutableVirtualAddressFromElfFile(const std::string& filename, 73 ElfStatus ReadSectionFromElfFile(const std::string& filename, const std::string& section_name, 79 ElfStatus IsValidElfPath(const std::string& 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/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 | extent.h | 27 struct ext4_inode *inode, u64 len, const char *filename);
|
/system/extras/ext4_utils/include/ext4_utils/ |
H A D | make_ext4fs.h | 26 int make_ext4fs(const char *filename, long long len, 28 int make_ext4fs_directory_align(const char *filename, long long len, 32 int make_ext4fs_directory(const char *filename, long long len,
|
/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/tools/hidl/ |
H A D | Location.h | 30 inline const std::string &filename() const { return mFilename; } function in struct:android::Position 44 if (!pos.filename().empty()) { 45 ostr << pos.filename() << ":"; 68 Position last = Position(loc.end().filename(), 72 if (loc.begin().filename() != last.filename()) {
|
/system/chre/platform/slpi/ |
H A D | preloaded_nanoapps.cc | 35 const char *filename; member in struct:chre::PreloadedNanoappDescriptor 52 preloadedNanoapps[i].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
|
/system/vold/ |
H A D | Loop.cpp | 51 char filename[256]; local 57 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i); 59 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { 61 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); 75 SLOGE("Unable to get loop status for %s (%s)", filename, 80 asprintf(&tmp, "%s %d %lld:%lld %llu %lld:%lld %lld 0x%x {%s} {%s}", filename, li.lo_number, 93 char filename[256]; local 101 snprintf(filename, sizeof(filename), "/de 140 char filename[256]; local [all...] |
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 65 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/chre/platform/linux/include/chre/target_platform/ |
H A D | platform_nanoapp_base.h | 39 * @param filename The name of the .so file in /vendor/lib/dsp that holds this 43 void loadFromFile(const std::string& filename); 71 //! loadFromFile), this will be set to the filename string to pass to dlopen() 83 * Calls dlopen on the app filename, and fetches and validates the app info
|
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | utils.h | 14 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
|
/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...] |