/system/tools/aidl/ |
H A D | line_reader.h | 32 virtual bool ReadLine(std::string* line) = 0;
|
/system/core/libunwindstack/ |
H A D | Maps.cpp | 59 // Assumes that line does not end in '\n'. 60 static MapInfo* InternalParseLine(const char* line) { argument 66 const char* old_str = line; 180 char* line = buffer; local 182 char* newline = static_cast<char*>(memchr(line, '\n', bytes)); 184 memmove(buffer, line, bytes); 189 MapInfo* map_info = InternalParseLine(line); 196 bytes -= newline - line + 1; 197 line = newline + 1; 221 std::string line; local [all...] |
/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/core/libbacktrace/ |
H A D | Backtrace.cpp | 99 std::string line(StringPrintf("#%02zu pc %" PRIPTR " ", frame->num, frame->rel_pc)); 100 line += map_name; 104 line += " (offset " + StringPrintf("0x%" PRIx64, frame->map.offset) + ")"; 107 line += " (" + frame->func_name; 109 line += StringPrintf("+%" PRIu64, frame->func_offset); 111 line += ')'; 114 return line;
|
/system/update_engine/payload_generator/ |
H A D | mapfile_filesystem.cc | 89 // line. 92 for (const base::StringPiece& line : lines) { 96 size_t delim, last_delim = line.size(); 97 while ((delim = line.rfind(' ', last_delim - 1)) != string::npos) { 99 line.substr(delim + 1, last_delim - (delim + 1)).as_string(); 111 << line; local 118 << line; local 130 // We parsed the blocks from the end of the line, so we need to reverse 136 mapped_file.name = line.substr(0, last_delim).as_string();
|
/system/core/init/ |
H A D | perfboot.py | 228 for line in f: 229 if '#' in line: 230 line = line[:line.find('#')] 231 line = line.strip() 232 if line: 233 tags.append(line) 307 line [all...] |
H A D | action.cpp | 53 const std::vector<std::string>& args, int line) 54 : func_(std::move(f)), execute_in_subcontext_(execute_in_subcontext), args_(args), line_(line) {} 76 Action::Action(bool oneshot, Subcontext* subcontext, const std::string& filename, int line, argument 84 line_(line) {} 88 Result<Success> Action::AddCommand(const std::vector<std::string>& args, int line) { argument 96 commands_.emplace_back(function->second, function->first, args, line); 100 void Action::AddCommand(BuiltinFunction f, const std::vector<std::string>& args, int line) { argument 101 commands_.emplace_back(f, false, args, line); 143 << ":" << command.line() << ") took " << duration.count() << "ms and " 52 Command(BuiltinFunction f, bool execute_in_subcontext, const std::vector<std::string>& args, int line) argument
|
H A D | import_parser.h | 32 int line) override; 39 // Vector of imports and their line numbers for later error reporting.
|
H A D | compare-bootcharts.py | 114 for line in lines[1:]: 115 segs = line.split(' ')
|
H A D | ueventd_parser.h | 33 int line) override; 34 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
|
/system/update_engine/scripts/update_payload/ |
H A D | histogram.py | 104 line = '%s %s %s' % ( 110 line += ' (%s)' % percent_str 111 hist_lines.append(line)
|
/system/core/demangle/ |
H A D | demangle.cpp | 33 printf("Demangles C++ mangled names if supplied on the command-line, or found\n"); 72 char* line = nullptr; local 75 while ((getline(&line, &line_length, stdin)) != -1) { 76 char* p = line; 99 free(line);
|
/system/hardware/interfaces/net/netd/testutils/ |
H A D | VtsHalNetNetdTestUtils.cpp | 56 char* line = nullptr; local 59 while ((linelen = getline(&line, &bufsize, f)) >= 0) { 60 lines.push_back(std::string(line, linelen)); 63 free(line);
|
/system/core/base/ |
H A D | logging.cpp | 208 void StderrLogger(LogId, LogSeverity severity, const char* tag, const char* file, unsigned int line, argument 227 getpid(), GetThreadId(), file, line, message); 245 const char* file, unsigned int line, 268 __android_log_buf_print(lg_id, priority, tag, "%s:%u] %s", file, line, 286 // Stash the command line for later use. We can use /proc/self/cmdline on 364 LogMessageData(const char* file, unsigned int line, LogId id, LogSeverity severity, argument 367 line_number_(line), 415 LogMessage::LogMessage(const char* file, unsigned int line, LogId id, LogSeverity severity, argument 417 : data_(new LogMessageData(file, line, id, severity, tag, error)) {} 419 LogMessage::LogMessage(const char* file, unsigned int line, LogI argument 244 operator ()(LogId id, LogSeverity severity, const char* tag, const char* file, unsigned int line, const char* message) argument 466 LogLine(const char* file, unsigned int line, LogId id, LogSeverity severity, const char* tag, const char* message) argument 479 LogLine(const char* file, unsigned int line, LogId id, LogSeverity severity, const char* message) argument [all...] |
/system/extras/perfprofd/ |
H A D | configreader.cc | 218 // warnings or errors to the system logs if the line can't be 232 LOG(WARNING) << "line " << linecount << ": malformed unsigned value (ignored)"; 240 LOG(WARNING) << "line " << linecount << ": " 265 LOG(WARNING) << "line " << linecount << ": unknown option '" << key << "' ignored"; 269 static bool isblank(const std::string &line) argument 272 return std::find_if(line.begin(), line.end(), non_space) == line.end(); 288 std::string line; local 290 std::getline(ss,line,'\ [all...] |
/system/extras/tests/workloads/ |
H A D | defs.sh | 251 ${ADB}dumpsys gfxinfo $_gfxapp | tr "\r" " " | egrep "9[059]th| frames" | while read line 253 if echo $line | grep -q "Total frames"; then 254 set -- $line 256 elif echo $line | grep -q "Janky frames"; then 257 set -- $line 259 elif echo $line | grep -q "90th"; then 260 set -- $(echo $line | tr m " ") 262 elif echo $line | grep -q "95th"; then 263 set -- $(echo $line | tr m " ") 265 elif echo $line | gre [all...] |
H A D | capture.sh | 60 stdbuf -o0 tr ':[]
' ' ' | while read line 62 set -- $line
|
/system/netd/libnetdutils/include/netdutils/ |
H A D | Status.h | 105 #define RETURN_IF_NOT_OK_CONCAT(line, stmt) RETURN_IF_NOT_OK_IMPL(__CONCAT(_status_, line), stmt)
|
H A D | StatusOr.h | 76 #define ASSIGN_OR_RETURN_CONCAT(line, lhs, stmt) \ 77 ASSIGN_OR_RETURN_IMPL(__CONCAT(_status_or_, line), lhs, stmt)
|
/system/tools/hidl/ |
H A D | Location.h | 29 Position(std::string filename, size_t line, size_t column); 33 size_t line() const; 44 // Current line number.
|
/system/extras/boottime_tools/bootio/ |
H A D | bootio_collector.cpp | 68 char line[MAX_LINE]; local 73 while (fgets(line, MAX_LINE, file)) { 74 sscanf(line, "rchar: %u", &rchar); 75 sscanf(line, "wchar: %u", &wchar); 76 sscanf(line, "syscr: %u", &syscr); 77 sscanf(line, "syscw: %u", &syscw); 78 sscanf(line, "read_bytes: %u", &readbytes); 79 sscanf(line, "write_bytes: %u", &writebytes); 148 char line[MAX_LINE]; local 150 line[ [all...] |
/system/core/adb/ |
H A D | adbd_auth.cpp | 62 for (const auto& line : android::base::Split(content, "\n")) { 64 char* sep = strpbrk(const_cast<char*>(line.c_str()), " \t"); 70 if (__b64_pton(line.c_str(), keybuf, sizeof(keybuf)) != ANDROID_PUBKEY_ENCODED_SIZE) { 71 LOG(ERROR) << "Invalid base64 key " << line.c_str() << " in " << path; 77 LOG(ERROR) << "Failed to parse key " << line.c_str() << " in " << path;
|
/system/extras/simpleperf/scripts/ |
H A D | annotate.py | 33 def __init__(self, file, function, line): 36 self.line = line 48 return (self.file, self.line) 52 # source_file:line very well for java code. Because in .debug_line section, 54 # of the first instruction which can be mapped to source line. 56 """collect information of how to map [dso_name,vaddr] to [source_file:line]. 124 (file, line) = items 125 line = line [all...] |
/system/sepolicy/tools/ |
H A D | insertkeys.py | 40 for line in pkFile: 41 line = line.strip() 43 if line == "-----BEGIN CERTIFICATE-----": 46 "line: " + str(lineNo)) 51 elif line == "-----END CERTIFICATE-----": 53 sys.exit("Encountered END CERTIFICATE before BEGIN CERTIFICATE on line: " 82 if line is not "": 83 sys.exit("Detected erroneous line \""+ line [all...] |
/system/extras/libpagemap/ |
H A D | pm_process.c | 247 char *line = NULL; local 275 while (getline(&line, &line_length, maps_f) != -1) { 276 line[strlen(line) - 1] = '\0'; // Lose the newline. 283 free(line); 296 sscanf(line, "%" SCNx64 "-%" SCNx64 " %4s %" SCNx64 " %*s %*d %n", 299 map->name = strdup(line + name_offset); 305 free(line); 317 free(line);
|