HomeSort by relevance Sort by last modified time
    Searched refs:expectedClass (Results 1 - 25 of 260) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
IsInstanceOf.java 13 private final Class<?> expectedClass;
19 * @param expectedClass The predicate evaluates to true for instances of this class
22 public IsInstanceOf(Class<?> expectedClass) {
23 this.expectedClass = expectedClass;
24 this.matchableClass = matchableClass(expectedClass);
27 private static Class<?> matchableClass(Class<?> expectedClass) {
28 if (boolean.class.equals(expectedClass)) return Boolean.class;
29 if (byte.class.equals(expectedClass)) return Byte.class;
30 if (char.class.equals(expectedClass)) return Character.class;
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
Util.java 32 * @param expectedClass The expected {@link Throwable} type
35 @NonNull Class<? extends Throwable> expectedClass) throws Throwable {
39 if (e.getClass().isAssignableFrom(expectedClass)) {
42 Log.e(LOG_TAG, "Expected: " + expectedClass.getName() + ", got: "
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
GenericReflectionTestsBase.java 65 public static void assertInstanceOf(Class<?> expectedClass, Object actual) {
66 TestCase.assertTrue(actual.getClass().getName() + " is not instance of :" + expectedClass.getName(), expectedClass
  /cts/tests/tests/print/src/android/print/cts/
Utils.java 44 * @param expectedClass The expected {@link Throwable} type
47 @NonNull Class<? extends Throwable> expectedClass) throws Throwable {
51 if (e.getClass().isAssignableFrom(expectedClass)) {
54 Log.e(LOG_TAG, "Expected: " + expectedClass.getName() + ", got: "
  /packages/apps/TV/tests/unit/src/com/android/tv/
MainActivityTest.java 83 private View assertExpectedBannerSceneClassShown(Class<ChannelBannerView> expectedClass,
85 View v = assertViewIsShown(expectedClass.getSimpleName(), R.id.scene_transition_common,
88 assertEquals(expectedClass, v.getClass());
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/check/
Assert.java 353 public static void instanceOf(Class<?> expectedClass, Object o) {
355 fail(expectedClass.getName() + " expected, but 'null' found.");
357 if (!expectedClass.isAssignableFrom(o.getClass())) {
358 fail(expectedClass.getName() + " expected, but " + o.getClass().getName() + " found.");
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
TestUtil.java 29 public static <T> void assertInstanceOf(Class<? extends T> expectedClass, T object) {
31 assertTrue(expectedClass + " should be assignable from " + actualClass,
32 expectedClass.isAssignableFrom(actualClass));
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
TestClassOverride.java 87 Class<?> expectedClass = this.classifier.getClass();
92 if (expectedClass.isInstance(actualClassifier)) {
109 "instance of " + expectedClass);
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
TestClassOverride.java 86 Class<?> expectedClass = this.classifier.getClass();
91 if (expectedClass.isInstance(actualClassifier)) {
108 "instance of " + expectedClass);
  /cts/tests/pdf/src/android/graphics/pdf/cts/
Utils.java 275 * @param expectedClass The expected exception type
278 @NonNull Class<? extends Exception> expectedClass) {
282 if (e.getClass().isAssignableFrom(expectedClass)) {
286 fail("Expected: " + expectedClass.getName() + ", got: " + e.getClass().getName());
290 fail("Expected to have " + expectedClass.getName() + " exception thrown");
  /external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
BindingsTest.java 85 Field field, Class<T> expectedClass, T value) throws IllegalAccessException {
86 assertEquals(expectedClass, field.getType());
92 private static <T> void checkField(Field field, Class<T> expectedClass,
94 assertEquals(expectedClass, field.getType());
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
LayoutInflaterFactoryTestCase.java 205 private void verifyAppCompatWidgetInflation(final int layout, final Class<?> expectedClass) {
208 assertSame("View is " + expectedClass.getSimpleName(), expectedClass,
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
FrameFormat.java 113 public boolean hasMetaKey(String key, Class expectedClass) {
115 if (!expectedClass.isAssignableFrom(mMetaData.get(key).getClass())) {
119 expectedClass + "!");
  /frameworks/base/core/tests/coretests/src/android/print/
BasePrintTest.java 92 * @param expectedClass The {@link Exception} that is supposed to be thrown
94 void assertException(Invokable invokable, Class<? extends Exception> expectedClass)
99 if (e.getClass().isAssignableFrom(expectedClass)) {
  /frameworks/base/media/mca/filterfw/java/android/filterfw/io/
TextGraphReader.java 476 Class expectedClass) throws GraphIOException {
477 if (value.getClass() != expectedClass) {
479 + expectedClass.getSimpleName() + ", but found a value of type "
  /prebuilts/devtools/tools/lib/
hamcrest-core-1.3.jar 
  /prebuilts/misc/common/robolectric/lib/
hamcrest-core-1.3.jar 
  /prebuilts/tools/common/m2/repository/org/hamcrest/hamcrest-core/1.3/
hamcrest-core-1.3.jar 
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ApplicationTest.java 92 private void checkSystemService(String name, Class expectedClass) {
94 assertThat(systemService, instanceOf(expectedClass));
  /prebuilts/go/darwin-x86/src/encoding/asn1/
asn1.go 679 expectedClass := ClassContextSpecific
681 expectedClass = ClassApplication
687 if t.class == expectedClass && t.tag == *params.tag && (t.length == 0 || t.isCompound) {
738 expectedClass := ClassUniversal
742 expectedClass = ClassContextSpecific
747 expectedClass = ClassApplication
752 if t.class != expectedClass || t.tag != expectedTag || t.isCompound != compoundType {
  /prebuilts/go/linux-x86/src/encoding/asn1/
asn1.go 679 expectedClass := ClassContextSpecific
681 expectedClass = ClassApplication
687 if t.class == expectedClass && t.tag == *params.tag && (t.length == 0 || t.isCompound) {
738 expectedClass := ClassUniversal
742 expectedClass = ClassContextSpecific
747 expectedClass = ClassApplication
752 if t.class != expectedClass || t.tag != expectedTag || t.isCompound != compoundType {
  /prebuilts/tools/common/m2/repository/com/jayway/android/robotium/robotium-solo/5.5.3/
robotium-solo-5.5.3.jar 
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
CameraMetadataTest.java 419 Class<T> expectedClass = (Class<T>) expected.getClass();
421 TypeReference.createSpecializedTypeReference(expectedClass),
    [all...]
  /prebuilts/tools/common/m2/repository/com/squareup/dagger/dagger-compiler/1.2.2/
dagger-compiler-1.2.2.jar 
  /prebuilts/tools/common/m2/repository/net/sf/ezmorph/ezmorph/1.0.6/
ezmorph-1.0.6.jar 

Completed in 5497 milliseconds

1 2 3 4 5 6 7 8 91011