Home
last modified time | relevance | path

Searched refs:fragmentManager (Results 1 – 5 of 5) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DDialogFragmentTest.java28 private TestFragmentManager fragmentManager; field in DialogFragmentTest
34 fragmentManager = new TestFragmentManager(activity); in setUp()
39 dialogFragment.show(fragmentManager, "this is a tag"); in show_shouldCallLifecycleMethods()
58 dialogFragment.show(fragmentManager.beginTransaction(), "this is a tag"); in show_whenPassedATransaction_shouldCallShowWithManager()
79 dialogFragment.show(fragmentManager, "this is a tag"); in show_shouldShowDialogThatWasReturnedFromOnCreateDialog_whenOnCreateDialogReturnsADialog()
84 assertSame(dialogFragment, fragmentManager.findFragmentByTag("this is a tag")); in show_shouldShowDialogThatWasReturnedFromOnCreateDialog_whenOnCreateDialogReturnsADialog()
89 dialogFragment.show(fragmentManager, "this is a tag"); in show_shouldShowDialogThatWasAutomaticallyCreated_whenOnCreateDialogReturnsNull()
95 assertSame(dialogFragment, fragmentManager.findFragmentByTag("this is a tag")); in show_shouldShowDialogThatWasAutomaticallyCreated_whenOnCreateDialogReturnsNull()
100 dialogFragment.show(fragmentManager, "tag"); in dismiss_shouldDismissTheDialog()
111 dialogFragment.show(fragmentManager, null); in removeUsingTransaction_shouldDismissTheDialog()
[all …]
DFragmentActivityTest.java116 … TestFragmentManager fragmentManager = (TestFragmentManager) activity.getSupportFragmentManager(); in onCreate_shouldRecreateFragments() local
117 assertEquals(2, fragmentManager.getFragments().size()); in onCreate_shouldRecreateFragments()
119 … TestFragment restoredFrag = (TestFragment) fragmentManager.getFragmentsById().get(containerId); in onCreate_shouldRecreateFragments()
139 … TestFragmentManager fragmentManager = (TestFragmentManager) activity.getSupportFragmentManager(); in onStart_shouldStartFragments() local
140 assertEquals(2, fragmentManager.getFragments().size()); in onStart_shouldStartFragments()
141 … TestFragment restoredFrag = (TestFragment) fragmentManager.getFragmentsById().get(containerId); in onStart_shouldStartFragments()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowFragmentActivity.java25 private TestFragmentManager fragmentManager; field in ShadowFragmentActivity
29 fragmentManager = new TestFragmentManager(realObject); in __constructor__()
46fragmentManager.addFragment(fragmentState.containerId, fragmentState.tag, fragment, true); in onCreate()
58 for (Fragment fragment : fragmentManager.getFragments()) { in onStart()
59 fragmentManager.startFragment(fragment); in onStart()
65 for(Fragment fragment : fragmentManager.getFragments()) { in onPause()
72 return fragmentManager; in getSupportFragmentManager()
81 for (Map.Entry<Integer, Fragment> entry : fragmentManager.getFragmentsById().entrySet()) { in onSaveInstanceState()
98 for (Fragment fragment : fragmentManager.getFragments()) { in getCurrentFocus()
114 for (Fragment fragment : fragmentManager.getFragments()) { in clearFocus()
DShadowFragmentPagerAdapter.java16 private FragmentManager fragmentManager; field in ShadowFragmentPagerAdapter
20 this.fragmentManager = fm; in __constructor__()
25 fragmentManager.beginTransaction().add(container.getId(), (Fragment) object).commit(); in setPrimaryItem()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestFragmentTransaction.java9 private TestFragmentManager fragmentManager; field in TestFragmentTransaction
26 public TestFragmentTransaction(TestFragmentManager fragmentManager) { in TestFragmentTransaction() argument
27 this.fragmentManager = fragmentManager; in TestFragmentTransaction()
164 fragmentManager.commitLater(this); in commit()
223 return fragmentManager; in getManager()