/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 253 String line = reader.getLineEnforce(); in parseVcard() local 255 while(!line.contains("END:VCARD")){ in parseVcard() 256 line = line.trim(); in parseVcard() 257 if(line.startsWith("N:")){ in parseVcard() 258 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard() 264 else if(line.startsWith("FN:")){ in parseVcard() 265 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard() 271 else if(line.startsWith("TEL:")){ in parseVcard() 272 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard() 282 else if(line.startsWith("EMAIL:")){ in parseVcard() [all …]
|
/packages/services/Car/tools/bootanalyze/ |
D | bugreport_anayze.py | 161 def match_an_event(self, event_patterns, line): argument 163 m = event_pattern.search(line) 168 def get_event_time(self, line, is_kernel): argument 170 m = self.re_time_dmesg.search(line) 172 print "Cannot get time from log:", line 176 m = self.re_time_logcat.search(line) 178 print "Cannot get time from log:", line 198 line = orig_line 202 while len(line) > 0: 203 m = self.re_native_crash_start.search(line) [all …]
|
D | bootanalyze.py | 525 def handle_zygote_event(zygote_pids, events, event, line): argument 526 words = line.split() 555 events[event] = line 578 line = process.stdout.readline().lstrip().rstrip() 579 if not line: 581 lines.append(line) 582 event = get_boot_event(line, shutdown_events_pattern); 585 time = extract_a_time(line, TIME_LOGCAT, float) 587 print "cannot get time from: " + line 635 line = None [all …]
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 126 char *line; in read_lines() local 127 for (line = strtok(buf, "\n"); in read_lines() 128 line != NULL && num < stats_count; in read_lines() 129 line = strtok(NULL, "\n")) { in read_lines() 133 while (isspace(*line)) ++line; in read_lines() 135 while (isgraph(*line)) ++line; in read_lines() 136 while (isspace(*line)) ++line; in read_lines() 139 char *name_end = strchr(line, delimiter); in read_lines() 144 data->name = malloc(filename_len + 1 + (name_end - line) + 1); in read_lines() 147 unspace(data->name + filename_len + 1, line, name_end - line); in read_lines() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | FileSystemUtils.java | 233 String line = lines.get(i); in freeSpaceWindows() local 234 if (line.length() > 0) { in freeSpaceWindows() 235 return parseDir(line, path); in freeSpaceWindows() 252 long parseDir(String line, String path) throws IOException { in parseDir() argument 259 int j = line.length() - 1; in parseDir() 261 char c = line.charAt(j); in parseDir() 271 char c = line.charAt(j); in parseDir() 287 StringBuffer buf = new StringBuffer(line.substring(bytesStart, bytesEnd)); in parseDir() 410 String line = inr.readLine(); in performCommand() local 411 while (line != null && lines.size() < max) { in performCommand() [all …]
|
D | IOUtils.java | 505 String line = reader.readLine(); in readLines() local 506 while (line != null) { in readLines() 507 list.add(line); in readLines() 508 line = reader.readLine(); in readLines() 906 Object line = it.next(); in writeLines() local 907 if (line != null) { in writeLines() 908 output.write(line.toString().getBytes()); in writeLines() 942 Object line = it.next(); in writeLines() local 943 if (line != null) { in writeLines() 944 output.write(line.toString().getBytes(encoding)); in writeLines() [all …]
|
D | LineIterator.java | 96 String line = bufferedReader.readLine(); in hasNext() local 97 if (line == null) { in hasNext() 100 } else if (isValidLine(line)) { in hasNext() 101 cachedLine = line; in hasNext() 118 protected boolean isValidLine(String line) { in isValidLine() argument
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SearchUtil.java | 29 public String line; field in SearchUtil.MatchedLine 34 "line='" + line + '\'' + in toString() 71 matched.line = contents.substring(start + 1, end); in findMatchingLine() 135 static int findNextTokenStart(String line, int startIndex) { in findNextTokenStart() argument 139 while (index <= line.length()) { in findNextTokenStart() 140 if (index == line.length()) { in findNextTokenStart() 144 final int codePoint = line.codePointAt(index); in findNextTokenStart() 152 while (index <= line.length()) { in findNextTokenStart() 153 if (index == line.length()) { in findNextTokenStart() 156 final int codePoint = line.codePointAt(index); in findNextTokenStart()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 54 matched.line = contents.substring(start + 1, end); in findMatchingLine() 118 static int findNextTokenStart(String line, int startIndex) { in findNextTokenStart() argument 122 while (index <= line.length()) { in findNextTokenStart() 123 if (index == line.length()) { in findNextTokenStart() 127 final int codePoint = line.codePointAt(index); in findNextTokenStart() 135 while (index <= line.length()) { in findNextTokenStart() 136 if (index == line.length()) { in findNextTokenStart() 139 final int codePoint = line.codePointAt(index); in findNextTokenStart() 191 public String line; field in SearchUtil.MatchedLine 195 return "MatchedLine{" + "line='" + line + '\'' + ", startIndex=" + startIndex + '}'; in toString()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CursorAnchorInfoUtils.java | 169 for (int line = minLine; line <= maxLine; ++line) { in extractFromTextViewInternal() 170 final int lineStart = layout.getLineStart(line); in extractFromTextViewInternal() 171 final int lineEnd = layout.getLineEnd(line); in extractFromTextViewInternal() 175 layout.getParagraphDirection(line) == Layout.DIR_LEFT_TO_RIGHT; in extractFromTextViewInternal() 178 final float top = layout.getLineTop(line); in extractFromTextViewInternal() 179 final float bottom = layout.getLineBottom(line); in extractFromTextViewInternal() 236 final int line = layout.getLineForOffset(offset); in extractFromTextViewInternal() local 239 final float insertionMarkerTop = layout.getLineTop(line) in extractFromTextViewInternal() 241 final float insertionMarkerBaseline = layout.getLineBaseline(line) in extractFromTextViewInternal() 243 final float insertionMarkerBottom = layout.getLineBottom(line) in extractFromTextViewInternal()
|
/packages/services/Car/tools/bootio/ |
D | bootio_collector.cpp | 70 char line[MAX_LINE]; in ReadIo() local 75 while (fgets(line, MAX_LINE, file)) { in ReadIo() 76 sscanf(line, "rchar: %u", &rchar); in ReadIo() 77 sscanf(line, "wchar: %u", &wchar); in ReadIo() 78 sscanf(line, "syscr: %u", &syscr); in ReadIo() 79 sscanf(line, "syscw: %u", &syscw); in ReadIo() 80 sscanf(line, "read_bytes: %u", &readbytes); in ReadIo() 81 sscanf(line, "write_bytes: %u", &writebytes); in ReadIo() 150 char line[MAX_LINE]; in ReadCmdline() local 152 line[0] = '\0'; in ReadCmdline() [all …]
|
/packages/apps/Messaging/build/ |
D | colorize_errors.py | 31 for line in fileinput.input(): 32 if ERROR.match(line): 33 print RED + line, 34 elif WARNING.match(line): 35 print YELLOW + line, 36 elif STARTS_WITH_WS.match(line): 38 print line, 40 print RESET + line,
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | CombinedInputOutput.java | 97 String line; in readDictionaryCombined() local 104 while (null != (line = reader.readLine())) { in readDictionaryCombined() 105 if (line.startsWith(COMMENT_LINE_STARTER)) continue; in readDictionaryCombined() 106 final String args[] = line.trim().split(","); in readDictionaryCombined() 121 if (2 != params.length) throw new RuntimeException("Wrong format : " + line); in readDictionaryCombined() 136 + line); in readDictionaryCombined() 156 if (2 != params.length) throw new RuntimeException("Wrong format : " + line); in readDictionaryCombined() 168 throw new RuntimeException("Wrong format : " + line); in readDictionaryCombined() 175 if (2 != params.length) throw new RuntimeException("Wrong format : " + line); in readDictionaryCombined() 186 throw new RuntimeException("Wrong format (historical info) : " + line); in readDictionaryCombined() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/ |
D | doxygenextra.css | 24 line-height: 25.5px; 69 line-height: 63.75px; 86 line-height: 2.0em; 91 line-height: 1.7; 100 line-height: 1.7; 111 line-height: 19px; 136 div.line { 142 line-height: 19px; 154 line-height: 19px; 171 line-height: 63.75px; [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GradControl.java | 128 public void actionDown(float x, float y, Line line) { in actionDown() argument 134 mDownPoint1X = line.getPoint1X(); in actionDown() 135 mDownPoint1Y = line.getPoint1Y(); in actionDown() 136 mDownPoint2X = line.getPoint2X(); in actionDown() 137 mDownPoint2Y = line.getPoint2Y(); in actionDown() 140 public void actionMove(int handle, float x, float y, Line line) { in actionMove() argument 163 line.setPoint1(mDownPoint1X + dx, mDownPoint1Y + dy); in actionMove() 164 line.setPoint2(mDownPoint2X + dx, mDownPoint2Y + dy); in actionMove() 171 line.setPoint1(mDownPoint1X + dx, mDownPoint1Y + dy); in actionMove() 178 line.setPoint2(mDownPoint2X + dx, mDownPoint2Y + dy); in actionMove()
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | MoreKeysResources.java | 139 String line; in inflateTemplate() local 140 while ((line = in.readLine()) != null) { in inflateTemplate() 141 if (line.contains(MARK_NAMES)) { in inflateTemplate() 143 } else if (line.contains(MARK_DEFAULT_TEXTS)) { in inflateTemplate() 145 } else if (line.contains(MARK_TEXTS)) { in inflateTemplate() 147 } else if (line.contains(MARK_LOCALES_AND_TEXTS)) { in inflateTemplate() 150 out.println(line); in inflateTemplate() 236 for (final String line : lines.split("\n")) { in addPrefix() 237 sb.append(prefix + line.trim() + "\n"); in addPrefix()
|
/packages/apps/Terminal/jni/ |
D | com_android_terminal_Terminal.cpp | 435 ScrollbackLine* line = NULL; in onPushline() local 439 line = mScroll[mScrollCur - 1]; in onPushline() 449 if (line == NULL) { in onPushline() 450 line = new ScrollbackLine(cols); in onPushline() 453 mScroll[0] = line; in onPushline() 459 line->copyFrom(cols, cells); in onPushline() 468 ScrollbackLine* line = mScroll[0]; in onPopline() local 472 dimen_t n = line->copyTo(cols, cells); in onPopline() 478 delete line; in onPopline() 497 ScrollbackLine* line = mScroll[scrollRow - 1]; in getCellLocked() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 240 Bitmap line = getBorderLine(true, config, texHeight); in uploadToCanvas() local 241 canvas.texSubImage2D(this, 0, 0, line, format, type); in uploadToCanvas() 244 line = getBorderLine(false, config, texWidth); in uploadToCanvas() 245 canvas.texSubImage2D(this, 0, 0, line, format, type); in uploadToCanvas() 250 Bitmap line = getBorderLine(true, config, texHeight); in uploadToCanvas() local 251 canvas.texSubImage2D(this, mBorder + bWidth, 0, line, format, type); in uploadToCanvas() 256 Bitmap line = getBorderLine(false, config, texWidth); in uploadToCanvas() local 257 canvas.texSubImage2D(this, 0, mBorder + bHeight, line, format, type); in uploadToCanvas()
|
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
D | BugReportParser.java | 30 String line = null; in extractSystemLogs() local 31 while ((line = reader.readLine()) != null) { in extractSystemLogs() 35 if (line.startsWith(SECTION_HEADER) || (numLines > MAX_LINES)) { in extractSystemLogs() 38 sb.append(line); in extractSystemLogs() 41 } else if (line.startsWith(sectionWithHeader)) { in extractSystemLogs() 42 sb.append(line); in extractSystemLogs()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 1069 for (String line : lines) { in apply() 1072 if (!Character.isWhitespace(line.charAt(0)) && !line.startsWith("=")) { in apply() 1073 String currentProp = line.split("[;:]")[0]; in apply() 1096 filteredVCard.append(line + SEPARATOR); in apply() 1151 for (String line : lines) { in checkprop() 1152 if (!Character.isWhitespace(line.charAt(0)) && !line.startsWith("=")) { in checkprop() 1153 String currentProp = line.split("[;:]")[0]; in checkprop() 1196 for (String line : lines) { in getName() 1197 if (!Character.isWhitespace(line.charAt(0)) && !line.startsWith("=")) { in getName() 1198 if (line.startsWith("N:")) in getName() [all …]
|
/packages/apps/Car/libs/ |
D | resource_generator.py | 142 for line in xml_string.splitlines(): 143 stripped = line.lstrip() 149 leading_spaces = len(line) - len(stripped) 150 reformatted_xml += " " * leading_spaces + line + os.linesep 164 for line in f.readlines(): 167 if line.lstrip().startswith("<resources"): 169 starting_lines += line
|
/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 393 String line = Address.toString(address); in testToStringMulti() local 396 line); in testToStringMulti() 399 String line = Address.toString(addresses); in testToStringMulti() local 411 line); in testToStringMulti() 416 String line = Address.toString(address, "$"); in testToStringMulti() local 419 line); in testToStringMulti() 423 String line = Address.toString(addresses, "$"); in testToStringMulti() local 435 line); in testToStringMulti() 531 String line = Address.toHeader(addresses); in testToHeaderMulti() local 541 line); in testToHeaderMulti()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | BaseModelUpdateTaskTestCase.java | 121 String line; in initializeData() local 123 while((line = reader.readLine()) != null) { in initializeData() 124 line = line.trim(); in initializeData() 125 if (line.startsWith("#") || line.isEmpty()) { in initializeData() 128 String[] commands = line.split(" "); in initializeData()
|
/packages/apps/TV/src/com/android/tv/tuner/ |
D | ChannelScanFileParser.java | 78 String line; in parseScanFile() local 81 while ((line = in.readLine()) != null) { in parseScanFile() 82 if (line.isEmpty()) { in parseScanFile() 85 if (line.charAt(0) == '#') { in parseScanFile() 89 String[] tokens = line.split("\\s+"); in parseScanFile()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | AddressList.java | 124 String line = reader.readLine(); in main() local 125 …if (line.length() == 0 || line.toLowerCase().equals("exit") || line.toLowerCase().equals("quit")) { in main() 129 AddressList list = parse(line); in main()
|