Home
last modified time | relevance | path

Searched refs:setupActivity (Results 1 – 25 of 27) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowActivityTest.java18 import static org.robolectric.Robolectric.setupActivity;
73 activity = Robolectric.setupActivity(LabelTestActivity1.class); in shouldUseApplicationLabelFromManifestAsTitleForActivity()
80 activity = Robolectric.setupActivity(LabelTestActivity2.class); in shouldUseActivityLabelFromManifestAsTitleForActivity()
87 activity = Robolectric.setupActivity(LabelTestActivity3.class); in shouldUseActivityLabelFromManifestAsTitleForActivityWithShortName()
129 DialogLifeCycleActivity activity2 = Robolectric.setupActivity(DialogLifeCycleActivity.class); in shouldNotComplainIfActivityIsDestroyedWhileAnotherActivityHasRegisteredBroadcastReceivers()
157 TranscriptActivity activity = Robolectric.setupActivity(TranscriptActivity.class); in startActivity_shouldDelegateToStartActivityForResult()
185 activity = Robolectric.setupActivity(DialogLifeCycleActivity.class); in startActivities_shouldStartAllActivities()
197 activity = Robolectric.setupActivity(DialogLifeCycleActivity.class); in startActivities_withBundle_shouldStartAllActivities()
209 TranscriptActivity activity = Robolectric.setupActivity(TranscriptActivity.class); in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
245 activity = Robolectric.setupActivity(DialogLifeCycleActivity.class); in shouldSupportStartActivityForResult()
[all …]
DShadowNfcAdapterTest.java35 final Activity activity = Robolectric.setupActivity(Activity.class); in setNdefPushMesageCallback_shouldUseCallback()
46 final Activity activity = Robolectric.setupActivity(Activity.class); in setOnNdefPushCompleteCallback_shouldUseCallback()
57 final Activity activity = Robolectric.setupActivity(Activity.class); in setOnNdefPushCompleteCallback_throwsOnNullActivity()
70 final Activity activity = Robolectric.setupActivity(Activity.class); in setOnNdefPushCompleteCallback_throwsOnNullInActivities()
114 final Activity activity = Robolectric.setupActivity(Activity.class); in setNdefPushMessage_setsNullMessage()
124 final Activity activity = Robolectric.setupActivity(Activity.class); in setNdefPushMessage_setsNonNullMessage()
136 final Activity activity = Robolectric.setupActivity(Activity.class); in getNdefPushMessage_messageNotSet_throwsIllegalStateException()
DShadowAnimationUtilsTest.java20 …assertThat(AnimationUtils.loadAnimation(Robolectric.setupActivity(Activity.class), R.anim.fade_in)… in loadAnimation_shouldCreateAnimation()
25 …assertThat(AnimationUtils.loadLayoutAnimation(Robolectric.setupActivity(Activity.class), 1)).isNot… in loadLayoutAnimation_shouldCreateAnimation()
30 …ationController anim = AnimationUtils.loadLayoutAnimation(Robolectric.setupActivity(Activity.class… in getLoadedFromResourceId_forAnimationController_shouldReturnAnimationResourceId()
DShadowWindowManagerGlobalUnitTest.java26 Robolectric.setupActivity(Activity.class); in first()
32 Robolectric.setupActivity(Activity.class); in second()
DShadowPendingIntentTest.java157 Context context = Robolectric.setupActivity(Activity.class); in send_shouldFillInIntentData()
160 Activity otherContext = Robolectric.setupActivity(Activity.class); in send_shouldFillInIntentData()
173 Context context = Robolectric.setupActivity(Activity.class); in send_shouldNotReusePreviouslyFilledInIntentData()
176 Activity otherContext = Robolectric.setupActivity(Activity.class); in send_shouldNotReusePreviouslyFilledInIntentData()
196 Context context = Robolectric.setupActivity(Activity.class); in send_shouldFillInLastIntentData()
199 Activity otherContext = Robolectric.setupActivity(Activity.class); in send_shouldFillInLastIntentData()
219 Context context = Robolectric.setupActivity(Activity.class); in send_shouldNotUsePreviouslyFilledInLastIntentData()
222 Activity otherContext = Robolectric.setupActivity(Activity.class); in send_shouldNotUsePreviouslyFilledInLastIntentData()
245 Context context = Robolectric.setupActivity(Activity.class); in send_shouldNotFillIn_whenPendingIntentIsImmutable()
248 Activity otherContext = Robolectric.setupActivity(Activity.class); in send_shouldNotFillIn_whenPendingIntentIsImmutable()
DShadowApplicationTest.java70 assertThat(Robolectric.setupActivity(Activity.class).getApplication()) in shouldBeAContext()
72 assertThat(Robolectric.setupActivity(Activity.class).getApplication().getApplicationContext()) in shouldBeAContext()
367 Activity activity = Robolectric.setupActivity(Activity.class); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning()
387 Activity activity = Robolectric.setupActivity(Activity.class); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
403 Activity activity = Robolectric.setupActivity(Activity.class); in shouldHaveStoppedServiceByStartedComponent()
434 Activity activity = Robolectric.setupActivity(Activity.class); in shouldThrowIfContainsRegisteredReceiverOfAction()
448 Activity activity = Robolectric.setupActivity(Activity.class); in shouldNotThrowIfDoesNotContainsRegisteredReceiverOfAction()
DShadowKeyguardManagerTest.java129 Activity activity = Robolectric.setupActivity(Activity.class); in requestDismissKeyguard_dismissCancelled()
147 Activity activity = Robolectric.setupActivity(Activity.class); in requestDismissKeyguard_dismissSucceeded()
DShadowPhoneWindowTest.java23 activity = Robolectric.setupActivity(Activity.class); in setUp()
DShadowDialogPreferenceTest.java31 PreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class); in inflatePreferenceActivity()
DShadowPreferenceActivityTestWithFragment.java24 private TestPreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class);
DShadowAppTaskTest.java68 final Activity activity = Robolectric.setupActivity(Activity.class); in startActivity()
DShadowContextWrapperTest.java433 Activity activity = Robolectric.setupActivity(Activity.class); in shouldReturnSameApplicationContextEveryTime()
436 …assertThat(activity.getApplicationContext()).isSameInstanceAs(Robolectric.setupActivity(Activity.c… in shouldReturnSameApplicationContextEveryTime()
451 Activity activity = Robolectric.setupActivity(Activity.class); in shouldReturnSameContentResolverEveryTime()
454 …assertThat(activity.getContentResolver()).isSameInstanceAs(Robolectric.setupActivity(Activity.clas… in shouldReturnSameContentResolverEveryTime()
DShadowRenderNodeAnimatorTest.java28 activity = Robolectric.setupActivity(Activity.class); in setUp()
DShadowViewTest.java16 import static org.robolectric.Robolectric.setupActivity;
716 TestView2 view = new TestView2(setupActivity(Activity.class), 1111, 1112); in canAssertThatSuperDotOnLayoutWasCalledFromViewSubclasses()
/external/dagger2/javatests/dagger/android/
DDispatchingAndroidInjectorTest.java41 FooActivity activity = Robolectric.setupActivity(FooActivity.class); in withClassKeys()
52 FooActivity activity = Robolectric.setupActivity(FooActivity.class); in withStringKeys()
63 FooActivity fooActivity = Robolectric.setupActivity(FooActivity.class); in withMixedKeys()
65 BarActivity barActivity = Robolectric.setupActivity(BarActivity.class); in withMixedKeys()
74 BarActivity activity = Robolectric.setupActivity(BarActivity.class); in maybeInject_returnsFalse_ifNoMatchingInjectorExists()
83 FooActivity activity = Robolectric.setupActivity(FooActivity.class); in throwsIfFactoryCreateReturnsNull()
97 FooActivity activity = Robolectric.setupActivity(FooActivity.class); in throwsIfClassMismatched()
DAndroidInjectionTest.java62 Activity activity = Robolectric.setupActivity(Activity.class);
81 ActivityInjectsFragment activity = Robolectric.setupActivity(ActivityInjectsFragment.class);
101 ActivityInjectsFragment activity = Robolectric.setupActivity(ActivityInjectsFragment.class);
118 Activity activity = Robolectric.setupActivity(Activity.class);
153 Activity activity = Robolectric.setupActivity(Activity.class);
/external/dagger2/javatests/dagger/android/support/functional/
DInjectorsTest.java125 Robolectric.setupActivity(OuterClass.TestInnerClassActivity.class); in componentStructureFollowsControllerStructure()
183 Robolectric.setupActivity(OuterClass.TestInnerClassActivity.class); in allControllersAreDirectChildrenOfApplication()
233 Robolectric.setupActivity(TestActivityWithScope.class); in usesGeneratedModules()
238 Robolectric.setupActivity(OuterClass.TestInnerClassActivity.class); in usesGeneratedModules()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DQualifiersTest.java82 …View view = Robolectric.setupActivity(Activity.class).getLayoutInflater().inflate(R.layout.layout_… in inflateLayout_defaultsTo_sw320dp()
91 …View view = Robolectric.setupActivity(Activity.class).getLayoutInflater().inflate(R.layout.layout_… in inflateLayout_overridesTo_sw720dp()
DRobolectricTest.java118 LifeCycleActivity activity = Robolectric.setupActivity(LifeCycleActivity.class); in setupActivity_returnsAVisibleActivity()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/util/
DFragmentTestUtil.java39 Activity activity = Robolectric.setupActivity(activityClass); in buildFragmentManager()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DSupportFragmentTestUtil.java39 FragmentActivity activity = Robolectric.setupActivity(fragmentActivityClass); in buildSupportFragmentManager()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java48 Activity activity = Robolectric.setupActivity(Activity.class); in canCreateActivityNotListedInManifest()
69 TestDelayedPostActivity activity = Robolectric.setupActivity(TestDelayedPostActivity.class); in pendingTasks_areRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
79 TestDelayedPostActivity activity = Robolectric.setupActivity(TestDelayedPostActivity.class); in delayedTasks_areNotRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DPreferenceIntegrationTest.java135 TestPreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class); in inflatePreferenceActivity()
/external/robolectric-shadows/
DREADME.md18 Activity activity = Robolectric.setupActivity(MyActivity.class);
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectric.java75 public static <T extends Activity> T setupActivity(Class<T> activityClass) { in setupActivity() method in Robolectric

12