Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java57 Paint.FontMetricsInt fm) { in chooseHeight() argument
61 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
63 fm.descent += need; in chooseHeight()
65 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight()
67 fm.bottom += need; in chooseHeight()
DDrawableMarginSpan.java60 Paint.FontMetricsInt fm) { in chooseHeight() argument
64 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
66 fm.descent += need; in chooseHeight()
68 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight()
70 fm.bottom += need; in chooseHeight()
DDynamicDrawableSpan.java79 Paint.FontMetricsInt fm) { in getSize() argument
83 if (fm != null) { in getSize()
84 fm.ascent = -rect.bottom; in getSize()
85 fm.descent = 0; in getSize()
87 fm.top = fm.ascent; in getSize()
88 fm.bottom = 0; in getSize()
DLineHeightSpan.java29 Paint.FontMetricsInt fm); in chooseHeight() argument
34 Paint.FontMetricsInt fm, TextPaint paint); in chooseHeight() argument
DReplacementSpan.java27 Paint.FontMetricsInt fm); in getSize() argument
/frameworks/base/core/java/android/content/res/
DStringBlock.java409 Paint.FontMetricsInt fm) { in chooseHeight() argument
411 chooseHeight(text, start, end, spanstartv, v, fm, null); in chooseHeight()
416 Paint.FontMetricsInt fm, TextPaint paint) { in chooseHeight() argument
422 if (fm.bottom - fm.top < size) { in chooseHeight()
423 fm.top = fm.bottom - size; in chooseHeight()
424 fm.ascent = fm.ascent - size; in chooseHeight()
442 int need = (int) Math.ceil(-fm.top * sProportion); in chooseHeight()
444 if (size - fm.descent >= need) { in chooseHeight()
449 fm.top = fm.bottom - size; in chooseHeight()
450 fm.ascent = fm.descent - size; in chooseHeight()
[all …]
/frameworks/base/core/java/android/text/
DStaticLayout.java169 Paint.FontMetricsInt fm = mFontMetricsInt; in generate() local
273 measured.addStyleRun(paint, spanLen, fm); in generate()
281 measured.addStyleRun(paint, spans, spanLen, fm); in generate()
284 int fmTop = fm.top; in generate()
285 int fmBottom = fm.bottom; in generate()
286 int fmAscent = fm.ascent; in generate()
287 int fmDescent = fm.descent; in generate()
403 above = fm.ascent; in generate()
404 below = fm.descent; in generate()
405 top = fm.top; in generate()
[all …]
DMeasuredText.java153 float addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) { in addStyleRun() argument
154 if (fm != null) { in addStyleRun()
155 paint.getFontMetricsInt(fm); in addStyleRun()
185 Paint.FontMetricsInt fm) { in addStyleRun() argument
204 wid = addStyleRun(workPaint, len, fm); in addStyleRun()
208 mTextStart + mPos + len, fm); in addStyleRun()
216 if (fm != null) { in addStyleRun()
218 fm.ascent += workPaint.baselineShift; in addStyleRun()
219 fm.top += workPaint.baselineShift; in addStyleRun()
221 fm.descent += workPaint.baselineShift; in addStyleRun()
[all …]
DBoringLayout.java300 Metrics fm = metrics; in isBoring() local
301 if (fm == null) { in isBoring()
302 fm = new Metrics(); in isBoring()
308 fm.width = (int) FloatMath.ceil(line.metrics(fm)); in isBoring()
311 return fm; in isBoring()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteDialogPresenter.java45 final FragmentManager fm = activity.getFragmentManager(); in showDialogFragment() local
49 if (fm.findFragmentByTag(CHOOSER_FRAGMENT_TAG) != null) { in showDialogFragment()
56 f.show(fm, CHOOSER_FRAGMENT_TAG); in showDialogFragment()
59 if (fm.findFragmentByTag(CONTROLLER_FRAGMENT_TAG) != null) { in showDialogFragment()
64 f.show(fm, CONTROLLER_FRAGMENT_TAG); in showDialogFragment()
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
DSharedLibraryMain.java59 final FragmentManager fm = activity.getFragmentManager(); in ensureVersion() local
61 Fragment curDialog = fm.findFragmentByTag(dialogTag); in ensureVersion()
67 fm.beginTransaction().remove(curDialog).commitAllowingStateLoss(); in ensureVersion()
76 fm.beginTransaction().add(curDialog, dialogTag).commitAllowingStateLoss(); in ensureVersion()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DTypefaceTest.java79 Paint.FontMetrics fm = p.getFontMetrics(); in testUniformY() local
81 ascent = fm.ascent; in testUniformY()
82 descent = fm.descent; in testUniformY()
84 assertTrue("fontMetrics", fm.ascent == ascent); in testUniformY()
85 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DSaveFragment.java52 public static void show(FragmentManager fm, String mimeType, String displayName) { in show() argument
60 final FragmentTransaction ft = fm.beginTransaction(); in show()
65 public static SaveFragment get(FragmentManager fm) { in get() argument
66 return (SaveFragment) fm.findFragmentByTag(TAG); in get()
DCreateDirectoryFragment.java49 public static void show(FragmentManager fm) { in show() argument
51 dialog.show(fm, TAG_CREATE_DIRECTORY); in show()
DDocumentsActivity.java528 final FragmentManager fm = getFragmentManager(); in onPrepareOptionsMenu() local
589 SaveFragment.get(fm).setSaveEnabled(cwd != null && cwd.isCreateSupported()); in onPrepareOptionsMenu()
814 final FragmentManager fm = getFragmentManager(); in onCurrentDirectoryChanged() local
823 RecentsCreateFragment.show(fm); in onCurrentDirectoryChanged()
825 DirectoryFragment.showRecentsOpen(fm, anim); in onCurrentDirectoryChanged()
836 DirectoryFragment.showSearch(fm, root, mState.currentSearch, anim); in onCurrentDirectoryChanged()
839 DirectoryFragment.showNormal(fm, root, cwd, anim); in onCurrentDirectoryChanged()
845 final SaveFragment save = SaveFragment.get(fm); in onCurrentDirectoryChanged()
851 final RootsFragment roots = RootsFragment.get(fm); in onCurrentDirectoryChanged()
952 final FragmentManager fm = getFragmentManager(); in onDocumentPicked() local
[all …]
DRootsFragment.java69 public static void show(FragmentManager fm, Intent includeApps) { in show() argument
76 final FragmentTransaction ft = fm.beginTransaction(); in show()
81 public static RootsFragment get(FragmentManager fm) { in get() argument
82 return (RootsFragment) fm.findFragmentById(R.id.container_roots); in get()
DDirectoryFragment.java132 public static void showNormal(FragmentManager fm, RootInfo root, DocumentInfo doc, int anim) { in showNormal() argument
133 show(fm, TYPE_NORMAL, root, doc, null, anim); in showNormal()
136 public static void showSearch(FragmentManager fm, RootInfo root, String query, int anim) { in showSearch() argument
137 show(fm, TYPE_SEARCH, root, null, query, anim); in showSearch()
140 public static void showRecentsOpen(FragmentManager fm, int anim) { in showRecentsOpen() argument
141 show(fm, TYPE_RECENT_OPEN, null, null, null, anim); in showRecentsOpen()
144 private static void show(FragmentManager fm, int type, RootInfo root, DocumentInfo doc, in show() argument
152 final FragmentTransaction ft = fm.beginTransaction(); in show()
181 public static DirectoryFragment get(FragmentManager fm) { in get() argument
183 return (DirectoryFragment) fm.findFragmentById(R.id.container_directory); in get()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteButton.java223 final FragmentManager fm = getFragmentManager(); in showDialog() local
224 if (fm == null) { in showDialog()
230 if (fm.findFragmentByTag(CHOOSER_FRAGMENT_TAG) != null) { in showDialog()
237 f.show(fm, CHOOSER_FRAGMENT_TAG); in showDialog()
239 if (fm.findFragmentByTag(CONTROLLER_FRAGMENT_TAG) != null) { in showDialog()
245 f.show(fm, CONTROLLER_FRAGMENT_TAG); in showDialog()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DPhotoPagerAdapter.java41 Context context, android.support.v4.app.FragmentManager fm, Cursor c, in PhotoPagerAdapter() argument
43 super(context, fm, c); in PhotoPagerAdapter()
DBaseCursorPagerAdapter.java54 public BaseCursorPagerAdapter(Context context, FragmentManager fm, Cursor c) { in BaseCursorPagerAdapter() argument
55 super(fm); in BaseCursorPagerAdapter()
DBaseFragmentPagerAdapter.java57 public BaseFragmentPagerAdapter(android.support.v4.app.FragmentManager fm) { in BaseFragmentPagerAdapter() argument
58 mFragmentManager = fm; in BaseFragmentPagerAdapter()
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java91 FontMetricsInt fm = mTextPaint.getFontMetricsInt(); in Watermark() local
93 mTextHeight = fm.descent - fm.ascent; in Watermark()
/frameworks/support/v4/java/android/support/v4/app/
DFragmentPagerAdapter.java69 public FragmentPagerAdapter(FragmentManager fm) { in FragmentPagerAdapter() argument
70 mFragmentManager = fm; in FragmentPagerAdapter()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentPagerAdapter.java73 public FragmentPagerAdapter(FragmentManager fm) { in FragmentPagerAdapter() argument
74 mFragmentManager = fm; in FragmentPagerAdapter()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java284 FragmentManager fm = mActivity.getFragmentManager(); in updateCrumbs() local
285 int numEntries = fm.getBackStackEntryCount(); in updateCrumbs()
291 : fm.getBackStackEntryAt(i - numPreEntries); in updateCrumbs()

12