Home
last modified time | relevance | path

Searched refs:getMethod (Results 1 – 25 of 222) sorted by relevance

123456789

/external/dexmaker/src/test/java/com/google/dexmaker/
DDexMakerTest.java55 private static MethodId<Callable, Object> CALL = CALLABLE.getMethod(TypeId.OBJECT, "call");
79 MethodId<?, Constructable> methodId = GENERATED.getMethod( in testNewInstance()
90 Constructable constructed = (Constructable) getMethod().invoke(null, 5L, false); in testNewInstance()
109 MethodId<?, Void> methodId = GENERATED.getMethod(TypeId.VOID, "call"); in testVoidNoArgMemberMethod()
117 Method method = generatedClass.getMethod("call"); in testVoidNoArgMemberMethod()
128 MethodId<?, Integer> methodId = GENERATED.getMethod(TypeId.INT, "call", TypeId.INT); in testInvokeStatic()
133 = TEST_TYPE.getMethod(TypeId.INT, "staticMethod", TypeId.INT); in testInvokeStatic()
137 assertEquals(10, getMethod().invoke(null, 4)); in testInvokeStatic()
146 MethodId<?, Void> methodId = GENERATED.getMethod(TypeId.VOID, "call", TypeId.INT); in testCreateLocalMethodAsNull()
157 Method method = generatedClass.getMethod("call", int.class); in testCreateLocalMethodAsNull()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/stack/
DSIPServerTransaction.java561 String method = messageToTest.getCSeq().getMethod(); in isMessagePartOfTransaction()
596 transactionMatches = this.getMethod().equals(Request.CANCEL) in isMessagePartOfTransaction()
636 if (messageToTest.getCSeq().getMethod().equalsIgnoreCase(Request.CANCEL) in isMessagePartOfTransaction()
637 && !getOriginalRequest().getCSeq().getMethod().equalsIgnoreCase( in isMessagePartOfTransaction()
648 … && ((!messageToTest.getCSeq().getMethod().equals(Request.CANCEL)) || getOriginalRequest() in isMessagePartOfTransaction()
649 .getMethod().equals(messageToTest.getCSeq().getMethod())) in isMessagePartOfTransaction()
745 && transactionRequest.getMethod().equals(Request.ACK)) { in processRequest()
780 } else if (transactionRequest.getMethod().equals(getOriginalRequest().getMethod())) { in processRequest()
793 } else if (transactionRequest.getMethod().equals(Request.ACK)) { in processRequest()
812 if (getOriginalRequest().getMethod().equals(transactionRequest.getMethod())) { in processRequest()
[all …]
DSIPClientTransaction.java364 && getMethod().equals(messageToTest.getCSeq().getMethod()); in isMessagePartOfTransaction()
374 transactionMatches = getOriginalRequest().getCSeq().getMethod().equals( in isMessagePartOfTransaction()
375 messageToTest.getCSeq().getMethod()); in isMessagePartOfTransaction()
426 if (transactionRequest.getMethod().equals(Request.ACK)) { in sendMessage()
456 if (transactionRequest.getMethod().equals(Request.INVITE)) { in sendMessage()
458 } else if (transactionRequest.getMethod().equals(Request.ACK)) { in sendMessage()
740 && transactionResponse.getCSeq().getMethod().equals(dialog.getMethod())) { in inviteClientTransaction()
905 if (getMethod().equals(Request.SUBSCRIBE) in sendRequest()
923 if (this.getOriginalRequest().getMethod().equals(Request.CANCEL) in sendRequest()
937 } else if (!ct.getMethod().equals(Request.INVITE)) { in sendRequest()
[all …]
DSIPDialog.java622 this.method = sipResponse.getCSeq().getMethod(); in SIPDialog()
847 && SIPRequest.isTargetRefresh(sipResponse.getCSeq().getMethod())) { in addRoute()
938 if (!ackRequest.getMethod().equals(Request.ACK)) in sendAck()
1090 "ackReceived for " + ((SIPTransaction) tr).getMethod()); in ackReceived()
1175 if (dialogRequest.getMethod().equals(Request.ACK)) in isRequestConsumable()
1332 && SIPRequest.isTargetRefresh(sipRequest.getMethod())) { in addRoute()
1457 dialog.firstTransactionMethod = transaction.getMethod(); in storeFirstTransactionInfo()
1482 && transaction.getMethod().equals(firstTransactionMethod)) { in addTransaction()
1491 if (sipRequest.getMethod().equals(Request.SUBSCRIBE)) in addTransaction()
1501 this.method = sipRequest.getMethod(); in addTransaction()
[all …]
/external/okhttp/src/main/java/com/squareup/okhttp/internal/
DPlatform.java134 setUseSessionTickets = openSslSocketClass.getMethod("setUseSessionTickets", boolean.class); in findPlatform()
135 setHostname = openSslSocketClass.getMethod("setHostname", String.class); in findPlatform()
139 Method setNpnProtocols = openSslSocketClass.getMethod("setNpnProtocols", byte[].class); in findPlatform()
140 Method getNpnSelectedProtocol = openSslSocketClass.getMethod("getNpnSelectedProtocol"); in findPlatform()
159 Method putMethod = nextProtoNegoClass.getMethod("put", SSLSocket.class, providerClass); in findPlatform()
160 Method getMethod = nextProtoNegoClass.getMethod("get", SSLSocket.class); in findPlatform() local
161 return new JdkWithJettyNpnPlatform(putMethod, getMethod, clientProviderClass, in findPlatform()
246 private final Method getMethod; field in Platform.JdkWithJettyNpnPlatform
251 public JdkWithJettyNpnPlatform(Method putMethod, Method getMethod, Class<?> clientProviderClass, in JdkWithJettyNpnPlatform() argument
254 this.getMethod = getMethod; in JdkWithJettyNpnPlatform()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
DMethodTest.java144 m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]); in test_equalsLjava_lang_Object()
145 m2 = TestMethodSub.class.getMethod("invokeInstanceTest", in test_equalsLjava_lang_Object()
150 m1 = TestMethod.class.getMethod("invokeStaticTest", new Class[0]); in test_equalsLjava_lang_Object()
152 .getMethod("invokeStaticTest", new Class[0]); in test_equalsLjava_lang_Object()
179 Method mth = TestMethod.class.getMethod("voidMethod", new Class[0]); in test_getExceptionTypes()
185 mth = TestMethod.class.getMethod("intMethod", new Class[0]); in test_getExceptionTypes()
201 mth = cl.getMethod("pustatic", new Class[0]); in test_getModifiers()
236 mth = TestMethod.class.getMethod("voidMethod", new Class[0]); in test_getName()
255 mth = cl.getMethod("voidMethod", new Class[0]); in test_getParameterTypes()
259 mth = cl.getMethod("parmTest", plist); in test_getParameterTypes()
[all …]
/external/android-mock/tests/com/google/android/testing/mocking/
DAndroidMockGeneratorTest.java205 Method method = Object.class.getMethod("equals", Object.class); in testGetInterfaceMethodSource()
227 Method method = Object.class.getMethod("toString"); in testGetInterfaceMethodSourceNoParams()
234 Method method = Thread.class.getMethod("run"); in testGetInterfaceMethodSourceVoidReturn()
239 Method method = Object.class.getMethod("notify"); in testGetInterfaceMethodSourceFinal()
249 Method method = Thread.class.getMethod("currentThread"); in testGetInterfaceMethodSourceStatic()
271 Method method = Object.class.getMethod("equals", Object.class); in testGetDelegateMethodSource()
285 Method method = AllTypes.class.getMethod(returnTypes[i] + "Foo"); in testGetDelegateMethodSourceAllTypes()
291 Method method = AllTypes.class.getMethod("objectFoo"); in testGetDelegateMethodSourceAllTypes()
295 method = AllTypes.class.getMethod("voidFoo"); in testGetDelegateMethodSourceAllTypes()
373 String.class.getMethod("getChars", Integer.TYPE, Integer.TYPE, char[].class, Integer.TYPE); in testGetDelegateMethodSourceMultiParams()
[all …]
/external/easymock/src/org/easymock/internal/
DObjectMethodsFilter.java48 equalsMethod = toMock.getMethod("equals", in ObjectMethodsFilter()
50 hashCodeMethod = toMock.getMethod("hashCode", (Class[]) null); in ObjectMethodsFilter()
51 toStringMethod = toMock.getMethod("toString", (Class[]) null); in ObjectMethodsFilter()
93 toStringMethod = ((MethodSerializationWrapper) stream.readObject()).getMethod(); in readObject()
94 equalsMethod = ((MethodSerializationWrapper) stream.readObject()).getMethod(); in readObject()
95 hashCodeMethod = ((MethodSerializationWrapper) stream.readObject()).getMethod(); in readObject()
DExpectedInvocation.java91 && this.invocation.getMethod().equals(actual.getMethod()) in matches()
127 public Method getMethod() { in getMethod() method in ExpectedInvocation
128 return invocation.getMethod(); in getMethod()
/external/mockito/src/org/mockito/internal/invocation/
DInvocationMatcher.java43 public Method getMethod() { in getMethod() method in InvocationMatcher
44 return invocation.getMethod(); in getMethod()
78 String wantedMethodName = getMethod().getName(); in hasSimilarMethod()
79 String currentMethodName = candidate.getMethod().getName(); in hasSimilarMethod()
98 Method m1 = invocation.getMethod(); in hasSameMethod()
99 Method m2 = candidate.getMethod(); in hasSameMethod()
145 && invocation.getMethod().isVarArgs(); in isVariableArgument()
/external/nist-sip/java/gov/nist/javax/sip/message/
DSIPRequest.java248 if (getMethod().equals(Request.NOTIFY)) { in checkHeaders()
255 } else if (getMethod().equals(Request.PUBLISH)) { in checkHeaders()
276 if (requestLine.getMethod().equals(Request.INVITE) in checkHeaders()
277 || requestLine.getMethod().equals(Request.SUBSCRIBE) in checkHeaders()
278 || requestLine.getMethod().equals(Request.REFER)) { in checkHeaders()
302 && (this.getMethod().equals(Request.INVITE) in checkHeaders()
303 || this.getMethod().equals(Request.REFER) || this.getMethod().equals( in checkHeaders()
308 if (requestLine != null && requestLine.getMethod() != null in checkHeaders()
309 && getCSeq().getMethod() != null in checkHeaders()
310 && requestLine.getMethod().compareTo(getCSeq().getMethod()) != 0) { in checkHeaders()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/
DDialogFilter.java119 if (sipRequest.getMethod().equals(Request.INVITE)) { in sendRequestPendingResponse()
149 if (sipRequest.getMethod().equals(Request.INVITE)) { in sendBadRequestResponse()
180 if (sipRequest.getMethod().equals(Request.INVITE)) { in sendCallOrTransactionDoesNotExistResponse()
392 if (sipRequest.getMethod().equals(Request.REFER) && dialog != null in processRequest()
415 && lastRequest.getMethod().equals(Request.INVITE)) { in processRequest()
421 String method = lastRequest.getMethod(); in processRequest()
429 } else if (sipRequest.getMethod().equals(Request.UPDATE)) { in processRequest()
439 } else if (sipRequest.getMethod().equals(Request.ACK)) { in processRequest()
536 if (sipRequest.getMethod().equals(Request.INVITE) in processRequest()
559 } else if (sipRequest.getMethod().equals(Request.PRACK)) { in processRequest()
[all …]
/external/mockito/src/org/mockito/internal/stubbing/answers/
DReturnsArgumentAt.java88 if (!invocation.getMethod().isVarArgs()) { in argumentPositionInRange()
98 if(!invocation.getMethod().isVarArgs()) { in returnedTypeOnSignature()
99 return invocation.getMethod().getParameterTypes()[actualArgumentPosition]; in returnedTypeOnSignature()
102 Class<?>[] parameterTypes = invocation.getMethod().getParameterTypes(); in returnedTypeOnSignature()
/external/apache-http/src/org/apache/http/impl/client/
DRequestWrapper.java79 this.method = ((HttpUriRequest) request).getMethod(); in RequestWrapper()
89 this.method = requestLine.getMethod(); in RequestWrapper()
101 public String getMethod() { in getMethod() method in RequestWrapper
134 String method = getMethod(); in getRequestLine()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
DgUnitBaseTest.java92 Method ruleName = lexer.getMethod("m"+testRuleName, new Class[0]); in execLexer()
105 Method ruleName2 = lexer.getMethod("getCharIndex", new Class[0]); in execLexer()
196 Method _setTreeAdaptor = parser.getMethod("setTreeAdaptor", parArgTypes); in execParser()
201 Method ruleName = parser.getMethod(testRuleName); in execParser()
224 Method returnName = _return.getMethod("getTree"); in execParser()
229 Method returnName = _return.getMethod("getTemplate"); in execParser()
342 Method _setTreeAdaptor = parser.getMethod("setTreeAdaptor", parArgTypes); in execTreeParser()
348 Method ruleName = parser.getMethod(testRuleName); in execTreeParser()
363 Method returnName = _return.getMethod("getTree"); in execTreeParser()
383 Method treeRuleName = treeParser.getMethod(testTreeRuleName); in execTreeParser()
[all …]
DgUnitExecutor.java246 Method ruleName = lexer.getMethod("m"+testRuleName, new Class[0]); in runLexer()
259 Method ruleName2 = lexer.getMethod("getCharIndex", new Class[0]); in runLexer()
334 Method _setTreeAdaptor = parser.getMethod("setTreeAdaptor", parArgTypes); in runParser()
339 Method ruleName = parser.getMethod(testRuleName); in runParser()
362 Method returnName = _return.getMethod("getTree"); in runParser()
367 Method returnName = _return.getMethod("getTemplate"); in runParser()
476 Method _setTreeAdaptor = parser.getMethod("setTreeAdaptor", parArgTypes); in runTreeParser()
482 Method ruleName = parser.getMethod(testRuleName); in runTreeParser()
497 Method returnName = _return.getMethod("getTree"); in runTreeParser()
517 Method treeRuleName = treeParser.getMethod(testTreeRuleName); in runTreeParser()
[all …]
/external/dexmaker/src/test/java/com/google/dexmaker/examples/
DHelloWorldMaker.java46 helloWorldClass.getMethod("hello").invoke(null); in main()
66 MethodId hello = declaringType.getMethod(TypeId.VOID, "hello"); in generateHelloMethod()
90 = TypeId.get(Integer.class).getMethod(TypeId.STRING, "toHexString", TypeId.INT); in generateHelloMethod()
96 MethodId<PrintStream, Void> printlnMethod = printStreamType.getMethod( in generateHelloMethod()
/external/nist-sip/java/gov/nist/javax/sip/header/
DCSeq.java93 && this.getMethod().equals( o.getMethod() ); in equals()
123 public String getMethod() { in getMethod() method in CSeq
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetIteratorTester.java98 Platform.getMethod(MultisetIteratorTester.class, "testIteratorKnownOrder"), in getIteratorDuplicateInitializingMethods()
99 Platform.getMethod(MultisetIteratorTester.class, "testIteratorUnknownOrder"), in getIteratorDuplicateInitializingMethods()
100 Platform.getMethod(MultisetIteratorTester.class, "testRemovingIteratorKnownOrder"), in getIteratorDuplicateInitializingMethods()
101 Platform.getMethod(MultisetIteratorTester.class, "testRemovingIteratorUnknownOrder")); in getIteratorDuplicateInitializingMethods()
DPlatform.java33 static Method getMethod(Class<?> clazz, String name) { in getMethod() method in Platform
35 return clazz.getMethod(name); in getMethod()
DAbstractMultisetSetCountTester.java340 getMethod("testSetCount_threeToThree_removeSupported"), in getSetCountDuplicateInitializingMethods()
341 getMethod("testSetCount_threeToZero_supported"), in getSetCountDuplicateInitializingMethods()
342 getMethod("testSetCount_threeToOne_supported")); in getSetCountDuplicateInitializingMethods()
345 private static Method getMethod(String methodName) { in getMethod() method in AbstractMultisetSetCountTester
346 return Platform.getMethod(AbstractMultisetSetCountTester.class, methodName); in getMethod()
/external/dexmaker/src/main/java/com/google/dexmaker/stock/
DProxyBuilder.java360 MethodId<InvocationHandler, Object> methodInvoke = handlerType.getMethod(TypeId.OBJECT, in generateCodeForAllMethods()
415 MethodId<T, ?> superMethod = superclassType.getMethod(resultType, name, argTypes); in generateCodeForAllMethods()
416 MethodId<?, ?> methodId = generatedType.getMethod(resultType, name, argTypes); in generateCodeForAllMethods()
487 MethodId<G, ?> callsSuperMethod = generatedType.getMethod( in generateCodeForAllMethods()
524 .getMethod(superMethodName(method), method.getParameterTypes()) in callSuper()
708 MethodId<?, ?> valueOfMethod = boxedType.getMethod(boxedType, "valueOf", primitiveType);
723 map.put(boolean.class, TypeId.get(Boolean.class).getMethod(TypeId.BOOLEAN, "booleanValue")); in map.put()
724 map.put(int.class, TypeId.get(Integer.class).getMethod(TypeId.INT, "intValue")); in map.put()
725 map.put(byte.class, TypeId.get(Byte.class).getMethod(TypeId.BYTE, "byteValue")); in map.put()
726 map.put(long.class, TypeId.get(Long.class).getMethod(TypeId.LONG, "longValue")); in map.put()
[all …]
/external/guava/guava-tests/test/com/google/common/eventbus/
DEventHandlerTest.java121 method = getClass().getMethod("recordingMethod", Object.class); in getRecordingMethod()
144 method = getClass().getMethod("exceptionThrowingMethod", Object.class); in getExceptionThrowingMethod()
167 method = getClass().getMethod("errorThrowingMethod", Object.class); in getErrorThrowingMethod()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DPlatform.java32 static Method getMethod(Class<?> clazz, String methodName) { in getMethod() method in Platform
34 return clazz.getMethod(methodName); in getMethod()
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
DReturnsEmptyValues.java64 if (methodsGuru.isToString(invocation.getMethod())) { in answer()
72 } else if (methodsGuru.isCompareToMethod(invocation.getMethod())) { in answer()
79 Class<?> returnType = invocation.getMethod().getReturnType(); in answer()

123456789