/external/guava/guava/src/com/google/common/eventbus/ |
H A D | EventSubscriber.java | 29 * Wraps a single-argument subscriber method on a specific object. 31 * <p>This class only verifies the suitability of the method and event type if 34 * <p>Two EventSubscribers are equivalent when they refer to the same method on the 36 * method is registered more than once. 42 /** Object sporting the subscriber method. */ 44 /** Subscriber method. */ 45 private final Method method; field in class:EventSubscriber 48 * Creates a new EventSubscriber to wrap {@code method} on @{code target}. 50 * @param target object to which the method applies. 51 * @param method subscribe 53 EventSubscriber(Object target, Method method) argument [all...] |
/external/guice/core/src/com/google/inject/internal/ |
H A D | DelegatingInvocationHandler.java | 32 public Object invoke(Object proxy, Method method, Object[] args) argument 47 // TODO: method.setAccessible(true); ? 50 return method.invoke(delegate, args);
|
H A D | MethodAspect.java | 30 * Ties a matcher to a method interceptor. 50 this.methodMatcher = checkNotNull(methodMatcher, "method matcher"); 63 boolean matches(Method method) { argument 64 return methodMatcher.matches(method);
|
H A D | SingleMethodInjector.java | 28 * Invokes an injectable method. 38 final Method method = (Method) injectionPoint.getMember(); 39 methodInvoker = createMethodInvoker(method); 43 private MethodInvoker createMethodInvoker(final Method method) { argument 45 // We can't use FastMethod if the method is private. 46 int modifiers = method.getModifiers(); 51 = BytecodeGen.newFastClass(method.getDeclaringClass(), Visibility.forMember(method)) 52 .getMethod(method); 65 !Modifier.isPublic(method [all...] |
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
H A D | ServletTestUtils.java | 32 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument 102 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument 103 String name = method.getName();
|
/external/hamcrest/library/src/org/hamcrest/ |
H A D | TypeSafeMatcher.java | 27 for (Method method : c.getDeclaredMethods()) { 28 if (isMatchesSafelyMethod(method)) { 29 return method.getParameterTypes()[0]; 34 throw new Error("Cannot determine correct type for matchesSafely() method."); 37 private static boolean isMatchesSafelyMethod(Method method) { argument 38 return method.getName().equals("matchesSafely") 39 && method.getParameterTypes().length == 1 40 && !method.isSynthetic();
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
H A D | MainUtil.java | 32 Method method = methods[i]; 33 if (method.getName().equals(command)) { 37 method.invoke(main, bindParameters(method, remaining)); 56 private static Object[] bindParameters(Method method, String[] args) { argument 58 Class[] parameterTypes = method.getParameterTypes();
|
/external/javassist/src/main/javassist/bytecode/analysis/ |
H A D | FramePrinter.java | 33 * instructions of a method. 64 private String getMethodString(CtMethod method) { argument 66 return Modifier.toString(method.getModifiers()) + " " 67 + method.getReturnType().getName() + " " + method.getName() 68 + Descriptor.toString(method.getSignature()) + ";"; 75 * Prints the instructions and the frame states of the given method. 77 public void print(CtMethod method) { argument 78 stream.println("\n" + getMethodString(method)); 79 MethodInfo info = method [all...] |
H A D | SubroutineScanner.java | 30 * Discovers the subroutines in a method, and tracks all callers. 41 public Subroutine[] scan(MethodInfo method) throws BadBytecode { argument 42 CodeAttribute code = method.getCodeAttribute();
|
/external/javassist/src/main/javassist/compiler/ast/ |
H A D | CallExpr.java | 26 private MemberResolver.Method method; // cached result of lookupMethod() field in class:CallExpr 30 method = null; 34 method = m; 38 return method;
|
/external/javassist/src/test/test/javassist/bytecode/analysis/ |
H A D | ErrorFinder.java | 50 private static void analyzeMethod(CtClass clazz, CtMethod method) { argument 51 String methodName = clazz.getName() + "." + method.getName() + method.getSignature(); 57 analyzer.analyze(clazz, method.getMethodInfo2());
|
/external/jetty/src/java/org/eclipse/jetty/security/ |
H A D | UserAuthentication.java | 34 public UserAuthentication(String method, UserIdentity userIdentity) argument 36 _method = method;
|
/external/junit/src/org/junit/internal/matchers/ |
H A D | TypeSafeMatcher.java | 29 for (Method method : c.getDeclaredMethods()) { 30 if (isMatchesSafelyMethod(method)) { 31 return method.getParameterTypes()[0]; 36 throw new Error("Cannot determine correct type for matchesSafely() method."); 39 private static boolean isMatchesSafelyMethod(Method method) { argument 40 return method.getName().equals("matchesSafely") 41 && method.getParameterTypes().length == 1 42 && !method.isSynthetic();
|
/external/junit/src/org/junit/rules/ |
H A D | TestWatchman.java | 19 * public void failed(Throwable e, FrameworkMethod method) { 20 * watchedLog+= method.getName() + " " + e.getClass().getSimpleName() 25 * public void succeeded(FrameworkMethod method) { 26 * watchedLog+= method.getName() + " " + "success!\n"; 46 public Statement apply(final Statement base, final FrameworkMethod method, argument 51 starting(method); 54 succeeded(method); 58 failed(t, method); 61 finished(method); 68 * Invoked when a test method succeed 72 succeeded(FrameworkMethod method) argument 81 failed(Throwable e, FrameworkMethod method) argument 89 starting(FrameworkMethod method) argument 98 finished(FrameworkMethod method) argument [all...] |
/external/libmicrohttpd/doc/examples/ |
H A D | hellobrowser.c | 19 const char *url, const char *method, 18 answer_to_connection(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls) argument
|
H A D | logging.c | 28 const char *url, const char *method, 32 printf ("New %s request for %s using version %s\n", method, url, version); 27 answer_to_connection(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls) argument
|
/external/libvpx/libvpx/test/ |
H A D | vp9_boolcoder_test.cc | 31 for (int method = 0; method <= 7; ++method) { // we generate various proba 38 (method == 0) ? 0 : (method == 1) ? 255 : 39 (method == 2) ? 128 : 40 (method == 3) ? rnd.Rand8() : 41 (method == 4) ? (parity ? 0 : 255) : 43 (method == 5) ? (parity ? rnd(128) : 255 - rnd(128)) : 44 (method 83 << " method: " << method; local [all...] |
/external/mesa3d/src/glsl/ |
H A D | hir_field_selection.cpp | 74 /* Handle "method calls" in GLSL 1.20 - namely, array.length() */ 81 const char *method; local 82 method = call->subexpressions[0]->primary_expression.identifier; 84 if (op->type->is_array() && strcmp(method, "length") == 0) { 86 _mesa_glsl_error(&loc, state, "length method takes no arguments."); 93 _mesa_glsl_error(&loc, state, "Unknown method: `%s'.", method);
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
H A D | MethodWrapper.java | 33 public static Object create(Method method) { argument 34 return KEY_FACTORY.newInstance(method.getName(), 35 ReflectUtils.getNames(method.getParameterTypes()), 36 method.getReturnType().getName());
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/ |
H A D | FastMethod.java | 23 FastMethod(FastClass fc, Method method) { argument 24 super(fc, method, helper(fc, method)); 27 private static int helper(FastClass fc, Method method) { argument 28 int index = fc.getIndex(method.getName(), method.getParameterTypes()); 30 Class[] types = method.getParameterTypes(); 31 System.err.println("hash=" + method.getName().hashCode() + " size=" + types.length); 35 throw new IllegalArgumentException("Cannot find method " + method); [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/transform/impl/ |
H A D | AddInitTransformer.java | 36 public AddInitTransformer(Method method) { argument 37 info = ReflectUtils.getMethodInfo(method); 43 throw new IllegalArgumentException(method + " illegal signature");
|
/external/mockito/src/org/mockito/internal/creation/ |
H A D | DelegatingMethod.java | 13 private final Method method;
field in class:DelegatingMethod 15 public DelegatingMethod(Method method) {
argument 16 assert method != null : "Method cannot be null";
17 this.method = method;
21 return method.getExceptionTypes();
25 return method;
29 return method.getName();
33 return method.getParameterTypes();
37 return method [all...] |
/external/mockito/src/org/mockito/internal/util/ |
H A D | ObjectMethodsGuru.java | 17 public boolean isToString(Method method) {
argument 18 return isToString(new DelegatingMethod(method));
21 public boolean isToString(MockitoMethod method) {
argument 22 return method.getReturnType() == String.class
23 && method.getParameterTypes().length == 0
24 && method.getName().equals("toString");
27 public boolean isEqualsMethod(Method method) {
argument 28 return method.getName().equals("equals")
29 && method.getParameterTypes().length == 1
30 && method 33 isHashCodeMethod(Method method) argument 38 isCompareToMethod(Method method) argument [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
H A D | PutStreamIntegrationTest.java | 60 Method method = session.getMethod(); 73 String response = String.valueOf(method) + ':' + new String(body); 78 public Response serve(String uri, Method method, Map<String, String> headers, Map<String, String> parms, Map<String, String> files) { argument
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
H A D | Allow.java | 47 /** method field 49 protected String method; field in class:Allow 62 method = m; 65 /** get the method field 69 return method; 73 * Set the method member 74 * @param method method to set. 76 public void setMethod(String method) throws ParseException { argument 77 if (method [all...] |