/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/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/content/res/ |
D | StringBlock.java | 536 Paint.FontMetricsInt fm) { in chooseHeight() argument 538 chooseHeight(text, start, end, spanstartv, v, fm, null); in chooseHeight() 543 Paint.FontMetricsInt fm, TextPaint paint) { in chooseHeight() argument 549 if (fm.bottom - fm.top < size) { in chooseHeight() 550 fm.top = fm.bottom - size; in chooseHeight() 551 fm.ascent = fm.ascent - size; in chooseHeight() 569 int need = (int) Math.ceil(-fm.top * sProportion); in chooseHeight() 571 if (size - fm.descent >= need) { in chooseHeight() 576 fm.top = fm.bottom - size; in chooseHeight() 577 fm.ascent = fm.descent - size; in chooseHeight() [all …]
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureMetricsLogger.java | 72 @NonNull FlushMetrics fm, @NonNull ContentCaptureOptions options, in writeSessionFlush() argument 77 /* componentName= */ null, fm.sessionStarted, fm.sessionFinished, in writeSessionFlush() 78 fm.viewAppearedCount, fm.viewDisappearedCount, fm.viewTextChangedCount, in writeSessionFlush()
|
/frameworks/base/core/java/android/text/ |
D | StaticLayout.java | 783 Paint.FontMetricsInt fm = b.mFontMetricsInt; in generate() 1013 fm.top = fmCache[fmCacheIndex * 4 + 0]; in generate() 1014 fm.bottom = fmCache[fmCacheIndex * 4 + 1]; in generate() 1015 fm.ascent = fmCache[fmCacheIndex * 4 + 2]; in generate() 1016 fm.descent = fmCache[fmCacheIndex * 4 + 3]; in generate() 1019 if (fm.top < fmTop) { in generate() 1020 fmTop = fm.top; in generate() 1022 if (fm.ascent < fmAscent) { in generate() 1023 fmAscent = fm.ascent; in generate() 1025 if (fm.descent > fmDescent) { in generate() [all …]
|
D | BoringLayout.java | 585 Metrics fm = metrics; in isBoring() local 586 if (fm == null) { in isBoring() 587 fm = new Metrics(); in isBoring() 589 fm.reset(); in isBoring() 594 fm.set(minimumFontMetrics); in isBoring() 598 fm.top = Math.min(fm.top, fm.ascent); in isBoring() 599 fm.bottom = Math.max(fm.bottom, fm.descent); in isBoring() 609 fm.width = (int) Math.ceil(line.metrics(fm, fm.mDrawingBounds, false, null)); in isBoring() 612 return fm; in isBoring()
|
/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/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/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 | 34 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 35 Fragment fragment = fm.findFragmentById(containerViewId); in onCreate() 39 fm.beginTransaction().add(containerViewId, 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/recyclerview/ |
D | RvCompatListActivity.java | 54 FragmentManager fm = getSupportFragmentManager(); in onCreate() local 55 Fragment existingFragment = fm.findFragmentById(android.R.id.content); in onCreate() 59 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()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceTest.java | 120 Paint.FontMetrics fm = p.getFontMetrics(); in testUniformY() local 122 ascent = fm.ascent; in testUniformY() 123 descent = fm.descent; in testUniformY() 125 assertTrue("fontMetrics", fm.ascent == ascent); in testUniformY() 126 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
|
/frameworks/base/services/core/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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCamera2Capabilities.java | 165 public static FocusMode focusModeFromInt(int fm) { in focusModeFromInt() argument 166 switch (fm) { in focusModeFromInt() 181 Log.w(TAG, "Unable to convert from API 2 focus mode: " + fm); in focusModeFromInt()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | PhotoPagerAdapter.java | 42 Context context, androidx.fragment.app.FragmentManager fm, Cursor c, in PhotoPagerAdapter() argument 44 super(context, fm, c); in PhotoPagerAdapter()
|