/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowActivityTest.java | 18 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 …]
|
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 | ShadowPreferenceActivityTestWithFragment.java | 24 private TestPreferenceActivity activity = Robolectric.setupActivity(TestPreferenceActivity.class);
|
D | ShadowAppTaskTest.java | 68 final Activity activity = Robolectric.setupActivity(Activity.class); in startActivity()
|
D | ShadowContextWrapperTest.java | 433 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()
|
D | ShadowRenderNodeAnimatorTest.java | 28 activity = Robolectric.setupActivity(Activity.class); in setUp()
|
D | ShadowViewTest.java | 16 import static org.robolectric.Robolectric.setupActivity; 716 TestView2 view = new TestView2(setupActivity(Activity.class), 1111, 1112); in canAssertThatSuperDotOnLayoutWasCalledFromViewSubclasses()
|
/external/dagger2/javatests/dagger/android/ |
D | DispatchingAndroidInjectorTest.java | 41 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()
|
D | AndroidInjectionTest.java | 62 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/ |
D | InjectorsTest.java | 125 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/ |
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 | 48 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/ |
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
|