Home
last modified time | relevance | path

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

/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.java74 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in basicLifecycle() local
79 fm.beginTransaction().add(strictFragment, "EmptyHeadless").commit(); in basicLifecycle()
80 executePendingTransactions(fm); in basicLifecycle()
90 fm.beginTransaction().remove(strictFragment).commit(); in basicLifecycle()
91 executePendingTransactions(fm); in basicLifecycle()
104 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in detachment() local
108 fm.beginTransaction().add(f1, "1").add(f2, "2").commit(); in detachment()
109 executePendingTransactions(fm); in detachment()
115 fm.beginTransaction().detach(f1).detach(f2).commit(); in detachment()
116 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.java58 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in setupContainer() local
60 fm.beginTransaction() in setupContainer()
74 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in replaceTransition() local
78 fm.beginTransaction() in replaceTransition()
110 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in backStackNestingLevel() local
114 fm.beginTransaction() in backStackNestingLevel()
138 fm.beginTransaction() in backStackNestingLevel()
164 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in forcedTransition1() local
176 commit[0] = fm.beginTransaction() in forcedTransition1()
182 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.java103 FontMetricsInt fm = new FontMetricsInt(); in testChooseHeight() local
105 assertEquals(0, fm.ascent); in testChooseHeight()
106 assertEquals(0, fm.bottom); in testChooseHeight()
107 assertEquals(0, fm.descent); in testChooseHeight()
108 assertEquals(0, fm.leading); in testChooseHeight()
109 assertEquals(0, fm.top); in testChooseHeight()
111 iconMarginSpan.chooseHeight(text, 0, -1, 0, 0, fm); in testChooseHeight()
113 assertEquals(0, fm.ascent); in testChooseHeight()
114 assertEquals(HEIGHT, fm.bottom); in testChooseHeight()
115 assertEquals(HEIGHT, fm.descent); 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 …]
DDrawableMarginSpanTest.java129 FontMetricsInt fm = new FontMetricsInt(); in testChooseHeight() local
131 assertEquals(0, fm.ascent); in testChooseHeight()
132 assertEquals(0, fm.bottom); in testChooseHeight()
133 assertEquals(0, fm.descent); in testChooseHeight()
134 assertEquals(0, fm.leading); in testChooseHeight()
135 assertEquals(0, fm.top); in testChooseHeight()
138 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); in testChooseHeight()
140 assertEquals(0, fm.ascent); in testChooseHeight()
142 assertTrue(fm.bottom > 0); in testChooseHeight()
143 assertTrue(fm.descent > 0); in testChooseHeight()
[all …]
DReplacementSpanTest.java65 FontMetricsInt fm) { in getSize() argument
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewMinimumFontMetrics.kt59 val fm = Paint.FontMetrics() in testMinimumFontHeight_SetAndGet() constant
60 fm.ascent = 1f in testMinimumFontHeight_SetAndGet()
61 fm.descent = 2f in testMinimumFontHeight_SetAndGet()
62 textView.minimumFontMetrics = fm in testMinimumFontHeight_SetAndGet()
63 assertThat(textView.minimumFontMetrics).isEqualTo(fm) in testMinimumFontHeight_SetAndGet()
70 val fm = Paint.FontMetrics() in testMinimumFontHeight_SetToLayout() constant
71 fm.ascent = 1f in testMinimumFontHeight_SetToLayout()
72 fm.descent = 2f in testMinimumFontHeight_SetToLayout()
73 textView.minimumFontMetrics = fm in testMinimumFontHeight_SetToLayout()
80 assertThat(textView.layout.minimumFontMetrics).isEqualTo(fm) in testMinimumFontHeight_SetToLayout()
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontManagerTest.java81 FontManager fm = getContext().getSystemService(FontManager.class); in getFontConfig() local
82 assertThat(fm).isNotNull(); in getFontConfig()
84 return fm.getFontConfig(); in getFontConfig()
178 private static void updateFontFile(FontManager fm, FontFileUpdateRequest ffur, in updateFontFile() argument
180 fm.updateFontFamily( in updateFontFile()
208 FontManager fm = getContext().getSystemService(FontManager.class); in fontManager_updateFontFile_negativeBaseVersion() local
209 assertThat(fm).isNotNull(); in fontManager_updateFontFile_negativeBaseVersion()
217 updateFontFile(fm, new FontFileUpdateRequest(pfd, new byte[256]), -1); in fontManager_updateFontFile_negativeBaseVersion()
226 FontManager fm = getContext().getSystemService(FontManager.class); in fontManager_updateFontFile_permissionEnforce() local
227 assertThat(fm).isNotNull(); in fontManager_updateFontFile_permissionEnforce()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0409/
Dpoc.cpp26 android::FileMap fm; in main() local
27 fm.create(FILE_NAME, tf.fd, FILE_OFFSET, FILE_LENGTH, true); in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DTestActivity.java404 FragmentManager fm = getFragmentManager(); in switchToTestFragment() local
405 FragmentTransaction transaction = fm.beginTransaction(); in switchToTestFragment()
425 FragmentManager fm = getFragmentManager(); in switchToStartFragment() local
426 FragmentTransaction transaction = fm.beginTransaction(); in switchToStartFragment()
/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java67 Paint.FontMetricsInt fm) { in getSize() argument
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java898 Paint.FontMetrics fm = new Paint.FontMetrics();
904 p.getFontMetrics(fm);
905 assertEquals(p.ascent(), fm.ascent, 0.0f);
906 assertEquals(p.descent(), fm.descent, 0.0f);
909 p.getFontMetrics(fm);
910 assertEquals(p.ascent(), fm.ascent, 0.0f);
911 assertEquals(p.descent(), fm.descent, 0.0f);
923 Paint.FontMetrics fm = p.getFontMetrics();
924 assertEquals(p.ascent(), fm.ascent, 0.0f);
925 assertEquals(p.descent(), fm.descent, 0.0f);
[all …]
/cts/tests/tests/security/res/raw/
Dcve_2018_13925.ts387 …�:�4�p��2Y�[S�xix�#Ev�5�C�D��v�{c�`��fU5�'tc�e���@}R��DTs/�D�I���ߖ:��fm^y4J�m�=,�j��z�A…
631 …U$��M t��Tӎ���ls�X�b�RLHF�\ *�i{�G�1Y(^u�~kQ5ty�!(� 4a�IP���b@�|��-r5�%R�MFy�%L5"2k*�6�%fm>�$
3394 l�8��8wy[�b�my��qn#s�&�#_��ٮF�B��s%n��fm�2�v|�f�kl�ƪ��ݹJo>緢�l,)��#�Z�-�>�?
Dcve_2019_2244.ts386 …�:�4�p��2Y�[S�xix�#Ev�5�C�D��v�{c�`��fU5�'tc�e���@}R��DTs/�D�I���ߖ:��fm^y4J�m�=,�j��z�A…
630 …U$��M t��Tӎ���ls�X�b�RLHF�\ *�i{�G�1Y(^u�~kQ5ty�!(� 4a�IP���b@�|��-r5�%R�MFy�%L5"2k*�6�%fm>�$
3395 l�8��8wy[�b�my��qn#s�&�#_��ٮF�B��s%n��fm�2�v|�f�kl�ƪ��ݹJo>緢�l,)��#�Z�-�>�?
Dcve_2019_2245.ts386 …�:�4�p��2Y�[S�xix�#Ev�5�C�D��v�{c�`��fU5�'tc�e���@}R��DTs/�D�I���ߖ:��fm^y4J�m�=,�j��z�A…
630 …U$��M t��Tӎ���ls�X�b�RLHF�\ *�i{�G�1Y(^u�~kQ5ty�!(� 4a�IP���b@�|��-r5�%R�MFy�%L5"2k*�6�%fm>�$