/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 28 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) { in setupFontMetrics() argument 30 if (fm != null) { in setupFontMetrics() 31 sWorkPaint.getFontMetricsInt(fm); in setupFontMetrics() 34 final int textHeight = fm.descent - fm.ascent; in setupFontMetrics() 36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; in setupFontMetrics() 37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2) in setupFontMetrics() 39 fm.top = fm.ascent; in setupFontMetrics() 40 fm.bottom = fm.descent; in setupFontMetrics() 45 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) { in getSize() argument 46 setupFontMetrics(fm, paint); in getSize()
|
/frameworks/base/core/java/android/text/style/ |
D | LineHeightSpan.java | 46 Paint.FontMetricsInt fm); in chooseHeight() argument 66 Paint.FontMetricsInt fm, TextPaint paint); in chooseHeight() argument 141 @NonNull Paint.FontMetricsInt fm) { in chooseHeight() argument 142 final int originHeight = fm.descent - fm.ascent; in chooseHeight() 148 fm.descent = Math.round(fm.descent * ratio); in chooseHeight() 149 fm.ascent = fm.descent - mHeight; in chooseHeight()
|
D | IconMarginSpan.java | 97 Paint.FontMetricsInt fm) { in chooseHeight() argument 101 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() 103 fm.descent += need; in chooseHeight() 106 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight() 108 fm.bottom += need; in chooseHeight()
|
D | DrawableMarginSpan.java | 100 @NonNull Paint.FontMetricsInt fm) { in chooseHeight() argument 104 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() 106 fm.descent += need; in chooseHeight() 109 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight() 111 fm.bottom += need; in chooseHeight()
|
D | DynamicDrawableSpan.java | 143 @Nullable Paint.FontMetricsInt fm) { in getSize() argument 147 if (fm != null) { in getSize() 148 fm.ascent = -rect.bottom; in getSize() 149 fm.descent = 0; in getSize() 151 fm.top = fm.ascent; in getSize() 152 fm.bottom = 0; in getSize()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 451 Paint.FontMetricsInt fm) { in chooseHeight() argument 453 chooseHeight(text, start, end, spanstartv, v, fm, null); in chooseHeight() 458 Paint.FontMetricsInt fm, TextPaint paint) { in chooseHeight() argument 464 if (fm.bottom - fm.top < size) { in chooseHeight() 465 fm.top = fm.bottom - size; in chooseHeight() 466 fm.ascent = fm.ascent - size; in chooseHeight() 484 int need = (int) Math.ceil(-fm.top * sProportion); in chooseHeight() 486 if (size - fm.descent >= need) { in chooseHeight() 491 fm.top = fm.bottom - size; in chooseHeight() 492 fm.ascent = fm.descent - size; in chooseHeight() [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoOutput/ |
D | device_for_strategies.pfw | 25 fm = 0 53 fm = 0 81 fm = 0 109 fm = 0 137 fm = 0 165 fm = 0 193 fm = 0 221 fm = 0 249 fm = 0
|
/frameworks/base/core/java/android/text/ |
D | StaticLayout.java | 623 Paint.FontMetricsInt fm = b.mFontMetricsInt; in generate() 827 fm.top = fmCache[fmCacheIndex * 4 + 0]; in generate() 828 fm.bottom = fmCache[fmCacheIndex * 4 + 1]; in generate() 829 fm.ascent = fmCache[fmCacheIndex * 4 + 2]; in generate() 830 fm.descent = fmCache[fmCacheIndex * 4 + 3]; in generate() 833 if (fm.top < fmTop) { in generate() 834 fmTop = fm.top; in generate() 836 if (fm.ascent < fmAscent) { in generate() 837 fmAscent = fm.ascent; in generate() 839 if (fm.descent > fmDescent) { in generate() [all …]
|
D | BoringLayout.java | 354 Metrics fm = metrics; in isBoring() local 355 if (fm == null) { in isBoring() 356 fm = new Metrics(); in isBoring() 358 fm.reset(); in isBoring() 366 fm.width = (int) Math.ceil(line.metrics(fm)); in isBoring() 369 return fm; in isBoring()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureMetricsLogger.java | 97 @Nullable ComponentName app, @NonNull FlushMetrics fm, in writeSessionFlush() argument 101 ComponentName.flattenToShortString(app), fm.sessionStarted, fm.sessionFinished, in writeSessionFlush() 102 fm.viewAppearedCount, fm.viewDisappearedCount, fm.viewTextChangedCount, in writeSessionFlush()
|
/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/services/core/jni/BroadcastRadio/ |
D | regions.cpp | 151 if (0 == (mFmDeemphasis & bandConfig.ext.fm.deemphasis)) return false; in fitsInsideBand() 162 auto&& fm = config.ext.fm; in withConfig() 163 fm.deemphasis = mFmDeemphasis; in withConfig() 164 fm.rds = static_cast<Rds>(mFmRds & fm.rds); in withConfig()
|
D | convert.cpp | 425 auto& fm = config.ext.fm; in BandDescriptorFromHal() local 429 fm.stereo, fm.rds != Rds::NONE, fm.ta, fm.af, fm.ea)); in BandDescriptorFromHal() 479 auto& fm = config.ext.fm; in BandConfigToHal() local 480 fm.deemphasis = DeemphasisForRegion(region); in BandConfigToHal() 481 fm.stereo = env->GetBooleanField(jConfig, gjni.FmBandConfig.stereo); in BandConfigToHal() 482 fm.rds = RdsForRegion(env->GetBooleanField(jConfig, gjni.FmBandConfig.rds), region); in BandConfigToHal() 483 fm.ta = env->GetBooleanField(jConfig, gjni.FmBandConfig.ta); in BandConfigToHal() 484 fm.af = env->GetBooleanField(jConfig, gjni.FmBandConfig.af); in BandConfigToHal() 485 fm.ea = env->GetBooleanField(jConfig, gjni.FmBandConfig.ea); in BandConfigToHal()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/ |
D | device_for_product_strategies.pfw | 26 fm = 0 71 fm = 0 118 fm = 0 165 fm = 0 210 fm = 0 257 fm = 0 303 fm = 0 349 fm = 0 396 fm = 0 442 fm = 0 [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/listview/ |
D | CompatListActivity.java | 30 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 31 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate() 34 fm.beginTransaction().add(android.R.id.content, listFragment).commit(); in onCreate()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/ |
D | device_for_product_strategies.pfw | 26 fm = 0 71 fm = 0 118 fm = 0 164 fm = 0 217 fm = 0 263 fm = 0 316 fm = 0 369 fm = 0 423 fm = 0 476 fm = 0 [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | ShadowGridActivity.java | 39 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 40 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate() 45 fm.beginTransaction().add(android.R.id.content, listFragment).commit(); in onCreate()
|
D | ClippedListActivity.java | 52 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 53 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate() 58 fm.beginTransaction().add(R.id.app_bar_layout, listFragment).commit(); in onCreate()
|
D | MainActivity.java | 72 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 73 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate() 78 fm.beginTransaction().add(android.R.id.content, listFragment).commit(); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceTest.java | 97 Paint.FontMetrics fm = p.getFontMetrics(); in testUniformY() local 99 ascent = fm.ascent; in testUniformY() 100 descent = fm.descent; in testUniformY() 102 assertTrue("fontMetrics", fm.ascent == ascent); in testUniformY() 103 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvCompatListActivity.java | 53 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 54 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate() 58 fm.beginTransaction().add(android.R.id.content, fragment).commit(); in onCreate()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | ShadowGridActivity.java | 47 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 48 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate() 53 fm.beginTransaction().add(android.R.id.content, listFragment).commit(); in onCreate()
|
D | ListActivityBase.java | 45 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 48 fm.beginTransaction().add(R.id.list_fragment_container, listView).commit(); in onCreate()
|
/frameworks/base/core/java/android/app/ |
D | RecoverableSecurityException.java | 147 final FragmentManager fm = activity.getFragmentManager(); in showAsDialog() local 148 final FragmentTransaction ft = fm.beginTransaction(); in showAsDialog() 149 final Fragment old = fm.findFragmentByTag(tag); in showAsDialog()
|