/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 258 String line = reader.getLineEnforce(); in parseVcard() local 260 while (!line.contains("END:VCARD")) { in parseVcard() 261 line = line.trim(); in parseVcard() 262 if (line.startsWith("N:")) { in parseVcard() 263 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard() 269 } else if (line.startsWith("FN:")) { in parseVcard() 270 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard() 276 } else if (line.startsWith("TEL:")) { in parseVcard() 277 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard() 287 } else if (line.startsWith("EMAIL:")) { in parseVcard() [all …]
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/ |
D | test_input.py | 6 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/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/ |
D | StatsGenerator.java | 169 String line = null; in parseExtension() local 171 while (!(line = reader.getEntry()).startsWith("}")) { in parseExtension() 172 if (line.endsWith("{")) { in parseExtension() 174 if (DEBUG) System.out.println(prefix + " :: " + line); in parseExtension() 175 String[] parts = line.split(" ", 3); in parseExtension() 195 LOGGER.warning("Error at line " + line); in parseExtension() 207 String line = null; in parseGroup() local 209 while (!(line = reader.getEntry()).startsWith("}")) { in parseGroup() 211 if (line.endsWith("{")) { in parseGroup() 212 if (DEBUG) System.out.println(prefix + " :: " + line); in parseGroup() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 42 private static int parseImm(String line, String arg) { in parseImm() argument 44 throw new IllegalArgumentException("Unhandled instruction: " + line); in parseImm() 48 throw new IllegalArgumentException("Unhandled instruction: " + line); in parseImm() 77 private static void convertLine(String line, ApfV4Generator gen) in convertLine() argument 79 if (line.indexOf("(") != 0 || line.indexOf(")") != 4 || line.indexOf(" ") != 5) { in convertLine() 80 throw new IllegalArgumentException("Unhandled instruction: " + line); in convertLine() 82 int label = Integer.parseInt(line.substring(1, 4)); in convertLine() 84 String opcode = line.substring(6, 10).trim(); in convertLine() 85 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine() 96 throw new IllegalArgumentException("Unhandled instruction: " + line); in convertLine() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiBackupRestore.java | 345 for (String line : xmlString.split("\n")) { in createLogFromBackupData() 346 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) { in createLogFromBackupData() 347 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN); in createLogFromBackupData() 349 if (line.matches(WEP_KEYS_MASK_LINE_START_MATCH_PATTERN)) { in createLogFromBackupData() 351 } else if (line.matches(WEP_KEYS_MASK_LINE_END_MATCH_PATTERN)) { in createLogFromBackupData() 354 line = line.replaceAll( in createLogFromBackupData() 357 sb.append(line).append("\n"); in createLogFromBackupData() 528 for (String line : supplicantConfString.split("\n")) { in createLogFromBackupData() 529 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) { in createLogFromBackupData() 530 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN); in createLogFromBackupData() [all …]
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/ |
D | input.py | 13 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/NeuralNetworks/tools/api/ |
D | generate_api.py | 15 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/services/Car/tools/watchdog/parser/ |
D | carwatchdog_dump_parser.py | 554 def get_value(line): argument 555 if ":" not in line: 557 return line.split(":")[1].strip() 560 for line in f: 561 value = get_value(line) 562 if line.startswith("fingerprint"): 564 elif line.startswith("brand"): 566 elif line.startswith("product"): 568 elif line.startswith("device"): 570 elif line.startswith("version.release"): [all …]
|
/packages/modules/Bluetooth/system/gd/storage/ |
D | legacy_config_file.cc | 46 std::string line; in Read() local 48 while (std::getline(config_file, line)) { in Read() 50 line = common::StringTrim(std::move(line)); in Read() 51 if (line.empty()) { in Read() 55 if (line.front() == '\0' || line.front() == '#') { in Read() 58 if (line.front() == '[') { in Read() 59 if (line.back() != ']') { in Read() 64 section = line.substr(1, line.size() - 2); in Read() 66 auto tokens = common::StringSplit(line, "=", 2); in Read()
|
/packages/modules/Wifi/ |
D | wifi_upload_hook.py | 38 for line in commit_msg.splitlines(): 39 line = line.strip().lower() 41 if line.startswith('updated-overlayable'): 46 if line.startswith('reviewed-cloud-b&r'): 88 for line in commit_msg.splitlines(): 89 line = line.strip().lower() 90 if line.startswith('bug: 294871353'): 99 for line in out.splitlines(): 100 if line.startswith(b'+') or line.startswith(b'-'): 101 …print('This commit has xml tag changed: "{changed_line}".'.format(changed_line=line.decode("utf-8"…
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | CellLayoutTestCaseReader.java | 97 private State getStateFromLine(String line) { in getStateFromLine() argument 98 String typeWithColons = line.trim().split(" ")[0].trim(); in getStateFromLine() 108 private String removeTag(String line) { in removeTag() argument 109 return line.split(":")[1]; in removeTag() 113 String line = it.next(); in parseNextLine() local 114 if (line.trim().charAt(0) == '#') { in parseNextLine() 117 State state = getStateFromLine(line); in parseNextLine() 118 line = removeTag(line); in parseNextLine() 121 return new Arguments(parseArgumentsLine(line)); in parseNextLine() 123 Point grid = parseGridSize(line); in parseNextLine() [all …]
|
/packages/modules/NeuralNetworks/tools/ |
D | parse_benchmark.py | 49 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/adb/client/ |
D | bugreport.cpp | 83 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/Bluetooth/android/pandora/test/ |
D | hfpclient_test.py | 92 line = self.buffer[:separator].strip() 94 if len(line) > 0: 95 self.on_line(line) 97 def on_line(self, line: str) -> None: 98 self.lines.append(line) 101 def send_command_line(self, line: str) -> None: 103 self.dlc.write(line + '\r') 105 def send_response_line(self, line: str) -> None: 107 self.dlc.write('\r\n' + line + '\r\n') 111 line = self.lines.popleft() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/ |
D | ConfigParser.java | 240 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/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/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/common/ |
D | ProcessUtil.java | 140 for (String line : file.split("\n")) { in parseMemoryInfo() 141 line = line.trim(); in parseMemoryInfo() 142 if (line.length() == 0) { in parseMemoryInfo() 149 if (line.matches("[\\w()]+:\\s+.*")) { in parseMemoryInfo() 151 throw new RuntimeException("unexpected line: " + line); in parseMemoryInfo() 153 if (line.endsWith(" kB")) line = line.substring(0, line.length() - 3); in parseMemoryInfo() 154 String[] elems = line.split(":"); in parseMemoryInfo() 171 String[] parts = line.split("\\s+", 6); in parseMemoryInfo()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/lib/ |
D | ble_lib.py | 129 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/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/ |
D | FullThreadDevice.java | 334 for (String line : lines) { in isSrpServiceRegistered() 335 if (line.contains(serviceName) && line.contains(serviceType)) { in isSrpServiceRegistered() 336 return line.contains("Registered"); in isSrpServiceRegistered() 345 for (String line : lines) { in isSrpHostRegistered() 346 return line.contains("Registered"); in isSrpHostRegistered() 535 String line; in readUntilDone() local 536 while ((line = readLine()) != null) { in readUntilDone() 537 if (line.equals("Done")) { in readUntilDone() 540 if (line.startsWith("Error")) { in readUntilDone() 541 throw new IOException("ot-cli-ftd reported an error: " + line); in readUntilDone() [all …]
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | DumpWriter.cpp | 51 void DumpWriter::println(const std::string& line) { in println() argument 52 if (!line.empty()) { in println() 56 ::write(mFd, line.c_str(), line.size()); in println() 63 std::string line; in println() local 66 StringAppendV(&line, fmt, ap); in println() 68 println(line); in println()
|
/packages/modules/common/tools/ |
D | check_allowed_deps.py | 21 for line in allowed_deps: 22 if line.startswith('#'): 25 if line.startswith("androidx."): 27 if len(line.strip()) == 0: 29 dep = line[:line.find("(")] 38 for line in commit_msg: 39 key_match = re.match(r'(\S+):', line)
|
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/ |
D | DeviceConfigBootstrapValues.java | 80 lines.forEach(line -> processLine(line)); in parseAndApplyBootstrapValues() 87 private void processLine(String line) { in processLine() argument 91 int namespaceDelimiter = line.indexOf(':'); in processLine() 92 String namespace = line.substring(0, namespaceDelimiter); in processLine() 97 int valueDelimiter = line.indexOf('='); in processLine() 101 String key = line.substring(namespaceDelimiter + 1, valueDelimiter); in processLine() 102 String value = line.substring(valueDelimiter + 1); in processLine()
|
/packages/services/Car/tools/GenericCarApiBuilder/scripts/ |
D | add_assertPlatformVersionAtLeast.py | 68 line = lines[line_number] variable 69 indent_spaces = len(line) - len(line.lstrip()) 72 for i, line in enumerate(lines): 73 if line.startswith("import") and filepath not in import_added: 80 for line in lines: 81 file.write(line)
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | SignaturePermissionAllowlistConfigTest.kt | 74 for (line in output.split("\n")) { in <lambda>() variable 75 val line = line.trim() in <lambda>() constant 77 line.startsWith("Package: ") -> { in <lambda>() 78 val packageName = line.substring("Package: ".length) in <lambda>() 81 line.startsWith("Permission: ") -> { in <lambda>() 82 val permissionName = line.substring("Permission: ".length) in <lambda>() 85 line.isEmpty() -> {} in <lambda>() 86 else -> error("Unknown line in pm get-signature-permission-allowlist: $line") in <lambda>()
|