Home
last modified time | relevance | path

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

123456

/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()
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()
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()
DPeopleAndOptionsData.java102 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { in onLoadFinished() argument
103 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoadFinished()
105 switch (loader.getId()) { in onLoadFinished()
130 public void onLoaderReset(final Loader<Cursor> loader) { in onLoaderReset() argument
131 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader; in onLoaderReset()
133 switch (loader.getId()) { in onLoaderReset()
/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.java154 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument
170 loader.setUri(builder.build()); in configureLoader()
171 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
199 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader()
204 final String prevSelection = loader.getSelection(); in configureLoader()
211 loader.setSelection(newSelection); in configureLoader()
215 loader.setUri(builder.build()); in configureLoader()
219 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
221 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
225 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); in configureLoader()
[all …]
DContactEntryListFragment.java334 DirectoryListLoader loader = new DirectoryListLoader(mContext); in onCreateLoader() local
335 loader.setDirectorySearchMode(mAdapter.getDirectorySearchMode()); in onCreateLoader()
336 loader.setLocalInvisibleDirectoryEnabled( in onCreateLoader()
338 return loader; in onCreateLoader()
340 CursorLoader loader = createCursorLoader(mContext); in onCreateLoader() local
344 mAdapter.configureLoader(loader, directoryId); in onCreateLoader()
345 return loader; in onCreateLoader()
411 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
416 int loaderId = loader.getId();
440 public void onLoaderReset(Loader<Cursor> loader) {
/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 loader.waitForLoader(); 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()
DMmsService.java100 static void setCarrierConfigValuesLoader(final CarrierConfigValuesLoader loader) { in setCarrierConfigValuesLoader() argument
101 sCarrierConfigValuesLoader = loader; in setCarrierConfigValuesLoader()
118 static void setApnSettingsLoader(final ApnSettingsLoader loader) { in setApnSettingsLoader() argument
119 sApnSettingsLoader = loader; in setApnSettingsLoader()
136 static void setUserAgentInfoLoader(final UserAgentInfoLoader loader) { in setUserAgentInfoLoader() argument
137 sUserAgentInfoLoader = loader; in setUserAgentInfoLoader()
/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()) {
95 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()
/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()
/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
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolder.java441 public Folder(Parcel in, ClassLoader loader) { in Folder() argument
444 folderUri = new FolderUri((Uri) in.readParcelable(loader)); in Folder()
450 conversationListUri = in.readParcelable(loader); in Folder()
451 childFoldersListUri = in.readParcelable(loader); in Folder()
455 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()
556 public Folder createFromParcel(Parcel source, ClassLoader loader) {
557 return new Folder(source, loader);
/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.java425 public void onLoaderReset(final Loader<ObjectCursor<Folder>> loader) {
430 public void onLoadFinished(final Loader<ObjectCursor<Folder>> loader,
517 final ObjectCursorLoader<Folder> loader = new ObjectCursorLoader<Folder>(getContext(),
520 loader.setUpdateThrottle(mFolderItemUpdateDelayMs);
521 return loader;
568 public void onLoaderReset(final Loader<ObjectCursor<Conversation>> loader) {
573 public void onLoadFinished(final Loader<ObjectCursor<Conversation>> loader,
580 final int folderId = getFolderId(loader.getId());
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCreationFragment.java220 public void onLoadFinished(Loader<Boolean> loader, Boolean success) { in onLoadFinished() argument
244 public void onLoaderReset(Loader<Boolean> loader) {} in onLoaderReset() argument
265 public void onLoadFinished(Loader<Account> loader, Account account) {
284 public void onLoaderReset(Loader<Account> loader) {}
311 public void onLoadFinished(final Loader<Account> loader, final Account account) {
339 public void onLoaderReset(Loader<Account> loader) {}

123456