/system/core/adb/ |
H A D | bugreport.cpp | 72 // Process remaining line, if any. 78 "WARNING: bugreportz generated %zu line(s) with unknown commands, " 81 for (const auto& line : invalid_lines_) { 82 fprintf(stderr, "\t%s\n", line.c_str()); 91 fprintf(stderr, "bugreportz did not return a '%s' or '%s' line\n", BUGZ_OK_PREFIX, 131 void ProcessLine(const std::string& line) { argument 132 if (line.empty()) return; 134 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) { 135 SetSrcFile(&line[strlen(BUGZ_BEGIN_PREFIX)]); 136 } else if (android::base::StartsWith(line, BUGZ_OK_PREFI [all...] |
/system/core/libmemunreachable/ |
H A D | LineBuffer.h | 28 bool GetLine(char** line, size_t* line_len);
|
H A D | ProcessMappings.cpp | 31 // the line data. 41 char* line; local 43 while (line_buf.GetLine(&line, &line_len)) { 47 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4s %*x %*x:%*x %*d %n", &mapping.begin, 62 strlcpy(mapping.name, line + name_pos, sizeof(mapping.name));
|
/system/extras/memory_replay/ |
H A D | LineBuffer.h | 26 bool GetLine(char** line, size_t* line_len);
|
H A D | Thread.cpp | 60 Action* Thread::CreateAction(uintptr_t key_pointer, const char* type, const char* line) { argument 61 return Action::CreateAction(key_pointer, type, line, action_memory_);
|
H A D | Action.h | 39 const char* line, void* action_memory);
|
/system/extras/memory_replay/tests/ |
H A D | ActionTest.cpp | 26 const char* line = "1024"; local 27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); 41 const char* line = ""; local 42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); 48 const char* line = ""; local 49 Action* action = Action::CreateAction(0x1234, "free", line, memory); 61 const char* line = "100 10"; local 62 Action* action = Action::CreateAction(0x1234, "calloc", line, memory); 76 const char* line = ""; local 77 Action* action = Action::CreateAction(0, "free", line, memor 98 const char* line = "0xabcd 100"; local 135 const char* line = "16 300"; local 161 const char* line = ""; local [all...] |
/system/netd/server/ |
H A D | DumpWriter.h | 34 void println(const std::string& line);
|
/system/core/libprocinfo/ |
H A D | process.cpp | 82 char* line = nullptr; local 85 while (getline(&line, &len, fp.get()) != -1 && field_bitmap != finished_bitmap) { 86 char* tab = strchr(line, '\t'); 91 size_t header_len = tab - line; 92 std::string header = std::string(line, header_len); 94 std::string name = line + header_len + 1; 96 // line includes the trailing newline. 125 free(line);
|
/system/nfc/halimpl/bcm2079x/adaptation/ |
H A D | android_logmsg.cpp | 93 char* line; local 98 line = line_buff; 101 word2hex((const char*)&addr, &line); 102 *line++ = ':'; 103 *line++ = ' '; 106 byte2hex(&data[j], &line); 107 *line++ = ' '; 110 for (j = 0; j < width; j++) byte2char(data++, &line); 111 // wirte the end of line 112 *line [all...] |
/system/nfc/src/adaptation/ |
H A D | android_logmsg.cpp | 94 char* line; local 99 line = line_buff; 102 word2hex((const char*)&addr, &line); 103 *line++ = ':'; 104 *line++ = ' '; 107 byte2hex(&data[j], &line); 108 *line++ = ' '; 111 for (j = 0; j < width; j++) byte2char(data++, &line); 112 // wirte the end of line 113 *line [all...] |
/system/tools/aidl/ |
H A D | aidl_language.cpp | 41 AidlType::AidlType(const std::string& name, unsigned line, argument 44 line_(line), 53 std::string name, unsigned line) 58 line_(line) {} 60 AidlArgument::AidlArgument(AidlType* type, std::string name, unsigned line) argument 65 line_(line) {} 104 << "' on line " << line_number; 125 << "' beginning on line " << line_number; 134 unsigned line, const std::string& comments, int id) 139 line_(line), 52 AidlArgument(AidlArgument::Direction direction, AidlType* type, std::string name, unsigned line) argument 132 AidlMethod(bool oneway, AidlType* type, std::string name, std::vector<std::unique_ptr<AidlArgument>>* args, unsigned line, const std::string& comments, int id) argument 150 AidlMethod(bool oneway, AidlType* type, std::string name, std::vector<std::unique_ptr<AidlArgument>>* args, unsigned line, const std::string& comments) argument 162 AidlParcelable(AidlQualifiedName* name, unsigned line, const std::vector<std::string>& package, const std::string& cpp_header) argument 186 AidlInterface(const std::string& name, unsigned line, const std::string& comments, bool oneway, std::vector<std::unique_ptr<AidlMember>>* members, const std::vector<std::string>& package) argument 247 AidlImport(const std::string& from, const std::string& needed_class, unsigned line) argument 296 ReportError(const string& err, unsigned line) argument 308 AddImport(AidlQualifiedName* name, unsigned line) argument [all...] |
H A D | line_reader.h | 32 virtual bool ReadLine(std::string* line) = 0;
|
/system/core/libcutils/ |
H A D | canned_fs_config.c | 58 char* line = buf; local 66 if (line[0] == '/') line++; 67 rootdir = line[0] == ' '; 68 p->path = strdup(rootdir ? "" : strtok(line, " ")); 69 p->uid = atoi(strtok(rootdir ? line : NULL, " "));
|
/system/extras/showmap/ |
H A D | showmap.cpp | 44 static int parse_header(const char* line, const mapinfo* prev, mapinfo** mi) { argument 51 if (sscanf(line, "%lx-%lx %*s %*x %*x:%*x %*d%n", &start, &end, &name_pos) != 2) { 56 while (isspace(line[name_pos])) { 60 if (line[name_pos]) { 61 strlcpy(name, line + name_pos, sizeof(name)); 91 static int parse_field(mapinfo* mi, const char* line) { argument 95 if (sscanf(line, "%63s %n", field, &len) == 1 98 if (sscanf(line + len, "%d kB", &size) == 1) { 177 char line[1024]; local 189 while (fgets(line, sizeo [all...] |
/system/core/init/ |
H A D | action.h | 35 Command(BuiltinFunction f, const std::vector<std::string>& args, int line); 40 int line() const { return line_; } function in class:android::init::Command 54 explicit Action(bool oneshot, const std::string& filename, int line); 56 bool AddCommand(const std::vector<std::string>& args, int line, std::string* err); 57 void AddCommand(BuiltinFunction f, const std::vector<std::string>& args, int line); 71 int line() const { return line_; } function in class:android::init::Action 123 bool ParseSection(std::vector<std::string>&& args, const std::string& filename, int line, 125 bool ParseLineSection(std::vector<std::string>&& args, int line, std::string* err) override;
|
H A D | import_parser.cpp | 27 int line, std::string* err) { 42 imports_.emplace_back(std::move(conf_file), line); local 26 ParseSection(std::vector<std::string>&& args, const std::string& filename, int line, std::string* err) argument
|
H A D | init_parser.cpp | 55 state.line = 0; 70 state.line++; 74 // If we have a line matching a prefix we recognize, call its callback and unset any 75 // current section parsers. This is meant for /sys/ and /dev/ line entries for uevent. 82 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err; 94 if (!section_parser->ParseSection(std::move(args), filename, state.line, &ret_err)) { 95 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err; 100 if (!section_parser->ParseLineSection(std::move(args), state.line, &ret_err)) { 101 LOG(ERROR) << filename << ": " << state.line << ": " << ret_err;
|
H A D | action.cpp | 31 Command::Command(BuiltinFunction f, const std::vector<std::string>& args, int line) argument 32 : func_(f), args_(args), line_(line) {} 52 Action::Action(bool oneshot, const std::string& filename, int line) argument 53 : oneshot_(oneshot), filename_(filename), line_(line) {} 57 bool Action::AddCommand(const std::vector<std::string>& args, int line, std::string* err) { argument 68 AddCommand(function, args, line); 72 void Action::AddCommand(BuiltinFunction f, const std::vector<std::string>& args, int line) { argument 73 commands_.emplace_back(f, args, line); 104 << ":" << command.line() << ") returned " << result << " took " 298 << ":" << action->line() << ")"; 336 ParseSection(std::vector<std::string>&& args, const std::string& filename, int line, std::string* err) argument 353 ParseLineSection(std::vector<std::string>&& args, int line, std::string* err) argument [all...] |
/system/core/libbacktrace/ |
H A D | BacktraceMap.cpp | 52 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { argument 63 if (sscanf(line, "%*21c %" SCNx64 "-%" SCNx64 " [%*13c] %3c/%*3c SM=%*3c %n", 70 if (sscanf(line, "%" SCNx64 "-%" SCNx64 " %4s %*x %*x:%*x %*d %n", 89 map->name = line+name_pos; 106 char line[1024]; local 121 while(fgets(line, sizeof(line), fp)) { 123 if (ParseLine(line, &map)) {
|
H A D | GetPss.cpp | 65 char line[4096]; local 68 while (fgets(line, sizeof(line), maps)) { 70 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " ", &start, &end) != 2) {
|
H A D | Backtrace.cpp | 102 std::string line(StringPrintf("#%02zu pc %" PRIPTR " ", frame->num, frame->rel_pc)); 103 line += map_name; 107 line += " (offset " + StringPrintf("0x%" PRIxPTR, frame->map.offset) + ")"; 110 line += " (" + frame->func_name; 112 line += StringPrintf("+%" PRIuPTR, frame->func_offset); 114 line += ')'; 117 return line;
|
/system/tpm/attestation/common/ |
H A D | proto_print.py | 131 for line in input_file: 132 line = line.strip() 133 if not line or line.startswith('//'): 136 if line == '}': 144 match = message_re.search(line) 153 match = field_re.search(line) 160 match = enum_re.search(line) 166 match = enum_value_re.search(line) [all...] |
/system/update_engine/payload_generator/ |
H A D | mapfile_filesystem.cc | 90 // line. 93 for (const base::StringPiece& line : lines) { 97 size_t delim, last_delim = line.size(); 98 while ((delim = line.rfind(' ', last_delim - 1)) != string::npos) { 100 line.substr(delim + 1, last_delim - (delim + 1)).as_string(); 112 << line; local 119 << line; local 131 // We parsed the blocks from the end of the line, so we need to reverse 137 mapped_file.name = line.substr(0, last_delim).as_string();
|
/system/extras/perfprofd/ |
H A D | configreader.cc | 192 // warnings or errors to the system logs if the line can't be 206 W_ALOGW("line %d: malformed unsigned value (ignored)", linecount); 213 W_ALOGW("line %d: specified value %u for '%s' " 236 W_ALOGW("line %d: unknown option '%s' ignored", linecount, key); 239 static bool isblank(const std::string &line) argument 241 for (std::string::const_iterator it = line.begin(); it != line.end(); ++it) 258 std::string line; local 260 std::getline(ss,line,'\n'); 264 // comment line [all...] |