/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
H A D | MicrobenchmarkAllocationWorker.java | 31 * The {@link Worker} for the {@code AllocationInstrument}. This class invokes the benchmark method 42 * up in order for the method to be determined to be deterministic. 58 @BenchmarkMethod Method method, AllocationRecorder recorder, Random random) { 59 super(benchmark, method); 65 // do some initial measurements and throw away the results. this warms up the bootstrap method 66 // itself and also the method invocation path for calling that method. 68 // warm up the loop in the benchmark method. 76 * Verify the determinism of the benchmark method. 78 * <p>The method invocatio 57 MicrobenchmarkAllocationWorker(@enchmark Object benchmark, @BenchmarkMethod Method method, AllocationRecorder recorder, Random random) argument 135 measureAllocations( Object benchmark, Method method, int reps) argument [all...] |
H A D | Worker.java | 42 protected Worker(Object benchmark, Method method) { argument 44 this.benchmarkMethod = method; 49 for (Method method : beforeExperimentMethods) { 50 method.invoke(benchmark); 68 /** Template method for workers that produce multiple measurements. */ 73 for (Method method : afterExperimentMethods) { 74 method.invoke(benchmark);
|
/external/caliper/examples/src/main/java/examples/ |
H A D | DoubleToStringBenchmark.java | 26 @Param Method method; field in class:DoubleToStringBenchmark 86 dummy += method.convert(d).length(); 95 dummy += method.convert(d).length();
|
/external/clang/test/Analysis/ |
H A D | bug_hash_test.cpp | 25 int method() && { function in class:AA::X 27 inline int method() const & { function in class:AA::X::Y 743 // CHECK-NEXT: <key>issue_context_kind</key><string>C++ method</string> 815 // CHECK-NEXT: <string>debug.DumpBugHash$int AA::X::method() &&$14$return5;$debug</string> 817 // CHECK-NEXT: <string>debug.DumpBugHash$int AA::X::method() &&$14$return5;$debug</string> 820 // CHECK-NEXT: <key>description</key><string>debug.DumpBugHash$int AA::X::method() &&$14$return5;$debug</string> 826 // CHECK-NEXT: <key>issue_context_kind</key><string>C++ method</string> 827 // CHECK-NEXT: <key>issue_context</key><string>method</string> 909 // CHECK-NEXT: <key>issue_context_kind</key><string>C++ method</string> 1154 // CHECK-NEXT: <key>issue_context_kind</key><string>C++ method</strin [all...] |
/external/clang/test/SemaCXX/ |
H A D | pragma-optimize.cpp | 35 // The declaration of the method is not decorated with `optnone`. 36 int method(int blah); 39 // The definition of the method instead is decorated with `optnone`. 40 int MyClass::method(int blah) { function in class:MyClass
|
/external/compiler-rt/test/ubsan/TestCases/Misc/ |
H A D | nonnull-arg.cpp | 22 int method(int *nonnull, int *null) __attribute__((nonnull(2))) { function in class:C 48 return C(0x0, &local).method(arg, 0x0);
|
/external/dbus/dbus/ |
H A D | dbus-server-unix.c | 58 const char *method; local 62 method = dbus_address_entry_get_method (entry); 64 if (strcmp (method, "unix") == 0) 150 else if (strcmp (method, "systemd") == 0) 184 else if (strcmp (method, "launchd") == 0) 208 /* If we don't handle the method, we return NULL with the
|
/external/dbus/test/name-test/ |
H A D | test-pending-call-dispatch.c | 21 DBusMessage *method; local 26 method = dbus_message_new_method_call ("org.freedesktop.DBus.TestSuiteEchoService", 31 dbus_message_append_args (method, DBUS_TYPE_STRING, &echo, NULL); 32 dbus_connection_send_with_reply (conn, method, &echo_pending, -1); 33 dbus_message_unref (method); 36 method = dbus_message_new_method_call (DBUS_SERVICE_DBUS, 41 dbus_connection_send_with_reply (conn, method, &dbus_pending, -1); 42 dbus_message_unref (method); 81 DBusMessage *method; local 115 method [all...] |
H A D | test-pending-call-timeout.c | 18 DBusMessage *method; local 23 method = dbus_message_new_method_call ("org.freedesktop.DBus.TestSuiteEchoService", 28 dbus_message_append_args (method, DBUS_TYPE_STRING, &echo, NULL); 29 dbus_connection_send_with_reply (conn, method, &pending, timeout_milliseconds); 30 dbus_message_unref (method); 70 DBusMessage *method; local 94 method = dbus_message_new_method_call ("org.freedesktop.TestSuiteEchoService", 98 dbus_connection_send (conn, method, NULL); 99 dbus_message_unref (method);
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
H A D | StdCatchBuilder.java | 38 /** {@code non-null;} method to build the list for */ 39 private final RopMethod method; field in class:StdCatchBuilder 51 * @param method {@code non-null;} method to build the list for 55 public StdCatchBuilder(RopMethod method, int[] order, argument 57 if (method == null) { 58 throw new NullPointerException("method == null"); 69 this.method = method; 76 return build(method, orde 122 build(RopMethod method, int[] order, BlockAddresses addresses) argument [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
H A D | MethodAnnotationStruct.java | 26 * Association of a method and its annotations. 30 /** {@code non-null;} the method in question */ 31 private final CstMethodRef method; field in class:MethodAnnotationStruct 39 * @param method {@code non-null;} the method in question 42 public MethodAnnotationStruct(CstMethodRef method, argument 44 if (method == null) { 45 throw new NullPointerException("method == null"); 52 this.method = method; [all...] |
H A D | MethodIdsSection.java | 32 * {@code non-null;} map from method constants to {@link 95 * @param method {@code non-null;} the reference to intern 98 public MethodIdItem intern(CstBaseMethodRef method) { argument 99 if (method == null) { 100 throw new NullPointerException("method == null"); 105 MethodIdItem result = methodIds.get(method); 108 result = new MethodIdItem(method); 109 methodIds.put(method, result);
|
H A D | ParameterAnnotationStruct.java | 29 * Association of a method and its parameter annotations. 33 /** {@code non-null;} the method in question */ 34 private final CstMethodRef method; field in class:ParameterAnnotationStruct 45 * @param method {@code non-null;} the method in question 48 public ParameterAnnotationStruct(CstMethodRef method, argument 50 if (method == null) { 51 throw new NullPointerException("method == null"); 58 this.method = method; [all...] |
/external/emma/core/java12/com/vladium/jcd/cls/ |
H A D | IMethodCollection.java | 32 * @param offset method offset [must be in [0, size()) range; input not checked] 45 * @param name method name [null or empty will result in no matches] 46 * @return array of method offsets in no particular order [never null; could be empty] 69 * that all data referenced in 'method' will eventually appear in the 72 * @param method new method descriptor [may not be null] 74 int add (Method_info method); argument 78 * checks are made. No method type compatibility checks are made. It is 80 * in 'method' will eventually appear in the constant pool. 82 * @param offset method offse 88 set(int offset, Method_info method) argument [all...] |
/external/guava/guava/src/com/google/common/eventbus/ |
H A D | AnnotatedSubscriberFinder.java | 72 for (Method method : getAnnotatedMethods(clazz)) { 73 Class<?>[] parameterTypes = method.getParameterTypes(); 75 EventSubscriber subscriber = makeSubscriber(listener, method); 93 MethodIdentifier(Method method) { argument 94 this.name = method.getName(); 95 this.parameterTypes = Arrays.asList(method.getParameterTypes()); 138 * Creates an {@code EventSubscriber} for subsequently calling {@code method} on 141 * {@code method}. 143 * @param listener object bearing the event subscriber method. 144 * @param method th 148 makeSubscriber(Object listener, Method method) argument 166 methodIsDeclaredThreadSafe(Method method) argument [all...] |
/external/guava/guava/src/com/google/common/reflect/ |
H A D | AbstractInvocationHandler.java | 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) argument 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")) { 87 return handleInvocation(proxy, method, args); 91 * {@link #invoke} delegates to this method upon any method invocatio 98 handleInvocation(Object proxy, Method method, Object[] args) argument [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
H A D | DummyProxy.java | 36 * Generates a dummy interface proxy that simply returns a dummy value for each method. 71 Object proxy, Method method, Object[] args) { 72 Invokable<?, ?> invokable = interfaceType.method(method); 80 return dummyReturnValue(interfaceType.resolveType(method.getGenericReturnType())); 70 handleInvocation( Object proxy, Method method, Object[] args) argument
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ForwardingTestCase.java | 62 * This invocation handler only registers that a method was called, 67 public Object invoke(Object proxy, Method method, Object[] args) 69 called(asString(method)); 71 return getDefaultValue(method.getReturnType()); 82 * Returns string representation of a method. 84 * If the method takes no parameters, it returns the name (e.g. 85 * "isEmpty". If the method takes parameters, it returns the simple names 88 private String asString(Method method) { argument 89 String methodName = method.getName(); 90 Class<?>[] parameterTypes = method [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | SourceSinkTester.java | 81 SourceSinkTester(F factory, T data, String suiteName, String caseDesc, Method method) { argument 82 super(method.getName()); 115 for (Method method : testClass.getDeclaredMethods()) { 116 if (Modifier.isPublic(method.getModifiers()) 117 && method.getReturnType() == void.class 118 && method.getParameterTypes().length == 0 119 && method.getName().startsWith("test")) { 120 result.add(method);
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
H A D | ShortNameFactory.java | 99 * or a {@link Method} when a provider method is used. 120 protected String getMethodString(Method method) { argument 122 for (Class<?> paramType : method.getParameterTypes()) { 127 return "#" + method.getName() + "(" + paramString + ")";
|
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
H A D | CheckedProviderMethod.java | 39 * A provider that invokes a method and returns its result. 47 private final Method method; field in class:CheckedProviderMethod 57 Method method, 69 this.method = method; 71 this.exposed = method.isAnnotationPresent(Exposed.class); 76 method.setAccessible(true); 80 binder = binder.withSource(method); 113 // We know this cast is safe becase T is the method's return type. 115 T result = (T) method 55 CheckedProviderMethod( Key<T> key, Method method, Object instance, ImmutableSet<Dependency<?>> dependencies, List<Provider<?>> parameterProviders, Class<? extends Annotation> scopeAnnotation, Class<? extends CheckedProvider> checkedProvider, List<TypeLiteral<?>> exceptionTypes, boolean scopeExceptions) argument [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
H A D | UCharacterCompare.java | 36 * Main testing method 48 p.println("method name ucharacter character"); 200 * @param method 203 * UCharacter value after running method 205 * Character value after running method 207 private static void trackDifference(PrintWriter f, int ch, String method, String ucharval, String charval) argument 209 if (m_hashtable_.containsKey(method)) { 210 Integer value = m_hashtable_.get(method); 211 m_hashtable_.put(method, new Integer(value.intValue() + 1)); 213 m_hashtable_.put(method, ne [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
H A D | UCharacterCompare.java | 35 * Main testing method 47 p.println("method name ucharacter character"); 199 * @param method 202 * UCharacter value after running method 204 * Character value after running method 206 private static void trackDifference(PrintWriter f, int ch, String method, String ucharval, String charval) argument 208 if (m_hashtable_.containsKey(method)) { 209 Integer value = m_hashtable_.get(method); 210 m_hashtable_.put(method, new Integer(value.intValue() + 1)); 212 m_hashtable_.put(method, ne [all...] |
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
H A D | DateFormatSymbolsTest.java | 114 private void compareArrays(Object jarray, Object iarray, Locale loc, String method) { argument 120 errln("FAIL: Different array size returned by " + method + "for locale " 128 errln("FAIL: Different symbols returned by " + method + "for locale " 140 errln("FAIL: Different array size returned by " + method + "for locale " 146 errln("FAIL: Different symbols returned by " + method + "for locale "
|
H A D | DecimalFormatSymbolsTest.java | 100 private void checkEquivalence(Object jo, Object io, Locale loc, String method) { argument 102 errln("FAIL: Different results returned by " + method + " for locale "
|