Home
last modified time | relevance | path

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

123456

/aosp12/art/libartbase/base/
H A Dvariant_map_test.cc50 FruitMap fm; in TEST() local
57 fm.Set(FruitMap::Apple, 1); in TEST()
62 fm.Set(FruitMap::Apple, 5); in TEST()
67 fm.Set(FruitMap::Orange, 555.0); in TEST()
70 EXPECT_EQ(size_t(2), fm.Size()); in TEST()
73 fm.Remove(FruitMap::Apple); in TEST()
76 fm.Clear(); in TEST()
77 EXPECT_EQ(size_t(0), fm.Size()); in TEST()
82 FruitMap fm; in TEST() local
92 fm.Set(FruitMap::Label, *ptr); in TEST()
[all …]
/aosp12/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A 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()
/aosp12/hardware/interfaces/broadcastradio/1.0/default/
H A DUtils.cpp157 config->ext.fm.deemphasis = static_cast<Deemphasis>(halConfig->fm.deemphasis); in convertBandConfigFromHal()
158 config->ext.fm.stereo = halConfig->fm.stereo; in convertBandConfigFromHal()
159 config->ext.fm.rds = static_cast<Rds>(halConfig->fm.rds); in convertBandConfigFromHal()
160 config->ext.fm.ta = halConfig->fm.ta; in convertBandConfigFromHal()
161 config->ext.fm.af = halConfig->fm.af; in convertBandConfigFromHal()
162 config->ext.fm.ea = halConfig->fm.ea; in convertBandConfigFromHal()
212 halConfig->fm.stereo = config->ext.fm.stereo; in convertBandConfigToHal()
213 halConfig->fm.rds = static_cast<radio_rds_t>(config->ext.fm.rds); in convertBandConfigToHal()
214 halConfig->fm.ta = config->ext.fm.ta; in convertBandConfigToHal()
215 halConfig->fm.af = config->ext.fm.af; in convertBandConfigToHal()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DCenterAlignedDynamicDrawableSpan.java50 Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) { in getSize() argument
51 super.getSize(paint, text, start, end, fm); in getSize()
53 if (fm != null) { in getSize()
54 fm.ascent = paint.getFontMetricsInt().ascent; in getSize()
55 fm.descent = paint.getFontMetricsInt().descent; in getSize()
56 fm.top = fm.ascent; in getSize()
57 fm.bottom = fm.descent; in getSize()
/aosp12/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()
/aosp12/frameworks/base/core/java/android/content/res/
H A DStringBlock.java478 Paint.FontMetricsInt fm) { in chooseHeight() argument
491 if (fm.bottom - fm.top < size) { in chooseHeight()
492 fm.top = fm.bottom - size; in chooseHeight()
493 fm.ascent = fm.ascent - size; in chooseHeight()
513 if (size - fm.descent >= need) { in chooseHeight()
518 fm.top = fm.bottom - size; in chooseHeight()
519 fm.ascent = fm.descent - size; in chooseHeight()
526 fm.top = fm.ascent = -need; in chooseHeight()
527 fm.bottom = fm.descent = fm.top + size; in chooseHeight()
533 fm.top = fm.ascent = -size; in chooseHeight()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTintedDrawableSpan.java41 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() argument
42 fm = fm == null ? paint.getFontMetricsInt() : fm; in getSize()
43 int iconSize = fm.bottom - fm.top; in getSize()
45 return super.getSize(paint, text, start, end, fm); in getSize()
/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoOutput/
H A 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
/aosp12/frameworks/base/core/java/android/text/
H A DStaticLayout.java834 fmTop = fm.top; in generate()
901 bufEnd, bufEnd, fm.ascent, fm.descent, in generate()
902 fm.top, fm.bottom, in generate()
943 fm.ascent = above;
944 fm.descent = below;
945 fm.top = top;
946 fm.bottom = bottom;
957 above = fm.ascent;
958 below = fm.descent;
959 top = fm.top;
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
H A DConfirmCredentialTest.java35 FragmentManager fm = Robolectric.buildActivity(FragmentActivity.class). in testLastTryDialogShownExactlyOnce() local
40 fm, "title", android.R.string.yes, android.R.string.ok, false)).isTrue(); in testLastTryDialogShownExactlyOnce()
42 fm, "title", android.R.string.yes, android.R.string.ok, false)).isFalse(); in testLastTryDialogShownExactlyOnce()
45 LastTryDialog.hide(fm); in testLastTryDialogShownExactlyOnce()
47 fm, "title", android.R.string.yes, android.R.string.ok, false)).isTrue(); in testLastTryDialogShownExactlyOnce()
/aosp12/system/libvintf/
H A Dmain.cpp158 bool fm = false;
171 if (dcm && !fm) return false;
180 << (row.fm ? "FM" : " ") << kColumnSeperator << (row.fcm ? "FCM" : " ")
221 Table generateHalSummary(const HalManifest* vm, const HalManifest* fm,
225 insert(fm, &table, [](auto* row) { row->fm = true; });
246 auto fm = VintfObject::GetFrameworkHalManifest();
259 auto table = generateHalSummary(vm.get(), fm.get(), vcm.get(), fcm.get());
274 if (fm != nullptr) std::cout << toXml(*fm, flags);
288 << "Framework Manifest? " << existString(fm != nullptr) << std::endl
299 if (fm && vcm) {
[all …]
/aosp12/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
H A DContentCaptureMetricsLogger.java98 @Nullable ComponentName app, @NonNull FlushMetrics fm, in writeSessionFlush() argument
102 ComponentName.flattenToShortString(app), fm.sessionStarted, fm.sessionFinished, in writeSessionFlush()
103 fm.viewAppearedCount, fm.viewDisappearedCount, fm.viewTextChangedCount, in writeSessionFlush()
/aosp12/packages/apps/Settings/src/com/android/settings/network/telephony/
H A DProgressDialogFragment.java49 public static void show(FragmentManager fm, String title, OnDismissCallback dismissCallback) { in show() argument
50 ProgressDialogFragment fragment = (ProgressDialogFragment) fm.findFragmentByTag(TAG); in show()
56 FragmentTransaction ft = fm.beginTransaction(); in show()
75 public static void dismiss(FragmentManager fm) { in dismiss() argument
76 DialogFragment fragment = (DialogFragment) fm.findFragmentByTag(TAG); in dismiss()
/aosp12/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()
/aosp12/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()
/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/
H A 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 …]
/aosp12/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()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DDialogFragment.java205 FragmentManager fm = getRealActivity().getFragmentManager(); in getContentFragmentTransaction() local
206 boolean hasContent = fm.findFragmentByTag(BaseDialogFragment.TAG_CONTENT) != null; in getContentFragmentTransaction()
207 FragmentTransaction ft = fm.beginTransaction(); in getContentFragmentTransaction()
223 FragmentTransaction ft, boolean addToBackStack, FragmentManager fm) { in addActionFragmentToTransaction() argument
225 ft = fm.beginTransaction(); in addActionFragmentToTransaction()
227 boolean hasActions = fm.findFragmentByTag(BaseDialogFragment.TAG_ACTION) != null; in addActionFragmentToTransaction()
/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/
H A 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 …]
/aosp12/hardware/interfaces/broadcastradio/1.1/default/
H A DBroadcastRadio.cpp185 dst.ext.fm.deemphasis = static_cast<Deemphasis>(Deemphasis::D50 | Deemphasis::D75); in getAmFmBands()
186 dst.ext.fm.stereo = true; in getAmFmBands()
187 dst.ext.fm.rds = static_cast<Rds>(Rds::WORLD | Rds::US); in getAmFmBands()
188 dst.ext.fm.ta = true; in getAmFmBands()
189 dst.ext.fm.af = true; in getAmFmBands()
190 dst.ext.fm.ea = true; in getAmFmBands()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
H A DSearchFragment.java57 public static void showFragment(FragmentManager fm, String initQuery) { in showFragment() argument
58 if (fm.isStateSaved()) { in showFragment()
68 final FragmentTransaction ft = fm.beginTransaction(); in showFragment()
73 public static void dismissFragment(FragmentManager fm) { in dismissFragment() argument
74 SearchFragment fragment = get(fm); in dismissFragment()
80 public static SearchFragment get(FragmentManager fm) { in get() argument
81 final Fragment fragment = fm.findFragmentByTag(TAG); in get()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
H A DTopLevelPickerActivity.java185 fm.beginTransaction() in onCreate()
296 FragmentManager fm = getSupportFragmentManager(); in initializeMobile() local
307 fm.beginTransaction() in initializeMobile()
357 FragmentManager fm = getSupportFragmentManager(); in initializeDesktop() local
388 FragmentManager fm = getSupportFragmentManager(); in initializeDesktopOnline() local
396 fm.beginTransaction() in initializeDesktopOnline()
415 fm.beginTransaction() in initializeDesktopOffline()
420 fm.beginTransaction() in initializeDesktopOffline()
661 return ((CategoryFragment) fm.findFragmentById( in getCategorySelectorFragment()
845 fm.beginTransaction() in showCategoryDesktop()
[all …]

123456