/libcore/dom/src/test/java/org/w3c/domts/ |
JTidyDocumentBuilderFactory.java | 17 import java.lang.reflect.Method; 32 private final Method parseDOMMethod;
|
/external/clang/lib/Sema/ |
SemaDeclObjC.cpp | 34 /// Check whether the given method, which must be in the 'init' 43 bool Sema::checkInitMethod(ObjCMethodDecl *method, 45 if (method->isInvalidDecl()) return true; 54 method->getReturnType()->castAs<ObjCObjectPointerType>()->getObjectType(); 68 !isa<ObjCImplementationDecl>(method->getDeclContext())) 73 // If this method was declared in a protocol, we can't check 76 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { 86 receiverClass = method->getClassInterface(); 87 assert(receiverClass && "method not associated with a class!"); 97 SourceLocation loc = method->getLocation() 2111 B << method; local [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
Instrument.java | 39 import java.lang.reflect.Method; 64 public abstract boolean isBenchmarkMethod(Method method); 66 public abstract Instrumentation createInstrumentation(Method benchmarkMethod) 75 * The application of an instrument to a particular benchmark method. 79 protected Method benchmarkMethod; 81 protected Instrumentation(Method benchmarkMethod) { 89 Method benchmarkMethod() { 146 * will need to override this method.
|
ExperimentingRunnerModule.java | 45 import java.lang.reflect.Method; 243 for (Method method : findAllBenchmarkMethods(benchmarkClass.benchmarkClass(), instrument)) { 244 if (benchmarkMethodNames.isEmpty() || benchmarkMethodNames.contains(method.getName())) { 245 builder.add(instrument.createInstrumentation(method)); 246 unusedBenchmarkNames.remove(method.getName()); 252 "Invalid benchmark method(s) specified in options: " + unusedBenchmarkNames); 257 private static ImmutableSortedSet<Method> findAllBenchmarkMethods(Class<?> benchmarkClass, 259 ImmutableSortedSet.Builder<Method> result = ImmutableSortedSet.orderedBy( 260 Ordering.natural().onResultOf(new Function<Method, String>() [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
URLHandler.java | 17 import java.lang.reflect.Method; 33 private static final Map<String, Method> handlers; 38 Map<String, Method> h = null; 69 Method m = cl.getDeclaredMethod("get", params); 72 h = new HashMap<String, Method>(); 111 Method m = handlers.get(protocol);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
URLHandler.java | 16 import java.lang.reflect.Method; 29 private static final Map<String, Method> handlers; 34 Map<String, Method> h = null; 65 Method m = cl.getDeclaredMethod("get", params); 68 h = new HashMap<String, Method>(); 107 Method m = handlers.get(protocol);
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
AnnotationImpl.java | 19 import java.lang.reflect.Method; 39 private static Method JDK_ANNOTATION_TYPE_METHOD = null; 48 // Try to resolve the JDK annotation type method 120 * Executes a method invocation on a proxy instance. 123 * <code>AnnotationImpl</code>. The <code>annotationType()</code> method 126 public Object invoke(Object proxy, Method method, Object[] args) 129 String name = method.getName(); 130 if (Object.class == method.getDeclaringClass()) { 141 && method.getParameterTypes().length == 0 [all...] |
/external/proguard/src/proguard/classfile/editor/ |
InstructionWriter.java | 87 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 95 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 125 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) 155 public void visitBranchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) 238 public void visitAnySwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SwitchInstruction switchInstruction [all...] |
/external/proguard/src/proguard/optimize/info/ |
SideEffectInstructionChecker.java | 36 * its method. Return instructions and local field accesses can be included or 80 * method. 83 Method method, 90 instruction.accept(clazz, method, codeAttribute, offset, this); 98 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {} 101 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 158 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
HTTPHandler.java | 86 HTTPResponse response = exchangeWithRetry(url, message, HTTPMessage.Method.POST, 106 exchangeWithRetry(url, message, HTTPMessage.Method.POST, contentType); 111 HTTPResponse response = exchangeWithRetry(url, null, HTTPMessage.Method.GET, null); 116 return exchangeWithRetry(url, null, HTTPMessage.Method.GET, null); 119 private HTTPResponse exchangeWithRetry(URL url, String message, HTTPMessage.Method method, 125 response = httpExchange(url, message, method, contentType); 145 private HTTPResponse httpExchange(URL url, String message, HTTPMessage.Method method, 148 HTTPRequest request = new HTTPRequest(message, mCharset, method, url, contentType, false) [all...] |
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestGrouping.java | 28 import java.lang.reflect.Method; 73 for (Method testMethod : getTestMethods(testCase)) { 80 protected List<Method> getTestMethods(Class<? extends TestCase> testCaseClass) { 81 List<Method> methods = Arrays.asList(testCaseClass.getMethods()); 113 * @return The {@link TestGrouping} for method chaining. 135 * @return The {@link TestGrouping} for method chaining. 146 * if that method was never called. 247 private static class TestMethodPredicate implements Predicate<Method> { 249 public boolean apply(Method method) { [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/sdk/ |
LayoutParamsParserTest.java | 28 import java.lang.reflect.Method; 38 * Convention: method names that start with an underscore are actually local wrappers 143 Method method = AndroidTargetParser.class.getDeclaredMethod("getLayoutClasses"); //$NON-NLS-1$ local 144 method.setAccessible(true); 145 method.invoke(mParser); 151 Method method = LayoutParamsParser.class.getDeclaredMethod("addGroup", //$NON-NLS-1$ local 153 method.setAccessible(true); 154 return (ViewClassInfo) method.invoke(mParser, new ClassWrapper(groupClass)) 160 Method method = LayoutParamsParser.class.getDeclaredMethod("addLayoutParams", \/\/$NON-NLS-1\$ local 168 Method method = LayoutParamsParser.class.getDeclaredMethod("getLayoutParamsInfo", \/\/$NON-NLS-1\$ local 176 Method method = LayoutParamsParser.class.getDeclaredMethod("findLayoutParams", \/\/$NON-NLS-1\$ local [all...] |
/art/test/442-checker-constant-folding/src/ |
Main.java | 17 import java.lang.reflect.Method; 73 Method m = testCmp.getMethod("$opt$CmpLongConstants"); 77 Method m = testCmp.getMethod("$opt$CmpGtFloatConstants"); 81 Method m = testCmp.getMethod("$opt$CmpLtFloatConstants"); 85 Method m = testCmp.getMethod("$opt$CmpGtDoubleConstants"); 89 Method m = testCmp.getMethod("$opt$CmpLtDoubleConstants"); 94 Method m = testCmp.getMethod("$opt$CmpLongSameConstant"); 98 Method m = testCmp.getMethod("$opt$CmpGtFloatSameConstant"); 102 Method m = testCmp.getMethod("$opt$CmpLtFloatSameConstant"); 106 Method m = testCmp.getMethod("$opt$CmpGtDoubleSameConstant") [all...] |
/external/proguard/src/proguard/classfile/io/ |
ProgramClassReader.java | 195 // Read the general method information. 200 // Read the method attributes. 385 public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute methodParametersAttribute) 394 visitParameterInfo(clazz, method, index, parameterInfo); 400 public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute) 413 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 433 visitExceptionInfo(clazz, method, codeAttribute, exceptionInfo) [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/options/ |
CommandLineParser.java | 36 import java.lang.reflect.Method; 106 * Annotates a field or method in an options class to signify that parsed values should be 110 @Target({ElementType.FIELD, ElementType.METHOD}) 120 * Annotates a single method in an options class to receive any "leftover" arguments. The method 121 * must accept {@code ImmutableList<String>} or a supertype. The method will be invoked even if 125 @Target({ElementType.FIELD, ElementType.METHOD}) 206 Method leftoverMethod = null; 219 for (Method method : injectedClass.getDeclaredMethods()) 310 private Method method; field in class:CommandLineParser.MethodOption [all...] |
/external/testng/src/main/java/org/testng/xml/dom/ |
XDom.java | 31 import java.lang.reflect.Method; 132 Method m = findMethodAnnotatedWith(c, ParentSetter.class); 147 // private List<Pair<Method, ? extends Annotation>> 149 // List<Pair<Method, ? extends Annotation>> result = Lists.newArrayList(); 150 // for (Method m : c.getMethods()) { 159 private Method findMethodAnnotatedWith(Class<?> c, Class<? extends Annotation> annotation) { 160 for (Method m : c.getMethods()) { 178 List<Pair<Method, Wrapper>> pairs = 180 for (Pair<Method, Wrapper> pair : pairs) { 191 Pair<Method, Wrapper> pair [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ReflectionTest.java | 23 import java.lang.reflect.Method; 140 Method methodOne = C.class.getDeclaredMethod("methodOne", A.class, C.class); 146 Method methodTwo = C.class.getDeclaredMethod("methodTwo", List.class); 154 Method methodThree = C.class.getDeclaredMethod("methodThree", A.class, Set.class); 162 Method methodFour = C.class.getDeclaredMethod("methodFour", Set.class); 274 Method method = ExtendsImplementsDefinesMember.class.getMethod("method"); local 275 assertEquals(DefinesMember.class, method.getDeclaringClass()); 279 Method method = ImplementsExtendsDefinesMember.class.getMethod("method") local 396 void method(); method in interface:ReflectionTest.DefinesMember [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/i18n/ |
messages.properties | 41 DeviceView_Start_Method_Profiling=Start Method Profiling 42 DeviceView_Start_Method_Profiling_Not_Suported_By_Vm=Start Method Profiling (not supported by this VM) 43 DeviceView_Start_Method_Profiling_Tooltip=Start Method Profiling 44 DeviceView_Stop_Method_Profiling=Stop Method Profiling 45 DeviceView_Stop_Method_Profiling_Tooltip=Stop Method Profiling
|
/external/guice/core/src/com/google/inject/spi/ |
InjectionPoint.java | 39 import java.lang.reflect.Method; 53 * A constructor, field or method that can receive injections. Typically this is a member with the 69 InjectionPoint(TypeLiteral<?> declaringType, Method method, boolean optional) { 70 this.member = method; 73 this.dependencies = forMember(method, declaringType, method.getParameterAnnotations()); 137 * Returns the injected constructor, field, or method. 145 * Returns the dependencies for this injection point. If the injection point is for a method or 310 * Returns a new injection point for the specified method of {@code type} 468 final Method method; field in class:InjectionPoint.InjectableMethod 787 Method method = injectableMethod.method; local [all...] |
/art/test/044-proxy/src/ |
BasicTest.java | 22 import java.lang.reflect.Method; 75 Method[] methods = proxy.getClass().getDeclaredMethods(); 76 Arrays.sort(methods, new Comparator<Method>() { 77 public int compare(Method o1, Method o2) { 89 Method meth = methods[methods.length -1]; 98 /* declare an object that will handle the method calls */ 241 public Object invoke(Object proxy, Method method, Object[] args) 248 if (method.getDeclaringClass() == java.lang.Object.class) [all...] |
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
Configurator.java | 28 import java.lang.reflect.Method; 56 * Given a Car instance car and assuming the method setCondition(String) exists within the SparkPlug class, 79 * attempts to parse a parameter for a method that it knows takes an int as it's argument, 164 protected static Method getSetter(Class clazz, final String fieldId) throws NoSuchMethodException { 165 Method[] methods = clazz.getMethods(); 168 for (Method method : methods) { 169 if (method.getName().equalsIgnoreCase(methodName)) { 170 return method; 173 throw new NoSuchMethodException("No such public method (case insensitive): " [all...] |
/external/guice/core/src/com/google/inject/internal/ |
ProviderMethod.java | 40 import java.lang.reflect.Method; 46 * A provider that invokes a method and returns its result. 57 * {@link net.sf.cglib.reflect.FastClass} to invoke the actual method, since it is significantly 58 * faster. However, this will fail if the method is {@code private} or {@code protected}, since 61 static <T> ProviderMethod<T> create(Key<T> key, Method method, Object instance, 65 int modifiers = method.getModifiers(); 72 method, 83 !Modifier.isPublic(method.getDeclaringClass().getModifiers())) { 84 method.setAccessible(true) 97 protected final Method method; field in class:ProviderMethod [all...] |
/external/proguard/src/proguard/optimize/peephole/ |
InstructionSequenceReplacer.java | 152 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) 164 instruction.accept(clazz, method, codeAttribute, offset, instructionSequenceMatcher); 172 System.out.println("InstructionSequenceReplacer: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"]"); 204 method, 263 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 271 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction [all...] |
/external/testng/src/main/java/org/testng/internal/annotations/ |
JDK15AnnotationFinder.java | 5 import java.lang.reflect.Method; 104 public <A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass) { 122 Method m = tm.getMethod(); 138 Constructor<?> testConstructor, Method testMethod) { 210 Constructor<?> testConstructor, Method testMethod, Pair<Annotation, ?> p) { 226 public boolean hasTestInstance(Method method, int i) { 227 final Annotation[][] annotations = method.getParameterAnnotations(); 240 public String[] findOptionalValues(Method method) { [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
Class.java | 34 import java.lang.reflect.Method; 92 * are loaded and by calls to the {@code defineClass} method in the class 174 * Virtual method table (vtable), for use by "invoke-virtual". The vtable from the superclass 255 /** Offset of the first virtual method copied from an interface in the methods array. */ 258 /** Offset of the first virtual method defined in this class in the methods array. */ 280 * primitive type, this method returns the name of the primitive type. If 281 * this {@code Class} object represents void this method returns 294 * interface with the given string name. Invoking this method is 320 * by this method fails 334 * format returned by {@code getName}) this method attempts t [all...] |