Home
last modified time | relevance | path

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

12345

/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DDefaultContactListAdapter.java56 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
57 if (loader instanceof ProfileAndContactsLoader) { in configureLoader()
58 ((ProfileAndContactsLoader) loader).setLoadProfile(shouldIncludeProfile()); in configureLoader()
71 loader.setUri(Contacts.CONTENT_URI); in configureLoader()
72 loader.setProjection(getProjection(false)); in configureLoader()
73 loader.setSelection("0"); in configureLoader()
86 loader.setUri(builder.build()); in configureLoader()
87 loader.setProjection(getProjection(true)); in configureLoader()
90 configureUri(loader, directoryId, filter); in configureLoader()
91 loader.setProjection(getProjection(false)); in configureLoader()
[all …]
DPhoneNumberListAdapter.java128 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
144 loader.setUri(builder.build()); in configureLoader()
145 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
173 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader()
178 loader.setUri(builder.build()); in configureLoader()
183 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
185 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
189 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); in configureLoader()
191 loader.setSortOrder(Phone.SORT_KEY_ALTERNATIVE); in configureLoader()
209 private void applyFilter(CursorLoader loader, Uri.Builder uriBuilder, long directoryId, in applyFilter() argument
[all …]
DContactEntryListFragment.java317 DirectoryListLoader loader = new DirectoryListLoader(mContext); in onCreateLoader() local
318 loader.setDirectorySearchMode(mAdapter.getDirectorySearchMode()); in onCreateLoader()
319 loader.setLocalInvisibleDirectoryEnabled( in onCreateLoader()
321 return loader; in onCreateLoader()
323 CursorLoader loader = createCursorLoader(mContext); in onCreateLoader() local
327 mAdapter.configureLoader(loader, directoryId); in onCreateLoader()
328 return loader; in onCreateLoader()
382 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { in onLoadFinished() argument
387 int loaderId = loader.getId(); in onLoadFinished()
411 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
/packages/apps/Contacts/src/com/android/contacts/interactions/
DTestLoaderManager.java137 final AsyncTaskLoader<?> loader = in waitForLoaders() local
139 if (loader == null) { in waitForLoaders()
144 loaders.add(loader); in waitForLoaders()
158 final AsyncTaskLoader<?> loader = (AsyncTaskLoader<?>) loaders[i]; in waitForLoaders() local
163 loader.waitForLoader(); in waitForLoaders()
165 Log.e(TAG, "Exception while waiting for loader: " + loader.getId(), e); in waitForLoaders()
166 Assert.fail("Exception while waiting for loader: " + loader.getId()); in waitForLoaders()
192 public void onLoadFinished(Loader<D> loader, D data) { in initLoader() argument
193 callback.onLoadFinished(loader, data); in initLoader()
200 public void onLoaderReset(Loader<D> loader) { in initLoader() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DJoinContactListAdapter.java71 JoinContactLoader loader = (JoinContactLoader) cursorLoader; in configureLoader() local
84 loader.setSuggestionUri(builder.build()); in configureLoader()
87 loader.setProjection(getProjection(false)); in configureLoader()
101 loader.setUri(allContactsUri); in configureLoader()
102 loader.setSelection(Contacts._ID + "!=?"); in configureLoader()
103 loader.setSelectionArgs(new String[]{ String.valueOf(mTargetContactId) }); in configureLoader()
105 loader.setSortOrder(Contacts.SORT_KEY_PRIMARY); in configureLoader()
107 loader.setSortOrder(Contacts.SORT_KEY_ALTERNATIVE); in configureLoader()
DJoinContactListFragment.java63 JoinContactLoader loader = new JoinContactLoader(getActivity());
66 adapter.configureLoader(loader, 0);
68 return loader;
75 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
76 switch (loader.getId()) {
92 public void onLoaderReset(Loader<Cursor> loader) {
DEmailAddressListAdapter.java80 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
95 loader.setUri(builder.build()); in configureLoader()
98 loader.setProjection(EmailQuery.PROJECTION_PRIMARY); in configureLoader()
100 loader.setProjection(EmailQuery.PROJECTION_ALTERNATIVE); in configureLoader()
104 loader.setSortOrder(Email.SORT_KEY_PRIMARY); in configureLoader()
106 loader.setSortOrder(Email.SORT_KEY_ALTERNATIVE); in configureLoader()
DPostalAddressListAdapter.java79 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
85 loader.setUri(builder.build()); in configureLoader()
88 loader.setProjection(PostalQuery.PROJECTION_PRIMARY); in configureLoader()
90 loader.setProjection(PostalQuery.PROJECTION_ALTERNATIVE); in configureLoader()
94 loader.setSortOrder(StructuredPostal.SORT_KEY_PRIMARY); in configureLoader()
96 loader.setSortOrder(StructuredPostal.SORT_KEY_ALTERNATIVE); in configureLoader()
DLegacyPostalAddressListAdapter.java62 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
63 loader.setUri(ContactMethods.CONTENT_URI); in configureLoader()
64 loader.setProjection(POSTALS_PROJECTION); in configureLoader()
65 loader.setSortOrder(People.DISPLAY_NAME); in configureLoader()
66 loader.setSelection(ContactMethods.KIND + "=" + android.provider.Contacts.KIND_POSTAL); in configureLoader()
DLegacyContactListAdapter.java58 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
59 loader.setUri(People.CONTENT_URI); in configureLoader()
60 loader.setProjection(PEOPLE_PROJECTION); in configureLoader()
61 loader.setSortOrder(People.DISPLAY_NAME); in configureLoader()
DLegacyPhoneNumberListAdapter.java62 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
63 loader.setUri(Phones.CONTENT_URI); in configureLoader()
64 loader.setProjection(PHONES_PROJECTION); in configureLoader()
65 loader.setSortOrder(Phones.DISPLAY_NAME); in configureLoader()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolder.java439 public Folder(Parcel in, ClassLoader loader) { in Folder() argument
442 folderUri = new FolderUri((Uri) in.readParcelable(loader)); in Folder()
448 conversationListUri = in.readParcelable(loader); in Folder()
449 childFoldersListUri = in.readParcelable(loader); in Folder()
453 refreshUri = in.readParcelable(loader); in Folder()
467 loadMoreUri = in.readParcelable(loader); in Folder()
469 parent = in.readParcelable(loader); in Folder()
471 parent = in.readParcelable(loader); in Folder()
554 public Folder createFromParcel(Parcel source, ClassLoader loader) {
555 return new Folder(source, loader);
/packages/apps/Browser/src/com/android/browser/
DBrowserBookmarksPage.java117 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in onLoadFinished() argument
118 if (loader.getId() == LOADER_ACCOUNTS) { in onLoadFinished()
147 } else if (loader.getId() >= LOADER_BOOKMARKS) { in onLoadFinished()
148 BrowserBookmarksAdapter adapter = mBookmarkAdapters.get(loader.getId()); in onLoadFinished()
154 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
155 if (loader.getId() >= LOADER_BOOKMARKS) { in onLoaderReset()
156 BrowserBookmarksAdapter adapter = mBookmarkAdapters.get(loader.getId()); in onLoaderReset()
592 BookmarksLoader loader = (BookmarksLoader) ((Loader<?>) in loadFolder() local
594 loader.setUri(uri); in loadFolder()
595 loader.forceLoad(); in loadFolder()
DBrowserHistoryPage.java121 CursorLoader loader = new CursorLoader(getActivity(), combinedBuilder.build(), in onCreateLoader() local
123 return loader; in onCreateLoader()
131 CursorLoader loader = new CursorLoader(getActivity(), uri, in onCreateLoader() local
133 return loader; in onCreateLoader()
162 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { in onLoadFinished() argument
163 switch (loader.getId()) { in onLoadFinished()
189 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
DAddBookmarkPage.java164 CursorLoader loader = (CursorLoader) ((Loader<?>) manager.getLoader( in onTop() local
166 loader.setUri(getUriForFolder(folder)); in onTop()
167 loader.forceLoad(); in onTop()
392 public void onLoaderReset(Loader<EditBookmarkInfo> loader) {
397 public void onLoadFinished(Loader<EditBookmarkInfo> loader,
492 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in onLoadFinished() argument
493 switch (loader.getId()) { in onLoadFinished()
509 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
510 switch (loader.getId()) { 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
DPhotoSetFragment.java84 MediaItemsLoader loader = new MediaItemsLoader(getActivity()); in onCreateLoader() local
85 mLoaderCompatShim = loader; in onCreateLoader()
87 return loader; in onCreateLoader()
91 public void onLoadFinished(Loader<Cursor> loader, in onLoadFinished() argument
98 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
DAlbumFragment.java118 MediaItemsLoader loader = new MediaItemsLoader(getActivity(), mAlbumPath); in onCreateLoader() local
119 mLoaderCompatShim = loader; in onCreateLoader()
121 return loader; in onCreateLoader()
125 public void onLoadFinished(Loader<Cursor> loader, in onLoadFinished() argument
133 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DLeaveBehindData.java47 private LeaveBehindData(Parcel arg, ClassLoader loader) { in LeaveBehindData() argument
48 data = arg.readParcelable(loader); in LeaveBehindData()
49 op = arg.readParcelable(loader); in LeaveBehindData()
62 public LeaveBehindData createFromParcel(Parcel source, ClassLoader loader) {
63 return new LeaveBehindData(source, loader);
DNestedFolderTeaserView.java458 public void onLoaderReset(final Loader<ObjectCursor<Folder>> loader) {
463 public void onLoadFinished(final Loader<ObjectCursor<Folder>> loader,
536 final ObjectCursorLoader<Folder> loader = new ObjectCursorLoader<Folder>(getContext(),
539 loader.setUpdateThrottle(mFolderItemUpdateDelayMs);
540 return loader;
585 public void onLoaderReset(final Loader<ObjectCursor<Conversation>> loader) {
590 public void onLoadFinished(final Loader<ObjectCursor<Conversation>> loader,
597 final int folderId = getFolderId(loader.getId());
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.java348 CursorLoader loader; in onCreateLoader() local
356 loader = new CursorLoader( in onCreateLoader()
359 loader.setUpdateThrottle(LOADER_THROTTLE_DELAY); in onCreateLoader()
364 return loader; in onCreateLoader()
385 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { in onLoadFinished() argument
390 CursorLoader cLoader = (CursorLoader) loader; in onLoadFinished()
409 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java181 final ContactLoader loader = new ContactLoader(this, contactUri, true); in loadContact() local
182 loader.registerListener(0, new OnLoadCompleteListener<Contact>() { in loadContact()
185 Loader<Contact> loader, Contact contact) { in loadContact()
187 loader.reset(); in loadContact()
195 loader.startLoading(); in loadContact()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationActionUtils.java501 final Parcel in, final ClassLoader loader) {
502 return new NotificationAction(in, loader);
506 private NotificationAction(final Parcel in, final ClassLoader loader) { in NotificationAction() argument
508 mAccount = in.readParcelable(loader); in NotificationAction()
509 mConversation = in.readParcelable(loader); in NotificationAction()
510 mMessage = in.readParcelable(loader); in NotificationAction()
511 mFolder = in.readParcelable(loader); in NotificationAction()
/packages/apps/Email/src/com/android/email/activity/setup/
DSetupData.java198 final ClassLoader loader = getClass().getClassLoader(); in SetupData() local
200 mAccount = in.readParcelable(loader); in SetupData()
205 mPolicy = in.readParcelable(loader); in SetupData()
206 mAccountAuthenticatorResponse = in.readParcelable(loader); in SetupData()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDelta.java463 final ClassLoader loader = getClass().getClassLoader(); in readFromParcel() local
465 mValues = source.<ValuesDelta> readParcelable(loader); in readFromParcel()
467 final ValuesDelta child = source.<ValuesDelta> readParcelable(loader); in readFromParcel()
826 final ClassLoader loader = getClass().getClassLoader(); in readFromParcel() local
827 mBefore = source.<ContentValues> readParcelable(loader); in readFromParcel()
828 mAfter = source.<ContentValues> readParcelable(loader); in readFromParcel()

12345