Home
last modified time | relevance | path

Searched refs:instanceOf (Results 1 – 25 of 45) sorted by relevance

12

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
DPreferenceLoaderTest.java24 import static org.hamcrest.CoreMatchers.instanceOf;
71 assertThat(screen.getPreference(0), instanceOf(PreferenceCategory.class)); in assertThatScreenMatchesExpected()
72 …assertThat(((PreferenceCategory)screen.getPreference(0)).getPreference(0), instanceOf(Preference.c… in assertThatScreenMatchesExpected()
74 assertThat(screen.getPreference(1), instanceOf(CheckBoxPreference.class)); in assertThatScreenMatchesExpected()
75 assertThat(screen.getPreference(2), instanceOf(EditTextPreference.class)); in assertThatScreenMatchesExpected()
76 assertThat(screen.getPreference(3), instanceOf(ListPreference.class)); in assertThatScreenMatchesExpected()
77 assertThat(screen.getPreference(4), instanceOf(Preference.class)); in assertThatScreenMatchesExpected()
78 assertThat(screen.getPreference(5), instanceOf(RingtonePreference.class)); in assertThatScreenMatchesExpected()
DDrawableResourceLoaderTest.java17 import static org.hamcrest.CoreMatchers.instanceOf;
103 assertThat( drawable, instanceOf( LayerDrawable.class ) ); in testLayerDrawable()
109 assertThat( drawable, instanceOf( StateListDrawable.class ) ); in testStateListDrawable()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
DSQLiteTestHelper.java5 import static org.hamcrest.CoreMatchers.instanceOf;
11 assertThat(colValues.get(0), instanceOf(Float.class)); in verifyColumnValues()
12 assertThat(colValues.get(1), instanceOf(byte[].class)); in verifyColumnValues()
13 assertThat(colValues.get(2), instanceOf(String.class)); in verifyColumnValues()
14 assertThat(colValues.get(3), instanceOf(Integer.class)); in verifyColumnValues()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DResourcesTest.java5 import static org.hamcrest.CoreMatchers.instanceOf;
71 … assertThat( resources.getDrawable( TestR.anim.test_anim_1 ), instanceOf( BitmapDrawable.class ) ); in testGetDrawableNullRClass()
80 …assertThat( resources.getDrawable( TestR.anim.test_anim_1 ), instanceOf( AnimationDrawable.class )… in testGetAnimationDrawable()
96 …assertThat( resources.getDrawable( TestR.color.test_color_1 ), instanceOf( ColorDrawable.class ) )… in testGetColorDrawable()
105 …assertThat( resources.getDrawable( TestR.drawable.test_drawable_1 ), instanceOf( BitmapDrawable.cl… in testGetBitmapDrawable()
113 …assertThat( resources.getDrawable( R.drawable.nine_patch_drawable ), instanceOf( NinePatchDrawable… in testGetNinePatchDrawable()
122 …assertThat( resources.getDrawable( Integer.MAX_VALUE ), instanceOf( BitmapDrawable.class ) ); … in testGetBitmapDrawableForUnknownId()
DNfcAdapterTest.java8 import static org.hamcrest.CoreMatchers.instanceOf;
15 assertThat(NfcAdapter.getDefaultAdapter(null), instanceOf(NfcAdapter.class)); in getDefaultAdapter_shouldReturnAnAdapter()
DLinkMovementMethodTest.java8 import static org.hamcrest.CoreMatchers.instanceOf;
16 assertThat(LinkMovementMethod.getInstance(), instanceOf(LinkMovementMethod.class)); in getInstance_shouldReturnAnInstanceOf_LinkedMovementMethod()
DPreferenceCategoryTest.java3 import static org.hamcrest.CoreMatchers.instanceOf;
30 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); in shouldInheritFromPreferenceGroup()
DAbsSeekBarTest.java11 import static org.hamcrest.CoreMatchers.instanceOf;
21 assertThat(shadow, instanceOf(ShadowProgressBar.class)); in testInheritance()
DFrameLayoutTest.java11 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(layoutParams, instanceOf(ViewGroup.MarginLayoutParams.class)); in getLayoutParamsShouldReturnInstanceOfMarginLayoutParams()
DLinearLayoutTest.java9 import static org.hamcrest.CoreMatchers.instanceOf;
19 assertThat(layoutParams, instanceOf(LinearLayout.LayoutParams.class)); in getLayoutParams_shouldReturnLinearLayoutParams()
DTabActivityTest.java11 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(activity.getTabWidget(), instanceOf(TabWidget.class)); in shouldGetTabWidget()
DSslErrorHandlerTest.java13 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(shadow, instanceOf(ShadowHandler.class)); in shouldInheritFromShadowHandler()
DPreferenceScreenTest.java12 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); in shouldInheritFromPreferenceGroup()
DPreferenceActivityTest.java4 import static org.hamcrest.CoreMatchers.instanceOf;
41 assertThat(shadow, instanceOf(ShadowListActivity.class)); in shouldInheritFromListActivity()
DRatingBarTest.java3 import static org.hamcrest.CoreMatchers.instanceOf;
62 assertThat(shadow, instanceOf(ShadowAbsSeekBar.class)); in testInheritance()
DListPreferenceTest.java13 import static org.hamcrest.CoreMatchers.instanceOf;
33 assertThat(shadow, instanceOf(ShadowDialogPreference.class)); in shouldInheritFromDialogPreference()
DProgressDialogTest.java17 import static org.hamcrest.CoreMatchers.instanceOf;
40 assertThat(shadow, instanceOf(ShadowAlertDialog.class)); in shouldExtendAlertDialog()
DPreferenceGroupTest.java4 import static org.hamcrest.CoreMatchers.instanceOf;
50 assertThat(shadow, instanceOf(ShadowPreference.class)); in shouldInheritFromPreference()
/external/hamcrest/src/org/hamcrest/core/
DIs.java3 import static org.hamcrest.core.IsInstanceOf.instanceOf;
64 return is(instanceOf(type)); in is()
DIsInstanceOf.java40 public static Matcher<Object> instanceOf(Class<?> type) { in instanceOf() method in IsInstanceOf
/external/junit/src/org/junit/rules/
DExpectedException.java3 import static org.hamcrest.CoreMatchers.instanceOf;
81 expect(instanceOf(type)); in expect()
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java555 Predicate<Object> isInteger = Predicates.instanceOf(Integer.class); in testIsInstanceOf_apply()
565 Predicate<Object> isNumber = Predicates.instanceOf(Number.class); in testIsInstanceOf_subclass()
575 Predicate<Object> isComparable = Predicates.instanceOf(Comparable.class); in testIsInstanceOf_interface()
587 Predicates.instanceOf(Integer.class), in testIsInstanceOf_equality()
588 Predicates.instanceOf(Integer.class)) in testIsInstanceOf_equality()
589 .addEqualityGroup(Predicates.instanceOf(Number.class)) in testIsInstanceOf_equality()
590 .addEqualityGroup(Predicates.instanceOf(Float.class)) in testIsInstanceOf_equality()
596 checkSerialization(Predicates.instanceOf(Integer.class)); in testIsInstanceOf_serialization()
/external/hamcrest/src/org/hamcrest/
DCoreMatchers.java65 public static org.hamcrest.Matcher<java.lang.Object> instanceOf(java.lang.Class<?> type) { in instanceOf() method in CoreMatchers
66 return org.hamcrest.core.IsInstanceOf.instanceOf(type); in instanceOf()
/external/v8/test/unittests/compiler/
Djs-typed-lowering-unittest.cc1207 Node* instanceOf = in TEST_F() local
1211 Node* dummy = graph()->NewNode(javascript()->ToObject(), instanceOf, context, in TEST_F()
1213 Reduction r = Reduce(instanceOf); in TEST_F()
1216 ASSERT_NE(instanceOf, dummy->InputAt(0)); in TEST_F()
1227 Node* instanceOf = in TEST_F() local
1231 Node* dummy = graph()->NewNode(javascript()->ToObject(), instanceOf, context, in TEST_F()
1233 Reduction r = Reduce(instanceOf); in TEST_F()
1236 ASSERT_NE(instanceOf, dummy->InputAt(0)); in TEST_F()
1247 Node* instanceOf = graph()->NewNode( in TEST_F() local
1250 Node* dummy = graph()->NewNode(javascript()->ToObject(), instanceOf, context, in TEST_F()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DShadowWranglerTest.java19 import static org.hamcrest.CoreMatchers.instanceOf;
109 assertThat(shadowOf(textFoo), instanceOf(ShadowTextFoo.class)); in shouldUseMostSpecificShadow()

12