Home
last modified time | relevance | path

Searched refs:mLoaderManager (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DContactPickerData.java50 private LoaderManager mLoaderManager; field in ContactPickerData
160 mLoaderManager = loaderManager; in init()
161 mLoaderManager.initLoader(ALL_CONTACTS_LOADER, args, this); in init()
162 mLoaderManager.initLoader(FREQUENT_CONTACTS_LOADER, args, this); in init()
163 mLoaderManager.initLoader(PARTICIPANT_LOADER, args, this); in init()
172 if (mLoaderManager != null) { in unregisterListeners()
173 mLoaderManager.destroyLoader(ALL_CONTACTS_LOADER); in unregisterListeners()
174 mLoaderManager.destroyLoader(FREQUENT_CONTACTS_LOADER); in unregisterListeners()
175 mLoaderManager.destroyLoader(PARTICIPANT_LOADER); in unregisterListeners()
176 mLoaderManager = null; in unregisterListeners()
DConversationListData.java61 private LoaderManager mLoaderManager; field in ConversationListData
172 mLoaderManager = loaderManager; in init()
173 mLoaderManager.initLoader(CONVERSATION_LIST_LOADER, mArgs, this); in init()
174 mLoaderManager.initLoader(BLOCKED_PARTICIPANTS_AVAILABLE_LOADER, mArgs, this); in init()
188 if (mLoaderManager != null) { in unregisterListeners()
189 mLoaderManager.destroyLoader(CONVERSATION_LIST_LOADER); in unregisterListeners()
190 mLoaderManager.destroyLoader(BLOCKED_PARTICIPANTS_AVAILABLE_LOADER); in unregisterListeners()
191 mLoaderManager = null; in unregisterListeners()
DMediaPickerData.java45 private LoaderManager mLoaderManager; field in MediaPickerData
133 mLoaderManager.initLoader(loaderId, args, mGalleryLoaderCallbacks).forceLoad(); in startLoader()
141 mLoaderManager.destroyLoader(loaderId); in destroyLoader()
145 mLoaderManager = loaderManager; in init()
151 if (mLoaderManager != null) { in unregisterListeners()
152 mLoaderManager.destroyLoader(GALLERY_MEDIA_LOADER); in unregisterListeners()
153 mLoaderManager = null; in unregisterListeners()
DPeopleAndOptionsData.java53 private LoaderManager mLoaderManager; field in PeopleAndOptionsData
155 mLoaderManager = loaderManager; in init()
156 mLoaderManager.initLoader(CONVERSATION_OPTIONS_LOADER, args, this); in init()
157 mLoaderManager.initLoader(PARTICIPANT_LOADER, args, this); in init()
165 if (mLoaderManager != null) { in unregisterListeners()
166 mLoaderManager.destroyLoader(CONVERSATION_OPTIONS_LOADER); in unregisterListeners()
167 mLoaderManager.destroyLoader(PARTICIPANT_LOADER); in unregisterListeners()
168 mLoaderManager = null; in unregisterListeners()
DBlockedParticipantsData.java44 private LoaderManager mLoaderManager; field in BlockedParticipantsData
87 mLoaderManager = loaderManager; in init()
88 mLoaderManager.initLoader(BLOCKED_PARTICIPANTS_LOADER, args, this); in init()
94 if (mLoaderManager != null) { in unregisterListeners()
95 mLoaderManager.destroyLoader(BLOCKED_PARTICIPANTS_LOADER); in unregisterListeners()
96 mLoaderManager = null; in unregisterListeners()
DSettingsData.java118 private LoaderManager mLoaderManager; field in SettingsData
179 mLoaderManager = loaderManager; in init()
180 mLoaderManager.initLoader(SELF_PARTICIPANT_LOADER, args, this); in init()
188 if (mLoaderManager != null) { in unregisterListeners()
189 mLoaderManager.destroyLoader(SELF_PARTICIPANT_LOADER); in unregisterListeners()
190 mLoaderManager = null; in unregisterListeners()
DConversationData.java464 private LoaderManager mLoaderManager; field in ConversationData
535 mLoaderManager = loaderManager; in init()
536 mLoaderManager.initLoader(CONVERSATION_META_DATA_LOADER, args, mMetadataLoaderCallbacks); in init()
537 mLoaderManager.initLoader(CONVERSATION_MESSAGES_LOADER, args, mMessagesLoaderCallbacks); in init()
538 mLoaderManager.initLoader(PARTICIPANT_LOADER, args, mParticipantsLoaderCallbacks); in init()
539 mLoaderManager.initLoader(SELF_PARTICIPANT_LOADER, args, mSelfParticipantLoaderCallbacks); in init()
550 if (mLoaderManager != null) { in unregisterListeners()
551 mLoaderManager.destroyLoader(CONVERSATION_META_DATA_LOADER); in unregisterListeners()
552 mLoaderManager.destroyLoader(CONVERSATION_MESSAGES_LOADER); in unregisterListeners()
553 mLoaderManager.destroyLoader(PARTICIPANT_LOADER); in unregisterListeners()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/inspector/
DDocumentLoaderTest.java59 private TestSupportLoaderManager mLoaderManager; field in DocumentLoaderTest
74 mLoaderManager = new TestSupportLoaderManager(); in setUp()
75 mLoader = new RuntimeDataSupplier(mContext, mLoaderManager); in setUp()
106 mLoaderManager.getLoader(0).startLoading(); in testLoadsDocument()
125 mLoaderManager.getLoader(0).startLoading(); in testInvalidInput()
141 mLoaderManager.getLoader(0).startLoading(); in testNonContentUri()
156 mLoaderManager.getLoader(0).startLoading(); in testDir_loadNumberOfChildren()
172 mLoaderManager.getLoader(0).startLoading(); in testDir_notADirectory()
185 mLoaderManager.getLoader(0).startLoading(); in testLoadMetadata()
202 mLoaderManager.getLoader(0).startLoading(); in testLoadMetadata_Unsupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceControllerTest.java54 private LoaderManager mLoaderManager; field in AppDataUsagePreferenceControllerTest
87 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onResume_notAvailable_shouldNotRestartDataLoader()
92 verify(mLoaderManager, never()).restartLoader( in onResume_notAvailable_shouldNotRestartDataLoader()
98 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onResume_isAvailable_shouldRestartDataLoader()
106 verify(mLoaderManager).restartLoader(eq(AppInfoDashboardFragment.LOADER_CHART_DATA), in onResume_isAvailable_shouldRestartDataLoader()
113 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onPause_shouldDestroyDataLoader()
117 verify(mLoaderManager).destroyLoader(AppInfoDashboardFragment.LOADER_CHART_DATA); in onPause_shouldDestroyDataLoader()
DAppStoragePreferenceControllerTest.java52 private LoaderManager mLoaderManager; field in AppStoragePreferenceControllerTest
69 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onResume_shouldRestartStorageLoader()
73 verify(mLoaderManager).restartLoader(AppInfoDashboardFragment.LOADER_STORAGE, Bundle.EMPTY, in onResume_shouldRestartStorageLoader()
79 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onPause_shouldDestroyStorageLoader()
83 verify(mLoaderManager).destroyLoader(AppInfoDashboardFragment.LOADER_STORAGE); in onPause_shouldDestroyStorageLoader()
DAppBatteryPreferenceControllerTest.java79 private LoaderManager mLoaderManager; field in AppBatteryPreferenceControllerTest
208 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onResume_shouldRestartBatteryStatsLoader()
212 verify(mLoaderManager) in onResume_shouldRestartBatteryStatsLoader()
219 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in onPause_shouldDestroyBatteryStatsLoader()
223 verify(mLoaderManager).destroyLoader(AppInfoDashboardFragment.LOADER_BATTERY_USAGE_STATS); in onPause_shouldDestroyBatteryStatsLoader()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/
DSavedQueryController.java46 private final LoaderManager mLoaderManager; field in SavedQueryController
53 mLoaderManager = loaderManager; in SavedQueryController()
76 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.SAVED_QUERIES, in onLoadFinished()
110 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.SAVE_QUERY_TASK, args, in saveQuery()
119 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.REMOVE_QUERY_TASK, args, in removeQueries()
127 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.SAVED_QUERIES, null /* args */, in loadSavedQueries()
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/car/
DCarSavedQueryController.java56 private final LoaderManager mLoaderManager; field in CarSavedQueryController
66 mLoaderManager = loaderManager; in CarSavedQueryController()
91 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.SAVED_QUERIES, in onLoadFinished()
138 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.SAVE_QUERY_TASK, args, in saveQuery()
147 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.REMOVE_QUERY_TASK, args, in removeQueries()
158 mLoaderManager.restartLoader(SearchCommon.SearchLoaderId.SAVED_QUERIES, in loadSavedQueries()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DAppsStorageStatsManagerTest.java62 private LoaderManager mLoaderManager; field in AppsStorageStatsManagerTest
72 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, false, in setUp()
74 verify(mLoaderManager).restartLoader(eq(1), eq(Bundle.EMPTY), in setUp()
124 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, true, in callback_cachedCleared_listenerOnDataLoadedCalled()
141 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, false, in callback_userDataCleared_listenerOnDataLoadedCalled()
DStorageSettingsManagerTest.java67 private LoaderManager mLoaderManager; field in StorageSettingsManagerTest
74 mStorageSettingsManager.startLoading(mLoaderManager); in setUp()
75 verify(mLoaderManager, times(1)).restartLoader(eq(0), eq(Bundle.EMPTY), in setUp()
77 verify(mLoaderManager, times(1)).restartLoader(eq(1), eq(Bundle.EMPTY), in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceControllerTest.java60 private LoaderManager mLoaderManager; field in SuggestionsPreferenceControllerTest
80 mController.setLoaderManager(mLoaderManager); in setUp()
93 mController.setLoaderManager(mLoaderManager); in setPreference_loaderManagerSet_doesNothing()
129 verify(mLoaderManager).destroyLoader(SettingsSuggestionsLoader.LOADER_ID_SUGGESTIONS); in onStop_destroysLoader()
136 verify(mLoaderManager).restartLoader( in onServiceConnected_restartsLoader()
144 verify(mLoaderManager).destroyLoader(SettingsSuggestionsLoader.LOADER_ID_SUGGESTIONS); in onServiceDisconnected_destroysLoader()
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceController.java70 private LoaderManager mLoaderManager; field in SuggestionsPreferenceController
88 mLoaderManager = loaderManager; in setLoaderManager()
100 if (mLoaderManager == null) { in checkInitialized()
125 mLoaderManager.restartLoader(SettingsSuggestionsLoader.LOADER_ID_SUGGESTIONS, /* args= */ in onServiceConnected()
229 mLoaderManager.destroyLoader(SettingsSuggestionsLoader.LOADER_ID_SUGGESTIONS); in cleanupLoader()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java80 private LoaderManager mLoaderManager; field in PowerUsageSummaryTest
164 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in restartBatteryTipLoader()
168 verify(mLoaderManager) in restartBatteryTipLoader()
226 when(mFragment.getLoaderManager()).thenReturn(mLoaderManager); in restartBatteryInfoLoader_contextNull_doNothing()
230 verify(mLoaderManager, never()).restartLoader(BATTERY_INFO_LOADER, Bundle.EMPTY, in restartBatteryInfoLoader_contextNull_doNothing()
DPowerUsageBaseTest.java48 private LoaderManager mLoaderManager; field in PowerUsageBaseTest
56 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in setUp()
63 verify(mLoaderManager, never()).initLoader(anyInt(), any(Bundle.class), any()); in testOnCreate_batteryStatsLoaderNotInvoked()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DAppsNetworkStatsManagerTest.java69 private LoaderManager mLoaderManager; field in AppsNetworkStatsManagerTest
92 mAppsNetworkStatsManager.startLoading(mLoaderManager, Bundle.EMPTY); in setUp()
94 verify(mLoaderManager).restartLoader(eq(1), eq(Bundle.EMPTY), in setUp()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceController.java85 private LoaderManager mLoaderManager; field in StorageApplicationActionButtonsPreferenceController
149 mLoaderManager = loaderManager; in setLoaderManager()
156 || mLoaderManager == null) { in checkInitialized()
213 mAppsStorageStatsManager.startLoading(mLoaderManager, mInfo, mUserId, mCacheCleared, in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageListTest.java76 private LoaderManager mLoaderManager; field in DataUsageListTest
96 doReturn(mLoaderManager).when(mDataUsageList).getLoaderManager(); in setUp()
227 verify(mLoaderManager).destroyLoader(DataUsageList.LOADER_CHART_DATA); in onPause_shouldDestroyLoaders()
228 verify(mLoaderManager).destroyLoader(DataUsageList.LOADER_SUMMARY); in onPause_shouldDestroyLoaders()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java91 LoaderManager mLoaderManager; field in ContextualCardManagerTest
157 mManager.loadContextualCards(mLoaderManager, false /* restartLoaderNeeded */); in loadContextualCards_restartLoaderNotNeeded_shouldInitLoader()
159 verify(mLoaderManager).initLoader(anyInt(), nullable(Bundle.class), in loadContextualCards_restartLoaderNotNeeded_shouldInitLoader()
168 mManager.loadContextualCards(mLoaderManager, true /* restartLoaderNeeded */); in loadContextualCards_restartLoaderNeeded_shouldRestartLoaderAndSetIsFirstLaunch()
170 verify(mLoaderManager).restartLoader(anyInt(), nullable(Bundle.class), in loadContextualCards_restartLoaderNeeded_shouldRestartLoaderAndSetIsFirstLaunch()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DInspectorControllerTest.java70 private TestLoaderManager mLoaderManager; field in InspectorControllerTest
91 mLoaderManager = new TestLoaderManager(); in setUp()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactEntryListFragment.java166 private LoaderManager mLoaderManager; field in ContactEntryListFragment
233 mLoaderManager = loaderManager; in setLoaderManager()
238 return mLoaderManager; in getLoaderManager()

12