Home
last modified time | relevance | path

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

/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
DFragmentViewTests.java63 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addFragments()
71 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
72 FragmentTestUtil.assertChildren(container, fragment1); in addFragments()
77 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
78 FragmentTestUtil.assertChildren(container, fragment1, fragment2); in addFragments()
88 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
89 FragmentTestUtil.assertChildren(container, fragment1, fragment2, fragment3, fragment4); in addFragments()
92 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
93 FragmentTestUtil.assertChildren(container, fragment1, fragment2); in addFragments()
96 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
[all …]
DFragmentReorderingTest.java53 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setup()
82 FragmentTestUtil.assertChildren(mContainer, fragment2); in addReplace()
92 FragmentTestUtil.assertChildren(mContainer); in addReplace()
107 FragmentTestUtil.executePendingTransactions(mActivityRule); in startWithPop()
108 FragmentTestUtil.assertChildren(mContainer, fragment1); in startWithPop()
123 FragmentTestUtil.assertChildren(mContainer, fragment1); in startWithPop()
126 FragmentTestUtil.popBackStackImmediate(mActivityRule); in startWithPop()
127 FragmentTestUtil.assertChildren(mContainer); in startWithPop()
153 FragmentTestUtil.assertChildren(mContainer, fragment2); in middlePop()
157 FragmentTestUtil.popBackStackImmediate(mActivityRule); in middlePop()
[all …]
DFragmentAnimatorTest.java70 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
86 FragmentTestUtil.waitForExecution(mActivityRule); in addAnimators()
102 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
110 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
124 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsReordered()
139 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsReordered()
171 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsOrdered()
187 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsOrdered()
217 FragmentTestUtil.waitForExecution(mActivityRule); in hideAnimators()
225 FragmentTestUtil.waitForExecution(mActivityRule); in hideAnimators()
[all …]
DFragmentAnimationTest.java75 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
90 FragmentTestUtil.waitForExecution(mActivityRule); in addAnimators()
103 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
110 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
123 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimators()
130 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimators()
143 FragmentTestUtil.waitForExecution(mActivityRule); in hideAnimators()
150 FragmentTestUtil.waitForExecution(mActivityRule); in hideAnimators()
163 FragmentTestUtil.waitForExecution(mActivityRule); in attachAnimators()
170 FragmentTestUtil.waitForExecution(mActivityRule); in attachAnimators()
[all …]
DPostponedTransitionTest.java61 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
68 FragmentTestUtil.waitForExecution(mActivityRule); in setupContainer()
90 FragmentTestUtil.waitForExecution(mActivityRule); in replaceTransition()
101 FragmentTestUtil.popBackStackImmediate(mActivityRule); in replaceTransition()
130 FragmentTestUtil.popBackStackImmediate(mActivityRule); in backStackNestingLevel()
154 FragmentTestUtil.popBackStackImmediate(mActivityRule); in backStackNestingLevel()
197 FragmentTestUtil.waitForExecution(mActivityRule); in forcedTransition1()
211 FragmentTestUtil.popBackStackImmediate(mActivityRule, commit[0], in forcedTransition1()
241 FragmentTestUtil.waitForExecution(mActivityRule); in forcedTransition2()
255 FragmentTestUtil.waitForExecution(mActivityRule); in forcedTransition2()
[all …]
DFragmentLifecycleTest.java641 FragmentTestUtil.resume(mActivityRule, fc1, null); in testLifecycleTransitionFailure()
660 savedState = FragmentTestUtil.destroy(mActivityRule, fc1); in testLifecycleTransitionFailure()
682 FragmentTestUtil.resume(mActivityRule, fc2, savedState); in testLifecycleTransitionFailure()
969 FragmentController fc = FragmentTestUtil.createController(mActivityRule); in restoreNonConfig()
970 FragmentTestUtil.resume(mActivityRule, fc, null); in restoreNonConfig()
992 FragmentTestUtil.destroy(mActivityRule, fc); in restoreNonConfig()
994 fc = FragmentTestUtil.createController(mActivityRule); in restoreNonConfig()
995 FragmentTestUtil.resume(mActivityRule, fc, savedState); in restoreNonConfig()
1015 FragmentController fc = FragmentTestUtil.createController(mActivityRule); in retainedFragmentInBackstack()
1016 FragmentTestUtil.resume(mActivityRule, fc, null); in retainedFragmentInBackstack()
[all …]
DFragmentTransactionTest.java321 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
331 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
335 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
340 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
344 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
349 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
355 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
361 FragmentTestUtil.popBackStackImmediate(mActivityRule); in getFragmentsOffThread()
389 FragmentTestUtil.executePendingTransactions(mActivityRule); in commitAllowStateLossDetached()
395 FragmentTestUtil.executePendingTransactions(mActivityRule); in commitAllowStateLossDetached()
[all …]
DFragmentTransitionTest.java83 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setup()
122 FragmentTestUtil.popBackStackImmediate(mActivityRule); in enterExitTransitions()
131 FragmentTestUtil.popBackStackImmediate(mActivityRule); in enterExitTransitions()
196 FragmentTestUtil.waitForExecution(mActivityRule); in removeAdded()
209 FragmentTestUtil.popBackStackImmediate(mActivityRule); in removeAdded()
224 FragmentTestUtil.setContentView(mActivityRule, R.layout.double_container); in crossContainer()
235 FragmentTestUtil.waitForExecution(mActivityRule); in crossContainer()
350 FragmentTestUtil.waitForExecution(mActivityRule); in onMapSharedElementOut()
375 FragmentTestUtil.popBackStackImmediate(mActivityRule); in onMapSharedElementOut()
417 FragmentTestUtil.waitForExecution(mActivityRule); in onMapSharedElementIn()
[all …]
DLoaderTest.java77 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
84 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
95 FragmentTestUtil.waitForExecution(mActivityRule); in testLeak()
98 FragmentTestUtil.forceGC(); in testLeak()
113 FragmentTestUtil.waitForExecution(mActivityRule); in startWhenReused()
135 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testRedeliverWhenReattached()
141 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testRedeliverWhenReattached()
DFragmentTestUtil.java38 public class FragmentTestUtil { class