Home
last modified time | relevance | path

Searched refs:loader (Results 1 – 25 of 203) sorted by relevance

123456789

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestSupportLoaderManager.java22 import androidx.loader.app.LoaderManager;
23 import androidx.loader.content.AsyncTaskLoader;
24 import androidx.loader.content.Loader;
25 import androidx.loader.content.Loader.OnLoadCompleteListener;
45 Loader<D> loader = mLoaders.get(id); in initLoader() local
47 if (loader == null) { in initLoader()
48 loader = callback.onCreateLoader(id, args); in initLoader()
49 mLoaders.put(id, loader); in initLoader()
51 loader.unregisterListener(mListeners.get(id)); in initLoader()
54 loader.registerListener(id, listener); in initLoader()
[all …]
DTestLoaderManager.java42 Loader<D> loader = mLoaders.get(id); in initLoader() local
44 if (loader == null) { in initLoader()
45 loader = callback.onCreateLoader(id, args); in initLoader()
46 mLoaders.put(id, loader); in initLoader()
48 loader.unregisterListener(mListeners.get(id)); in initLoader()
51 loader.registerListener(id, listener); in initLoader()
54 return loader; in initLoader()
69 Loader loader = getLoader(id); in destroyLoader() local
70 if (loader != null) { in destroyLoader()
71 loader.abandon(); in destroyLoader()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchivesProvider.java101 final Loader loader = getLoaderOrThrow(documentId); in queryChildDocuments() local
102 final int status = loader.getStatus(); in queryChildDocuments()
105 return loader.get().queryChildDocuments(documentId, projection, sortOrder); in queryChildDocuments()
147 final Loader loader = getLoaderOrThrow(documentId); in getDocumentType() local
148 return loader.get().getDocumentType(documentId); in getDocumentType()
153 final Loader loader = getLoaderOrThrow(documentId); in isChildDocument() local
154 return loader.get().isChildDocument(parentDocumentId, documentId); in isChildDocument()
210 final Loader loader = getLoaderOrThrow(documentId); in queryDocument() local
211 return loader.get().queryDocument(documentId, projection); in queryDocument()
218 final Loader loader = getLoaderOrThrow(parentDocumentId); in createDocument() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DDefaultContactListAdapter.java53 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
54 if (loader instanceof FavoritesAndContactsLoader) { in configureLoader()
55 ((FavoritesAndContactsLoader) loader).setLoadFavorites(shouldIncludeFavorites()); in configureLoader()
66 loader.setUri(Contacts.CONTENT_URI); in configureLoader()
67 loader.setProjection(getProjection(false)); in configureLoader()
68 loader.setSelection("0"); in configureLoader()
71 configureUri(loader, directoryId, filter); in configureLoader()
75 loader.setProjection(getProjection(/* forSearch */ false)); in configureLoader()
76 loader.setSelection( in configureLoader()
81 loader.setSelectionArgs(args); in configureLoader()
[all …]
DPhoneNumberListAdapter.java195 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
211 loader.setUri(builder.build()); in configureLoader()
212 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
241 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader()
246 final String prevSelection = loader.getSelection(); in configureLoader()
253 loader.setSelection(newSelection); in configureLoader()
257 loader.setUri(builder.build()); in configureLoader()
261 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
263 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
267 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); in configureLoader()
[all …]
DJoinContactListAdapter.java69 JoinContactLoader loader = (JoinContactLoader) cursorLoader; in configureLoader() local
82 loader.setSuggestionUri(builder.build()); in configureLoader()
85 loader.setProjection(getProjection(false)); in configureLoader()
99 loader.setUri(allContactsUri); in configureLoader()
100 loader.setSelection(Contacts._ID + "!=?"); in configureLoader()
101 loader.setSelectionArgs(new String[]{ String.valueOf(mTargetContactId) }); in configureLoader()
103 loader.setSortOrder(Contacts.SORT_KEY_PRIMARY); in configureLoader()
105 loader.setSortOrder(Contacts.SORT_KEY_ALTERNATIVE); in configureLoader()
DMultiSelectPhoneNumbersListAdapter.java87 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
101 loader.setUri(builder.build()); in configureLoader()
104 loader.setSelection(ContactsContract.Data.CONTACT_ID in configureLoader()
109 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
111 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
115 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); in configureLoader()
117 loader.setSortOrder(Phone.SORT_KEY_ALTERNATIVE); in configureLoader()
DMultiSelectEmailAddressesListAdapter.java87 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
101 loader.setUri(builder.build()); in configureLoader()
104 loader.setSelection(ContactsContract.Data.CONTACT_ID in configureLoader()
109 loader.setProjection(EmailQuery.PROJECTION_PRIMARY); in configureLoader()
111 loader.setProjection(EmailQuery.PROJECTION_ALTERNATIVE); in configureLoader()
115 loader.setSortOrder(Email.SORT_KEY_PRIMARY); in configureLoader()
117 loader.setSortOrder(Email.SORT_KEY_ALTERNATIVE); in configureLoader()
DJoinContactListFragment.java62 JoinContactLoader loader = new JoinContactLoader(getActivity());
65 adapter.configureLoader(loader, 0);
67 return loader;
74 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
75 switch (loader.getId()) {
95 public void onLoaderReset(Loader<Cursor> loader) {
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationData.java186 Loader<Cursor> loader = null; in onCreateLoader() local
193 loader = new BoundCursorLoader(bindingId, mContext, uri, in onCreateLoader()
199 return loader; in onCreateLoader()
204 final BoundCursorLoader loader = (BoundCursorLoader) generic; in onLoadFinished() local
207 if (isBound(loader.getBindingId())) { in onLoadFinished()
231 final BoundCursorLoader loader = (BoundCursorLoader) generic; in onLoaderReset() local
234 if (isBound(loader.getBindingId())) { in onLoaderReset()
252 Loader<Cursor> loader = null; in onCreateLoader() local
259 loader = new BoundCursorLoader(bindingId, mContext, uri, in onCreateLoader()
267 return loader; in onCreateLoader()
[all …]
DConversationListData.java86 Loader<Cursor> loader = null; in onCreateLoader() local
91 loader = new BoundCursorLoader(bindingId, mContext, in onCreateLoader()
97 loader = new BoundCursorLoader(bindingId, mContext, in onCreateLoader()
111 return loader; in onCreateLoader()
119 final BoundCursorLoader loader = (BoundCursorLoader) generic; in onLoadFinished() local
120 if (isBound(loader.getBindingId())) { in onLoadFinished()
121 switch (loader.getId()) { in onLoadFinished()
148 final BoundCursorLoader loader = (BoundCursorLoader) generic; in onLoaderReset() local
149 if (isBound(loader.getBindingId())) { in onLoaderReset()
150 switch (loader.getId()) { in onLoaderReset()
DContactPickerData.java94 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { in onLoadFinished() argument
95 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoadFinished()
97 switch (loader.getId()) { in onLoadFinished()
113 if (loader.getId() != PARTICIPANT_LOADER) { in onLoadFinished()
132 public void onLoaderReset(final Loader<Cursor> loader) { in onLoaderReset() argument
133 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoaderReset()
135 switch (loader.getId()) { in onLoaderReset()
DBlockedParticipantsData.java68 public void onLoadFinished(final Loader<Cursor> loader, final Cursor cursor) { in onLoadFinished() argument
69 Assert.isTrue(loader.getId() == BLOCKED_PARTICIPANTS_LOADER); in onLoadFinished()
70 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoadFinished()
76 public void onLoaderReset(final Loader<Cursor> loader) { in onLoaderReset() argument
77 Assert.isTrue(loader.getId() == BLOCKED_PARTICIPANTS_LOADER); in onLoaderReset()
78 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoaderReset()
DMediaPickerData.java83 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { in onLoadFinished() argument
84 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoadFinished()
86 switch (loader.getId()) { in onLoadFinished()
105 public void onLoaderReset(final Loader<Cursor> loader) { in onLoaderReset() argument
106 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoaderReset()
108 switch (loader.getId()) { in onLoaderReset()
DSettingsData.java133 Loader<Cursor> loader = null; in onCreateLoader() local
138 loader = new BoundCursorLoader(bindingId, mContext, in onCreateLoader()
147 return loader; in onCreateLoader()
152 final BoundCursorLoader loader = (BoundCursorLoader) generic; in onLoadFinished() local
155 if (isBound(loader.getBindingId())) { in onLoadFinished()
165 final BoundCursorLoader loader = (BoundCursorLoader) generic; in onLoaderReset() local
168 if (isBound(loader.getBindingId())) { in onLoaderReset()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DTestLoaderManager.java88 final AsyncTaskLoader<?> loader = in waitForLoaders() local
90 if (loader == null) { in waitForLoaders()
95 loaders.add(loader); in waitForLoaders()
109 final AsyncTaskLoader<?> loader = (AsyncTaskLoader<?>) loaders[i]; in waitForLoaders() local
114 AsyncTaskLoader.class.getMethod("waitForLoader").invoke(loader); in waitForLoaders()
116 Log.e(TAG, "Exception while waiting for loader: " + loader.getId(), e); in waitForLoaders()
117 Assert.fail("Exception while waiting for loader: " + loader.getId()); in waitForLoaders()
143 public void onLoadFinished(Loader<D> loader, D data) { in initLoader() argument
144 callback.onLoadFinished(loader, data); in initLoader()
151 public void onLoaderReset(Loader<D> loader) { in initLoader() argument
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsManager.java84 public static void setCarrierConfigValuesLoader(CarrierConfigValuesLoader loader) { in setCarrierConfigValuesLoader() argument
85 if (loader == null) { in setCarrierConfigValuesLoader()
89 MmsService.setCarrierConfigValuesLoader(loader); in setCarrierConfigValuesLoader()
101 public static void setApnSettingsLoader(ApnSettingsLoader loader) { in setApnSettingsLoader() argument
102 if (loader == null) { in setApnSettingsLoader()
105 MmsService.setApnSettingsLoader(loader); in setApnSettingsLoader()
116 public static void setUserAgentInfoLoader(final UserAgentInfoLoader loader) { in setUserAgentInfoLoader() argument
117 if (loader == null) { in setUserAgentInfoLoader()
121 MmsService.setUserAgentInfoLoader(loader); in setUserAgentInfoLoader()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java184 KeyChainActivity.AliasLoader loader = in testAliasLoader_loadsAllAliases() local
190 loader.execute(); in testAliasLoader_loadsAllAliases()
193 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_loadsAllAliases()
207 KeyChainActivity.AliasLoader loader = in testAliasLoader_copesWithNoAliases() local
213 loader.execute(); in testAliasLoader_copesWithNoAliases()
216 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_copesWithNoAliases()
230 KeyChainActivity.AliasLoader loader = in testAliasLoader_filtersNonUserSelectableAliases() local
233 loader.execute(); in testAliasLoader_filtersNonUserSelectableAliases()
236 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_filtersNonUserSelectableAliases()
263 KeyChainActivity.AliasLoader loader = in testAliasLoader_filtersAliasesWithNonConformingParameters() local
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DRuntimeDataSupplier.java30 import androidx.loader.app.LoaderManager;
31 import androidx.loader.app.LoaderManager.LoaderCallbacks;
32 import androidx.loader.content.Loader;
120 public void onLoadFinished(Loader<Bundle> loader, Bundle data) { in getDocumentMetadata()
125 public void onLoaderReset(Loader<Bundle> loader) { in getDocumentMetadata()
187 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in onLoadFinished() argument
190 mObserver = new InspectorContentObserver(loader::onContentChanged); in onLoadFinished()
198 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/loader/
DTmaMediaItemReader.java17 package com.android.car.media.testmediaapp.loader;
23 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.enumNamesToValues;
24 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getArray;
25 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getEnum;
26 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getEnumArray;
27 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getInt;
28 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getString;
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DNewSearchFragment.java222 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in onLoadFinished() argument
223 LogUtil.i("NewSearchFragment.onLoadFinished", "Loader finished: " + loader); in onLoadFinished()
225 && !(loader instanceof DirectoriesCursorLoader) in onLoadFinished()
230 if (loader instanceof SearchContactsCursorLoader) { in onLoadFinished()
233 } else if (loader instanceof NearbyPlacesCursorLoader) { in onLoadFinished()
236 } else if (loader instanceof DirectoryContactsCursorLoader) { in onLoadFinished()
239 } else if (loader instanceof DirectoriesCursorLoader) { in onLoadFinished()
246 throw new IllegalStateException("Invalid loader: " + loader); in onLoadFinished()
251 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
252 LogUtil.i("NewSearchFragment.onLoaderReset", "Loader reset: " + loader); in onLoaderReset()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoriteTileView.java193 private ContactLoader loader;
200 if (loader != null) {
202 loader.reset();
204 loader = new ContactLoader(context, contactUri, true /* postViewNotification */);
206 loader.registerListener(0, (loader1, contact) -> loader.reset());
207 loader.startLoading();
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageSettingsManager.java28 import androidx.loader.app.LoaderManager;
29 import androidx.loader.content.Loader;
121 Loader<PrivateStorageInfo> loader, PrivateStorageInfo privateStorageInfo) { in onLoadFinished() argument
130 public void onLoaderReset(Loader<PrivateStorageInfo> loader) { in onLoaderReset() argument
149 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished()
157 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
/packages/apps/Gallery2/src/com/android/photos/
DAlbumSetFragment.java73 MediaSetLoader loader = new MediaSetLoader(getActivity()); in onCreateLoader() local
74 mAdapter.setDrawableFactory(loader); in onCreateLoader()
75 mLoaderCompatShim = loader; in onCreateLoader()
76 return loader; in onCreateLoader()
80 public void onLoadFinished(Loader<Cursor> loader, in onLoadFinished() argument
87 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupMembersAdapter.java108 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
109 loader.setUri(Data.CONTENT_URI.buildUpon() in configureLoader()
115 loader.setSelection(Data.MIMETYPE + "=?" + " AND " + GroupMembership.GROUP_ROW_ID + "=?"); in configureLoader()
120 loader.setSelectionArgs(selectionArgs); in configureLoader()
122 loader.setProjection( in configureLoader()
127 loader.setSortOrder( in configureLoader()

123456789