Searched refs:line (Results 76 - 100 of 155) sorted by relevance

1234567

/system/tools/aidl/tests/
H A Dintegration-test.py49 for line in self.stdout.splitlines():
50 output.append(' > %s' % line)
52 for line in self.stderr.splitlines():
53 output.append(' > %s' % line)
/system/core/init/test_service/
H A Dtest_service.cpp37 // command-line arguments is even.
39 LOG(FATAL) << "need even number of command-line arguments";
50 for (const auto& line : lines) {
51 std::vector<std::string> tokens = android::base::Split(line, ":");
/system/core/toolbox/
H A Dgenerate-input.h-labels.py43 for line in f:
44 m = r.match(line)
H A DAndroid.mk53 # The PRIVATE_CUSTOM_TOOL line uses = to evaluate the output path late.
57 # The dependency line though gets evaluated now, so the PRIVATE_ copy doesn't exist yet,
/system/extras/simpleperf/inferno/
H A Dadb.py49 for line in lines:
50 tokens = line.split(": ")
/system/core/adb/
H A Dadb_utils.cpp169 std::string line; local
171 android::base::StringAppendF(&line, "%02x", p[i]);
173 line.push_back(' ');
177 line.push_back(isprint(ch) ? ch : '.');
181 line += " [truncated]";
184 return line;
/system/extras/showslab/
H A Dshowslab.c13 #define SLABINFO_LINE_LEN 512 /* size of longest line */
18 /* object representing a slab cache (each line of slabinfo) */
64 char line[SLABINFO_LINE_LEN]; local
73 if (!fgets(line, SLABINFO_LINE_LEN, slabfile)) {
78 if (sscanf(line, "slabinfo - version: %u.%u", &major, &minor) != 2) {
90 while (fgets(line, SLABINFO_LINE_LEN, slabfile)) {
94 if (line[0] == '#')
106 ret = sscanf(line, "%" STRINGIFY(SLABINFO_NAME_LEN) "s"
215 * Sort Routines. Each of these should be associated with a command-line
/system/core/libbacktrace/
H A Dbacktrace_offline_test.cpp241 for (const auto& line : lines) {
242 if (android::base::StartsWith(line, "pid:")) {
243 sscanf(line.c_str(), "pid: %d tid: %d", &testdata->pid, &testdata->tid);
244 } else if (android::base::StartsWith(line, "map:")) {
248 sscanf(line.c_str(),
252 map.name = android::base::Trim(line.substr(pos));
253 } else if (android::base::StartsWith(line, "registers:")) {
256 sscanf(line.c_str(), "registers: %zu %n", &size, &pos);
260 HexStringToRawData(&line[pos], &testdata->unw_context, size);
261 } else if (android::base::StartsWith(line, "stac
[all...]
/system/extras/simpleperf/runtest/
H A Druntest.py401 for line in lines:
402 if not line:
404 if not line[0].isspace():
406 m = re.search(r'^([\d\.]+)%\s+([\d\.]+)%\s+(\S+).*\s+(\S+)$', line)
414 m = re.search(r'^([\d\.]+)%\s+(\S+).*\s+(\S+)$', line)
423 for i in range(len(line)):
424 if line[i] == '|':
428 if not line.strip('| \t'):
430 if line.find('-') == -1:
431 function_name = line
[all...]
/system/chre/host/msm/daemon/
H A Dchre_daemon.cc97 char line[32]; local
110 offset += snprintf(&line[offset], sizeof(line) - offset, "%02x ",
116 LOGV(" %s\t%s", line, line_chars);
120 offset += snprintf(&line[offset], sizeof(line) - offset, " ");
132 LOGV(" %s%s%s", line, tabs, line_chars);
440 // TODO: take 2nd argument as command-line parameter
/system/tools/aidl/
H A Daidl.cpp75 unsigned line) {
130 filename.c_str(), line, name.c_str(), expected.c_str());
452 bool ParsePreprocessedLine(const string& line, string* decl, argument
455 const size_t end = line.find_last_not_of(" ;\t");
459 if (line.rfind(';', end) != string::npos) {
465 vector<string> pieces = Split(line.substr(0, end + 1), " \t");
510 string line; local
512 for ( ; line_reader->ReadLine(&line); ++lineno) {
513 if (line.empty() || line
72 check_filename(const std::string& filename, const std::string& package, const std::string& name, unsigned line) argument
541 << " malformed preprocessed file line: '" << line << "'"; local
758 string line; local
[all...]
H A Daidl_language.h81 AidlType(const std::string& name, unsigned line,
116 std::string name, unsigned line);
117 AidlArgument(AidlType* type, std::string name, unsigned line);
201 unsigned line, const std::string& comments);
204 unsigned line, const std::string& comments, int id);
294 AidlParcelable(AidlQualifiedName* name, unsigned line,
319 AidlInterface(const std::string& name, unsigned line,
366 unsigned line);
393 void ReportError(const std::string& err, unsigned line);
401 void AddImport(AidlQualifiedName* name, unsigned line);
[all...]
/system/core/cpio/
H A Dmkbootfs.c46 /* Each line in the canned file should be a path plus three ints (uid,
294 char line[CANNED_LINE_LENGTH]; local
298 while (fgets(line, CANNED_LINE_LENGTH, f) != NULL) {
299 if (!line[0]) break;
309 if (isspace(line[0])) {
311 cc->uid = atoi(strtok(line, " \n"));
313 cc->name = strdup(strtok(line, " \n"));
/system/extras/latencytop/
H A Dlatencytop.c328 char line[MAX_LINE]; local
334 if (!fgets(line, MAX_LINE, f)) {
339 if (strcmp(line, EXPECTED_VERSION) != 0) {
341 fprintf(stderr, "But got version: %s", line);
345 while (fgets(line, MAX_LINE, f)) {
346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason);
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/
H A Dgradlew.bat49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/
H A Dgradlew.bat49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/
H A Dgradlew.bat49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/system/core/debuggerd/client/
H A Ddebuggerd_client_test.cpp98 for (const std::string& line : lines) {
99 if (line == expected_end) {
/system/sepolicy/tools/
H A Dpost_process_mac_perms51 # turn multiline base64 to single line base16
88 for line in fileinput.input(args.policy, inplace=True):
89 sys.stdout.write(line.replace('</policy>', mac_perms_string))
/system/extras/ioshark/
H A Dioshark_bench_subr.c421 char line[BUFSIZE], dev_name[BUFSIZE]; local
434 if (fgets(line, sizeof(line), fp) == NULL) {
440 sscanf(line, "%lu.%lu", &up_sec, &up_cent);
447 while (fgets(line, sizeof(line), fp)) {
448 sscanf(line,
479 char line[BUFSIZE], cpu[BUFSIZE]; local
483 if (fgets(line, sizeof(line), f
[all...]
/system/core/init/
H A Dinit_parser.h30 // filename and line number of where the error occurred.
33 // int line, std::string* err)
36 // 2) bool ParseLineSection(std::vector<std::string>&& args, int line, std::string* err)
37 // This function is called on each subsequent line until the next section is encountered.
55 int line, std::string* err) = 0;
63 // LineCallback is the type for callbacks that can parse a line starting with a given prefix.
H A Dparser.cpp99 /* \ <cr> <lf> -> line continuation */
105 /* \ <lf> -> line continuation */
106 state->line++;
/system/update_engine/payload_consumer/
H A Dpostinstall_runner_action.h74 // Updates the action progress according to the |line| passed from the
79 bool ProcessProgressLine(const std::string& line);
145 // A buffer of a partial read line from the progress file descriptor.
/system/update_engine/payload_generator/
H A Dextent_ranges_unittest.cc37 int line) {
42 EXPECT_EQ(blocks, ranges.blocks()) << "line: " << line;
47 EXPECT_FALSE(it == result.end()) << "line: " << line;
48 EXPECT_EQ(expected[i], it->start_block()) << "line: " << line;
49 EXPECT_EQ(expected[i + 1], it->num_blocks()) << "line: " << line;
34 ExpectRangeEq(const ExtentRanges& ranges, const uint64_t* expected, size_t sz, int line) argument
/system/vold/bench/
H A Dbenchgen.py115 for line in f:
116 line = re_event.match(line) variable
117 if not line: continue
119 time, call, args, ret = line.groups()

Completed in 487 milliseconds

1234567