Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowActivityTest.java17 import static org.robolectric.Robolectric.setupActivity;
72 activity = Robolectric.setupActivity(LabelTestActivity1.class); in shouldUseApplicationLabelFromManifestAsTitleForActivity()
79 activity = Robolectric.setupActivity(LabelTestActivity2.class); in shouldUseActivityLabelFromManifestAsTitleForActivity()
86 activity = Robolectric.setupActivity(LabelTestActivity3.class); in shouldUseActivityLabelFromManifestAsTitleForActivityWithShortName()
128 DialogLifeCycleActivity activity2 = Robolectric.setupActivity(DialogLifeCycleActivity.class); in shouldNotComplainIfActivityIsDestroyedWhileAnotherActivityHasRegisteredBroadcastReceivers()
156 TranscriptActivity activity = Robolectric.setupActivity(TranscriptActivity.class); in startActivity_shouldDelegateToStartActivityForResult()
184 activity = Robolectric.setupActivity(DialogLifeCycleActivity.class); in startActivities_shouldStartAllActivities()
196 activity = Robolectric.setupActivity(DialogLifeCycleActivity.class); in startActivities_withBundle_shouldStartAllActivities()
208 TranscriptActivity activity = Robolectric.setupActivity(TranscriptActivity.class); in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
244 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()
DShadowContextWrapperTest.java342 Activity activity = Robolectric.setupActivity(Activity.class); in shouldReturnSameApplicationContextEveryTime()
345 …assertThat(activity.getApplicationContext()).isSameAs(Robolectric.setupActivity(Activity.class).ge… in shouldReturnSameApplicationContextEveryTime()
360 Activity activity = Robolectric.setupActivity(Activity.class); in shouldReturnSameContentResolverEveryTime()
363 …assertThat(activity.getContentResolver()).isSameAs(Robolectric.setupActivity(Activity.class).getCo… in shouldReturnSameContentResolverEveryTime()
DShadowPreferenceActivityTestWithFragment.java24 private TestPreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class);
DShadowAppTaskTest.java68 final Activity activity = Robolectric.setupActivity(Activity.class); in startActivity()
DShadowRenderNodeAnimatorTest.java28 activity = Robolectric.setupActivity(Activity.class); in setUp()
DShadowViewTest.java15 import static org.robolectric.Robolectric.setupActivity;
715 TestView2 view = new TestView2(setupActivity(Activity.class), 1111, 1112); in canAssertThatSuperDotOnLayoutWasCalledFromViewSubclasses()
DShadowAlarmManagerTest.java45 activity = Robolectric.setupActivity(Activity.class); in setUp()
DShadowPackageManagerTest.java41 import static org.robolectric.Robolectric.setupActivity;
396 Activity activity = setupActivity(ShadowPackageManagerTest.ActivityWithConfigChanges.class); in getActivityMetaData_configChanges()
413 Activity activity = setupActivity(ShadowPackageManagerTest.ActivityWithConfigChanges.class); in getActivityMetaData_configChangesAlwaysIncludesMccAndMnc()
1748 Activity activity = setupActivity(ActivityWithMetadata.class); in getActivityMetaData()
/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.java47 Activity activity = Robolectric.setupActivity(Activity.class); in canCreateActivityNotListedInManifest()
68 TestDelayedPostActivity activity = Robolectric.setupActivity(TestDelayedPostActivity.class); in pendingTasks_areRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
78 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