Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 235) sorted by relevance

12345678910

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java253 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/modules/NetworkStack/tests/unit/src/android/net/apf/
DBpf2Apf.java39 private static int parseImm(String line, String arg) { in parseImm() argument
41 throw new IllegalArgumentException("Unhandled instruction: " + line); in parseImm()
45 throw new IllegalArgumentException("Unhandled instruction: " + line); in parseImm()
55 private static void convertLine(String line, ApfGenerator gen) in convertLine() argument
57 if (line.indexOf("(") != 0 || line.indexOf(")") != 4 || line.indexOf(" ") != 5) { in convertLine()
58 throw new IllegalArgumentException("Unhandled instruction: " + line); in convertLine()
60 int label = Integer.parseInt(line.substring(1, 4)); in convertLine()
62 String opcode = line.substring(6, 10).trim(); in convertLine()
63 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine()
74 throw new IllegalArgumentException("Unhandled instruction: " + line); in convertLine()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java343 for (String line : xmlString.split("\n")) { in createLogFromBackupData()
344 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) { in createLogFromBackupData()
345 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN); in createLogFromBackupData()
347 if (line.matches(WEP_KEYS_MASK_LINE_START_MATCH_PATTERN)) { in createLogFromBackupData()
349 } else if (line.matches(WEP_KEYS_MASK_LINE_END_MATCH_PATTERN)) { in createLogFromBackupData()
352 line = line.replaceAll( in createLogFromBackupData()
355 sb.append(line).append("\n"); in createLogFromBackupData()
526 for (String line : supplicantConfString.split("\n")) { in createLogFromBackupData()
527 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) { in createLogFromBackupData()
528 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN); in createLogFromBackupData()
[all …]
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Dtest_input.py6 def check_match(self, line): argument
7 m = MATCHER.match(line)
8 self.assertTrue(m, "'" + line + "'")
10 def check_old_match(self, line): argument
11 m = MATCHER_FOR_OLD.match(line)
12 self.assertTrue(m, "'" + line + "'")
24 for line in lines.splitlines():
25 line = line.strip()
26 if line:
27 self.check_match(line)
[all …]
/packages/modules/NeuralNetworks/tools/api/
Dgenerate_api.py15 self.line = None # most recently read line
29 self.line = lines[self.lineno]
69 orig = self.line
144 matchbad = re.search("^[/\\\]%(\S*)", self.line)
149 if re.search("^%", self.line) and not re.search("^%{", self.line):
151 if re.search("^%%", self.line):
155 match = re.search("^(%\S*)", self.line);
161 match = re.search("^%insert(?:-indented\s+(\S+))?\s+(\S+)\s*$", self.line)
163 directive = self.line.split(" ", 1)[0]
174 (indent + line if line.rstrip("\n") else line)
[all …]
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Dinput.py13 for line in lines:
15 if ("# TASK-PID TGID CPU# |||| TIMESTAMP FUNCTION" in line or
16 "# TASK-PID CPU# |||| TIMESTAMP FUNCTION" in line):
19 if "</script>" in line:
21 trace.append([line, lineno])
57 for [line, lineno] in trace:
58 m = MATCHER.match(line)
59 m_old = MATCHER_FOR_OLD.match(line)
62 assert not "HIDL::IDevice" in line, line
63 assert not "[NN_" in line, line
[all …]
/packages/modules/Bluetooth/system/gd/storage/
Dlegacy_config_file.cc44 std::string line; in Read() local
46 while (std::getline(config_file, line)) { in Read()
48 line = common::StringTrim(std::move(line)); in Read()
49 if (line.front() == '\0' || line.front() == '#') { in Read()
52 if (line.front() == '[') { in Read()
53 if (line.back() != ']') { in Read()
58 section = line.substr(1, line.size() - 2); in Read()
60 auto tokens = common::StringSplit(line, "=", 2); in Read()
/packages/modules/adb/client/
Dbugreport.cpp83 for (const auto& line : invalid_lines_) { in Done() local
84 fprintf(stderr, "\t%s\n", line.c_str()); in Done()
135 void ProcessLine(const std::string& line) { in ProcessLine() argument
136 if (line.empty()) return; in ProcessLine()
138 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) { in ProcessLine()
139 SetSrcFile(&line[strlen(BUGZ_BEGIN_PREFIX)]); in ProcessLine()
140 } else if (android::base::StartsWith(line, BUGZ_OK_PREFIX)) { in ProcessLine()
141 SetSrcFile(&line[strlen(BUGZ_OK_PREFIX)]); in ProcessLine()
142 } else if (android::base::StartsWith(line, BUGZ_FAIL_PREFIX)) { in ProcessLine()
143 const char* error_message = &line[strlen(BUGZ_FAIL_PREFIX)]; in ProcessLine()
[all …]
/packages/modules/NeuralNetworks/tools/
Dparse_benchmark.py49 for line in f:
50 if "INSTRUMENTATION_STATUS:" in line and "_avg" in line:
51 sample = line.split(": ")[1]
79 for line in stats:
81 line["benchmark"], line["mean"], line["stddev"], line["min"],
82 line["max"], line["n"]))
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/
DConfigParser.java240 String line = in.readLine(); in parseMimeMultipartMessage() local
241 if (line == null) { in parseMimeMultipartMessage()
245 if (line.equals("--" + header.boundary)) { in parseMimeMultipartMessage()
290 String line = in.readLine(); in parseMimePart() local
291 if (line == null) { in parseMimePart()
295 if (line.startsWith(partBoundary)) { in parseMimePart()
296 if (line.equals(endBoundary)) { in parseMimePart()
301 text.append(line); in parseMimePart()
393 String line; in readHeaders() local
397 line = in.readLine(); in readHeaders()
[all …]
/packages/apps/Messaging/build/
Dcolorize_errors.py31 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/modules/Bluetooth/system/blueberry/tests/gd_sl4a/lib/
Dble_lib.py129 def start_generic_connectable_advertisement(self, line): argument
132 if line:
133 scan_response = bool(line)
147 def start_connectable_advertisement_set(self, line): argument
168 def stop_all_advertisement_set(self, line): argument
176 def adv_add_service_uuid_list(self, line): argument
179 uuids = line.split()
183 uuid = self.generic_uuid.format(line)
195 def adv_data_add_manufacturer_data(self, line): argument
198 info = line.split()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java54 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/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java29 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/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
D_rootcanal.py94 for line in raw.split("\n"):
95 line = line.strip()
96 if not line:
98 if line[0].isdigit():
100 if curr_category is None or ":" not in line:
102 curr_category.append(line.split(":", 1)[1])
104 if line.endswith(":"):
105 line = line[:-1]
107 categories[line] = curr_category
/packages/modules/Bluetooth/tools/pdl/src/
Dast.rs20 pub line: usize, field
178 let mut loc = SourceLocation { offset, line: 0, column: offset }; in new()
179 for (line, start) in line_starts.iter().enumerate() { in new()
183 loc = SourceLocation { offset, line, column: offset - start }; in new()
200 if self.start.line == self.end.line { in fmt()
201 write!(f, "{}:{}-{}", self.start.line, self.start.column, self.end.column) in fmt()
206 self.start.line, self.start.column, self.end.line, self.end.column in fmt()
308 SourceLocation { offset: 0, line: 0, column: 0 } in source_location_new()
312 SourceLocation { offset: 10, line: 0, column: 10 } in source_location_new()
316 SourceLocation { offset: 50, line: 1, column: 30 } in source_location_new()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java169 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/service/src/com/android/car/
DCarBugreportManagerService.java253 private void handleProgress(String line, ICarBugreportCallback callback) { in handleProgress() argument
254 String progressOverTotal = line.substring(PROGRESS_PREFIX.length()); in handleProgress()
257 Slogf.w(TAG, "Invalid progress line from bugreportz: " + line); in handleProgress()
266 Slogf.w(TAG, "Invalid progress value: " + line, e); in handleProgress()
270 Slogf.w(TAG, "Invalid progress total value: " + line); in handleProgress()
314 String line; in processBugreportSockets() local
315 while (mIsServiceRunning.get() && (line = reader.readLine()) != null) { in processBugreportSockets()
316 if (line.startsWith(PROGRESS_PREFIX)) { in processBugreportSockets()
317 handleProgress(line, callback); in processBugreportSockets()
318 } else if (line.startsWith(FAIL_PREFIX)) { in processBugreportSockets()
[all …]
DCarFeatureController.java375 void handleCorruptConfigFileLocked(String msg, String line) { in handleCorruptConfigFileLocked() argument
376 Slogf.e(TAG, msg + ", considered as corrupt, line:" + line); in handleCorruptConfigFileLocked()
396 String line = reader.readLine(); in loadFromConfigFileLocked() local
397 if (line == null) { in loadFromConfigFileLocked()
404 if (lastLinePassed && !line.isEmpty()) { in loadFromConfigFileLocked()
406 "Config file has additional line after last line marker", line); in loadFromConfigFileLocked()
409 if (line.startsWith(CONFIG_FILE_HASH_MARKER)) { in loadFromConfigFileLocked()
412 .parseInt(line.substring(CONFIG_FILE_HASH_MARKER.length()).strip()); in loadFromConfigFileLocked()
415 + expectedHashValue, line); in loadFromConfigFileLocked()
427 if (line.startsWith(CONFIG_FILE_LAST_LINE_MARKER)) { in loadFromConfigFileLocked()
[all …]
/packages/modules/adb/
Dtest_adb.py359 line = connf.readline()
360 if line.startswith("auth"):
362 line = connf.readline()
363 self.assertEqual("kill\n", line)
701 self.assertTrue(any((serv_instance in line and serv_type in line)
702 for line in MdnsTest._mdns_services(server_port)))
706 self.assertFalse(any((serv_instance in line and serv_type in line)
707 for line in MdnsTest._mdns_services(server_port)))
744 … self.assertTrue(any((srvs['mdns_name'][i] in line and srvs['mdns_type'] in line)
745 for line in MdnsTest._mdns_services(server_port)))
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/cpim/
DSimpleCpimMessage.java84 String line = reader.readLine(); in parse() local
85 while (!TextUtils.isEmpty(line)) { in parse()
86 Matcher namespaceMatcher = NAMESPACE_HEADER_PATTERN.matcher(line); in parse()
87 Matcher headerMatcher = HEADER_PATTERN.matcher(line); in parse()
94 line = reader.readLine(); in parse()
97 line = reader.readLine(); in parse()
98 while (!TextUtils.isEmpty(line)) { in parse()
99 Matcher headerMatcher = HEADER_PATTERN.matcher(line); in parse()
106 line = reader.readLine(); in parse()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DTestUtils.java343 for (String line; (line = reader.readLine()) != null;) { in readAdapterConfig()
344 line = line.trim(); in readAdapterConfig()
345 if (line.isEmpty() || line.startsWith("#")) { in readAdapterConfig()
348 if (line.startsWith("[")) { in readAdapterConfig()
349 if (line.charAt(line.length() - 1) != ']') { in readAdapterConfig()
352 section = line.substring(1, line.length() - 1); in readAdapterConfig()
355 String[] keyValue = line.split("="); in readAdapterConfig()
/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DDeployAgent.java162 String line = ""; in getFilenameFromPackageName() local
163 while ((line = reader.readLine()) != null) { in getFilenameFromPackageName()
164 if (line.endsWith(packageSuffix)) { in getFilenameFromPackageName()
165 int packageIndex = line.indexOf(packagePrefix); in getFilenameFromPackageName()
169 int equalsIndex = line.lastIndexOf(packageSuffix); in getFilenameFromPackageName()
171 line.substring(packageIndex + packagePrefix.length(), equalsIndex); in getFilenameFromPackageName()
205 String line = ""; in createInstallSession() local
208 while ((line = reader.readLine()) != null) { in createInstallSession()
209 if (line.startsWith(successLineStart) && line.endsWith(successLineEnd)) { in createInstallSession()
210 return Integer.parseInt(line.substring(successLineStart.length(), in createInstallSession()
[all …]
/packages/modules/common/tools/
Dcheck_allowed_deps.py21 for line in allowed_deps:
22 if line.startswith('#'):
24 if len(line.strip()) == 0:
26 dep = line[:line.find("(")]
35 for line in commit_msg:
36 key_match = re.match(r'(\S+):', line)
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css24 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 …]

12345678910