Home
last modified time | relevance | path

Searched refs:FragmentTestUtil (Results 1 – 12 of 12) sorted by relevance

/cts/tests/fragment/src/android/fragment/cts/
DFragmentViewTests.java50 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addFragments()
58 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
59 FragmentTestUtil.assertChildren(container, fragment1); in addFragments()
64 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
65 FragmentTestUtil.assertChildren(container, fragment1, fragment2); in addFragments()
75 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
76 FragmentTestUtil.assertChildren(container, fragment1, fragment2, fragment3, fragment4); in addFragments()
79 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
80 FragmentTestUtil.assertChildren(container, fragment1, fragment2); in addFragments()
83 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
[all …]
DFragmentReorderingTest.java46 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setup()
69 FragmentTestUtil.assertChildren(mContainer, fragment2); in addReplace()
79 FragmentTestUtil.assertChildren(mContainer); in addReplace()
90 FragmentTestUtil.executePendingTransactions(mActivityRule); in startWithPop()
91 FragmentTestUtil.assertChildren(mContainer, fragment1); in startWithPop()
105 FragmentTestUtil.assertChildren(mContainer, fragment1); in startWithPop()
108 FragmentTestUtil.popBackStackImmediate(mActivityRule); in startWithPop()
109 FragmentTestUtil.assertChildren(mContainer); in startWithPop()
133 FragmentTestUtil.assertChildren(mContainer, fragment2); in middlePop()
137 FragmentTestUtil.popBackStackImmediate(mActivityRule); in middlePop()
[all …]
DFragmentAnimatorTest.java64 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
79 FragmentTestUtil.waitForExecution(mActivityRule); in addAnimators()
92 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
99 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
113 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsReordered()
124 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsReordered()
149 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsOrdered()
161 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsOrdered()
181 FragmentTestUtil.waitForExecution(mActivityRule); in hideAnimators()
188 FragmentTestUtil.waitForExecution(mActivityRule); in hideAnimators()
[all …]
DFragmentExecuteTests.java45 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContentView()
68 FragmentTestUtil.assertChildren(container, fragment); in executeAndPopNormal()
73 assertTrue(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in executeAndPopNormal()
75 FragmentTestUtil.assertChildren(container); in executeAndPopNormal()
88 assertFalse(FragmentTestUtil.executePendingTransactions(mActivityRule)); in executeAndPopNothing()
90 assertFalse(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in executeAndPopNothing()
108 assertTrue(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in popBackStackImmediateSomething()
110 FragmentTestUtil.assertChildren(container); in popBackStackImmediateSomething()
130 assertFalse(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in popBackStackImmediateNothing()
132 FragmentTestUtil.assertChildren(container, fragment); in popBackStackImmediateNothing()
[all …]
DPostponedTransitionTest.java57 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
63 FragmentTestUtil.waitForExecution(mActivityRule); in setupContainer()
84 FragmentTestUtil.waitForExecution(mActivityRule); in replaceTransition()
95 FragmentTestUtil.popBackStackImmediate(mActivityRule); in replaceTransition()
124 FragmentTestUtil.popBackStackImmediate(mActivityRule); in backStackNestingLevel()
148 FragmentTestUtil.popBackStackImmediate(mActivityRule); in backStackNestingLevel()
189 FragmentTestUtil.waitForExecution(mActivityRule); in forcedTransition1()
203 FragmentTestUtil.popBackStackImmediate(mActivityRule, commit[0], in forcedTransition1()
232 FragmentTestUtil.waitForExecution(mActivityRule); in forcedTransition2()
245 FragmentTestUtil.waitForExecution(mActivityRule); in forcedTransition2()
[all …]
DFragmentLifecycleTest.java319 final FragmentController fc = FragmentTestUtil.createController(mActivityRule); in fragmentDestroyedOnFinish()
320 FragmentTestUtil.resume(mActivityRule, fc, null); in fragmentDestroyedOnFinish()
336 FragmentTestUtil.destroy(mActivityRule, fc); in fragmentDestroyedOnFinish()
416 final FragmentController fc = FragmentTestUtil.createController(mActivityRule); in noPrematureStateChange()
417 FragmentTestUtil.resume(mActivityRule, fc, null); in noPrematureStateChange()
426 FragmentTestUtil.destroy(mActivityRule, fc); in noPrematureStateChange()
428 … final FragmentController fragmentController = FragmentTestUtil.createController(mActivityRule); in noPrematureStateChange()
453 FragmentController fc = FragmentTestUtil.createController(mActivityRule); in testIsStateSaved()
454 FragmentTestUtil.resume(mActivityRule, fc, null); in testIsStateSaved()
489 FragmentController fc = FragmentTestUtil.createController(mActivityRule); in testSetArgumentsLifecycle()
[all …]
DFragmentTransactionTest.java260 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
271 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
276 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
282 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
287 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
293 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
300 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
307 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
336 FragmentTestUtil.executePendingTransactions(mActivityRule); in commitAllowStateLossDetached()
343 FragmentTestUtil.executePendingTransactions(mActivityRule); in commitAllowStateLossDetached()
[all …]
DLoaderTest.java61 LoaderActivity activity = FragmentTestUtil.recreateActivity(mActivityRule, in testLeak()
70 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
77 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
82 activity = FragmentTestUtil.recreateActivity(mActivityRule, activity); in testLeak()
87 FragmentTestUtil.waitForExecution(mActivityRule); in testLeak()
90 FragmentTestUtil.forceGC(); in testLeak()
106 activity = FragmentTestUtil.recreateActivity(mActivityRule, activity); in startWhenReused()
DFragmentTransitionTest.java83 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setup()
122 FragmentTestUtil.popBackStackImmediate(mActivityRule); in enterExitTransitions()
131 FragmentTestUtil.popBackStackImmediate(mActivityRule); in enterExitTransitions()
198 FragmentTestUtil.waitForExecution(mActivityRule); in removeAdded()
204 FragmentTestUtil.waitForExecution(mActivityRule); in removeAdded()
214 FragmentTestUtil.popBackStackImmediate(mActivityRule); in removeAdded()
219 FragmentTestUtil.waitForExecution(mActivityRule); in removeAdded()
232 FragmentTestUtil.setContentView(mActivityRule, R.layout.double_container); in crossContainer()
243 FragmentTestUtil.waitForExecution(mActivityRule); in crossContainer()
358 FragmentTestUtil.waitForExecution(mActivityRule); in onMapSharedElementOut()
[all …]
DFragmentManagerConfigTest.java42 ConfigOnStopActivity activity = FragmentTestUtil.recreateActivity(mActivityRule, in configStop()
DPrimaryNavFragmentTest.java20 import static android.fragment.cts.FragmentTestUtil.executePendingTransactions;
21 import static android.fragment.cts.FragmentTestUtil.popBackStackImmediate;
DFragmentTestUtil.java38 public class FragmentTestUtil { class