/external/parameter-framework/upstream/test/functional-tests/include/ |
FailureWrapper.hpp | 64 /** Wrap a const method that may fail to throw an Exception instead of 67 * @param[in] method (const) that return a boolean to indicate failure. 68 * @param[in] args parameters to call method call with. */ 70 void mayFailCall(bool (K::*method)(MArgs...) const, Args &&... args) const 72 wrapCall<bool>(*this, method, std::forward<Args>(args)...); 75 /** Wrap a method that may fail to throw an Exception instead of retuning a 78 * @param[in] method that return a boolean to indicate failure. 79 * @param[in] args parameters to call method call with. */ 81 void mayFailCall(bool (K::*method)(MArgs...), Args &&... args) 83 wrapCall<bool>(*this, method, std::forward<Args>(args)...) [all...] |
/external/proguard/src/proguard/classfile/attribute/visitor/ |
AttributeNameFilter.java | 164 public void visitDeprecatedAttribute(Clazz clazz, Method method, DeprecatedAttribute deprecatedAttribute) 168 attributeVisitor.visitDeprecatedAttribute(clazz, method, deprecatedAttribute); 191 public void visitSyntheticAttribute(Clazz clazz, Method method, SyntheticAttribute syntheticAttribute) 195 attributeVisitor.visitSyntheticAttribute(clazz, method, syntheticAttribute); 218 public void visitSignatureAttribute(Clazz clazz, Method method, SignatureAttribute signatureAttribute) 222 attributeVisitor.visitSignatureAttribute(clazz, method, signatureAttribute); 236 public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute exceptionsAttribute [all...] |
NonEmptyAttributeFilter.java | 108 public void visitDeprecatedAttribute(Clazz clazz, Method method, DeprecatedAttribute deprecatedAttribute) 110 attributeVisitor.visitDeprecatedAttribute(clazz, method, deprecatedAttribute); 126 public void visitSyntheticAttribute(Clazz clazz, Method method, SyntheticAttribute syntheticAttribute) 128 attributeVisitor.visitSyntheticAttribute(clazz, method, syntheticAttribute); 144 public void visitSignatureAttribute(Clazz clazz, Method method, SignatureAttribute signatureAttribute) 146 attributeVisitor.visitSignatureAttribute(clazz, method, signatureAttribute); 156 public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute exceptionsAttribute [all...] |
RequiredAttributeFilter.java | 148 public void visitDeprecatedAttribute(Clazz clazz, Method method, DeprecatedAttribute deprecatedAttribute) 152 optionalAttributeVisitor.visitDeprecatedAttribute(clazz, method, deprecatedAttribute); 175 public void visitSyntheticAttribute(Clazz clazz, Method method, SyntheticAttribute syntheticAttribute) 179 optionalAttributeVisitor.visitSyntheticAttribute(clazz, method, syntheticAttribute); 202 public void visitSignatureAttribute(Clazz clazz, Method method, SignatureAttribute signatureAttribute) 206 optionalAttributeVisitor.visitSignatureAttribute(clazz, method, signatureAttribute); 220 public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute exceptionsAttribute [all...] |
/external/proguard/src/proguard/optimize/info/ |
ParameterUsageMarker.java | 107 // Is it a native method? 114 // Is it an abstract method? 121 // Is it a non-native, concrete method? 124 // Is the method not static, but synchronized, or can it have 158 // Can the method have other implementations? 161 // All implementations must keep all parameters of this method, 173 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 176 partialEvaluator.visitCodeAttribute(clazz, method, codeAttribute); 179 codeAttribute.instructionsAccept(clazz, method, this) [all...] |
DynamicInvocationMarker.java | 47 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {} 50 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 54 setInvokesDynamically(method); 61 private static void setInvokesDynamically(Method method) 63 MethodOptimizationInfo info = MethodOptimizationInfo.getMethodOptimizationInfo(method); 72 * Returns whether the given method calls the invokedynamic instruction. 74 public static boolean invokesDynamically(Method method [all...] |
SuperInvocationMarker.java | 47 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {} 50 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 60 setInvokesSuperMethods(method); 78 private static void setInvokesSuperMethods(Method method) 80 MethodOptimizationInfo info = MethodOptimizationInfo.getMethodOptimizationInfo(method); 88 public static boolean invokesSuperMethods(Method method) [all...] |
SideEffectMethodMarker.java | 92 // Look further if the method hasn't been marked yet. 99 // Mark the method depending on the return value. 115 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 118 hasSideEffects = hasSideEffects(clazz, method, codeAttribute); 128 Method method, 135 method.getName(clazz).equals(ClassConstants.METHOD_NAME_CLINIT) ? 148 method, 165 private static void markSideEffects(Method method [all...] |
/external/proguard/src/proguard/optimize/peephole/ |
ReachableCodeMarker.java | 84 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 100 markCode(clazz, method, codeAttribute, 0); 107 codeAttribute.exceptionsAccept(clazz, method, this); 115 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 131 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 136 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction [all...] |
VariableShrinker.java | 79 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 81 if ((method.getAccessFlags() & ClassConstants.ACC_ABSTRACT) == 0) 85 ClassUtil.internalMethodParameterSize(method.getDescriptor(clazz), 86 method.getAccessFlags()); 93 System.out.println("VariableShrinker: "+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)); 99 variableUsageMarker.visitCodeAttribute(clazz, method, codeAttribute); 117 // Visit the method, if required. 120 method.accept(clazz, extraVariableMemberVisitor) [all...] |
/system/tools/hidl/ |
Interface.cpp | 23 #include "Method.h" 81 bool Interface::fillPingMethod(Method *method) const { 82 if (method->name() != "ping") { 86 method->fillImplementation( 113 bool Interface::fillLinkToDeathMethod(Method *method) const { 114 if (method->name() != "linkToDeath") { 118 method->fillImplementation( 157 bool Interface::fillUnlinkToDeathMethod(Method *method) const 485 Method *method = pair.second->copySignature(); local 579 Method *method = tuple.method(); local [all...] |
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
XmlReport.java | 108 for (ApiMethod method : apiClass.getMethods()) { 110 method.getCoveredWith().stream().collect(Collectors.joining(",")); 111 out.println("<method name=\"" + method.getName() 112 + "\" returnType=\"" + method.getReturnType() 113 + "\" deprecated=\"" + method.isDeprecated() 114 + "\" static=\"" + method.isStaticMethod() 115 + "\" final=\"" + method.isFinalMethod() 116 + "\" visibility=\"" + method.getVisibility() 117 + "\" abstract=\"" + method.isAbstractMethod( [all...] |
/external/boringssl/src/crypto/x509v3/ |
v3_prn.c | 111 const X509V3_EXT_METHOD *method; local 115 if (!(method = X509V3_EXT_get(ext))) 118 if (method->it) 121 ASN1_ITEM_ptr(method->it)); 123 ext_str = method->d2i(NULL, &p, ext->value->length); 128 if (method->i2s) { 129 if (!(value = method->i2s(method, ext_str))) { 134 } else if (method->i2v) { 135 if (!(nval = method->i2v(method, ext_str, NULL))) [all...] |
/external/junit/src/main/java/org/junit/internal/runners/ |
JUnit4ClassRunner.java | 5 import java.lang.reflect.Method; 29 private final List<Method> testMethods; 38 protected List<Method> getTestMethods() { 58 for (Method method : testMethods) { 59 invokeTestMethod(method, notifier); 66 List<Method> testMethods = this.testMethods; 67 for (Method method : testMethods) { 68 spec.addChild(methodDescription(method)); 126 Method method = iter.next(); local [all...] |
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/ |
InvocationInfoTest.java | 7 import java.lang.reflect.Method; 27 Invocation invocation = new InvocationBuilder().method("canThrowException").toInvocation(); 37 assertThat(new InvocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidReturnType(Integer.class)).isTrue(); 38 assertThat(new InvocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidReturnType(int.class)).isTrue(); 39 assertThat(new InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).isValidReturnType(Integer.class)).isTrue(); 40 assertThat(new InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).isValidReturnType(int.class)).isTrue(); 41 assertThat(new InvocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).isValidReturnType(String.class)).isFalse(); 46 assertThat(new InvocationInfo(new InvocationBuilder().method("intReturningMethod").toInvocation()).returnsPrimitive()).isTrue(); 47 assertThat(new InvocationInfo(new InvocationBuilder().method("integerReturningMethod").toInvocation()).returnsPrimitive()).isFalse(); 52 assertThat(new InvocationInfo(new InvocationBuilder().method("voidMethod").toInvocation()).isVoid()).isTrue() [all...] |
/external/proguard/src/proguard/classfile/editor/ |
VariableRemapper.java | 73 public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute methodParametersAttribute) 89 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 93 System.out.println("VariableRemapper: "+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)); 102 codeAttribute.attributesAccept(clazz, method, this); 108 codeAttribute.instructionsAccept(clazz, method, this); 111 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); 115 public void visitLocalVariableTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTableAttribute localVariableTableAttribute [all...] |
/art/test/986-native-method-bind/src/art/ |
Test986.java | 19 import java.lang.reflect.Method; 23 private static final HashMap<Method, String> SymbolMap = new HashMap<>(); 25 // A class with a native method we can play with. 37 private static void setNativeTransform(Method method, String dest) { 38 SymbolMap.put(method, dest); 41 private static void removeNativeTransform(Method method) { 42 SymbolMap.remove(method); 46 * Notifies java that a native method bind has occurred and requests the new symbol to bind to [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int/d/ |
T_rsub_int_1.d | 20 .method public <init>()V 25 .end method 27 .method public run(I)I 32 .end method 34 .method public run1(I)I 39 .end method 41 .method public run2(I)I 46 .end method 48 .method public run3(I)I 53 .end method [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/d/ |
T_rsub_int_lit8_1.d | 20 .method public <init>()V 25 .end method 27 .method public run(I)I 32 .end method 34 .method public run1(I)I 39 .end method 41 .method public run2(I)I 46 .end method 48 .method public run3(I)I 53 .end method [all...] |
/external/guava/guava/src/com/google/common/reflect/ |
AbstractInvocationHandler.java | 22 import java.lang.reflect.Method; 33 * Object proxy, Method method, Object[] args) { 60 * <li>other method calls are dispatched to {@link #handleInvocation}. 63 @Override public final Object invoke(Object proxy, Method method, @Nullable Object[] args) 68 if (args.length == 0 && method.getName().equals("hashCode")) { 72 && method.getName().equals("equals") 73 && method.getParameterTypes()[0] == Object.class) { 84 if (args.length == 0 && method.getName().equals("toString")) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
CSeq.java | 59 * method field 61 protected String method; field in class:CSeq 71 * Constructor given the sequence number and method. 74 * @param method is the method string. 76 public CSeq(long seqno, String method) { 79 this.method = SIPRequest.getCannonicalName(method); 116 return buffer.append(seqno).append(SP).append(method.toUpperCase()); 120 * Get the method [all...] |
/external/proguard/src/proguard/classfile/attribute/annotation/target/visitor/ |
TargetInfoVisitor.java | 37 public void visitTypeParameterTargetInfo( Clazz clazz, Method method, TypeAnnotation typeAnnotation, TypeParameterTargetInfo typeParameterTargetInfo); 41 public void visitTypeParameterBoundTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, TypeParameterBoundTargetInfo typeParameterBoundTargetInfo); 43 public void visitEmptyTargetInfo( Clazz clazz, Method method, TypeAnnotation typeAnnotation, EmptyTargetInfo emptyTargetInfo); 44 public void visitFormalParameterTargetInfo( Clazz clazz, Method method, TypeAnnotation typeAnnotation, FormalParameterTargetInfo formalParameterTargetInfo); 45 public void visitThrowsTargetInfo( Clazz clazz, Method method, TypeAnnotation typeAnnotation, ThrowsTargetInfo throwsTa (…) [all...] |
/external/proguard/src/proguard/optimize/ |
ParameterShrinker.java | 81 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 84 int oldParameterSize = ParameterUsageMarker.getParameterSize(method); 88 ClassUtil.internalMethodParameterSize(method.getDescriptor(clazz), 89 method.getAccessFlags()); 98 System.out.println("ParameterShrinker: "+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)); 113 if (ParameterUsageMarker.isParameterUsed(method, parameterIndex)) 129 // Visit the method, if required. 132 method.accept(clazz, extraVariableMemberVisitor) [all...] |
/art/runtime/mirror/ |
class_ext-inl.h | 35 ArtMethod* method = arr->GetElementPtrSize<ArtMethod*, local 38 if (method != nullptr) { 39 method->VisitRoots<kReadBarrierOption>(visitor, pointer_size);
|
/art/test/044-proxy/src/ |
FloatSelect.java | 25 public float method(float a, float b); method in interface:FloatSelect.FloatSelectI 29 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 40 float floatResult = proxyObject.method(2.1f, 5.8f);
|