/frameworks/base/core/java/android/text/style/ |
D | IconMarginSpan.java | 57 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()
|
D | DrawableMarginSpan.java | 60 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()
|
D | DynamicDrawableSpan.java | 79 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()
|
D | LineHeightSpan.java | 29 Paint.FontMetricsInt fm); in chooseHeight() argument 34 Paint.FontMetricsInt fm, TextPaint paint); in chooseHeight() argument
|
D | ReplacementSpan.java | 27 Paint.FontMetricsInt fm); in getSize() argument
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 409 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/ |
D | StaticLayout.java | 169 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 …]
|
D | MeasuredText.java | 153 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 …]
|
D | BoringLayout.java | 300 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/ |
D | MediaRouteDialogPresenter.java | 45 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/ |
D | SharedLibraryMain.java | 59 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/ |
D | TypefaceTest.java | 79 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/ |
D | SaveFragment.java | 52 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()
|
D | CreateDirectoryFragment.java | 49 public static void show(FragmentManager fm) { in show() argument 51 dialog.show(fm, TAG_CREATE_DIRECTORY); in show()
|
D | DocumentsActivity.java | 528 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 …]
|
D | RootsFragment.java | 69 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()
|
D | DirectoryFragment.java | 132 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/ |
D | MediaRouteButton.java | 223 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/ |
D | PhotoPagerAdapter.java | 41 Context context, android.support.v4.app.FragmentManager fm, Cursor c, in PhotoPagerAdapter() argument 43 super(context, fm, c); in PhotoPagerAdapter()
|
D | BaseCursorPagerAdapter.java | 54 public BaseCursorPagerAdapter(Context context, FragmentManager fm, Cursor c) { in BaseCursorPagerAdapter() argument 55 super(fm); in BaseCursorPagerAdapter()
|
D | BaseFragmentPagerAdapter.java | 57 public BaseFragmentPagerAdapter(android.support.v4.app.FragmentManager fm) { in BaseFragmentPagerAdapter() argument 58 mFragmentManager = fm; in BaseFragmentPagerAdapter()
|
/frameworks/base/services/java/com/android/server/wm/ |
D | Watermark.java | 91 FontMetricsInt fm = mTextPaint.getFontMetricsInt(); in Watermark() local 93 mTextHeight = fm.descent - fm.ascent; in Watermark()
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | FragmentPagerAdapter.java | 69 public FragmentPagerAdapter(FragmentManager fm) { in FragmentPagerAdapter() argument 70 mFragmentManager = fm; in FragmentPagerAdapter()
|
/frameworks/support/v13/java/android/support/v13/app/ |
D | FragmentPagerAdapter.java | 73 public FragmentPagerAdapter(FragmentManager fm) { in FragmentPagerAdapter() argument 74 mFragmentManager = fm; in FragmentPagerAdapter()
|
/frameworks/base/core/java/android/app/ |
D | FragmentBreadCrumbs.java | 284 FragmentManager fm = mActivity.getFragmentManager(); in updateCrumbs() local 285 int numEntries = fm.getBackStackEntryCount(); in updateCrumbs() 291 : fm.getBackStackEntryAt(i - numPreEntries); in updateCrumbs()
|