Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DTintedDrawableSpan.java40 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() argument
41 fm = fm == null ? paint.getFontMetricsInt() : fm; in getSize()
42 int iconSize = fm.bottom - fm.top; in getSize()
44 return super.getSize(paint, text, start, end, fm); in getSize()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java233 final FragmentManager fm = getFragmentManager(); in onPrepareOptionsMenu() local
234 SaveFragment.get(fm).prepareForDirectory(cwd); in onPrepareOptionsMenu()
242 final FragmentManager fm = getFragmentManager(); in refreshDirectory() local
247 DirectoryFragment.showRecentsOpen(fm, anim); in refreshDirectory()
258 DirectoryFragment.showDirectory(fm, root, cwd, anim); in refreshDirectory()
263 final SaveFragment save = SaveFragment.get(fm); in refreshDirectory()
271 final PickFragment pick = PickFragment.get(fm); in refreshDirectory()
286 final FragmentManager fm = getFragmentManager(); in onDocumentPicked() local
296 SaveFragment.get(fm).setReplaceTarget(doc); in onDocumentPicked()
DPickFragment.java80 public static void show(FragmentManager fm) { in show() argument
82 if (get(fm) != null) { in show()
87 final FragmentTransaction ft = fm.beginTransaction(); in show()
92 public static PickFragment get(FragmentManager fm) { in get() argument
93 return (PickFragment) fm.findFragmentByTag(TAG); in get()
DSaveFragment.java62 static void show(FragmentManager fm, String mimeType, String displayName) { in show() argument
70 final FragmentTransaction ft = fm.beginTransaction(); in show()
75 public static SaveFragment get(FragmentManager fm) { in get() argument
76 return (SaveFragment) fm.findFragmentByTag(TAG); in get()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DConfirmCredentialTest.java45 FragmentManager fm = Robolectric.buildActivity(Activity.class).get().getFragmentManager(); in testLastTryDialogShownExactlyOnce() local
48 assertThat(LastTryDialog.show(fm, "title", R.string.yes, R.string.ok, false)).isTrue(); in testLastTryDialogShownExactlyOnce()
49 assertThat(LastTryDialog.show(fm, "title", R.string.yes, R.string.ok, false)).isFalse(); in testLastTryDialogShownExactlyOnce()
52 LastTryDialog.hide(fm); in testLastTryDialogShownExactlyOnce()
53 assertThat(LastTryDialog.show(fm, "title", R.string.yes, R.string.ok, false)).isTrue(); in testLastTryDialogShownExactlyOnce()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DBadgeSpan.java63 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() argument
64 if (fm != null) { in getSize()
65 paint.getFontMetricsInt(fm); in getSize()
67 fm.top = fm.ascent; in getSize()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DOnePaneController.java82 final FragmentManager fm = mActivity.getFragmentManager();
83 final FragmentTransaction ft = fm.beginTransaction();
84 final Fragment f = fm.findFragmentById(R.id.content_pane);
93 fm.executePendingTransactions();
358 final FragmentManager fm = mActivity.getFragmentManager(); in replaceFragment() local
359 FragmentTransaction fragmentTransaction = fm.beginTransaction(); in replaceFragment()
363 fm.executePendingTransactions(); in replaceFragment()
/packages/apps/UnifiedEmail/src/com/android/mail/text/
DFolderSpan.java63 final Paint.FontMetricsInt fm = p.getFontMetricsInt(); in getHeight() local
64 return fm.bottom - fm.top; in getHeight()
68 public int getSize(Paint p, CharSequence text, int start, int end, Paint.FontMetricsInt fm) { in getSize() argument
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorSpringBoardActivity.java162 final FragmentManager fm = getFragmentManager(); in showDialog() local
164 (SplitContactConfirmationDialogFragment) fm in showDialog()
168 fm.beginTransaction().show(split).commitAllowingStateLoss(); in showDialog()
171 PickRawContactDialogFragment pick = (PickRawContactDialogFragment) fm in showDialog()
175 final FragmentTransaction ft = fm.beginTransaction(); in showDialog()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java320 FragmentManager fm = getFragmentManager(); in completeCreate() local
321 if (fm.findFragmentByTag("password_expiration") == null) { in completeCreate()
328 dialog.show(fm, "password_expiration"); in completeCreate()
337 FragmentManager fm = getFragmentManager(); in completeCreate() local
338 if (fm.findFragmentByTag("security_needed") == null) { in completeCreate()
344 dialog.show(fm, "security_needed"); in completeCreate()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java321 final FragmentManager fm = mActivity.getFragmentManager(); in onClick() local
322 fm.executePendingTransactions(); in onClick()
325 dialog.show(fm, FRAG_TAG_TIME_PICKER); in onClick()
446 FragmentManager fm = mActivity.getFragmentManager(); in showTimezoneDialog() local
447 TimeZonePickerDialog tzpd = (TimeZonePickerDialog) fm in showTimezoneDialog()
455 tzpd.show(fm, FRAG_TAG_TIME_ZONE_PICKER); in showTimezoneDialog()
606 FragmentManager fm = mActivity.getFragmentManager(); in onClick() local
607 RecurrencePickerDialog rpd = (RecurrencePickerDialog) fm in onClick()
615 rpd.show(fm, FRAG_TAG_RECUR_PICKER); in onClick()
905 FragmentManager fm = activity.getFragmentManager(); in EditEventView() local
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DFragmentStatePagerAdapter2.java58 public FragmentStatePagerAdapter2(FragmentManager fm) { in FragmentStatePagerAdapter2() argument
59 this(fm, true); in FragmentStatePagerAdapter2()
62 public FragmentStatePagerAdapter2(FragmentManager fm, boolean enableSavedStates) { in FragmentStatePagerAdapter2() argument
63 mFragmentManager = fm; in FragmentStatePagerAdapter2()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalView.java98 final FontMetrics fm = textPaint.getFontMetrics(); in setTextSize() local
99 charTop = (int) Math.ceil(fm.top); in setTextSize()
104 charHeight = (int) Math.ceil(fm.descent - fm.top); in setTextSize()
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DTrampolineActivity.java133 public static void show(FragmentManager fm, long id, long size) { in show() argument
139 dialog.show(fm, TAG_PAUSED); in show()
195 public static void show(FragmentManager fm, long id, int reason) { in show() argument
201 dialog.show(fm, TAG_FAILED); in show()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java1075 FragmentManager fm, RootInfo root, DocumentInfo doc, int anim) { in showDirectory() argument
1077 create(fm, root, doc, anim); in showDirectory()
1080 public static void showRecentsOpen(FragmentManager fm, int anim) { in showRecentsOpen() argument
1081 create(fm, null, null, anim); in showRecentsOpen()
1085 FragmentManager fm, in create() argument
1103 final FragmentTransaction ft = fm.beginTransaction(); in create()
1113 public static @Nullable DirectoryFragment get(FragmentManager fm) { in get() argument
1115 Fragment fragment = fm.findFragmentById(getFragmentId()); in get()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDialogController.java47 void confirmOverwrite(FragmentManager fm, DocumentInfo overwriteTarget); in confirmOverwrite() argument
152 public void confirmOverwrite(FragmentManager fm, DocumentInfo overwriteTarget) { in confirmOverwrite() argument
153 OverwriteConfirmFragment.show(fm, overwriteTarget); in confirmOverwrite()
/packages/apps/Settings/src/com/android/settings/
DMasterClear.java136 final FragmentManager fm = getChildFragmentManager();
137 if (fm != null && !fm.isDestroyed()) {
138 new CarrierDemoPasswordDialogFragment().show(fm, null /* tag */);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListActivity.java65 FragmentManager fm = getFragmentManager(); in onCreate() local
68 if (fm.findFragmentById(android.R.id.content) == null) { in onCreate()
70 fm.beginTransaction().add(android.R.id.content, listFragment).commit(); in onCreate()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java114 public static RootsFragment show(FragmentManager fm, Intent includeApps) { in show() argument
121 final FragmentTransaction ft = fm.beginTransaction(); in show()
128 public static RootsFragment get(FragmentManager fm) { in get() argument
129 return (RootsFragment) fm.findFragmentById(R.id.container_roots); in get()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersActivity.java110 FragmentManager fm = getFragmentManager(); in onCreate() local
112 (BlockNumberTaskFragment) fm.findFragmentByTag(TAG_BLOCK_NUMBER_TASK_FRAGMENT); in onCreate()
116 fm.beginTransaction() in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryActivity.java260 final FragmentManager fm = getFragmentManager(); in onCreate() local
264 fm.beginTransaction() in onCreate()
270 fm.getFragment(savedInstanceState, in onCreate()
273 fm.getFragment(savedInstanceState, in onCreate()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoPageAdapter.java28 public BuglePhotoPageAdapter(Context context, FragmentManager fm, Cursor c, float maxScale, in BuglePhotoPageAdapter() argument
30 super(context, fm, c, maxScale, thumbsFullScreen); in BuglePhotoPageAdapter()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java313 final FragmentManager fm = getFragmentManager(); in refreshDirectory() local
320 DirectoryFragment.showRecentsOpen(fm, anim); in refreshDirectory()
323 DirectoryFragment.showDirectory(fm, root, cwd, anim); in refreshDirectory()
/packages/apps/Settings/src/com/android/settings/notification/
DWorkSoundPreferenceController.java333 FragmentManager fm = parent.getFragmentManager(); in show() local
334 if (fm.findFragmentByTag(TAG) == null) { in show()
337 fragment.show(fm, TAG); in show()

123