Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 36) sorted by relevance

12

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dsupl.py24 for node in root:
25 if "hal" in node.tag:
27 _enable_supl_over_wifi(ad, node)
29 _disable_supl_over_wifi(ad, node)
34 def _enable_supl_over_wifi(ad, node): argument
51 node.set(key, value)
54 def _disable_supl_over_wifi(ad, node): argument
70 node.attrib.pop(attri, None)
71 node.set("SuplUseApn", "true")
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dui_utils.py80 def match_node(node, **matcher): argument
100 match_list.append(v in node.attributes[key].value)
102 match_list.append(node.attributes[key].value == v)
141 for node in nodes:
142 if match_node(node, **kwargs):
146 return node
180 node = _find_node(screen_dump_xml, **kwargs)
181 if node and child:
182 node = _find_node(node, **child)
183 if node and sibling:
[all …]
/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt22 override fun visitMethod(node: UMethod) { in getApplicableUastTypes()
23 val method = node.sourcePsi as? PsiMethod ?: return in getApplicableUastTypes()
24 visitGenericMethod(method, node, isModuleMethod = true) in getApplicableUastTypes()
28 override fun visitCallExpression(node: UCallExpression) { in getApplicableUastTypes()
29 val method = node.resolve() ?: return in getApplicableUastTypes()
30 visitGenericMethod(method, node) in getApplicableUastTypes()
36 override fun visitSimpleNameReferenceExpression(node: USimpleNameReferenceExpression) { in getApplicableUastTypes()
37 val method = node.resolve() as? PsiMethod ?: return in getApplicableUastTypes()
38 visitGenericMethod(method, node) in getApplicableUastTypes()
42 method: PsiMethod, node: UElement, isModuleMethod: Boolean = false in getApplicableUastTypes()
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiToExtensionsMap.kt70 var node = root.children.findNode(parts[0]) ?: return lastSeenExtensions in isEmpty() variable
71 if (node.extensions.isNotEmpty()) { in isEmpty()
72 lastSeenExtensions = node.extensions in isEmpty()
76 node = node.children.findNode(part) ?: break in isEmpty()
77 if (node.extensions.isNotEmpty()) { in isEmpty()
78 lastSeenExtensions = node.extensions in isEmpty()
250 var node = root.children.addNode(parts[0]) in fromXml() variable
252 node = node.children.addNode(name) in fromXml()
254 if (node.extensions.isNotEmpty()) { in fromXml()
259 node.extensions = sdks in fromXml()
[all …]
/tools/carrier_settings/python/
Dupdate_apn.py202 def gen_apnitem(node): argument
212 apn.name = node.getAttribute('carrier')
213 apn.value = node.getAttribute('apn')
214 apn.type.extend(map_apntype(node.getAttribute('type')))
216 if node.hasAttribute(key):
217 setattr(apn, key, APN_PROTOCOL_MAP[node.getAttribute(key).lower()])
219 for key in node.attributes.keys():
221 if key == 'bearer' and not node.hasAttribute('bearer_bitmask'):
222 setattr(apn, 'bearer_bitmask', node.getAttribute(key))
225 setattr(apn, key, APN_SKIPXLAT_MAP[int(node.getAttribute(key))])
[all …]
/tools/security/fuzzing/llm/libufdt_fuzzer2/
Dlibufdt_fuzzer2.cpp35 struct ufdt_node *node = ufdt_node_construct(fdtp, fdt_tag_ptr, &pool); in LLVMFuzzerTestOneInput() local
39 if (node) { in LLVMFuzzerTestOneInput()
40 ufdt_node_print(node, depth); in LLVMFuzzerTestOneInput()
43 ufdt_node_destruct(node, &pool); in LLVMFuzzerTestOneInput()
/tools/external_updater/
Dmanifest.py50 node: ElementTree.Element, default_remote: str, default_revision: str
55 path = x if (x := node.attrib.get("path")) is not None else node.attrib["name"]
63 node.attrib.get("remote", default_remote),
64 node.attrib.get("revision", default_revision),
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SigningCertificateLineage.java185 for (SigningCertificateNode node : signingCertificateLineage) { in encodeSigningCertificateLineage()
186 nodes.add(encodeSigningCertificateNode(node)); in encodeSigningCertificateLineage()
199 public static byte[] encodeSigningCertificateNode(SigningCertificateNode node) { in encodeSigningCertificateNode() argument
208 if (node.parentSigAlgorithm != null) { in encodeSigningCertificateNode()
209 parentSigAlgorithmId = node.parentSigAlgorithm.getId(); in encodeSigningCertificateNode()
212 if (node.sigAlgorithm != null) { in encodeSigningCertificateNode()
213 sigAlgorithmId = node.sigAlgorithm.getId(); in encodeSigningCertificateNode()
215 byte[] prefixedSignedData = encodeSignedData(node.signingCert, parentSigAlgorithmId); in encodeSigningCertificateNode()
216 byte[] prefixedSignature = encodeAsLengthPrefixedElement(node.signature); in encodeSigningCertificateNode()
221 result.putInt(node.flags); in encodeSigningCertificateNode()
/tools/platform-compat/build/
Dprocess-compat-config-test.py39 def remove_white_space_text_nodes(self, node): argument
44 for child in node.childNodes:
45 if child.nodeType == node.ELEMENT_NODE:
47 elif child.nodeType == node.TEXT_NODE:
52 node.removeChild(child)
56 node = xml.dom.minidom.parseString(text)
58 self.remove_white_space_text_nodes(node)
59 return node.toprettyxml()
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/engine/
Dassembly_line.py86 for node in self.nodes:
87 process_pool.apply_async(node.transformer.transform,
88 [node.input_stream])
99 for node in self.nodes:
100 thread_pool.submit(node.transformer.transform,
101 node.input_stream)
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java304 int node; in toOid() local
306 node = Integer.parseInt(nodeString); in toOid()
310 if (node < 0) { in toOid()
311 throw new Asn1EncodingException("Invalid value for node #" + (i + 1) + ": " + node); in toOid()
313 if (node <= 0x7f) { in toOid()
314 encodedValue.write(node); in toOid()
317 if (node < 1 << 14) { in toOid()
318 encodedValue.write(0x80 | (node >> 7)); in toOid()
319 encodedValue.write(node & 0x7f); in toOid()
322 if (node < 1 << 21) { in toOid()
[all …]
/tools/asuite/aidegen/idea/
Dxml_gen_unittest.py62 node = self.xml.xml_obj.getroot()
63 ElementTree.SubElement(node, 'a', attrib={'name': 'b'})
69 node = self.xml.xml_obj.getroot()
70 self.xml.append_node(node, '<a />')
71 self.assertEqual(len(node.findall('a')), 1)
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DConvertJarsToSignatureFiles.kt268 private fun Codebase.findClass(node: ClassNode, apiFilter: Predicate<Item>): ClassItem? { in Codebase()
269 return findClassByOwner(node.name, apiFilter) in Codebase()
274 node: MethodNode, in findMethod()
278 val types = Type.getArgumentTypes(node.desc) in findMethod()
292 val methodName = if (node.name == "<init>") cls.simpleName() else node.name in findMethod()
303 node: FieldNode, in Codebase()
307 val field = cls.findField(node.name + 2) in Codebase()
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py142 node = None
144 node = self._load_xml_file(full_paths[0])
145 if node is None:
149 node = copy.copy(node)
151 node.tail = (node.tail or '') + elem.tail
152 root[i] = node
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/
Dassembly_line_test.py58 for node in node_list:
59 apply_async.assert_any_call(node.transformer.transform,
60 [node.input_stream])
86 for node in node_list:
87 submit.assert_any_call(node.transformer.transform,
88 node.input_stream)
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiMethodItem.kt163 override fun visitThrowExpression(node: UThrowExpression): Boolean { in <lambda>()
164 val type = node.thrownExpression.getExpressionType() in <lambda>()
169 if (exceptionClass != null && !isCaught(exceptionClass, node)) { in <lambda>()
173 return super.visitThrowExpression(node) in <lambda>()
176 private fun isCaught(exceptionClass: ClassItem, node: UThrowExpression): Boolean { in <lambda>()
177 var current: UElement = node in <lambda>()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_settings_utils.py120 node = ui_utils.wait_and_get_xml_node(ad,
125 return node.attributes[node_attribute].value
371 node = ui_utils.wait_and_get_xml_node(caller, timeout=30, text=ATT_APN['Name'])
372 bounds = node.parentNode.nextSibling.attributes['bounds'].value
476 node = ui_utils.wait_and_get_xml_node(caller, timeout=30, text=TMO_APN['Name'])
477 bounds = node.parentNode.nextSibling.attributes['bounds'].value
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiPasspointLanguageTest.py183 for node in nodes:
184 if uutils.match_node(node, class_name="android.widget.EditText"):
185 x, y = eval(node.attributes["bounds"].value.split("][")[0][1:])
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt134 node - a device that implements IPv6.
136 router - a node that forwards IPv6 packets not explicitly
139 host - any node that is not a router. [See Note below].
157 interface - a node's attachment to a link.
176 a source node and a destination node.
241 each node that forwards the packet. The packet
321 by any node along a packet's delivery path, until the packet reaches
322 the node (or each of the set of nodes, in the case of multicast)
345 and processed by every node along a packet's delivery path, including
351 If, as a result of processing a header, a node is required to proceed
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessor.java316 JsonObject node = new Gson().fromJson(bufferedReader, JsonObject.class); in processPerfettoMetricsWithAlternativeMethods() local
317 node.entrySet().forEach(nested -> flattenJson(result, nested, new ArrayList<>())); in processPerfettoMetricsWithAlternativeMethods()
344 Entry<String, JsonElement> node, in flattenJson() argument
346 names.add(node.getKey()); in flattenJson()
347 if (node.getValue().isJsonObject()) { in flattenJson()
348 node.getValue() in flattenJson()
356 TfMetricProtoUtil.stringToMetric(node.getValue().getAsString()).toBuilder()); in flattenJson()
/tools/asuite/aidegen/sdk/
Djdk_table.py222 node = ElementTree.fromstring(new_config)
223 node.tail = self._NEW_TAG_TAIL
229 self._xml.getroot().find(self._COMPONENT).append(node)
/tools/asuite/aidegen/lib/
Ddom_util.py69 def update_element_attributes(node, element_name, attribute_set): argument
/tools/test/connectivity/acts_tests/tests/google/net/
DCaptivePortalTest.py109 for node in nodes:
110 if SIGN_IN_NOTIFICATION in node.getAttribute(
111 'text') or CONNECTED in node.getAttribute('text'):
/tools/asuite/atest/bazel/reporter/src/com/android/tradefed/result/
DBazelXmlResultReporter.java280 Element node = doc.createElement(tag); in writeStackTraceTag() local
282 node.appendChild(cdata); in writeStackTraceTag()
283 return node; in writeStackTraceTag()
/tools/asuite/atest/bazel/reporter/javatests/com/android/tradefed/result/
DBazelXmlResultReporterTest.java189 Node node, String attributeName, String attributeValue) { in assertNodeContainsAttribute() argument
191 node.getAttributes().getNamedItem(attributeName).getNodeValue(), attributeValue); in assertNodeContainsAttribute()

12