Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/java/android/text/style/
H A 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()
H A 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()
H A 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()
H A 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()
H A DReplacementSpan.java46 @Nullable Paint.FontMetricsInt fm); in getSize() argument
/aosp14/frameworks/base/core/java/android/content/res/
H A DStringBlock.java483 Paint.FontMetricsInt fm) { in chooseHeight() argument
496 if (fm.bottom - fm.top < size) { in chooseHeight()
497 fm.top = fm.bottom - size; in chooseHeight()
498 fm.ascent = fm.ascent - size; in chooseHeight()
518 if (size - fm.descent >= need) { in chooseHeight()
523 fm.top = fm.bottom - size; in chooseHeight()
524 fm.ascent = fm.descent - size; in chooseHeight()
531 fm.top = fm.ascent = -need; in chooseHeight()
532 fm.bottom = fm.descent = fm.top + size; in chooseHeight()
538 fm.top = fm.ascent = -size; in chooseHeight()
[all …]
/aosp14/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
H A 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()
/aosp14/frameworks/base/core/java/android/text/
H A DStaticLayout.java868 fmTop = fm.top; in generate()
947 bufEnd, bufEnd, fm.ascent, fm.descent, in generate()
948 fm.top, fm.bottom, in generate()
989 fm.ascent = above;
990 fm.descent = below;
991 fm.top = top;
992 fm.bottom = bottom;
1003 above = fm.ascent;
1004 below = fm.descent;
1005 top = fm.top;
[all …]
H A DBoringLayout.java488 Metrics fm = metrics; in isBoring() local
489 if (fm == null) { in isBoring()
490 fm = new Metrics(); in isBoring()
492 fm.reset(); in isBoring()
501 fm.width = (int) Math.ceil(line.metrics(fm)); in isBoring()
504 return fm; in isBoring()
H A DDynamicLayout.java464 final Paint.FontMetricsInt fm = b.mFontMetricsInt; in generate() local
465 b.mPaint.getFontMetricsInt(fm); in generate()
466 final int asc = fm.ascent; in generate()
467 final int desc = fm.descent; in generate()
718 final Paint.FontMetricsInt fm = paint.getFontMetricsInt(); in contentMayProtrudeFromLineTopOrBottom() local
719 return mTempRect.top < fm.top || mTempRect.bottom > fm.bottom; in contentMayProtrudeFromLineTopOrBottom()
/aosp14/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
H A 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()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A 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()
/aosp14/frameworks/base/services/core/jni/BroadcastRadio/
H A 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()
H A 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()
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/listview/
H A 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()
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A 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()
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
H A 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()
H A DListActivityBase.java45 FragmentManager fm = getSupportFragmentManager(); in onCreate() local
48 fm.beginTransaction().add(R.id.list_fragment_container, listView).commit(); in onCreate()
/aosp14/frameworks/base/core/java/android/app/
H A 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()
H A DFragmentBreadCrumbs.java306 FragmentManager fm = mActivity.getFragmentManager(); in updateCrumbs() local
307 int numEntries = fm.getBackStackEntryCount(); in updateCrumbs()
313 : fm.getBackStackEntryAt(i - numPreEntries); in updateCrumbs()
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DWatermark.java91 FontMetricsInt fm = mTextPaint.getFontMetricsInt(); in Watermark() local
93 mTextHeight = fm.descent - fm.ascent; in Watermark()
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
H A DRunLocalBenchmarksActivity.java91 FragmentManager fm = getActivity().getSupportFragmentManager(); in onListItemClick() local
96 FragmentTransaction fragmentTransaction = fm.beginTransaction(); in onListItemClick()
127 FragmentManager fm = getSupportFragmentManager(); in onCreate() local
132 fm.beginTransaction().add(R.id.list_fragment_container, listView).commit(); in onCreate()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp531 SkEncodedImageFormat fm; in compress() local
534 fm = SkEncodedImageFormat::kJPEG; in compress()
537 fm = SkEncodedImageFormat::kPNG; in compress()
540 fm = SkEncodedImageFormat::kWEBP; in compress()
552 return SkEncodeImage(stream, bitmap, fm, quality); in compress()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/
H A DFragmentHostManager.java92 public void onFragmentViewCreated(FragmentManager fm, Fragment f, View v, in createFragmentHost()
98 public void onFragmentViewDestroyed(FragmentManager fm, Fragment f) { in createFragmentHost()
103 public void onFragmentDestroyed(FragmentManager fm, Fragment f) { in createFragmentHost()

12