/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
Util.java | 29 * Run a {@link Invokable} and expect a {@link Throwable}. 31 * @param r The {@link Invokable} to run 34 public static void runAndAssertException(@NonNull Invokable r, 55 public interface Invokable {
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
InvokableTest.java | 37 * Unit tests for {@link Invokable}. 58 Invokable<?, ?> factory = Invokable.from(constructor); 81 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); 95 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); 102 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class) 110 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); 118 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); 123 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); 128 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class) 299 Invokable<String, String> invokable = Invokable.from(String.class.getConstructor()); local 304 Invokable<?, ?> invokable = Invokable.from(String.class.getMethod("length")); local 344 Invokable<?, ?> invokable = Invokable.from(constructor); local 357 Invokable<?, ?> invokable = Invokable.from(constructor); local 370 Invokable<?, ?> invokable = Invokable.from(constructor); local 501 Invokable<?, ?> invokable = Invokable.from(constructor); local 513 Invokable<?, ?> invokable = Invokable.from(constructor); local 525 Invokable<?, ?> invokable = Invokable.from(constructor); local 589 Invokable<Prepender, Object> invokable = (Invokable<Prepender, Object>) local [all...] |
ParameterTest.java | 35 for (Parameter param : Invokable.from(method).getParameters()) { 44 for (Parameter param : Invokable.from(method).getParameters()) {
|
TypeTokenTest.java | 1243 Invokable<T, String> invokable = new TypeToken<T>(getClass()) {} local 1252 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(setMethod); local 1279 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod); local 1330 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); local 1345 Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.constructor(constructor); local [all...] |
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
Utils.java | 36 public interface Invokable { 41 * Run a {@link Invokable} and expect and {@link Throwable} of a certain type. 43 * @param r The {@link Invokable} to run 46 public static void assertException(@NonNull Invokable r, 64 * Run a {@link Invokable} on the main thread and forward the {@link Throwable} if one was 67 * @param r The {@link Invokable} to run 71 public static void runOnMainThread(@NonNull final Invokable r) throws Throwable { 97 * Make sure that a {@link Invokable} eventually finishes without throwing a {@link Throwable}. 99 * @param r The {@link Invokable} to run. 101 public static void eventually(@NonNull Invokable r) throws Throwable [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
ClassSanityTester.java | 35 import com.google.common.reflect.Invokable; 81 private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME = 82 new Ordering<Invokable<?, ?>>() { 83 @Override public int compare(Invokable<?, ?> left, Invokable<?, ?> right) { 88 private static final Ordering<Invokable<?, ?>> BY_PARAMETERS = 89 new Ordering<Invokable<?, ?>>() { 90 @Override public int compare(Invokable<?, ?> left, Invokable<?, ?> right) { 95 private static final Ordering<Invokable<?, ?>> BY_NUMBER_OF_PARAMETERS 394 Invokable<?, ?> invokable = Invokable.from(method); local 687 Invokable<?, ?> invokable = type.method(method); local 699 Invokable<T, T> invokable = type.constructor(constructor); local [all...] |
NullPointerTester.java | 30 import com.google.common.reflect.Invokable; 210 testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass()); 221 testParameter(null, Invokable.from(ctor), paramIndex, ctor.getDeclaringClass()); 258 if (Invokable.from(method).isStatic()) { 268 if (!Invokable.from(method).isStatic()) { 323 * Verifies that {@code invokable} produces a {@link NullPointerException} or 328 * @param instance the instance to invoke {@code invokable} on, or null if 329 * {@code invokable} is static 331 private void testParameter(Object instance, Invokable<?, ?> invokable, [all...] |
DummyProxy.java | 24 import com.google.common.reflect.Invokable; 72 Invokable<?, ?> invokable = interfaceType.method(method); local 73 ImmutableList<Parameter> params = invokable.getParameters();
|
FreshValueGenerator.java | 69 import com.google.common.reflect.Invokable; 184 ImmutableList<Parameter> params = Invokable.from(generator).getParameters();
|
/external/guava/guava/src/com/google/common/reflect/ |
Invokable.java | 49 * Invokable<List<String>, ?> invokable = new TypeToken<List<String>>() {}.method(getMethod); 50 * assertEquals(TypeToken.of(String.class), invokable.getReturnType()); // Not Object.class! 51 * assertEquals(new TypeToken<List<String>>() {}, invokable.getOwnerType());}</pre> 60 public abstract class Invokable<T, R> extends Element implements GenericDeclaration { 62 <M extends AccessibleObject & Member> Invokable(M member) { 66 /** Returns {@link Invokable} of {@code method}. */ 67 public static Invokable<?, Object> from(Method method) { 71 /** Returns {@link Invokable} of {@code constructor}. */ 72 public static <T> Invokable<T, T> from(Constructor<T> constructor) [all...] |
Parameter.java | 39 private final Invokable<?, ?> declaration; 45 Invokable<?, ?> declaration, 60 /** Returns the {@link Invokable} that declares this parameter. */ 61 public Invokable<?, ?> getDeclaringInvokable() {
|
TypeToken.java | 490 * Returns the {@link Invokable} for {@code method}, which must be a member of {@code T}. 494 public final Invokable<T, Object> method(Method method) { 497 return new Invokable.MethodInvokable<T>(method) { 517 * Returns the {@link Invokable} for {@code constructor}, which must be a member of {@code T}. 521 public final Invokable<T, T> constructor(Constructor<?> constructor) { 524 return new Invokable.ConstructorInvokable<T>(constructor) { [all...] |
/frameworks/compile/slang/ |
slang_rs_reflection_state.h | 264 // Model for Invokable functions (per File): 267 // b) declareInvokable() for each Invokable (order must be 402 /*== Invokable ================================================================*/ 625 struct Invokable { 626 Invokable() : mParams(nullptr) { } 627 ~Invokable() { delete [] mParams; } 629 Invokable(const Invokable &) = delete; 630 void operator=(const Invokable &) = delete; 636 ArrayWithCursor<Invokable> mInvokables [all...] |
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
Utils.java | 274 * @param r The {@link Invokable} to run 277 static void verifyException(@NonNull Invokable r, 296 interface Invokable {
|
/cts/tests/libcore/javautilcollections/libs/ |
guava-20.0.jar | |
/external/annotation-tools/annotation-file-utilities/lib/ |
guava-20.0.jar | |
/external/dagger2/lib/ |
google-java-format-0.1-20151017.042846-2.jar | |
/external/guice/lib/ |
guava-16.0.1.jar | |
/prebuilts/devtools/tools/lib/ |
guava-17.0.jar | |
guava-18.0.jar | |
guava-22.0.jar | |
/prebuilts/misc/common/guava/ |
guava-18.0.jar | |
guava-21.0.jar | |
/prebuilts/misc/common/robolectric/3.1.1/lib/ |
guava-19.0.jar | |
/prebuilts/misc/common/robolectric/3.4.2/lib/ |
guava-20.0.jar | |