/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/core/libbacktrace/ |
H A D | BacktraceOffline.cpp | 234 const std::string& filename = map.name; local 235 DebugFrameInfo* debug_frame = GetDebugFrameInFile(filename); 274 int found = dwarf_find_debug_frame(0, &di, ip, segbase, filename.c_str(), map.start, map.end); 468 static DebugFrameInfo* ReadDebugFrameFromFile(const std::string& filename); 470 DebugFrameInfo* BacktraceOffline::GetDebugFrameInFile(const std::string& filename) { argument 472 auto it = debug_frames_.find(filename); 476 if (debug_frame_missing_files_.find(filename) != debug_frame_missing_files_.end()) { 480 DebugFrameInfo* debug_frame = ReadDebugFrameFromFile(filename); 483 debug_frames_.emplace(filename, std::unique_ptr<DebugFrameInfo>(debug_frame)); 485 debug_frame_missing_files_.insert(filename); 627 IsValidElfPath(const std::string& filename) argument 679 OpenEmbeddedElfFile(const std::string& filename) argument 729 ReadDebugFrameFromFile(const std::string& filename) argument [all...] |
/system/bt/osi/src/ |
H A D | config.c | 81 config_t *config_new(const char *filename) { argument 82 assert(filename != NULL); 88 FILE *fp = fopen(filename, "rt"); 90 LOG_ERROR(LOG_TAG, "%s unable to open file '%s': %s", __func__, filename, strerror(errno)); 278 bool config_save(const config_t *config, const char *filename) { argument 280 assert(filename != NULL); 281 assert(*filename != '\0'); 296 const int filename_len = strlen(filename); 299 snprintf(temp_filename, temp_filename_len, "%s%s", filename, temp_file_ext); 302 char *temp_dirname = osi_strdup(filename); [all...] |
/system/core/crash_reporter/ |
H A D | kernel_collector_test.cc | 282 std::string filename = log.substr(pos, std::string::npos); local 284 size_t end_pos = filename.find_first_of("\n"); 286 filename = filename.substr(0, end_pos); 287 ASSERT_EQ(0, filename.find(test_crash_directory().value())); 288 ASSERT_TRUE(base::PathExists(FilePath(filename))); 290 ASSERT_TRUE(base::ReadFileToString(FilePath(filename), &contents));
|
H A D | crash_collector.cc | 108 int CrashCollector::WriteNewFile(const FilePath &filename, argument 111 int fd = HANDLE_EINTR(open(filename.value().c_str(), 313 std::string filename(ent->d_name); 314 size_t last_dot = filename.rfind("."); 321 basename = filename.substr(0, last_dot); 323 basename = filename;
|
/system/core/toolbox/ |
H A D | nandread.c | 25 char *filename = NULL; local 59 filename = optarg; 109 if (filename) { 110 outfd = creat(filename, 0666); 112 fprintf(stderr, "cannot open %s, %s\n", filename, strerror(errno)); 115 statusfilename = malloc(strlen(filename) + strlen(statusext) + 1); 116 strcpy(statusfilename, filename);
|
H A D | getevent.c | 285 char filename[PATH_MAX]; local 296 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name); 298 file = fopen(filename, "r"); 436 char *filename; local 452 filename = devname + strlen(devname); 453 *filename++ = '/'; 459 strcpy(filename, event->name); 477 char *filename; local 484 filename [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
|
H A D | stability | 87 def __init__(self, filename, servername, individual_length): 88 self._file = file(filename, 'a') 141 iperf = IperfTest(filename=options.output,
|
/system/sepolicy/tools/ |
H A D | sepolicy-check.c | 188 int load_policy(char *filename, policydb_t *policydb, struct policy_file *pf) { argument 194 fd = open(filename, O_RDONLY); 196 fprintf(stderr, "Can't open '%s': %s\n", filename, strerror(errno)); 200 fprintf(stderr, "Can't stat '%s': %s\n", filename, strerror(errno)); 206 fprintf(stderr, "Can't mmap '%s': %s\n", filename, strerror(errno));
|
/system/core/adf/libadf/ |
H A D | adf.c | 89 char filename[64]; local 93 snprintf(filename, sizeof(filename), ADF_BASE_PATH "adf%u", id); 94 dev->fd = open(filename, flags); 335 char filename[64]; local 337 snprintf(filename, sizeof(filename), ADF_BASE_PATH "adf-interface%u.%u", 340 int fd = open(filename, flags); 573 char filename[64]; local 575 snprintf(filename, sizeo [all...] |
/system/core/libutils/ |
H A D | PropertyMap.cpp | 118 status_t PropertyMap::load(const String8& filename, PropertyMap** outMap) { argument 122 status_t status = Tokenizer::open(filename, &tokenizer); 124 ALOGE("Error %d opening property file %s.", status, filename.string());
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | event.h | 30 char filename[PATH_MAX]; member in struct:mmap_event 45 char filename[PATH_MAX]; member in struct:mmap2_event 144 char filename[]; member in struct:build_id_event
|
/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/tools/aidl/ |
H A D | type_cpp.h | 118 const std::string& filename) override; 120 const std::string& filename) override; 128 const std::string& filename) const override;
|
/system/extras/simpleperf/ |
H A D | record_file_reader.cpp | 32 std::unique_ptr<RecordFileReader> RecordFileReader::CreateInstance(const std::string& filename) { argument 34 FILE* fp = fopen(filename.c_str(), mode.c_str()); 36 PLOG(ERROR) << "failed to open record file '" << filename << "'"; 39 auto reader = std::unique_ptr<RecordFileReader>(new RecordFileReader(filename, fp)); 47 RecordFileReader::RecordFileReader(const std::string& filename, FILE* fp) argument 48 : filename_(filename), record_fp_(fp) {
|
H A D | cmd_record.cpp | 145 std::unique_ptr<RecordFileWriter> CreateRecordFile(const std::string& filename); 507 std::unique_ptr<RecordFileWriter> RecordCommand::CreateRecordFile(const std::string& filename) { argument 508 std::unique_ptr<RecordFileWriter> writer = RecordFileWriter::CreateInstance(filename); 668 EmbeddedElf* ee = ApkInspector::FindElfInApkByOffset(r.filename, r.data.pgoff); 672 r.filename = GetUrlInApk(r.filename, ee->entry_name()); 786 for (const auto& filename : hit_kernel_modules_) { 787 if (filename == DEFAULT_KERNEL_FILENAME_FOR_BUILD_ID) { 795 std::string path = filename; 804 build_id_records.push_back(CreateBuildIdRecord(true, UINT_MAX, build_id, filename)); [all...] |
/system/core/init/ |
H A D | action.cpp | 35 const std::string& filename, int line) 36 : func_(f), args_(args), filename_(filename), line_(line) { 71 const std::string& filename, int line, std::string* err) { 87 AddCommand(function, args, filename, line); 93 const std::string& filename, int line) { 94 commands_.emplace_back(f, args, filename, line); 419 const std::string& filename, int line, 421 return action_ ? action_->AddCommand(args, filename, line, err) : false; 34 Command(BuiltinFunction f, const std::vector<std::string>& args, const std::string& filename, int line) argument 70 AddCommand(const std::vector<std::string>& args, const std::string& filename, int line, std::string* err) argument 91 AddCommand(BuiltinFunction f, const std::vector<std::string>& args, const std::string& filename, int line) argument 418 ParseLineSection(const std::vector<std::string>& args, const std::string& filename, int line, std::string* err) const argument
|
H A D | parser.cpp | 15 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
|
H A D | util.h | 59 int wait_for_file(const char *filename, int timeout);
|
/system/extras/ksmutils/ |
H A D | ksminfo.c | 200 char filename[MAX_FILENAME]; local 212 error = snprintf(filename, MAX_FILENAME, "/proc/%d/mem", pid); 223 fd = open(filename, O_RDONLY); 225 fprintf(stderr, "warning: could not open %s\n", filename); 442 char *filename; local 451 if (asprintf(&filename, "/proc/%d/cmdline", (int)pid) < 0) { 456 f = fopen(filename, "r"); 470 free(filename);
|
/system/core/adb/ |
H A D | adb_auth.h | 24 int adb_auth_keygen(const char* filename);
|
/system/core/include/utils/ |
H A D | PropertyMap.h | 81 static status_t load(const String8& filename, PropertyMap** outMap);
|
/system/core/libsparse/ |
H A D | backed_block.h | 36 int backed_block_add_file(struct backed_block_list *bbl, const char *filename,
|
/system/core/libsparse/include/sparse/ |
H A D | sparse.h | 97 * @filename - filename of the file to be copied 114 const char *filename, int64_t file_offset, unsigned int len, 121 * @filename - filename of the file to be copied
|