Home
last modified time | relevance | path

Searched refs:mFragment (Results 1 – 10 of 10) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentNestingTabs.java75 private Fragment mFragment; field in FragmentNestingTabs.TabListener
90 mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); in TabListener()
91 if (mFragment != null && !mFragment.isDetached()) { in TabListener()
93 ft.detach(mFragment); in TabListener()
99 if (mFragment == null) { in onTabSelected()
100 mFragment = Fragment.instantiate(mActivity, mClass.getName(), mArgs); in onTabSelected()
101 ft.add(android.R.id.content, mFragment, mTag); in onTabSelected()
103 ft.attach(mFragment); in onTabSelected()
108 if (mFragment != null) { in onTabUnselected()
109 ft.detach(mFragment); in onTabUnselected()
DFragmentTabs.java75 private Fragment mFragment; field in FragmentTabs.TabListener
90 mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); in TabListener()
91 if (mFragment != null && !mFragment.isDetached()) { in TabListener()
93 ft.detach(mFragment); in TabListener()
99 if (mFragment == null) { in onTabSelected()
100 mFragment = Fragment.instantiate(mActivity, mClass.getName(), mArgs); in onTabSelected()
101 ft.add(android.R.id.content, mFragment, mTag); in onTabSelected()
103 ft.attach(mFragment); in onTabSelected()
108 if (mFragment != null) { in onTabUnselected()
109 ft.detach(mFragment); in onTabUnselected()
DActionBarTabs.java90 private TabContentFragment mFragment; field in ActionBarTabs.TabListener
93 mFragment = fragment; in TabListener()
97 ft.add(R.id.fragment_content, mFragment, mFragment.getText()); in onTabSelected()
101 ft.remove(mFragment); in onTabUnselected()
/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/
DActiveNotificationsActivity.java28 private ActiveNotificationsFragment mFragment; field in ActiveNotificationsActivity
36 if (mFragment == null) {
39 mFragment.updateNumberOfNotifications();
47 mFragment.updateNumberOfNotifications(); in onCreate()
51 mFragment = (ActiveNotificationsFragment) getSupportFragmentManager() in findFragment()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DSearchActivity.java32 private SearchFragment mFragment; field in SearchActivity
42 mFragment = (SearchFragment) getFragmentManager().findFragmentById(R.id.search_fragment); in onCreate()
49 startActivityForResult(mFragment.getRecognizerIntent(), REQUEST_SPEECH); in onCreate()
52 mFragment.setSpeechRecognitionCallback(mSpeechRecognitionCallback); in onCreate()
62 mFragment.setSearchQuery(data, true); in onActivityResult()
DSearchSupportActivity.java34 private SearchSupportFragment mFragment; field in SearchSupportActivity
44mFragment = (SearchSupportFragment) getSupportFragmentManager().findFragmentById(R.id.search_fragm… in onCreate()
51 startActivityForResult(mFragment.getRecognizerIntent(), REQUEST_SPEECH); in onCreate()
54 mFragment.setSpeechRecognitionCallback(mSpeechRecognitionCallback); in onCreate()
64 mFragment.setSearchQuery(data, true); in onActivityResult()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DMainActivity.java62 @Inject FingerprintAuthenticationDialogFragment mFragment; field in MainActivity
107 mFragment.setCryptoObject(new FingerprintManager.CryptoObject(mSignature)); in onCreate()
112 mFragment.setStage( in onCreate()
115 mFragment.setStage( in onCreate()
118 mFragment.show(getFragmentManager(), DIALOG_FRAGMENT_TAG); in onCreate()
124 mFragment.setStage( in onCreate()
126 mFragment.show(getFragmentManager(), DIALOG_FRAGMENT_TAG); in onCreate()
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DActionBarTabs.java87 private TabContentFragment mFragment; field in ActionBarTabs.TabListener
90 mFragment = fragment; in TabListener()
95 ft.add(R.id.fragment_content, mFragment, mFragment.getText()); in onTabSelected()
100 ft.remove(mFragment); in onTabUnselected()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DCompatTabEclair.java30 private Fragment mFragment; field in CompatTabEclair
56 mFragment = fragment; in setFragment()
62 return mFragment; in getFragment()
DCompatTabHoneycomb.java36 Fragment mFragment; field in CompatTabHoneycomb
108 mFragment = fragment; in setFragment()
114 return mFragment; in getFragment()