Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowWindowTest.java28 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()
DShadowActivityTest.java16 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 …]
DShadowViewTest.java14 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 …]
DShadowSurfaceViewTest.java4 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()
DShadowThemeTest.java4 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()
DShadowTabActivityTest.java19 TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get(); in tabActivityShouldNotMakeNewTabHostEveryGet()
28 TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get(); in shouldGetTabWidget()
DShadowPreferenceActivityTest.java21 activity = Robolectric.buildActivity(TestPreferenceActivity.class).create().get(); in setUp()
31 TestPreferenceActivity activity = Robolectric.buildActivity(TestPreferenceActivity.class).get(); in shouldNotInitializePreferenceScreen()
DShadowListPreferenceTest.java4 import static org.robolectric.Robolectric.buildActivity;
21 listPreference = new ListPreference(buildActivity(Activity.class).create().get()); in setUp()
DShadowLayoutInflaterTest.java10 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()
DShadowPreferenceGroupTest.java4 import static org.robolectric.Robolectric.buildActivity;
30 activity = buildActivity(Activity.class).create().get(); in setUp()
DShadowTabHostTest.java134 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in shouldRetrieveTheCurrentViewFromViewId()
209 TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get(); in shouldGetTabWidget()
DShadowICUTest.java45 …ActivityController<DatePickerActivity> activityController = Robolectric.buildActivity(DatePickerAc… in datePickerShouldNotCrashWhenAskingForBestDateTimePattern()
DShadowContextWrapperTest.java9 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()
DShadowTextToSpeechTest.java31 activity = Robolectric.buildActivity(Activity.class).create().get(); in setUp()
DShadowTextViewTest.java14 import static org.robolectric.Robolectric.buildActivity;
62 activityController = buildActivity(Activity.class); in setUp()
DShadowAlertDialogTest.java292 final Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in shouldNotExplodeWhenNestingAlerts()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java38 …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/
DRobolectric.java67 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/
DLocalActivityInvoker.java38 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/
DShadowDrawerLayoutTest.java19 …DrawerLayout drawerLayout = new DrawerLayout(Robolectric.buildActivity(Activity.class).create().ge… in canGetAndSetDrawerListener()
DShadowDialogFragmentTest.java39 activity = Robolectric.buildActivity(FragmentActivity.class).create().start().resume().get(); in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboMenuTest.java50 Activity a = Robolectric.buildActivity(Activity.class).get(); in clickWithIntent()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
DRoboMonitoringInstrumentation.java45 return Robolectric.buildActivity(activityClass, intent) in startActivitySync()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DSupportFragmentController.java26 this.activityController = Robolectric.buildActivity(activityClass, intent); in SupportFragmentController()