Searched refs:line (Results 26 - 50 of 193) sorted by relevance

12345678

/system/extras/tests/lib/testUtil/
H A DtestUtil.c145 char line[MAXSTR]; local
149 vsnprintf(line, sizeof(line), fmt, args);
151 ALOG(LOG_ERROR, logCatTag, "%s", line);
153 ALOG(LOG_INFO, logCatTag, "%s", line);
309 * Each line of output is indented by a number of spaces that
321 char line[MAXSTR]; local
324 char *linep = line;
328 if (linep != line) {
329 testPrintE("%s", line);
[all...]
/system/tools/hidl/
H A DLocation.cpp23 Position::Position(std::string filename, size_t line, size_t column) argument
24 : mFilename(filename), mLine(line), mColumn(column) {}
30 size_t Position::line() const { function in class:android::Position
54 return ostr << pos.line() << "." << pos.column();
100 Position last = Position(loc.end().filename(), loc.end().line(),
105 } else if (loc.begin().line() != last.line()) {
106 ostr << "-" << last.line() << "." << last.column();
/system/bt/embdrv/sbc/decoder/include/
H A Doi_assert.h49 void OI_AssertFail(char* file, int line, char* reason);
/system/core/adb/
H A Dbugreport.cpp72 // 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 DLineBuffer.h28 bool GetLine(char** line, size_t* line_len);
H A DProcessMappings.cpp31 // 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 DLineBuffer.h26 bool GetLine(char** line, size_t* line_len);
H A DThread.cpp60 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 DAction.h39 const char* line, void* action_memory);
/system/extras/memory_replay/tests/
H A DActionTest.cpp26 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/extras/pssbench/
H A Dmain.cpp36 char line[256]; local
38 while (fgets(line, sizeof(line), file)) {
40 if (sscanf(line, "Pss: %" SCNd64 " kB", &v) == 1) {
42 fprintf(stderr, "pss line: %llu\n", (unsigned long long) v);
/system/netd/server/
H A DDumpWriter.h34 void println(const std::string& line);
/system/core/libprocinfo/
H A Dprocess.cpp82 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/vold/
H A DProcess.cpp50 std::string line; local
51 while (std::getline(infile, line)) {
52 std::string::size_type pos = line.find('/');
54 line = line.substr(pos);
55 if (android::base::StartsWith(line, prefix)) {
56 LOG(WARNING) << "Found map " << path << " referencing " << line; local
/system/nfc/utils/
H A Dconfig.cc120 string line; local
121 while (getline(ss, line)) {
122 line = Trim(line);
123 if (line.empty()) continue;
124 if (line.at(0) == '#') continue;
125 if (line.at(0) == 0) continue;
127 auto search = line.find('=');
130 string key(Trim(line.substr(0, search)));
131 string value_string(Trim(line
[all...]
/system/tools/aidl/
H A Daidl_language.cpp41 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...]
/system/core/storaged/
H A Dstoraged_utils.cpp105 std::stringstream line; local
109 std::ostream_iterator<int>(line, " "));
110 printf("last 24 hours : %s\n", line.str().c_str());
112 line.str("");
116 std::ostream_iterator<int>(line, " "));
117 printf("last 7 days : %s\n", line.str().c_str());
119 line.str("");
122 std::ostream_iterator<int>(line, " "));
123 printf("last 52 weeks : %s\n", line.str().c_str());
/system/core/init/
H A Daction.h40 int line);
45 int line() const { return line_; } function in class:android::init::Command
60 Action(bool oneshot, Subcontext* subcontext, const std::string& filename, int line,
64 Result<Success> AddCommand(const std::vector<std::string>& args, int line);
65 void AddCommand(BuiltinFunction f, const std::vector<std::string>& args, int line);
77 int line() const { return line_; } function in class:android::init::Action
H A Daction_parser.h36 int line) override;
37 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
H A Dimport_parser.cpp27 const std::string& filename, int line) {
40 imports_.emplace_back(std::move(conf_file), line); local
26 ParseSection(std::vector<std::string>&& args, const std::string& filename, int line) argument
H A Dparser.cpp48 state.line = 0;
74 state.line++;
76 // If we have a line matching a prefix we recognize, call its callback and unset any
77 // current section parsers. This is meant for /sys/ and /dev/ line entries for
85 LOG(ERROR) << filename << ": " << state.line << ": " << result.error();
93 section_start_line = state.line;
95 section_parser->ParseSection(std::move(args), filename, state.line);
98 LOG(ERROR) << filename << ": " << state.line << ": " << result.error();
102 if (auto result = section_parser->ParseLineSection(std::move(args), state.line);
105 LOG(ERROR) << filename << ": " << state.line << "
[all...]
/system/core/libcutils/
H A Dcanned_fs_config.cpp58 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/sepolicy/tests/
H A DFcSort.py53 def CreateNode(line):
55 if (len(line) == 0) or (line[0] == '#'):
58 split = line.split()
74 for line in fd:
75 node = CreateNode(line.strip())
/system/extras/showmap/
H A Dshowmap.cpp44 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/libbacktrace/
H A DGetPss.cpp65 char line[4096]; local
68 while (fgets(line, sizeof(line), maps)) {
70 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " ", &start, &end) != 2) {

Completed in 374 milliseconds

12345678