Home
last modified time | relevance | path

Searched refs:fm (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java28 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/
DLineHeightSpan.java46 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()
DIconMarginSpan.java97 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()
DDrawableMarginSpan.java100 @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()
DDynamicDrawableSpan.java143 @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/
Ddevice_for_strategies.pfw25 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/
DStringBlock.java536 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/
DContentCaptureMetricsLogger.java72 @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/
DStaticLayout.java783 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 …]
DBoringLayout.java585 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/
DSharedLibraryMain.java59 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/
DMediaRouteDialogPresenter.java45 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/
Dregions.cpp151 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()
Dconvert.cpp425 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/
Ddevice_for_product_strategies.pfw26 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/
DCompatListActivity.java34 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/
Ddevice_for_product_strategies.pfw26 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/
DRvCompatListActivity.java54 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/
DShadowGridActivity.java47 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()
DListActivityBase.java45 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/
DRecoverableSecurityException.java147 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/
DTypefaceTest.java120 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/
DWatermark.java91 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/
DAndroidCamera2Capabilities.java165 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/
DPhotoPagerAdapter.java42 Context context, androidx.fragment.app.FragmentManager fm, Cursor c, in PhotoPagerAdapter() argument
44 super(context, fm, c); in PhotoPagerAdapter()

1234