Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 88) sorted by relevance

1234

/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java159 final String method = expectString("method"); in onStart() local
171 if ("enableWifi".equals(method)) { in onStart()
173 } else if ("disableWifi".equals(method)) { in onStart()
175 } else if ("addOpenNetwork".equals(method)) { in onStart()
181 } else if ("addWpaPskNetwork".equals(method)) { in onStart()
188 } else if ("associateNetwork".equals(method)) { in onStart()
194 } else if ("disconnect".equals(method)) { in onStart()
197 } else if ("disableNetwork".equals(method)) { in onStart()
202 } else if ("isWifiEnabled".equals(method)) { in onStart()
205 } else if ("getIpAddress".equals(method)) { in onStart()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DFilterPredicate.kt27 override fun test(method: Item): Boolean { in test()
29 wrapped.test(method) -> true in test()
30 method is MethodItem -> !method.isConstructor() && in test()
31 method.findPredicateSuperMethod(wrapped) != null in test()
DElidingPredicate.kt16 override fun test(method: Item): Boolean { in <lambda>()
19 return if (method is MethodItem && !method.isConstructor()) { in <lambda>()
20 val differentSuper = method.findPredicateSuperMethod(Predicate { test -> in <lambda>()
24 MethodItem.sameSignature(method, test, false) in <lambda>()
DApiFile.java348 TextConstructorItem method; in parseConstructor() local
392 method = new TextConstructorItem(api, /*typeParameters*/ in parseConstructor()
399 method.setDeprecated(isDeprecated); in parseConstructor()
401 parseParameterList(api, tokenizer, method, /*new HashSet<String>(),*/ token); in parseConstructor()
404 token = parseThrows(tokenizer, method); in parseConstructor()
409 cl.addConstructor(method); in parseConstructor()
429 TextMethodItem method; in parseMethod() local
517 method = new TextMethodItem( in parseMethod()
522 method.setDeprecated(isDeprecated); in parseMethod()
523 method.setTypeParameterList(typeParameterList); in parseMethod()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectoryHeaderCompressInfo.java62 @Nonnull CompressionMethod method, in CentralDirectoryHeaderCompressInfo()
65 mMethod = method; in CentralDirectoryHeaderCompressInfo()
78 @Nonnull CompressionMethod method, long compressedSize) { in CentralDirectoryHeaderCompressInfo() argument
79 mMethod = method; in CentralDirectoryHeaderCompressInfo()
82 if (header.getName().endsWith("/") || method == CompressionMethod.DEFLATE) { in CentralDirectoryHeaderCompressInfo()
DCompressionMethod.java57 for (CompressionMethod method : values()) { in fromCode()
58 if (method.methodCode == code) { in fromCode()
59 return method; in fromCode()
DCompressionResult.java51 public CompressionResult(@Nonnull CloseableByteSource source, @Nonnull CompressionMethod method, in CompressionResult() argument
53 compressionMethod = method; in CompressionResult()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDexApiWriter.kt46 override fun visitMethod(method: MethodItem) { in visitMethod()
47 if (method.inheritedMethod) { in visitMethod()
51 writer.print(method.containingClass().toType().internalName()) in visitMethod()
53 writer.print(method.internalName()) in visitMethod()
55 for (pi in method.parameters()) { in visitMethod()
59 if (method.isConstructor()) { in visitMethod()
62 val returnType = method.returnType() in visitMethod()
DAndroidApiChecks.kt54 override fun visitMethod(method: MethodItem) { in check()
55 checkRequiresPermission(method) in check()
56 if (!method.isConstructor()) { in check()
57 … checkVariable(method, "@return", "Return value of '" + method.name() + "'", method.returnType()) in check()
176 private fun checkRequiresPermission(method: MethodItem) { in checkRequiresPermission()
177 val text = method.documentation in checkRequiresPermission()
179 … val annotation = method.modifiers.findAnnotation("android.support.annotation.RequiresPermission") in checkRequiresPermission()
200 Errors.REQUIRES_PERMISSION, method, "Method '" + method.name() + in checkRequiresPermission()
208 Errors.REQUIRES_PERMISSION, method, "Method '" + method.name() + in checkRequiresPermission()
DProguardWriter.kt60 override fun visitMethod(method: MethodItem) { in visitMethod()
62 val modifiers = method.modifiers in visitMethod()
79 writer.print(getCleanTypeName(method.returnType())) in visitMethod()
81 writer.print(method.name()) in visitMethod()
83 writeParametersKeepList(method.parameters()) in visitMethod()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiMethodItem.kt171 val method = psiMethod as? UMethod ?: return emptySet() in <lambda>() constant
178 method.accept(object : AbstractUastVisitor() { in <lambda>()
245 val method = this in <lambda>() constant
251 modifierString, method.modifiers, method, removeAbstract = false, in <lambda>()
263 val returnType = method.returnType() in <lambda>()
267 sb.append(method.name()) in <lambda>()
270 method.parameters().asSequence().forEachIndexed { i, parameter -> in <lambda>()
281 val throws = method.throwsTypes().asSequence().sortedWith(ClassItem.fullNameComparator) in <lambda>()
294 val defaultValue = PsiTypesUtil.getDefaultValueOfType(method.psiMethod.returnType) in <lambda>()
328 val method = PsiMethodItem( in <lambda>() constant
[all …]
/tools/tradefederation/core/
Dpylintrc7 # Naming hint for method names
8 method-name-hint=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
10 # Regular expression matching correct method names
11 method-rgx=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
15 # Maximum number of return / yield for function / method body
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiClass.java164 ApiElement method = entry.getValue(); in removeOverridingMethods() local
165 … if (!method.getName().startsWith("<init>(") && isOverrideOfInherited(method, allClasses)) { in removeOverridingMethods()
179 private boolean isOverride(ApiElement method, Map<String, ApiClass> allClasses) { in isOverride() argument
180 ApiElement localMethod = mMethods.get(method.getName()); in isOverride()
181 if (localMethod != null && localMethod.introducedNotLaterThan(method)) { in isOverride()
186 return isOverrideOfInherited(method, allClasses); in isOverride()
192 private boolean isOverrideOfInherited(ApiElement method, Map<String, ApiClass> allClasses) { in isOverrideOfInherited() argument
196 if (parent.introducedNotLaterThan(method)) { in isOverrideOfInherited()
198 if (cls != null && cls.isOverride(method, allClasses)) { in isOverrideOfInherited()
DAddApisFromCodebase.kt65 override fun visitMethod(method: MethodItem) { in addApisFromCodebase()
67 method.internalName() + in addApisFromCodebase()
70 method.internalDesc(voidConstructorTypes = true), apiLevel, method.deprecated in addApisFromCodebase()
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_base.py29 method = getattr(cls, methodname)
30 if hasattr(method, '_registered'):
31 cls.find_methods.append(Finder(None, method))
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceTestCase.java278 for (Method method : methods) { in getTestMethodNames()
280 if (!overridenMethod.contains(method.getName())) { in getTestMethodNames()
282 if (Modifier.isPublic(method.getModifiers()) in getTestMethodNames()
283 && method.getReturnType().equals(Void.TYPE) in getTestMethodNames()
284 && method.getParameterTypes().length == 0 in getTestMethodNames()
285 && method.getName().startsWith("test")) { in getTestMethodNames()
287 if (theClass.equals(method.getDeclaringClass())) { in getTestMethodNames()
288 overridenMethod.add(method.getName()); in getTestMethodNames()
292 theClass.getPackage().getName(), theClass, method)) { in getTestMethodNames()
293 mMethodNames.addElement(method.getName()); in getTestMethodNames()
/tools/tradefederation/core/src/com/android/tradefed/util/net/
DIHttpHelper.java172 public HttpURLConnection createConnection(URL url, String method, String contentType) in createConnection() argument
183 public HttpURLConnection createXmlConnection(URL url, String method) throws IOException; in createXmlConnection() argument
193 public HttpURLConnection createJsonConnection(URL url, String method) throws IOException; in createJsonConnection() argument
/tools/dexter/testdata/expected/
Dentry_hooks.asm2 method Base.<init>():void label
15 method Base.foo(int, java.lang.String):int label
55 method Derived.<init>():void label
68 method Derived.foo(int, java.lang.String):int label
110 method Target.<init>():void label
123 method Target.main(java.lang.String[]):void label
159 method Target.test():int label
191 method Target.foo(int):int label
208 method Target.foo(int, int):int label
227 method Target.foo(int, java.lang.String):int label
[all …]
Dhello_nodebug.asm2 method Base$Inner.<init>(Base):void label
14 method Base$Nested.<init>():void label
22 method Base.<init>():void label
30 method Base.test(int):void label
53 method Derived.<init>():void label
61 method Derived.test(int):void label
83 method Hello.<init>():void label
91 method Hello.main(java.lang.String[]):void label
136 method Hello.printStackTrace():void label
Dentry_hooks.rewrite2 method Base.<init>():void
15 method Base.foo(int, java.lang.String):int
55 method Derived.<init>():void
68 method Derived.foo(int, java.lang.String):int
110 method Target.<init>():void
123 method Target.main(java.lang.String[]):void
159 method Target.test():int
191 method Target.foo(int):int
208 method Target.foo(int, int):int
227 method Target.foo(int, java.lang.String):int
[all …]
Dhello.asm2 method Base$Inner.<init>(Base):void label
21 method Base$Nested.<init>():void label
34 method Base.<init>():void label
47 method Base.test(int):void label
79 method Derived.<init>():void label
92 method Derived.test(int):void label
122 method Hello.<init>():void label
135 method Hello.main(java.lang.String[]):void label
195 method Hello.printStackTrace():void label
251 method Hello.wrapTest(Base, int):void label
Dexit_hooks.asm2 method Target.<init>():void label
15 method Target.main(java.lang.String[]):void label
37 method Target.test():void label
126 method Target.testDouble(int):double label
169 method Target.testInt(int):int label
213 method Target.testObject(boolean):java.lang.Object label
247 method Target.testVoid(boolean):void label
283 method Tracer.<init>():void label
296 method Tracer.onExit(double):double label
327 method Tracer.onExit(int):int label
[all …]
/tools/dexter/slicer/
Ddex_ir.cc57 MethodKey MethodsHasher::GetKey(const EncodedMethod* method) const { in GetKey()
59 method_key.class_descriptor = method->decl->parent->descriptor; in GetKey()
60 method_key.method_name = method->decl->name; in GetKey()
61 method_key.prototype = method->decl->prototype; in GetKey()
71 bool MethodsHasher::Compare(const MethodKey& method_key, const EncodedMethod* method) const { in Compare()
72 return method_key.class_descriptor == method->decl->parent->descriptor && in Compare()
73 method_key.method_name == method->decl->name && in Compare()
74 method_key.prototype == method->decl->prototype; in Compare()
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_client.py183 def rpc(self, method, *args, timeout=None, retries=1): argument
206 data = {'id': ticket, 'method': method, 'params': args}
220 method, i)
245 method, result['error'])
249 self._log.error('RPC method %s with mismatched api id %s', method,
/tools/test/connectivity/acts/framework/acts/controllers/
Dnative.py52 def _rpc(self, method, *args): argument
55 data = {'id': apiid, 'method': method, 'params': args}

1234