Home
last modified time | relevance | path

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

/packages/services/Car/car-support-lib/src/android/support/car/app/
DCarFragmentActivity.java85 mFragments.execPendingActions();
93 final FragmentController mFragments = FragmentController.createController(new HostCallbacks()); field in CarFragmentActivity
124 mFragments.noteStateNotSaved(); in onActivityResult()
128 final int activeFragmentsCount = mFragments.getActiveFragmentsCount(); in onActivityResult()
135 mFragments.getActiveFragments(new ArrayList<Fragment>(activeFragmentsCount)); in onActivityResult()
182 if (!mFragments.getSupportFragmentManager().popBackStackImmediate()) { in onBackPressed()
206 mFragments.dispatchConfigurationChanged(newConfig); in onConfigurationChanged()
215 mFragments.attachHost(null /*parent*/); in onCreate()
222 mFragments.restoreLoaderNonConfig(nc.loaders); in onCreate()
226 mFragments.restoreAllState(p, nc != null ? nc.fragments : null); in onCreate()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DFragmentStatePagerAdapter2.java53 private SparseArrayCompat<Fragment> mFragments = new SparseArrayCompat<Fragment>(); field in FragmentStatePagerAdapter2
82 final Fragment existing = mFragments.get(position); in instantiateItem()
102 mFragments.put(position, fragment); in instantiateItem()
123 mFragments.delete(position); in destroyItem()
165 for (int i=0; i<mFragments.size(); i++) { in saveState()
166 final int pos = mFragments.keyAt(i); in saveState()
167 final Fragment f = mFragments.valueAt(i); in saveState()
182 mFragments.clear(); in restoreState()
199 mFragments.put(index, f); in restoreState()
217 new SparseArrayCompat<Fragment>(mFragments.size()); in notifyDataSetChanged()
[all …]
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/view/
DViewInfoActivityTest.java47 private ArrayList<Pair<String, Fragment>> mFragments; field in ViewInfoActivityTest
81 mFragments = getActivity().getFragments(); in testInitialState()
82 assertEquals(0, mFragments.size()); in testInitialState()
97 mFragments = getActivity().getFragments(); in testNameSet()
98 assertEquals(0, mFragments.size()); in testNameSet()
116 mFragments = getActivity().getFragments(); in testEmergencyInfoSet()
119 assertEquals(1, mFragments.size()); in testEmergencyInfoSet()
121 (ViewEmergencyInfoFragment) mFragments.get(0).second; in testEmergencyInfoSet()
136 mFragments = getActivity().getFragments(); in testEmergencyContactSet()
138 assertEquals(1, mFragments.size()); in testEmergencyContactSet()
[all …]
/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyTabActivity.java43 private ArrayList<Pair<String, Fragment>> mFragments; field in EmergencyTabActivity
91 mFragments = setUpFragments(); in setupTabs()
120 return mFragments; in getFragments()
125 return mFragments.size(); in getNumberFragments()
139 return mFragments.get(position).second; in getItem()
144 return mFragments.size(); in getCount()
149 return mFragments.get(position).first; in getPageTitle()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerPagerAdapter.java43 private final Map<Integer, TimerItemFragment> mFragments = new ArrayMap<>(); field in TimerPagerAdapter
99 mFragments.put(timer.getId(), fragment); in instantiateItem()
112 mFragments.remove(fragment.getTimerId()); in destroyItem()
153 final TimerItemFragment timerItemFragment = mFragments.get(after.getId()); in timerUpdated()
164 for (TimerItemFragment fragment : mFragments.values()) { in updateTime()
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/edit/
DEditInfoActivityTest.java45 private ArrayList<Pair<String, Fragment>> mFragments; field in EditInfoActivityTest
60 mFragments = getActivity().getFragments(); in setUp()
61 mEditEmergencyInfoFragment = (EditEmergencyInfoFragment) mFragments.get(0).second; in setUp()
62 mEditEmergencyContactsFragment = (EditEmergencyContactsFragment) mFragments.get(1).second; in setUp()
73 assertEquals(2, mFragments.size()); in testTwoFragments()
/packages/apps/Dialer/src/com/android/dialer/list/
DListsFragment.java110 private final List<Fragment> mFragments = new ArrayList<>(); field in ListsFragment.ViewPagerAdapter
115 mFragments.add(null); in ViewPagerAdapter()
159 mFragments.set(position, fragment); in instantiateItem()
174 mFragments.indexOf(object) == TAB_INDEX_VOICEMAIL ? POSITION_NONE : in getItemPosition()