/frameworks/base/tests/testables/src/android/testing/ |
D | BaseFragmentTest.java | 54 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/ |
D | FragmentActivity.java | 90 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 …]
|
D | FragmentStatePagerAdapter.java | 72 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 …]
|
D | FragmentManagerNonConfig.java | 34 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/ |
D | FragmentStatePagerAdapter.java | 76 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/ |
D | FragmentHostManager.java | 57 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/ |
D | FragmentManagerNonConfig.java | 32 private final List<Fragment> mFragments; field in FragmentManagerNonConfig 37 mFragments = fragments; in FragmentManagerNonConfig() 45 return mFragments; in getFragments()
|
D | Activity.java | 802 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 …]
|
D | ActivityThread.java | 2967 r.activity.mFragments.noteStateNotSaved(); in deliverNewIntents() 3611 r.activity.mFragments.noteStateNotSaved(); in performResumeActivity()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
D | ToolbarFragmentPagerMenu.java | 62 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/ |
D | CollapsedStatusBarFragmentTest.java | 68 mFragments.dispatchResume(); in testDisableNone() 81 mFragments.dispatchResume(); in testDisableSystemInfo() 99 mFragments.dispatchResume(); in testDisableNotifications()
|
D | NavigationBarFragmentTest.java | 89 mFragments.dispatchResume(); in testHomeLongPress()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSFragmentTest.java | 85 mFragments.dispatchResume(); in testListening() 108 mFragments.dispatchResume(); in testSaveState()
|