Home
last modified time | relevance | path

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

12345

/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DDefaultContactListAdapter.java51 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
52 if (loader instanceof ProfileAndContactsLoader) { in configureLoader()
53 ((ProfileAndContactsLoader) loader).setLoadProfile(shouldIncludeProfile()); in configureLoader()
66 loader.setUri(Contacts.CONTENT_URI); in configureLoader()
67 loader.setProjection(getProjection(false)); in configureLoader()
68 loader.setSelection("0"); in configureLoader()
79 loader.setUri(builder.build()); in configureLoader()
80 loader.setProjection(getProjection(true)); in configureLoader()
83 configureUri(loader, directoryId, filter); in configureLoader()
84 loader.setProjection(getProjection(false)); in configureLoader()
[all …]
DPhoneNumberListAdapter.java135 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
151 loader.setUri(builder.build()); in configureLoader()
152 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
180 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader()
185 final String prevSelection = loader.getSelection(); in configureLoader()
192 loader.setSelection(newSelection); in configureLoader()
196 loader.setUri(builder.build()); in configureLoader()
200 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
202 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
206 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); in configureLoader()
[all …]
DContactEntryListFragment.java326 DirectoryListLoader loader = new DirectoryListLoader(mContext); in onCreateLoader() local
327 loader.setDirectorySearchMode(mAdapter.getDirectorySearchMode()); in onCreateLoader()
328 loader.setLocalInvisibleDirectoryEnabled( in onCreateLoader()
330 return loader; in onCreateLoader()
332 CursorLoader loader = createCursorLoader(mContext); in onCreateLoader() local
336 mAdapter.configureLoader(loader, directoryId); in onCreateLoader()
337 return loader; in onCreateLoader()
391 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { in onLoadFinished() argument
396 int loaderId = loader.getId(); in onLoadFinished()
420 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
/packages/apps/Contacts/src/com/android/contacts/interactions/
DTestLoaderManager.java138 final AsyncTaskLoader<?> loader = in waitForLoaders() local
140 if (loader == null) { in waitForLoaders()
145 loaders.add(loader); in waitForLoaders()
159 final AsyncTaskLoader<?> loader = (AsyncTaskLoader<?>) loaders[i]; in waitForLoaders() local
164 loader.waitForLoader(); in waitForLoaders()
166 Log.e(TAG, "Exception while waiting for loader: " + loader.getId(), e); in waitForLoaders()
167 Assert.fail("Exception while waiting for loader: " + loader.getId()); in waitForLoaders()
193 public void onLoadFinished(Loader<D> loader, D data) { in initLoader() argument
194 callback.onLoadFinished(loader, data); in initLoader()
201 public void onLoaderReset(Loader<D> loader) { in initLoader() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DJoinContactListAdapter.java72 JoinContactLoader loader = (JoinContactLoader) cursorLoader; in configureLoader() local
85 loader.setSuggestionUri(builder.build()); in configureLoader()
88 loader.setProjection(getProjection(false)); in configureLoader()
102 loader.setUri(allContactsUri); in configureLoader()
103 loader.setSelection(Contacts._ID + "!=?"); in configureLoader()
104 loader.setSelectionArgs(new String[]{ String.valueOf(mTargetContactId) }); in configureLoader()
106 loader.setSortOrder(Contacts.SORT_KEY_PRIMARY); in configureLoader()
108 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) {
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()
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()
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/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/UnifiedEmail/src/com/android/mail/providers/
DFolder.java440 public Folder(Parcel in, ClassLoader loader) { in Folder() argument
443 folderUri = new FolderUri((Uri) in.readParcelable(loader)); in Folder()
449 conversationListUri = in.readParcelable(loader); in Folder()
450 childFoldersListUri = in.readParcelable(loader); in Folder()
454 refreshUri = in.readParcelable(loader); in Folder()
468 loadMoreUri = in.readParcelable(loader); in Folder()
470 parent = in.readParcelable(loader); in Folder()
472 parent = in.readParcelable(loader); in Folder()
557 public Folder createFromParcel(Parcel source, ClassLoader loader) {
558 return new Folder(source, loader);
/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/
DNestedFolderTeaserView.java461 public void onLoaderReset(final Loader<ObjectCursor<Folder>> loader) {
466 public void onLoadFinished(final Loader<ObjectCursor<Folder>> loader,
539 final ObjectCursorLoader<Folder> loader = new ObjectCursorLoader<Folder>(getContext(),
542 loader.setUpdateThrottle(mFolderItemUpdateDelayMs);
543 return loader;
590 public void onLoaderReset(final Loader<ObjectCursor<Conversation>> loader) {
595 public void onLoadFinished(final Loader<ObjectCursor<Conversation>> loader,
602 final int folderId = getFolderId(loader.getId());
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);
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCreationFragment.java219 public void onLoadFinished(Loader<Boolean> loader, Boolean success) { in onLoadFinished() argument
243 public void onLoaderReset(Loader<Boolean> loader) {} in onLoaderReset() argument
264 public void onLoadFinished(Loader<Account> loader, Account account) {
283 public void onLoaderReset(Loader<Account> loader) {}
310 public void onLoadFinished(final Loader<Account> loader, final Account account) {
338 public void onLoaderReset(Loader<Account> loader) {}
/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/InCallUI/src/com/android/incallui/
DCallerInfoUtils.java178 final ContactLoader loader = new ContactLoader(context, contactUri, in sendViewNotification() local
180 loader.registerListener(0, new OnLoadCompleteListener<Contact>() { in sendViewNotification()
183 Loader<Contact> loader, Contact contact) { in sendViewNotification()
185 loader.reset(); in sendViewNotification()
191 loader.startLoading(); in sendViewNotification()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java189 final ContactLoader loader = new ContactLoader(this, contactUri, true); in loadContact() local
190 loader.registerListener(0, new OnLoadCompleteListener<Contact>() { in loadContact()
193 Loader<Contact> loader, Contact contact) { in loadContact()
195 loader.reset(); in loadContact()
203 loader.startLoading(); in loadContact()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationActionUtils.java609 final Parcel in, final ClassLoader loader) {
610 return new NotificationAction(in, loader);
614 private NotificationAction(final Parcel in, final ClassLoader loader) { in NotificationAction() argument
616 mAccount = in.readParcelable(loader); in NotificationAction()
617 mConversation = in.readParcelable(loader); in NotificationAction()
618 mMessage = in.readParcelable(loader); in NotificationAction()
619 mFolder = in.readParcelable(loader); in NotificationAction()

12345