/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowActivityTest.java | 17 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 …]
|
D | ShadowNfcAdapterTest.java | 35 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()
|
D | ShadowAnimationUtilsTest.java | 20 …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()
|
D | ShadowWindowManagerGlobalUnitTest.java | 26 Robolectric.setupActivity(Activity.class); in first() 32 Robolectric.setupActivity(Activity.class); in second()
|
D | ShadowPendingIntentTest.java | 157 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()
|
D | ShadowApplicationTest.java | 70 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()
|
D | ShadowKeyguardManagerTest.java | 129 Activity activity = Robolectric.setupActivity(Activity.class); in requestDismissKeyguard_dismissCancelled() 147 Activity activity = Robolectric.setupActivity(Activity.class); in requestDismissKeyguard_dismissSucceeded()
|
D | ShadowPhoneWindowTest.java | 23 activity = Robolectric.setupActivity(Activity.class); in setUp()
|
D | ShadowDialogPreferenceTest.java | 31 PreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class); in inflatePreferenceActivity()
|
D | ShadowContextWrapperTest.java | 342 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()
|
D | ShadowPreferenceActivityTestWithFragment.java | 24 private TestPreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class);
|
D | ShadowAppTaskTest.java | 68 final Activity activity = Robolectric.setupActivity(Activity.class); in startActivity()
|
D | ShadowRenderNodeAnimatorTest.java | 28 activity = Robolectric.setupActivity(Activity.class); in setUp()
|
D | ShadowViewTest.java | 15 import static org.robolectric.Robolectric.setupActivity; 715 TestView2 view = new TestView2(setupActivity(Activity.class), 1111, 1112); in canAssertThatSuperDotOnLayoutWasCalledFromViewSubclasses()
|
D | ShadowAlarmManagerTest.java | 45 activity = Robolectric.setupActivity(Activity.class); in setUp()
|
D | ShadowPackageManagerTest.java | 41 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/ |
D | QualifiersTest.java | 82 …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()
|
D | RobolectricTest.java | 118 LifeCycleActivity activity = Robolectric.setupActivity(LifeCycleActivity.class); in setupActivity_returnsAVisibleActivity()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/util/ |
D | FragmentTestUtil.java | 39 Activity activity = Robolectric.setupActivity(activityClass); in buildFragmentManager()
|
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/ |
D | SupportFragmentTestUtil.java | 39 FragmentActivity activity = Robolectric.setupActivity(fragmentActivityClass); in buildSupportFragmentManager()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | ActivityControllerTest.java | 47 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/ |
D | PreferenceIntegrationTest.java | 135 TestPreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class); in inflatePreferenceActivity()
|
/external/robolectric-shadows/ |
D | README.md | 18 Activity activity = Robolectric.setupActivity(MyActivity.class);
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | Robolectric.java | 75 public static <T extends Activity> T setupActivity(Class<T> activityClass) { in setupActivity() method in Robolectric
|