/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...] |
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...] |
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...] |
/external/webkit/Source/WebCore/platform/graphics/qt/ |
SimpleFontDataQt.cpp | 50 QFontMetricsF fm(m_platformData.font()); 54 float descent = fm.descent() + 1; 55 float ascent = fm.ascent(); 57 float lineSpacing = fm.lineSpacing(); 72 m_fontMetrics.setXHeight(fm.xHeight()); 74 m_spaceWidth = fm.width(QLatin1Char(' ')); 91 QFontMetrics fm(m_platformData.font()); 92 m_avgCharWidth = fm.averageCharWidth(); 93 m_maxCharWidth = fm.maxWidth();
|
/external/valgrind/main/coregrind/ |
m_wordfm.c | 462 static void stackClear(WordFM* fm) 465 tl_assert(fm); 467 fm->nodeStack[i] = NULL; 468 fm->numStack[i] = 0; 470 fm->stackTop = 0; 474 static inline void stackPush(WordFM* fm, AvlNode* n, Int i) 476 tl_assert(fm->stackTop < WFM_STKMAX); 478 fm->nodeStack[fm->stackTop] = n; 479 fm-> numStack[fm->stackTop] = i 584 WordFM* fm = alloc_nofail(cc, sizeof(WordFM)); local 849 WordFM* fm; member in struct:_WordBag [all...] |
/frameworks/base/core/java/android/text/style/ |
IconMarginSpan.java | 57 Paint.FontMetricsInt fm) { 61 int need = ht - (v + fm.descent - fm.ascent - istartv); 63 fm.descent += need; 65 need = ht - (v + fm.bottom - fm.top - istartv); 67 fm.bottom += need;
|
DrawableMarginSpan.java | 60 Paint.FontMetricsInt fm) { 64 int need = ht - (v + fm.descent - fm.ascent - istartv); 66 fm.descent += need; 68 need = ht - (v + fm.bottom - fm.top - istartv); 70 fm.bottom += need;
|
DynamicDrawableSpan.java | 79 Paint.FontMetricsInt fm) { 83 if (fm != null) { 84 fm.ascent = -rect.bottom; 85 fm.descent = 0; 87 fm.top = fm.ascent; 88 fm.bottom = 0;
|
LineHeightSpan.java | 29 Paint.FontMetricsInt fm); 34 Paint.FontMetricsInt fm, TextPaint paint);
|
/external/valgrind/main/include/ |
pub_tool_wordfm.h | 84 /* Free up the FM. If kFin is non-NULL, it is applied to keys 85 before the FM is deleted; ditto with vFin for vals. */ 88 /* Add (k,v) to fm. If a binding for k already exists, it is updated 92 Bool VG_(addToFM) ( WordFM* fm, UWord k, UWord v ); 94 // Delete key from fm, returning associated key and val if found 95 Bool VG_(delFromFM) ( WordFM* fm, 98 // Look up in fm, assigning found key & val at spec'd addresses 99 Bool VG_(lookupFM) ( WordFM* fm, 105 // values are returned in *kMinP and *kMaxP. It follows that if fm is 118 Bool VG_(findBoundsFM)( WordFM* fm, [all...] |
/external/webkit/Source/WebCore/platform/qt/ |
FileChooserQt.cpp | 41 QFontMetrics fm(f.font()); 42 string = fm.elidedText(fname, Qt::ElideLeft, width);
|
/hardware/ti/wpan/tools/FM/FmRadioIf/ |
Android.mk | 22 src/java/com/ti/fm/IFmRadio.aidl 27 LOCAL_MODULE := com.ti.fm.fmradioif.xml
|
/external/valgrind/main/cachegrind/ |
cg_merge.c | 73 /* Free up the FM. If kFin is non-NULL, it is applied to keys 74 before the FM is deleted; ditto with vFin for vals. */ 77 /* Add (k,v) to fm. If a binding for k already exists, it is updated 80 void addToFM ( WordFM* fm, Word k, Word v ); 82 // Delete key from fm, returning associated val if found 83 Bool delFromFM ( WordFM* fm, /*OUT*/Word* oldV, Word key ); 85 // Look up in fm, assigning found val at spec'd address 86 Bool lookupFM ( WordFM* fm, /*OUT*/Word* valP, Word key ); 88 Word sizeFM ( WordFM* fm ); 90 // set up FM for iteratio 1403 WordFM* fm = alloc_nofail(sizeof(WordFM)); local [all...] |
/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();
|
/frameworks/base/core/java/android/content/res/ |
StringBlock.java | 409 Paint.FontMetricsInt fm) { 411 chooseHeight(text, start, end, spanstartv, v, fm, null); 416 Paint.FontMetricsInt fm, TextPaint paint) { 422 if (fm.bottom - fm.top < size) { 423 fm.top = fm.bottom - size; 424 fm.ascent = fm.ascent - size; 442 int need = (int) Math.ceil(-fm.top * sProportion) [all...] |
/external/icu4c/samples/layout/ |
gnomeglue.cpp | 59 GnomeFontMap *fm = (GnomeFontMap *) fontMap; local 61 delete fm;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowFragmentPagerAdapter.java | 19 public void __constructor__(FragmentManager fm) { 20 this.fragmentManager = fm;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentMenuFragment.java | 53 FragmentManager fm = getChildFragmentManager(); local 54 FragmentTransaction ft = fm.beginTransaction(); 55 mFragment1 = fm.findFragmentByTag("f1"); 60 mFragment2 = fm.findFragmentByTag("f2");
|
FragmentMenu.java | 55 FragmentManager fm = getFragmentManager(); local 56 FragmentTransaction ft = fm.beginTransaction(); 57 mFragment1 = fm.findFragmentByTag("f1"); 62 mFragment2 = fm.findFragmentByTag("f2");
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
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");
|
FragmentStackFragmentSupport.java | 70 FragmentManager fm = getChildFragmentManager(); 71 if (fm.getBackStackEntryCount() > 0) { 72 fm.popBackStack(fm.getBackStackEntryAt(0).getId(),
|
/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());
|
/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/core/java/android/text/ |
MeasuredText.java | 153 float addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) { 154 if (fm != null) { 155 paint.getFontMetricsInt(fm); 185 Paint.FontMetricsInt fm) { 204 wid = addStyleRun(workPaint, len, fm); 208 mTextStart + mPos + len, fm); 216 if (fm != null) { 218 fm.ascent += workPaint.baselineShift; 219 fm.top += workPaint.baselineShift; 221 fm.descent += workPaint.baselineShift [all...] |