/libcore/luni/src/test/java/libcore/java/text/ |
OldFormatTest.java | 55 Format fm = new MockFormat(); local 56 Format fmc = (Format) fm.clone(); 57 assertEquals(fm.getClass(), fmc.getClass());
|
/external/icu4c/samples/layout/ |
gdiglue.cpp | 63 GDIFontMap *fm = (GDIFontMap *) fontMap; local 65 delete fm;
|
gnomeglue.cpp | 59 GnomeFontMap *fm = (GnomeFontMap *) fontMap; local 61 delete fm;
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
TypefaceTest.java | 79 Paint.FontMetrics fm = p.getFontMetrics(); local 81 ascent = fm.ascent; 82 descent = fm.descent; 84 assertTrue("fontMetrics", fm.ascent == ascent); 85 assertTrue("fontMetrics", fm.descent == descent);
|
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/ |
SharedLibraryMain.java | 59 final FragmentManager fm = activity.getFragmentManager(); local 61 Fragment curDialog = fm.findFragmentByTag(dialogTag); 67 fm.beginTransaction().remove(curDialog).commitAllowingStateLoss(); 76 fm.beginTransaction().add(curDialog, dialogTag).commitAllowingStateLoss();
|
/cts/tests/tests/text/src/android/text/style/cts/ |
DynamicDrawableSpanTest.java | 43 FontMetricsInt fm = new FontMetricsInt(); local 45 assertEquals(0, fm.ascent); 46 assertEquals(0, fm.bottom); 47 assertEquals(0, fm.descent); 48 assertEquals(0, fm.leading); 49 assertEquals(0, fm.top); 52 assertEquals(rect.right, dynamicDrawableSpan.getSize(null, null, 0, 0, fm)); 54 assertEquals(-rect.bottom, fm.ascent); 55 assertEquals(0, fm.bottom); 56 assertEquals(0, fm.descent) [all...] |
DrawableMarginSpanTest.java | 101 FontMetricsInt fm = new FontMetricsInt(); local 103 assertEquals(0, fm.ascent); 104 assertEquals(0, fm.bottom); 105 assertEquals(0, fm.descent); 106 assertEquals(0, fm.leading); 107 assertEquals(0, fm.top); 110 drawableMarginSpan.chooseHeight(text, 0, text.getSpanEnd(drawableMarginSpan), 0, 0, fm); 112 assertEquals(0, fm.ascent); 114 assertTrue(fm.bottom > 0); 115 assertTrue(fm.descent > 0) [all...] |
IconMarginSpanTest.java | 82 FontMetricsInt fm = new FontMetricsInt(); local 84 assertEquals(0, fm.ascent); 85 assertEquals(0, fm.bottom); 86 assertEquals(0, fm.descent); 87 assertEquals(0, fm.leading); 88 assertEquals(0, fm.top); 90 iconMarginSpan.chooseHeight(text, 0, -1, 0, 0, fm); 92 assertEquals(0, fm.ascent); 93 assertEquals(HEIGHT, fm.bottom); 94 assertEquals(HEIGHT, fm.descent) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentHideShow.java | 45 FragmentManager fm = getFragmentManager(); local 46 addShowHideListener(R.id.frag1hide, fm.findFragmentById(R.id.fragment1)); 47 addShowHideListener(R.id.frag2hide, fm.findFragmentById(R.id.fragment2));
|
FragmentMenu.java | 55 FragmentManager fm = getFragmentManager(); local 56 FragmentTransaction ft = fm.beginTransaction(); 57 mFragment1 = fm.findFragmentByTag("f1"); 62 mFragment2 = fm.findFragmentByTag("f2");
|
FragmentMenuFragment.java | 53 FragmentManager fm = getChildFragmentManager(); local 54 FragmentTransaction ft = fm.beginTransaction(); 55 mFragment1 = fm.findFragmentByTag("f1"); 60 mFragment2 = fm.findFragmentByTag("f2");
|
FragmentRetainInstance.java | 77 FragmentManager fm = getFragmentManager(); local 80 mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 87 fm.beginTransaction().add(mWorkFragment, "work").commit();
|
LoaderCursor.java | 52 FragmentManager fm = getFragmentManager(); local 55 if (fm.findFragmentById(android.R.id.content) == null) { 57 fm.beginTransaction().add(android.R.id.content, list).commit();
|
LoaderRetained.java | 54 FragmentManager fm = getFragmentManager(); local 57 if (fm.findFragmentById(android.R.id.content) == null) { 59 fm.beginTransaction().add(android.R.id.content, list).commit();
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentHideShowSupport.java | 46 FragmentManager fm = getSupportFragmentManager(); local 47 addShowHideListener(R.id.frag1hide, fm.findFragmentById(R.id.fragment1)); 48 addShowHideListener(R.id.frag2hide, fm.findFragmentById(R.id.fragment2));
|
FragmentMenuFragmentSupport.java | 54 FragmentManager fm = getChildFragmentManager(); local 55 FragmentTransaction ft = fm.beginTransaction(); 56 mFragment1 = fm.findFragmentByTag("f1"); 61 mFragment2 = fm.findFragmentByTag("f2");
|
FragmentMenuSupport.java | 57 FragmentManager fm = getSupportFragmentManager(); local 58 FragmentTransaction ft = fm.beginTransaction(); 59 mFragment1 = fm.findFragmentByTag("f1"); 64 mFragment2 = fm.findFragmentByTag("f2");
|
FragmentRetainInstanceSupport.java | 78 FragmentManager fm = getFragmentManager(); local 81 mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 88 fm.beginTransaction().add(mWorkFragment, "work").commit();
|
LoaderCursorSupport.java | 55 FragmentManager fm = getSupportFragmentManager(); local 58 if (fm.findFragmentById(android.R.id.content) == null) { 60 fm.beginTransaction().add(android.R.id.content, list).commit();
|
LoaderRetainedSupport.java | 54 FragmentManager fm = getSupportFragmentManager(); local 57 if (fm.findFragmentById(android.R.id.content) == null) { 59 fm.beginTransaction().add(android.R.id.content, list).commit();
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
AlphaBitmap.java | 56 Paint.FontMetrics fm = p.getFontMetrics(); local 57 c.drawText("Alpha", x/2, (y-fm.ascent)/2, p);
|
ColorFilters.java | 90 Paint.FontMetrics fm = mPaint.getFontMetrics(); local 91 mPaintTextOffset = (fm.descent + fm.ascent) * 0.5f;
|
/external/skia/gm/ |
poly2poly.cpp | 46 SkPaint::FontMetrics fm; local 47 paint->getFontMetrics(&fm); 51 SkScalar y = D/2 - (fm.fAscent + fm.fDescent)/2;
|
/external/icu4c/layout/ |
LookupProcessor.cpp | 219 FeatureMap fm = featureMap[f]; local 223 if (requiredFeatureTag == fm.tag) { 224 count += selectLookups(requiredFeatureTable, fm.mask, order); 244 if (featureTag == fm.tag) { 245 count += selectLookups(featureTable, fm.mask, order + count); 270 if (featureTag == fm.tag) { 271 order += selectLookups(featureTable, fm.mask, order);
|
/external/webkit/Source/WebKit/android/plugins/ |
ANPPaintInterface.cpp | 162 SkPaint::FontMetrics fm; local 163 SkScalar spacing = paint->getFontMetrics(&fm); 165 metrics->fTop = SkScalarToFloat(fm.fTop); 166 metrics->fAscent = SkScalarToFloat(fm.fAscent); 167 metrics->fDescent = SkScalarToFloat(fm.fDescent); 168 metrics->fBottom = SkScalarToFloat(fm.fBottom); 169 metrics->fLeading = SkScalarToFloat(fm.fLeading);
|