/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowWindowTest.java | 28 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in getFlag_shouldReturnWindowFlags() 40 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in getTitle_shouldReturnWindowTitle() 48 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in getBackgroundDrawable_returnsSetDrawable() 60 TestActivity activity = Robolectric.buildActivity(TestActivity.class).create().get(); in getSoftInputMode_returnsSoftInputMode() 71 Activity activity = Robolectric.buildActivity(TestActivity.class).create().get(); in getProgressBar_returnsTheProgressBar() 84 …ActivityController<TestActivity> testActivityActivityController = Robolectric.buildActivity(TestAc… in getIndeterminateProgressBar_returnsTheIndeterminateProgressBar()
|
D | ShadowActivityTest.java | 16 import static org.robolectric.Robolectric.buildActivity; 93 ActivityController<Activity> controller = Robolectric.buildActivity(Activity.class); in createActivity_noDisplayFinished_shouldFinishActivity() 107 ActivityController<Activity> controller = Robolectric.buildActivity(Activity.class); in createActivity_noDisplayNotFinished_shouldThrowIllegalStateException() 125 …ActivityController<DialogCreatingActivity> controller = Robolectric.buildActivity(DialogCreatingAc… in shouldNotComplainIfActivityIsDestroyedWhileAnotherActivityHasRegisteredBroadcastReceivers() 136 …ActivityController<DialogCreatingActivity> controller = Robolectric.buildActivity(DialogCreatingAc… in shouldNotRegisterNullBroadcastReceiver() 146 …ActivityController<DialogCreatingActivity> controller = Robolectric.buildActivity(DialogCreatingAc… in shouldReportDestroyedStatus() 221 ThrowOnResultActivity activity = Robolectric.buildActivity(ThrowOnResultActivity.class).get(); in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException() 509 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in shouldPopulateWindowDecorViewWithMergeLayoutContents() 522 Activity activity = buildActivity(Activity.class).create().get(); in setContentView_shouldReplaceOldContentView() 533 OnBackPressedActivity activity = buildActivity(OnBackPressedActivity.class).setup().get(); in onKeyUp_callsOnBackPressedWhichFinishesTheActivity() [all …]
|
D | ShadowViewTest.java | 14 import static org.robolectric.Robolectric.buildActivity; 365 MyActivity myActivity = buildActivity(MyActivity.class).create().get(); in shouldCallOnClickWithAttribute() 378 MyActivity myActivity = buildActivity(MyActivity.class).create().get(); in shouldThrowExceptionWithBadMethodName() 473 TestView view = new TestView(buildActivity(Activity.class).create().get()); in startAnimation() 486 TestView view = new TestView(buildActivity(Activity.class).create().get()); in setAnimation() 504 TestView view = new TestView(buildActivity(Activity.class).create().get()); in setNullAnimation() 512 TestView view1 = new TestView(buildActivity(Activity.class).create().get()); in test_measuredDimension() 531 TestView2 view2 = new TestView2(buildActivity(Activity.class).create().get(), 300, 100); in test_measuredDimensionCustomView() 549 view = new TestView(buildActivity(Activity.class).create().get()); in shouldGetAndSetTranslations() 559 view = new TestView(buildActivity(Activity.class).create().get()); in shouldGetAndSetAlpha() [all …]
|
D | ShadowSurfaceViewTest.java | 4 import static org.robolectric.Robolectric.buildActivity; 22 private SurfaceView view = new SurfaceView(buildActivity(Activity.class).create().get()); 57 …TestActivity testActivity = buildActivity(TestActivity.class).create().start().resume().visible().… in canCreateASurfaceView_attachedToAWindowWithActionBar()
|
D | ShadowThemeTest.java | 4 import static org.robolectric.Robolectric.buildActivity; 43 TestActivity activity = buildActivity(TestActivityWithAnotherTheme.class).create().get(); in whenExplicitlySetOnActivity_afterSetContentView_activityGetsThemeFromActivityInManifest() 51 …ActivityController<TestActivityWithAnotherTheme> activityController = buildActivity(TestActivityWi… in whenExplicitlySetOnActivity_beforeSetContentView_activityUsesNewTheme() 61 TestActivity activity = buildActivity(TestActivityWithAnotherTheme.class).create().get(); in whenSetOnActivityInManifest_activityGetsThemeFromActivityInManifest() 68 TestActivity activity = buildActivity(TestActivity.class).create().get(); in whenNotSetOnActivityInManifest_activityGetsThemeFromApplicationInManifest() 75 TestActivity activity = buildActivity(TestActivityWithAnotherTheme.class).create().get(); in shouldResolveReferencesThatStartWithAQuestionMark() 263 …TestWithStyleAttrActivity activity = buildActivity(TestWithStyleAttrActivity.class).create().get(); in shouldApplyFromStyleAttribute()
|
D | ShadowTabActivityTest.java | 19 TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get(); in tabActivityShouldNotMakeNewTabHostEveryGet() 28 TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get(); in shouldGetTabWidget()
|
D | ShadowPreferenceActivityTest.java | 21 activity = Robolectric.buildActivity(TestPreferenceActivity.class).create().get(); in setUp() 31 TestPreferenceActivity activity = Robolectric.buildActivity(TestPreferenceActivity.class).get(); in shouldNotInitializePreferenceScreen()
|
D | ShadowListPreferenceTest.java | 4 import static org.robolectric.Robolectric.buildActivity; 21 listPreference = new ListPreference(buildActivity(Activity.class).create().get()); in setUp()
|
D | ShadowLayoutInflaterTest.java | 10 import static org.robolectric.Robolectric.buildActivity; 300 Activity activity = buildActivity(Activity.class).create().start().resume().get(); in testMultiOrientation() 321 Activity activity = buildActivity(Activity.class).create().start().resume().get(); in testMultiOrientation_explicitLandscape() 334 Activity activity = buildActivity(Activity.class).create().get(); in testSetContentViewByItemResource() 346 Activity activity = buildActivity(Activity.class).create().get(); in testSetContentViewByItemResourceWithW820dp() 385 ClickActivity activity = buildActivity(ClickActivity.class).create().get(); in testOnClickAttribute() 397 Activity activity = buildActivity(Activity.class).create().get(); in testInvalidOnClickAttribute()
|
D | ShadowPreferenceGroupTest.java | 4 import static org.robolectric.Robolectric.buildActivity; 30 activity = buildActivity(Activity.class).create().get(); in setUp()
|
D | ShadowTabHostTest.java | 134 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in shouldRetrieveTheCurrentViewFromViewId() 209 TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get(); in shouldGetTabWidget()
|
D | ShadowICUTest.java | 45 …ActivityController<DatePickerActivity> activityController = Robolectric.buildActivity(DatePickerAc… in datePickerShouldNotCrashWhenAskingForBestDateTimePattern()
|
D | ShadowContextWrapperTest.java | 9 import static org.robolectric.Robolectric.buildActivity; 449 Activity activity1 = buildActivity(Activity.class).create().get(); in assertSameInstanceEveryTime() 450 Activity activity2 = buildActivity(Activity.class).create().get(); in assertSameInstanceEveryTime()
|
D | ShadowTextToSpeechTest.java | 31 activity = Robolectric.buildActivity(Activity.class).create().get(); in setUp()
|
D | ShadowTextViewTest.java | 14 import static org.robolectric.Robolectric.buildActivity; 62 activityController = buildActivity(Activity.class); in setUp()
|
D | ShadowAlertDialogTest.java | 292 final Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in shouldNotExplodeWhenNestingAlerts()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | ActivityControllerTest.java | 38 …private final ActivityController<MyActivity> controller = Robolectric.buildActivity(MyActivity.cla… 95 …MyActivity myActivity = Robolectric.buildActivity(MyActivity.class, new Intent(Intent.ACTION_VIEW)… in shouldSetIntentComponentWithCustomIntentWithoutComponentSet() 218 MyActivity activity = Robolectric.buildActivity(MyActivity.class).create().get(); in attach_shouldWorkWithAPI19() 244 Robolectric.buildActivity(ConfigAwareActivity.class).setup(); in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged() 260 Robolectric.buildActivity(ConfigAwareActivity.class).setup(); in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged() 272 Robolectric.buildActivity(ConfigAwareActivity.class).setup(); in noArgsConfigurationChange_appliesChangedSystemConfiguration() 304 Robolectric.buildActivity(NonConfigStateActivity.class).setup(); in configurationChange_reattachesRetainedFragments()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | Robolectric.java | 67 public static <T extends Activity> ActivityController<T> buildActivity(Class<T> activityClass) { in buildActivity() method in Robolectric 68 return buildActivity(activityClass, null); in buildActivity() 71 …public static <T extends Activity> ActivityController<T> buildActivity(Class<T> activityClass, Int… in buildActivity() method in Robolectric 76 return buildActivity(activityClass).setup().get(); in setupActivity()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | LocalActivityInvoker.java | 38 Robolectric.buildActivity(activityClass, intent) in startActivity() 133 controller = Robolectric.buildActivity(activity.getClass(), activity.getIntent()); in recreateActivity()
|
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/ |
D | ShadowDrawerLayoutTest.java | 19 …DrawerLayout drawerLayout = new DrawerLayout(Robolectric.buildActivity(Activity.class).create().ge… in canGetAndSetDrawerListener()
|
D | ShadowDialogFragmentTest.java | 39 activity = Robolectric.buildActivity(FragmentActivity.class).create().start().resume().get(); in setUp()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/ |
D | RoboMenuTest.java | 50 Activity a = Robolectric.buildActivity(Activity.class).get(); in clickWithIntent()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/ |
D | RoboMonitoringInstrumentation.java | 45 return Robolectric.buildActivity(activityClass, intent) in startActivitySync()
|
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/ |
D | SupportFragmentController.java | 26 this.activityController = Robolectric.buildActivity(activityClass, intent); in SupportFragmentController()
|