Home
last modified time | relevance | path

Searched refs:fm (Results 1 – 25 of 79) sorted by relevance

1234

/cts/tests/fragment/src/android/fragment/cts/
DPrimaryNavFragmentTest.java44 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in delegateBackToPrimaryNav() local
47 fm.beginTransaction().add(strictFragment, null).setPrimaryNavigationFragment(strictFragment) in delegateBackToPrimaryNav()
49 executePendingTransactions(mActivityRule, fm); in delegateBackToPrimaryNav()
52 fm.getPrimaryNavigationFragment()); in delegateBackToPrimaryNav()
63 popBackStackImmediate(mActivityRule, fm)); in delegateBackToPrimaryNav()
70 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in popPrimaryNav() local
73 fm.beginTransaction().add(strictFragment1, null) in popPrimaryNav()
76 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
79 fm.getPrimaryNavigationFragment()); in popPrimaryNav()
81 fm.beginTransaction().remove(strictFragment1).addToBackStack(null).commit(); in popPrimaryNav()
[all …]
DFragmentExecuteTests.java54 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNormal() local
60 fm.beginTransaction() in executeAndPopNormal()
64 assertTrue(fm.executePendingTransactions()); in executeAndPopNormal()
69 assertEquals(1, fm.getBackStackEntryCount()); in executeAndPopNormal()
70 assertEquals(fragment, fm.findFragmentById(R.id.fragmentContainer)); in executeAndPopNormal()
71 assertEquals(fragment, fm.findFragmentByTag("1")); in executeAndPopNormal()
76 assertEquals(0, fm.getBackStackEntryCount()); in executeAndPopNormal()
77 assertNull(fm.findFragmentById(R.id.fragmentContainer)); in executeAndPopNormal()
78 assertNull(fm.findFragmentByTag("1")); in executeAndPopNormal()
85 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNothing() local
[all …]
DFragmentLifecycleTest.java73 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in basicLifecycle() local
78 fm.beginTransaction().add(strictFragment, "EmptyHeadless").commit(); in basicLifecycle()
79 executePendingTransactions(fm); in basicLifecycle()
86 fm.beginTransaction().remove(strictFragment).commit(); in basicLifecycle()
87 executePendingTransactions(fm); in basicLifecycle()
100 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in detachment() local
104 fm.beginTransaction().add(f1, "1").add(f2, "2").commit(); in detachment()
105 executePendingTransactions(fm); in detachment()
111 fm.beginTransaction().detach(f1).detach(f2).commit(); in detachment()
112 executePendingTransactions(fm); in detachment()
[all …]
DFragmentViewTests.java53 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addFragments() local
57 fm.beginTransaction().add(R.id.fragmentContainer, fragment1).addToBackStack(null).commit(); in addFragments()
63 fm.beginTransaction().add(R.id.fragmentContainer, fragment2).addToBackStack(null).commit(); in addFragments()
70 fm.beginTransaction() in addFragments()
78 fm.popBackStack(); in addFragments()
82 fm.popBackStack(); in addFragments()
87 fm.popBackStack(); in addFragments()
101 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addTwoContainers() local
104 fm.beginTransaction().add(R.id.fragmentContainer1, fragment1).addToBackStack(null).commit(); in addTwoContainers()
109 fm.beginTransaction().add(R.id.fragmentContainer2, fragment2).addToBackStack(null).commit(); in addTwoContainers()
[all …]
DFragmentAnimatorTest.java70 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addAnimators() local
74 fm.beginTransaction() in addAnimators()
87 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in removeAnimators() local
91 fm.beginTransaction().add(R.id.fragmentContainer, fragment, "1").commit(); in removeAnimators()
94 fm.beginTransaction() in removeAnimators()
108 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in showAnimatorsReordered() local
112 fm.beginTransaction().add(R.id.fragmentContainer, fragment).hide(fragment).commit(); in showAnimatorsReordered()
119 fm.beginTransaction() in showAnimatorsReordered()
140 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in showAnimatorsOrdered() local
144 fm.beginTransaction() in showAnimatorsOrdered()
[all …]
DFragmentTransactionTest.java212 FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in testRunOnCommit()
213 fm.beginTransaction().runOnCommit(new Runnable() { in testRunOnCommit()
219 fm.executePendingTransactions(); in testRunOnCommit()
228 fm.beginTransaction().runOnCommit(new Runnable() { in testRunOnCommit()
238 fm.executePendingTransactions(); in testRunOnCommit()
251 final FragmentManager fm = mActivity.getFragmentManager(); in getFragmentsOffThread() local
255 fm.beginTransaction() in getFragmentsOffThread()
261 Collection<Fragment> fragments = fm.getFragments(); in getFragmentsOffThread()
267 fm.beginTransaction() in getFragmentsOffThread()
272 assertTrue(fm.getFragments().isEmpty()); in getFragmentsOffThread()
[all …]
DPostponedTransitionTest.java57 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in setupContainer() local
59 fm.beginTransaction() in setupContainer()
73 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in replaceTransition() local
77 fm.beginTransaction() in replaceTransition()
109 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in backStackNestingLevel() local
113 fm.beginTransaction() in backStackNestingLevel()
137 fm.beginTransaction() in backStackNestingLevel()
163 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in forcedTransition1() local
175 commit[0] = fm.beginTransaction() in forcedTransition1()
181 fm.beginTransaction() in forcedTransition1()
[all …]
DNestedInflatedFragmentTest.java52 final FragmentManager fm = activity.getFragmentManager(); in inflatedChildFragment()
55 fm.beginTransaction().add(android.R.id.content, parentFragment).commitNow(); in inflatedChildFragment()
57 fm.beginTransaction().replace(android.R.id.content, new SimpleFragment()) in inflatedChildFragment()
59 fm.executePendingTransactions(); in inflatedChildFragment()
61 fm.popBackStackImmediate(); in inflatedChildFragment()
DFragmentTestUtil.java73 final ActivityTestRule<? extends Activity> rule, final FragmentManager fm) { in executePendingTransactions() argument
78 ret[0] = fm.executePendingTransactions(); in executePendingTransactions()
89 final FragmentManager fm) { in popBackStackImmediate() argument
94 ret[0] = fm.popBackStackImmediate(); in popBackStackImmediate()
106 final FragmentManager fm, final int id, final int flags) { in popBackStackImmediate() argument
111 ret[0] = fm.popBackStackImmediate(id, flags); in popBackStackImmediate()
123 final FragmentManager fm, final String name, final int flags) { in popBackStackImmediate() argument
128 ret[0] = fm.popBackStackImmediate(name, flags); in popBackStackImmediate()
DLoaderTest.java64 FragmentManager fm = activity.getFragmentManager(); in testLeak() local
66 fm.beginTransaction() in testLeak()
70 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
72 fm.beginTransaction() in testLeak()
77 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
78 fm = null; // clear it so that it can be released in testLeak()
/cts/tests/tests/text/src/android/text/style/cts/
DLineHeightSpan_StandardTest.java54 FontMetricsInt fm = new FontMetricsInt(); in testChooseLineHeight() local
56 fm.ascent = -20; in testChooseLineHeight()
57 fm.bottom = 20; in testChooseLineHeight()
58 span.chooseHeight("helloworld", 0, 9, 0, fm.descent - fm.ascent, fm); in testChooseLineHeight()
59 assertEquals(expectHeight, fm.descent - fm.ascent); in testChooseLineHeight()
61 fm.ascent = -50; in testChooseLineHeight()
62 fm.descent = 30; in testChooseLineHeight()
63 span.chooseHeight("helloworld", 0, 9, 0, fm.descent - fm.ascent, fm); in testChooseLineHeight()
64 assertEquals(expectHeight, fm.descent - fm.ascent); in testChooseLineHeight()
73 FontMetricsInt fm = new FontMetricsInt(); in testChooseLineHeightWithNegativeOriginHeight() local
[all …]
DIconMarginSpanTest.java96 FontMetricsInt fm = new FontMetricsInt(); in testChooseHeight() local
98 assertEquals(0, fm.ascent); in testChooseHeight()
99 assertEquals(0, fm.bottom); in testChooseHeight()
100 assertEquals(0, fm.descent); in testChooseHeight()
101 assertEquals(0, fm.leading); in testChooseHeight()
102 assertEquals(0, fm.top); in testChooseHeight()
104 iconMarginSpan.chooseHeight(text, 0, -1, 0, 0, fm); in testChooseHeight()
106 assertEquals(0, fm.ascent); in testChooseHeight()
107 assertEquals(HEIGHT, fm.bottom); in testChooseHeight()
108 assertEquals(HEIGHT, fm.descent); in testChooseHeight()
[all …]
DDrawableMarginSpanTest.java122 FontMetricsInt fm = new FontMetricsInt(); in testChooseHeight() local
124 assertEquals(0, fm.ascent); in testChooseHeight()
125 assertEquals(0, fm.bottom); in testChooseHeight()
126 assertEquals(0, fm.descent); in testChooseHeight()
127 assertEquals(0, fm.leading); in testChooseHeight()
128 assertEquals(0, fm.top); in testChooseHeight()
131 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); in testChooseHeight()
133 assertEquals(0, fm.ascent); in testChooseHeight()
135 assertTrue(fm.bottom > 0); in testChooseHeight()
136 assertTrue(fm.descent > 0); in testChooseHeight()
[all …]
DDynamicDrawableSpanTest.java62 FontMetricsInt fm = new FontMetricsInt(); in testGetSize() local
64 assertEquals(0, fm.ascent); in testGetSize()
65 assertEquals(0, fm.bottom); in testGetSize()
66 assertEquals(0, fm.descent); in testGetSize()
67 assertEquals(0, fm.leading); in testGetSize()
68 assertEquals(0, fm.top); in testGetSize()
71 assertEquals(rect.right, dynamicDrawableSpan.getSize(null, null, 0, 0, fm)); in testGetSize()
73 assertEquals(-rect.bottom, fm.ascent); in testGetSize()
74 assertEquals(0, fm.bottom); in testGetSize()
75 assertEquals(0, fm.descent); in testGetSize()
[all …]
DReplacementSpanTest.java53 FontMetricsInt fm) { in getSize() argument
/cts/apps/CameraITS/tests/inprog/scene2/
Dtest_dng_tags.py61 cm, fm = its.dng.compute_cm_fm(dng_illum[i], gains, ccm, cal)
64 print "Expected ForwardMatrix:\n", fm
87 print "Deltas in ForwardMatrix:\n", fm - fm_ref
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DTestActivity.java406 FragmentManager fm = getFragmentManager(); in switchToTestFragment() local
407 FragmentTransaction transaction = fm.beginTransaction(); in switchToTestFragment()
427 FragmentManager fm = getFragmentManager(); in switchToStartFragment() local
428 FragmentTransaction transaction = fm.beginTransaction(); in switchToStartFragment()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java883 Paint.FontMetrics fm = new Paint.FontMetrics();
889 p.getFontMetrics(fm);
890 assertEquals(p.ascent(), fm.ascent, 0.0f);
891 assertEquals(p.descent(), fm.descent, 0.0f);
894 p.getFontMetrics(fm);
895 assertEquals(p.ascent(), fm.ascent, 0.0f);
896 assertEquals(p.descent(), fm.descent, 0.0f);
908 Paint.FontMetrics fm = p.getFontMetrics();
909 assertEquals(p.ascent(), fm.ascent, 0.0f);
910 assertEquals(p.descent(), fm.descent, 0.0f);
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java67 Paint.FontMetricsInt fm) { in getSize() argument
/cts/tests/tests/media/assets/hls_variant/165340/
D20.ts426 7�A))fm�]_��?#!pJW�����_/�aL�꯭4}OG�7�������������������������������������������������������…
D04.ts503 �J��R�[�� ��GA�������!�}�O��\@��6)��A !j�m�fm*�6��
/cts/tests/tests/media/assets/hls_variant/344388/
D06.ts91 �$��KGd�n�ss�'�A�O�r�.M��慗��/N#H�s��)��f�G���S�pd������m�m�|-Z��j�J�.=fm�Ws4
1092 …�� 8ȜG������'vb�Á䕁��q-'$c�R�<5�����Y�� #�\ȝ��Q�?{�3�Q�uA�g���xp���P؆3�fm������lA�\C2��%.t��…
D16.ts685 …�������������aƶ�LK�:<���,Wv={,��E�P���1V�(���,���w���a��Y- ��fkn���fm�GA�������!�|���…
/cts/tests/tests/media/assets/hls_variant/765178/
D15.ts617 …���3���f�J���L��c�����G�M2`w����K������Q��fΟ|roQ����p�9���iĹF�$��fm�/���=���76E�.��up��…
945 …6a�W���Ed���A9���)|j�S�qN� �4���e ����2� U��[{�4|H�K���d۟:� eX�2�U2�fm��8[G�ܤ��I��:��…
/cts/tests/tests/media/assets/hls_variant/387360/
D12.ts942 …d��E���^:�i �[����,��Sh5��< �� ����Z��`�Ё�D��LG96)�L���u��+���HEO��fm�� �6AG���'pD��…

1234