/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | FragmentNestingTabs.java | 75 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()
|
D | FragmentTabs.java | 75 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()
|
D | ActionBarTabs.java | 90 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/ |
D | ActiveNotificationsActivity.java | 28 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/ |
D | SearchActivity.java | 32 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()
|
D | SearchSupportActivity.java | 34 private SearchSupportFragment mFragment; field in SearchSupportActivity 44 …mFragment = (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/ |
D | MainActivity.java | 62 @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/ |
D | ActionBarTabs.java | 87 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/ |
D | CompatTabEclair.java | 30 private Fragment mFragment; field in CompatTabEclair 56 mFragment = fragment; in setFragment() 62 return mFragment; in getFragment()
|
D | CompatTabHoneycomb.java | 36 Fragment mFragment; field in CompatTabHoneycomb 108 mFragment = fragment; in setFragment() 114 return mFragment; in getFragment()
|