Home
last modified time | relevance | path

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

12

/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)
137 for node in nodes:
138 if match_node(node, **kwargs):
141 return node
173 node = _find_node(screen_dump_xml, **kwargs)
174 if node and child:
175 node = _find_node(node, **child)
176 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/src/main/java/com/android/tools/metalava/model/
DCodebase.kt185 fun findClass(node: ClassNode, apiFilter: Predicate<Item>): ClassItem? { in <lambda>()
186 return findClassByOwner(node.name, apiFilter) in <lambda>()
189 fun findMethod(node: MethodInsnNode, apiFilter: Predicate<Item>): MethodItem? { in <lambda>()
190 val cls = findClassByOwner(node.owner, apiFilter) ?: return null in <lambda>()
191 val types = Type.getArgumentTypes(node.desc) in <lambda>()
204 val methodName = if (node.name == "<init>") cls.simpleName() else node.name in <lambda>()
213 … fun findMethod(classNode: ClassNode, node: MethodNode, apiFilter: Predicate<Item>): MethodItem? { in <lambda>()
215 val types = Type.getArgumentTypes(node.desc) in <lambda>()
228 val methodName = if (node.name == "<init>") cls.simpleName() else node.name in <lambda>()
237 fun findField(classNode: ClassNode, node: FieldNode, apiFilter: Predicate<Item>): FieldItem? { in <lambda>()
[all …]
/tools/carrier_settings/python/
Dupdate_apn.py196 def gen_apnitem(node): argument
206 apn.name = node.getAttribute('carrier')
207 apn.value = node.getAttribute('apn')
208 apn.type.extend(map_apntype(node.getAttribute('type')))
210 if node.hasAttribute(key):
211 setattr(apn, key, APN_PROTOCOL_MAP[node.getAttribute(key).lower()])
213 for key in node.attributes.keys():
215 if key == 'bearer' and not node.hasAttribute('bearer_bitmask'):
216 setattr(apn, 'bearer_bitmask', node.getAttribute(key))
219 setattr(apn, key, APN_SKIPXLAT_MAP[int(node.getAttribute(key))])
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt863 override fun visitMethod(node: UMethod): Boolean { in <lambda>()
864 handle(node.returnType, node.uAnnotations) in <lambda>()
869 val psi = node.sourcePsi in <lambda>()
876 return super.visitMethod(node) in <lambda>()
879 override fun visitVariable(node: UVariable): Boolean { in <lambda>()
880 handle(node.type, node.uAnnotations) in <lambda>()
881 return super.visitVariable(node) in <lambda>()
902 override fun visitTypeReferenceExpression(node: UTypeReferenceExpression): Boolean { in <lambda>()
903 handleType(node.type) in <lambda>()
904 return super.visitTypeReferenceExpression(node) in <lambda>()
/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 …]
DAsn1BerParser.java473 long node = decodeBase128UnsignedLong(encodedOid); in oidToString() local
474 result.append('.').append(Long.toString(node)); in oidToString()
/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/asuite/atest-py2/test_finders/
Dtf_integration_finder.py124 node = None
126 node = self._load_xml_file(full_paths[0])
127 if node is None:
130 node = copy.copy(node)
132 node.tail = (node.tail or "") + elem.tail
133 root[i] = node
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py137 node = None
139 node = self._load_xml_file(full_paths[0])
140 if node is None:
143 node = copy.copy(node)
145 node.tail = (node.tail or "") + elem.tail
146 root[i] = node
/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/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/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/asuite/aidegen/idea/
Dxml_gen_unittest.py61 node = self.xml.xml_obj.getroot()
62 ElementTree.SubElement(node, 'a', attrib={'name': 'b'})
68 node = self.xml.xml_obj.getroot()
69 self.xml.append_node(node, '<a />')
70 self.assertEqual(len(node.findall('a')), 1)
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiMethodItem.kt188 override fun visitThrowExpression(node: UThrowExpression): Boolean { in <lambda>()
189 val type = node.thrownExpression.getExpressionType() in <lambda>()
192 if (exceptionClass != null && !isCaught(exceptionClass, node)) { in <lambda>()
196 return super.visitThrowExpression(node) in <lambda>()
199 private fun isCaught(exceptionClass: ClassItem, node: UThrowExpression): Boolean { in <lambda>()
200 var current: UElement = node in <lambda>()
/tools/test/connectivity/acts_tests/tests/google/net/
DCaptivePortalTest.py88 for node in nodes:
89 if SIGN_IN_NOTIFICATION in node.getAttribute(
90 'text') or CONNECTED in node.getAttribute('text'):
/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/test/connectivity/acts_tests/tests/google/wifi/
DWifiPasspointTest.py164 for node in nodes:
165 if uutils.match_node(node, class_name="android.widget.EditText"):
166 x, y = eval(node.attributes["bounds"].value.split("][")[0][1:])
/tools/metalava/src/main/java/com/android/tools/metalava/
DComparisonVisitor.kt539 val node = ItemTree(item) in createTree() constant
541 parent.children += node in createTree()
543 stack.push(node) in createTree()
DApiLint.kt1127 override fun afterVisitCallExpression(node: UCallExpression) { in <lambda>()
1128 super.afterVisitCallExpression(node) in <lambda>()
1130 if (node.methodName == "synchronized" && node.receiver == null) { in <lambda>()
1131 val arg = node.valueArguments.firstOrNull() in <lambda>()
1136 reportError(method, arg.sourcePsi ?: node.sourcePsi ?: node.javaPsi) in <lambda>()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java480 for (SigningCertificateNode node : nodes) { in calculateMinSdkVersion()
481 if (node.sigAlgorithm != null) { in calculateMinSdkVersion()
482 int nodeMinSdkVersion = node.sigAlgorithm.getMinSdkVersion(); in calculateMinSdkVersion()
/tools/test/connectivity/acts_tests/tests/google/nr/cbr/
DCellBroadcastTest.py107 node = uutils.wait_and_get_xml_node(ad, timeout=30, text=alert_text)
108 return node.parentNode.nextSibling.firstChild.attributes['checked'].value
/tools/asuite/aidegen/lib/
Ddom_util.py69 def update_element_attributes(node, element_name, attribute_set): argument
/tools/carrier_settings/java/
DCarrierConfigConverterV2.java470 Node node = nodeList.item(i); in getElementsByTagName() local
471 if (node.getNodeType() == Node.ELEMENT_NODE) { in getElementsByTagName()
472 result.add((Element) node); in getElementsByTagName()
/tools/dexter/testdata/expected/
Dmedium.rewrite15661 .local v0, "node", android.support.v4.view.accessibility.AccessibilityNodeInfoCompat
15862 .local v1, "node", android.support.v4.view.accessibility.AccessibilityNodeInfoCompat
15952 .local v2, "node", android.support.v4.view.accessibility.AccessibilityNodeInfoCompat
16690 .params "node"
136967 .params "virtualViewId", "node"
145728 .local v2, "node", com.android.datetimepicker.time.TimePickerDialog$Node

12