Home
last modified time | relevance | path

Searched refs:mFragments (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tests/testables/src/android/testing/
DBaseFragmentTest.java54 protected FragmentController mFragments; field in BaseFragmentTest
79 mFragments = FragmentController.createController(new HostCallbacks()); in setupFragment()
80 mFragments.attachHost(null); in setupFragment()
81 mFragments.getFragmentManager().beginTransaction() in setupFragment()
93 if (mFragments != null) { in tearDown()
95 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown()
101 mFragments.dispatchCreate(); in testCreateDestroy()
108 mFragments.dispatchStart(); in testStartStop()
110 mFragments.dispatchStop(); in testStartStop()
116 mFragments.dispatchResume(); in testResumePause()
[all …]
/frameworks/support/fragment/java/android/support/v4/app/
DFragmentActivity.java90 mFragments.execPendingActions();
98 final FragmentController mFragments = FragmentController.createController(new HostCallbacks()); field in FragmentActivity
134 mFragments.noteStateNotSaved(); in onActivityResult()
145 Fragment targetFragment = mFragments.findFragmentByWho(who); in onActivityResult()
163 FragmentManager fragmentManager = mFragments.getSupportFragmentManager(); in onBackPressed()
243 mFragments.dispatchMultiWindowModeChanged(isInMultiWindowMode); in onMultiWindowModeChanged()
258 mFragments.dispatchPictureInPictureModeChanged(isInPictureInPictureMode); in onPictureInPictureModeChanged()
267 mFragments.dispatchConfigurationChanged(newConfig); in onConfigurationChanged()
276 mFragments.attachHost(null /*parent*/); in onCreate()
283 mFragments.restoreLoaderNonConfig(nc.loaders); in onCreate()
[all …]
DFragmentStatePagerAdapter.java72 private ArrayList<Fragment> mFragments = new ArrayList<Fragment>(); field in FragmentStatePagerAdapter
98 if (mFragments.size() > position) { in instantiateItem()
99 Fragment f = mFragments.get(position); in instantiateItem()
117 while (mFragments.size() <= position) { in instantiateItem()
118 mFragments.add(null); in instantiateItem()
122 mFragments.set(position, fragment); in instantiateItem()
142 mFragments.set(position, null); in destroyItem()
186 for (int i=0; i<mFragments.size(); i++) { in saveState()
187 Fragment f = mFragments.get(i); in saveState()
206 mFragments.clear(); in restoreState()
[all …]
DFragmentManagerNonConfig.java34 private final List<Fragment> mFragments; field in FragmentManagerNonConfig
39 mFragments = fragments; in FragmentManagerNonConfig()
47 return mFragments; in getFragments()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentStatePagerAdapter.java76 private ArrayList<Fragment> mFragments = new ArrayList<Fragment>(); field in FragmentStatePagerAdapter
102 if (mFragments.size() > position) { in instantiateItem()
103 Fragment f = mFragments.get(position); in instantiateItem()
121 while (mFragments.size() <= position) { in instantiateItem()
122 mFragments.add(null); in instantiateItem()
126 mFragments.set(position, fragment); in instantiateItem()
146 mFragments.set(position, null); in destroyItem()
191 for (int i=0; i<mFragments.size(); i++) { in saveState()
192 Fragment f = mFragments.get(i); in saveState()
211 mFragments.clear(); in restoreState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/
DFragmentHostManager.java57 private FragmentController mFragments; field in FragmentHostManager
69 mFragments = FragmentController.createController(new HostCallbacks()); in createFragmentHost()
70 mFragments.attachHost(null); in createFragmentHost()
88 mFragments.getFragmentManager().registerFragmentLifecycleCallbacks(mLifecycleCallbacks, in createFragmentHost()
91 mFragments.restoreAllState(savedState, (FragmentManagerNonConfig) null); in createFragmentHost()
94 mFragments.dispatchCreate(); in createFragmentHost()
95 mFragments.dispatchStart(); in createFragmentHost()
96 mFragments.dispatchResume(); in createFragmentHost()
100 mFragments.dispatchPause(); in destroyFragmentHost()
101 Parcelable p = mFragments.saveAllState(); in destroyFragmentHost()
[all …]
/frameworks/base/core/java/android/app/
DFragmentManagerNonConfig.java32 private final List<Fragment> mFragments; field in FragmentManagerNonConfig
37 mFragments = fragments; in FragmentManagerNonConfig()
45 return mFragments; in getFragments()
DActivity.java802 final FragmentController mFragments = FragmentController.createController(new HostCallbacks()); field in Activity
919 return mFragments.getLoaderManager(); in getLoaderManager()
992 mFragments.restoreLoaderNonConfig(mLastNonConfigurationInstances.loaders); in onCreate()
1011 mFragments.restoreAllState(p, mLastNonConfigurationInstances != null in onCreate()
1014 mFragments.dispatchCreate(); in onCreate()
1242 mFragments.doLoaderStart(); in onStart()
1568 Parcelable p = mFragments.saveAllState(); in onSaveInstanceState()
2187 mFragments.dispatchConfigurationChanged(newConfig); in onConfigurationChanged()
2339 FragmentManagerNonConfig fragments = mFragments.retainNestedNonConfig(); in retainNonConfigurationInstances()
2345 mFragments.doLoaderStart(); in retainNonConfigurationInstances()
[all …]
DActivityThread.java2967 r.activity.mFragments.noteStateNotSaved(); in deliverNewIntents()
3611 r.activity.mFragments.noteStateNotSaved(); in performResumeActivity()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
DToolbarFragmentPagerMenu.java62 private final List<Fragment> mFragments; field in ToolbarFragmentPagerMenu.PagerAdapter
67 mFragments = new ArrayList<Fragment>(); in PagerAdapter()
69 mFragments.add(fragment); in PagerAdapter()
75 return mFragments.get(position); in getItem()
80 return mFragments.size(); in getCount()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCollapsedStatusBarFragmentTest.java68 mFragments.dispatchResume(); in testDisableNone()
81 mFragments.dispatchResume(); in testDisableSystemInfo()
99 mFragments.dispatchResume(); in testDisableNotifications()
DNavigationBarFragmentTest.java89 mFragments.dispatchResume(); in testHomeLongPress()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSFragmentTest.java85 mFragments.dispatchResume(); in testListening()
108 mFragments.dispatchResume(); in testSaveState()