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

1234567891011

/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/
H A Dbuild-local.py13 for line in fileinput.input(inputFile, inplace = 1):
14 if re.match(pattern, line, re.I|re.M):
15 line = re.sub(pattern, newVal, line)
17 print line,
30 for line in file:
31 matchObj = re.match(r'\s*<version>(.*)</version>', line)
/frameworks/support/samples/SupportLeanbackShowcase/
H A Dbuild-local.py13 for line in fileinput.input(inputFile, inplace = 1):
14 if re.match(pattern, line, re.I|re.M):
15 line = re.sub(pattern, newVal, line)
17 print line,
30 for line in file:
31 matchObj = re.match(r'\s*<version>(.*)</version>', line)
/frameworks/base/core/java/com/android/internal/os/
H A DKernelUidCpuFreqTimeReader.java81 String line = reader.readLine();
82 if (line == null) {
85 readCpuFreqs(line, callback);
86 while ((line = reader.readLine()) != null) {
87 final int index = line.indexOf(' ');
88 final int uid = Integer.parseInt(line.substring(0, index - 1), 10);
89 readTimesForUid(uid, line.substring(index + 1, line.length()), callback);
93 private void readTimesForUid(int uid, String line, Callback callback) { argument
99 final String[] timesStr = line
118 readCpuFreqs(String line, Callback callback) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DParsedMessage.cpp106 AString line(&data[offset], lineEndOffset - offset);
109 // Special handling for the request/status line.
111 mDict.add(AString("_"), line);
118 // An empty line separates headers from body.
124 if (line.c_str()[0] == ' ' || line.c_str()[0] == '\t') {
128 // Otherwise it's malformed since the first header line
132 value.append(line);
139 ssize_t colonPos = line.find(":");
141 AString key(line,
181 AString line; local
226 AString line; local
[all...]
/frameworks/base/tools/preload/
H A DRecord.java18 * One line from the loaded-classes file.
103 /** Source file line# */
107 * Parses a line from the loaded-classes file.
109 Record(String line, int lineNum) { argument
110 char typeChar = line.charAt(0);
116 default: throw new AssertionError("Bad line: " + line);
122 line = line.replace(REPLACE_CLASSES[i], REPLACE_CLASSES[i+1]);
125 line
[all...]
H A DCompile.java46 String line;
48 while ((line = in.readLine()) != null) {
50 if (line.startsWith("I/PRELOAD")) {
52 String clipped = line.substring(19);
56 "Exception while recording line " + lineNumber + ": " + line, e);
/frameworks/av/media/libstagefright/rtsp/
H A DASessionDescription.cpp65 AString line; local
67 // We accept both '\n' and '\r\n' line endings, if it's
69 line.setTo(desc, i, eolPos - i - 1);
71 line.setTo(desc, i, eolPos - i);
74 if (line.empty()) {
79 if (line.size() < 2 || line.c_str()[1] != '=') {
83 ALOGI("%s", line.c_str());
85 switch (line.c_str()[0]) {
88 if (strcmp(line
[all...]
/frameworks/compile/libbcc/tests/debuginfo/
H A Dtest_bcc_debuginfo.pl44 # at the beginning of a comment line.
47 my($line) = $_;
48 $i = index($line, "DEBUGGER:");
51 $s = substr($line, $i + $l);
/frameworks/base/core/java/android/text/
H A DLayout.java55 * Value for break strategy indicating simple line breaking. Automatic hyphens are not added
63 * Value for break strategy indicating high quality line breaking, including automatic
64 * hyphenation and doing whole-paragraph optimization of line breaks.
69 * Value for break strategy indicating balanced line breaking. The breaks are chosen to
85 * as suggestions for potential line breaks.
122 * Return how wide a layout must be in order to display the specified text with one line per
136 * line per paragraph.
148 * specified text slice with one line per paragraph.
185 * default line spacing
186 * @param spacingAdd amount to add to the default line spacin
659 getLineStartPos(int line, int left, int right) argument
811 getLineBounds(int line, Rect bounds) argument
827 getLineTop(int line) argument
832 getLineDescent(int line) argument
839 getLineStart(int line) argument
846 getParagraphDirection(int line) argument
852 getLineContainsTab(int line) argument
861 getLineDirections(int line) argument
880 getHyphen(int line) argument
889 getIndentAdjust(int line, Alignment alignment) argument
1075 getHorizontal(int offset, boolean trailing, int line, boolean clamped) argument
1110 getLineLeft(int line) argument
1141 getLineRight(int line) argument
1172 getLineMax(int line) argument
1182 getLineWidth(int line) argument
1195 getLineExtent(int line, boolean full) argument
1236 getLineExtent(int line, TabStops tabStops, boolean full) argument
1307 getOffsetForHorizontal(int line, float horiz) argument
1321 getOffsetForHorizontal(int line, float horiz, boolean primary) argument
1410 getLineEnd(int line) argument
1418 getLineVisibleEnd(int line) argument
1422 getLineVisibleEnd(int line, int start, int end) argument
1448 getLineBottom(int line) argument
1455 getLineBaseline(int line) argument
1464 getLineAscent(int line) argument
1566 shouldClampCursor(int line) argument
1659 addSelection(int line, int start, int end, int top, int bottom, Path dest) argument
1754 getParagraphAlignment(int line) argument
1775 getParagraphLeft(int line) argument
1787 getParagraphRight(int line) argument
1802 getParagraphLeadingMargin(int line) argument
2045 ellipsize(int start, int end, int line, char[] dest, int destoff, TextUtils.TruncateAt method) argument
2109 getEllipsisStart(int line) argument
2115 getEllipsisCount(int line) argument
[all...]
H A DSelection.java119 * offset, to the beginning if it is on the top line but not at the
120 * start, or return false if the cursor is already on the top line.
138 int line = layout.getLineForOffset(end);
140 if (line > 0) {
143 if (layout.getParagraphDirection(line) ==
144 layout.getParagraphDirection(line - 1)) {
146 move = layout.getOffsetForHorizontal(line - 1, h);
148 move = layout.getLineStart(line - 1);
164 * offset, to the end of the buffer if it is on the bottom line but
184 int line
[all...]
H A DBoringLayout.java26 * fits on a single line and is all left-to-right characters.
202 TextLine line = TextLine.obtain();
203 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT,
205 mMax = (int) Math.ceil(line.metrics(null));
206 TextLine.recycle(line);
291 TextLine line = TextLine.obtain();
292 line.set(paint, text, 0, textLength, Layout.DIR_LEFT_TO_RIGHT,
294 fm.width = (int) Math.ceil(line.metrics(fm));
295 TextLine.recycle(line);
311 public int getLineTop(int line) { argument
319 getLineDescent(int line) argument
324 getLineStart(int line) argument
332 getParagraphDirection(int line) argument
337 getLineContainsTab(int line) argument
342 getLineMax(int line) argument
347 getLineWidth(int line) argument
352 getLineDirections(int line) argument
367 getEllipsisCount(int line) argument
372 getEllipsisStart(int line) argument
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dquantize.c109 Word32 line; local
122 for (line=0; line<noOfLines; line++) {
126 mdctSpeL = mdctSpectrum[line];
165 quaSpectrum[line] = qua ;
170 for (line=0; line<noOfLines; line++) {
174 mdctSpeL = mdctSpectrum[line];
235 Word32 line; local
331 Word32 line; local
[all...]
/frameworks/native/services/vr/performanced/
H A Dtask.cpp90 for (std::string line; std::getline(file_stream, line);) {
91 auto offset = line.find(field);
94 "Task::GetStatusField: field=\"%s\" line=\"%s\" offset=%zd",
95 field.c_str(), line.c_str(), offset);
102 return Trim(line.substr(offset + field.size() + 1));
114 for (std::string line; std::getline(file_stream, line);) {
115 auto offset = line.find(":");
117 ALOGW("ReadStatusFields: Failed to find delimiter \":\" in line
153 std::string line = ""; local
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiBackupRestore.java350 for (String line : xmlString.split("\n")) {
351 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) {
352 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN);
354 if (line.matches(WEP_KEYS_MASK_LINE_START_MATCH_PATTERN)) {
356 } else if (line.matches(WEP_KEYS_MASK_LINE_END_MATCH_PATTERN)) {
359 line = line.replaceAll(
362 sb.append(line).append("\n");
525 for (String line
578 parseLine(String line) argument
[all...]
/frameworks/base/core/java/com/android/internal/alsa/
H A DAlsaCardsParser.java52 public boolean parse(String line, int lineIndex) { argument
57 // line # (skip)
58 tokenIndex = mTokenizer.nextToken(line, tokenIndex);
59 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex);
63 mCardNum = Integer.parseInt(line.substring(tokenIndex, delimIndex));
65 Slog.e(TAG, "Failed to parse line " + lineIndex + " of " + kCardsFilePath
66 + ": " + line.substring(tokenIndex, delimIndex));
71 tokenIndex = mTokenizer.nextToken(line, delimIndex);
72 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex);
73 mField1 = line
[all...]
H A DAlsaDevicesParser.java66 public boolean parse(String line) { argument
84 tokenOffset = mTokenizer.nextToken(line, delimOffset);
88 delimOffset = mTokenizer.nextDelimiter(line, tokenOffset);
90 delimOffset = line.length();
92 String token = line.substring(tokenOffset, delimOffset);
102 if (line.charAt(delimOffset) != '-') {
255 private boolean isLineDeviceRecord(String line) { argument
256 return line.charAt(kIndex_CardDeviceField) == '[';
266 String line = "";
267 while ((line
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuExecutable.cpp352 char line[MAXLINE]; local
381 if (strgets(line, MAXLINE, &rsInfo) == nullptr) {
384 if (sscanf(line, EXPORT_VAR_STR "%zu", &varCount) != 1) {
385 ALOGE("Invalid export var count!: %s", line);
405 if (strgets(line, MAXLINE, &rsInfo) == nullptr) {
408 char *c = strrchr(line, '\n');
412 void* addr = dlsym(sharedObj, line);
415 line, dlerror());
420 fieldName[i] = duplicateString(line, sizeof(line));
[all...]
/frameworks/native/cmds/installd/
H A Dsystem_properties.h33 return ParseFile(strFile, [&](const std::string& line) {
34 size_t equals_pos = line.find('=');
36 // Did not find equals sign, or it's the first character - isn't a valid line.
40 std::string key = line.substr(0, equals_pos);
41 std::string value = line.substr(equals_pos + 1,
42 line.length() - equals_pos + 1);
/frameworks/native/opengl/tools/glgen/src/
H A DParameterChecker.java25 String line;
26 while ((line = reader.readLine()) != null) {
27 String s = line.trim();
34 // skip single-line comments
/frameworks/webview/chromium/tools/
H A Dwebview_command_line17 CMD_LINE_FILE=/data/local/tmp/webview-command-line
20 # If nothing specified, print the command line (stripping off "webview").
23 # If given an empty string, delete the command line.
/frameworks/base/tools/localedata/
H A Dextract_icu_data.py63 for line in input_file:
64 line = unicode(line, 'UTF-8').strip(u' \n\uFEFF').encode('UTF-8')
65 if line.startswith('//'):
67 if '{' in line and '}' in line:
68 from_locale = line[:line.index('{')]
69 to_locale = line[line
[all...]
/frameworks/base/tools/orientationplot/
H A Dorientationplot.py228 # Add a line to the axes for a time series.
267 line = self.adbout.readline()
271 if line is None:
273 print line
276 timestamp = self._parse_timestamp(line)
284 if line.find('Raw acceleration vector:') != -1:
285 self.parse_raw_acceleration_x = self._get_following_number(line, 'x=')
286 self.parse_raw_acceleration_y = self._get_following_number(line, 'y=')
287 self.parse_raw_acceleration_z = self._get_following_number(line, 'z=')
288 self.parse_raw_acceleration_magnitude = self._get_following_number(line, 'magnitud
[all...]
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSimpleSessionDescription.java86 for (String line : lines) {
88 if (line.charAt(1) != '=') {
91 if (line.charAt(0) == 'm') {
92 String[] parts = line.substring(2).split(" ", 4);
102 fields.parse(line);
105 throw new IllegalArgumentException("Invalid SDP: " + line);
516 for (String line : mLines) {
517 if (line.charAt(0) == type) {
518 buffer.append(line).append("\r\n");
525 * Invokes {@link #set} after splitting the line int
527 parse(String line) argument
[all...]
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py154 # Add a line to the axes for a time series.
181 line = self.adbout.readline()
185 if line is None:
187 print line
190 timestamp = self._parse_timestamp(line)
198 if line.find(': position') != -1:
199 self.parse_velocity_x = self._get_following_number(line, 'vx=')
200 self.parse_velocity_y = self._get_following_number(line, 'vy=')
201 self.parse_velocity_magnitude = self._get_following_number(line, 'speed=')
206 if line
[all...]
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
H A DXmlEditor.java128 int lineCmp = start2.line - start1.line;
140 String line = lines.get(endTagPosition.line);
141 String newLine = line.substring(0, endTagPosition.charIndex) + " " + tag +
142 line.substring(endTagPosition.charIndex);
143 lines.set(endTagPosition.line, newLine);
245 if (start.line != end.line) {
246 String startLine = lines.get(start.line);
272 replaceRange(String line, int start, int end, String newText) argument
397 replaceWithSpaces(String line, int start, int end) argument
414 int line; field in class:XmlEditor.Position
417 Position(int line, int charIndex) argument
[all...]

Completed in 620 milliseconds

1234567891011