Searched defs:line (Results 1 - 25 of 159) sorted by relevance

1234567

/frameworks/base/tools/aapt/
H A DSourcePos.h13 int line; member in class:SourcePos
/frameworks/base/cmds/incident_helper/src/parsers/
H A DBatteryTypeParser.cpp30 string line; local
35 // parse line by line
36 while (reader.readLine(&line)) {
37 if (line.empty()) continue;
44 proto.write(BatteryTypeProto::TYPE, line);
49 if (!reader.ok(&line)) {
50 fprintf(stderr, "Bad read from fd %d: %s\n", in, line.c_str());
H A DKernelWakesParser.cpp30 string line; local
40 // parse line by line
41 while (reader.readLine(&line)) {
42 if (line.empty()) continue;
43 // parse head line
45 header = parseHeader(line, TAB_DELIMITER);
49 // parse for each record, the line delimiter is \t only!
50 record = parseRecord(line, TAB_DELIMITER);
54 fprintf(stderr, "[%s]Line %d has missing fields\n%s\n", this->name.string(), nline, line
[all...]
H A DCpuFreqParser.cpp31 string line; local
34 reader.readLine(&line);
35 header_t header = parseHeader(line, TAB_DELIMITER);
37 fprintf(stderr, "Bad header: %s\n", line.c_str());
44 while (reader.readLine(&line)) {
45 if (line.empty()) continue;
47 record_t record = parseRecord(line, TAB_DELIMITER);
49 fprintf(stderr, "Bad line: %s\n", line.c_str());
79 if (!reader.ok(&line)) {
[all...]
H A DEventLogTagsParser.cpp28 string line; local
32 // parse line by line
33 while (reader.readLine(&line)) {
34 if (line.empty()) continue;
35 string debug = line;
36 string tagNumber = behead(&line, ' ');
37 string tagName = behead(&line, ' ');
39 fprintf(stderr, "Bad line, expect at least two parts: %s[%s, %s]\n",
48 record_t valueDescriptors = parseRecord(line, PARENTHESES_DELIMITE
[all...]
H A DPageTypeInfoParser.cpp30 string line; local
40 while (reader.readLine(&line)) {
41 if (line.empty()) {
47 if (stripPrefix(&line, "Page block order:")) {
48 pageBlockOrder = toInt(line);
52 if (stripPrefix(&line, "Pages per block:")) {
53 proto.write(PageTypeInfoProto::PAGES_PER_BLOCK, toInt(line));
56 if (stripPrefix(&line, "Free pages count per migrate type at order")) {
60 if (stripPrefix(&line, "Number of blocks type")) {
61 blockHeader = parseHeader(line);
[all...]
H A DProcrankParser.cpp30 string line; local
39 // parse line by line
40 while (reader.readLine(&line)) {
41 if (line.empty()) continue;
43 // parse head line
45 header = parseHeader(line);
49 if (stripPrefix(&line, "ZRAM:")) {
50 zram = line;
53 if (stripPrefix(&line, "RA
[all...]
H A DSystemPropertiesParser.cpp45 string line; local
186 // parse line by line
187 while (reader.readLine(&line)) {
188 if (line.empty()) continue;
190 line = line.substr(1, line.size() - 2); // trim []
191 size_t index = line.find(LINE_DELIMITER); // split by "]: ["
193 fprintf(stderr, "Bad Line %s\n", line
[all...]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DPerfParser.java23 * Parses one line of the dumpsys output, and returns a string to write to the data file,
26 @Nullable String parseLine(String line); argument
H A DBatteryStatsParser.java40 public String parseLine(String line) { argument
45 if (line.contains("Battery History")) {
50 if (line.isEmpty()) {
54 Matcher lineMatcher = LINE_PATTERN.matcher(line);
H A DMemInfoParser.java42 public String parseLine(String line) { argument
47 if (line.contains(PSS_BY_PROCESS)) {
52 if (line.isEmpty()) {
56 Matcher lineMatcher = LINE_PATTERN.matcher(line);
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLineTest.java34 private boolean stretchesToFullWidth(CharSequence line) { argument
37 tl.set(paint, line, 0, line.length(), Layout.DIR_LEFT_TO_RIGHT,
/frameworks/native/cmds/installd/
H A Dfile_parsing.h35 // Read the next line.
36 std::string line; local
37 getline(input_stream, line);
39 // Is the line empty? Simplifies the next check.
40 if (line.empty()) {
45 if (line[0] == '#') {
49 if (!parse(line)) {
/frameworks/wilhelm/src/
H A Dassert.cpp24 void __assert(const char *file, int line, const char *failedexpr) argument
26 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
30 void __assert2(const char *file, int line, const char *func, const char *failedexpr) argument
32 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d, function \"%s\"",
33 failedexpr, file, line, func);
/frameworks/base/core/java/com/android/internal/os/
H A DAndroidPrintStream.java46 protected void log(String line) { argument
47 Log.println(priority, tag, line);
/frameworks/native/cmds/bugreportz/
H A Dbugreportz.cpp33 static void write_line(const std::string& line, bool show_progress) { argument
34 if (line.empty()) return;
38 if (!show_progress && (android::base::StartsWith(line, PROGRESS_PREFIX) ||
39 android::base::StartsWith(line, BEGIN_PREFIX)))
42 android::base::WriteStringToFd(line, STDOUT_FILENO);
46 std::string line; local
61 // Writes line by line.
64 line.append(1, c);
66 write_line(line, show_progres
[all...]
/frameworks/support/leanback/
H A Dgeneratef.py34 for line in file:
35 line = line.replace('IS_FRAMEWORK_FRAGMENT = false', 'IS_FRAMEWORK_FRAGMENT = true'); variable
37 line = line.replace('{}SupportFragment'.format(w2), '{}Fragment'.format(w2)) variable
38 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
39 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
40 line variable
41 line = line.replace('FragmentActivity activity', 'Activity activity') variable
42 line = line.replace('(FragmentActivity', '(Activity') variable
44 line = re.sub(r'([^\\.])getContext\\(\\)', r'\\1FragmentUtil.getContext({}Fragment.this)'.format(w), line); variable
61 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
62 line = line.replace('VideoSupportFragment', 'VideoFragment') variable
63 line = line.replace('PlaybackSupportFragment', 'PlaybackFragment') variable
79 line = line.replace('VideoSupportFragment', 'VideoFragment') variable
80 line = line.replace('PlaybackSupportFragment', 'PlaybackFragment') variable
81 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
97 line = line.replace('VideoSupportFragment', 'VideoFragment') variable
98 line = line.replace('DetailsSupportFragment', 'DetailsFragment') variable
99 line = line.replace('RowsSupportFragment', 'RowsFragment') variable
100 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
101 line = line.replace('mFragment.getContext()', 'FragmentUtil.getContext(mFragment)') variable
[all...]
/frameworks/support/leanback/src/androidTest/
H A Dgeneratev4.py40 for line in file:
42 line = line.replace('{}SupportFragment'.format(w), '{}Fragment'.format(w)) variable
43 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
44 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
45 line = line.replace('FragmentActivity getActivity()', 'Activity getActivity()') variable
46 outfile.write(line)
65 line = line.replace('{}SupportFragment'.format(w), '{}Fragment'.format(w)) variable
67 line = line.replace('{}SupportFragmentTestBase'.format(w), '{}FragmentTestBase'.format(w)) variable
68 line = line.replace('{}SupportFragmentTestActivity'.format(w), '{}FragmentTestActivity'.format(w)) variable
69 line = line.replace('{}TestSupportFragment'.format(w), '{}TestFragment'.format(w)) variable
70 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
71 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
91 line = line.replace('{}SupportFragment'.format(w), '{}Fragment'.format(w)) variable
93 line = line.replace('SingleSupportFragmentTestBase', 'SingleFragmentTestBase') variable
94 line = line.replace('SingleSupportFragmentTestActivity', 'SingleFragmentTestActivity') variable
95 line = line.replace('{}SupportFragmentTestBase'.format(w), '{}FragmentTestBase'.format(w)) variable
96 line = line.replace('{}SupportFragmentTest'.format(w), '{}FragmentTest'.format(w)) variable
97 line = line.replace('{}SupportFragmentTestActivity'.format(w), '{}FragmentTestActivity'.format(w)) variable
98 line = line.replace('{}TestSupportFragment'.format(w), '{}TestFragment'.format(w)) variable
99 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
100 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
101 line = line.replace('extends FragmentActivity', 'extends Activity') variable
102 line = line.replace('Activity.this.getSupportFragmentManager', 'Activity.this.getFragmentManager') variable
103 line = line.replace('tivity.getSupportFragmentManager', 'tivity.getFragmentManager') variable
119 line = line.replace('{}TestSupportFragment'.format(w), '{}TestFragment'.format(w)) variable
120 line = line.replace('{}SupportFragmentTestActivity'.format(w), '{}FragmentTestActivity'.format(w)) variable
121 line = line.replace('androidx.fragment.app.FragmentActivity', 'android.app.Activity') variable
122 line = line.replace('androidx.fragment.app.Fragment', 'android.app.Fragment') variable
123 line = line.replace('extends FragmentActivity', 'extends Activity') variable
124 line = line.replace('getSupportFragmentManager', 'getFragmentManager') variable
137 line = line.replace('IntEffect', 'FloatEffect') variable
138 line = line.replace('IntParallax', 'FloatParallax') variable
139 line = line.replace('IntProperty', 'FloatProperty') variable
140 line = line.replace('intValue()', 'floatValue()') variable
141 line = line.replace('int screenMax', 'float screenMax') variable
142 line = line.replace('assertEquals((int)', 'assertFloatEquals((float)') variable
143 line = line.replace('(int)', '(float)') variable
144 line = line.replace('int[', 'float[') variable
145 line = line.replace('Integer', 'Float'); variable
157 line = line.replace('ParallaxIntTest', 'ParallaxFloatTest') variable
158 line = line.replace('IntParallax', 'FloatParallax') variable
159 line = line.replace('IntProperty', 'FloatProperty') variable
160 line = line.replace('verifyIntProperties', 'verifyFloatProperties') variable
161 line = line.replace('intValue()', 'floatValue()') variable
162 line = line.replace('int screenMax', 'float screenMax') variable
163 line = line.replace('assertEquals((int)', 'assertFloatEquals((float)') variable
164 line = line.replace('(int)', '(float)') variable
[all...]
/frameworks/av/media/libstagefright/foundation/
H A Dhexdump.cpp47 AString line; local
49 appendIndent(&line, indent);
54 line.append(tmp);
58 line.append(' ');
61 line.append(" ");
64 line.append(tmp);
68 line.append(' ');
76 line.append((char)data[offset + i]);
78 line.append('.');
83 appendTo->append(line);
[all...]
/frameworks/av/services/audioflinger/
H A DTypedLogger.h73 constexpr uint64_t hash(const char (&file)[n], uint32_t line) { argument
78 std::min(line, 0xFFFFu);
/frameworks/base/core/java/com/android/internal/alsa/
H A DLineTokenizer.java32 int nextToken(String line, int startIndex) { argument
33 int len = line.length();
36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) {
45 int nextDelimiter(String line, int startIndex) { argument
46 int len = line.length();
49 if (mDelimiters.indexOf(line.charAt(offset)) != -1) {
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DKMLFormatter.java76 public void addLine(String line) { argument
77 mBuilder.append(line);
/frameworks/base/tests/net/java/android/net/apf/
H A DBpf2Apf.java39 private static int parseImm(String line, String arg) { argument
41 throw new IllegalArgumentException("Unhandled instruction: " + line);
45 throw new IllegalArgumentException("Unhandled instruction: " + line);
51 * Convert a single line of "tcpdump -d" (human readable BPF program dump) {@code line} into
52 * APF instruction(s) and append them to {@code gen}. Here's an example line:
55 private static void convertLine(String line, ApfGenerator gen) argument
57 if (line.indexOf("(") != 0 || line.indexOf(")") != 4 || line
[all...]
/frameworks/base/tools/aapt2/
H A DSource.h33 Maybe<size_t> line; member in struct:aapt::Source
40 inline Source(const android::StringPiece& path, size_t line) argument
41 : path(path.to_string()), line(line) {}
43 inline Source WithLine(size_t line) const {
44 return Source(path, line);
48 if (line) {
49 return ::android::base::StringPrintf("%s:%zd", path.c_str(), line.value());
64 return lhs.path == rhs.path && lhs.line == rhs.line;
[all...]
/frameworks/layoutlib/bridge/src/android/text/
H A DLineWidth.java32 public float getLineWidth(int line) { argument
33 return (line < mFirstWidthLineCount) ? mFirstWidth : mRestWidth;

Completed in 1116 milliseconds

1234567