Searched refs:loader (Results 1 - 25 of 198) sorted by relevance

12345678

/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DLicenseHtmlLoaderTest.java50 LicenseHtmlLoader loader = spy(new LicenseHtmlLoader(mContext));
51 doReturn(xmlFiles).when(loader).getVaildXmlFiles();
52 doReturn(cachedHtmlFile).when(loader).getCachedHtmlFile();
53 doReturn(isCachedHtmlFileOutdated).when(loader).isCachedHtmlFileOutdated(any(), any());
54 doReturn(generateHtmlFileSucceeded).when(loader).generateHtmlFile(any(), any());
55 return loader;
69 LicenseHtmlLoader loader = newLicenseHtmlLoader(xmlFiles, cachedHtmlFile, true, true);
71 assertThat(loader.loadInBackground()).isEqualTo(cachedHtmlFile);
72 verify(loader).generateHtmlFile(any(), any());
80 LicenseHtmlLoader loader
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DTestLoaderManager.java31 * created. If caller needs to kick off loading caller can obtain the loader initialized and
42 Loader<D> loader = mLoaders.get(id);
44 if (loader == null) {
45 loader = callback.onCreateLoader(id, args);
46 mLoaders.put(id, loader);
48 loader.unregisterListener(mListeners.get(id));
51 loader.registerListener(id, listener);
54 return loader;
69 Loader loader = getLoader(id);
70 if (loader !
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
H A DArchivesProvider.java107 final Loader loader = getLoaderOrThrow(documentId);
108 final int status = loader.getStatus();
111 return loader.get().queryChildDocuments(documentId, projection, sortOrder);
145 final Loader loader = getLoaderOrThrow(documentId);
146 return loader.get().getDocumentType(documentId);
151 final Loader loader = getLoaderOrThrow(documentId);
152 return loader.get().isChildDocument(parentDocumentId, documentId);
182 final Loader loader = getLoaderOrThrow(documentId);
183 return loader.get().queryDocument(documentId, projection);
190 final Loader loader
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DLeaveBehindData.java47 private LeaveBehindData(Parcel arg, ClassLoader loader) { argument
48 data = arg.readParcelable(loader);
49 op = arg.readParcelable(loader);
62 public LeaveBehindData createFromParcel(Parcel source, ClassLoader loader) {
63 return new LeaveBehindData(source, loader);
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
H A DSavedQueryRecorderAndRemoverTest.java64 final SavedQueryLoader loader = new SavedQueryLoader(mContext);
65 List<? extends SearchResult> results = loader.loadInBackground();
73 results = loader.loadInBackground();
86 final SavedQueryLoader loader = new SavedQueryLoader(mContext);
87 List<? extends SearchResult> results = loader.loadInBackground();
91 results = loader.loadInBackground();
H A DDatabaseResultLoaderTest.java84 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "title", mSiteMapManager);
85 assertThat(loader.loadInBackground().size()).isEqualTo(2);
91 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "summary",
93 assertThat(loader.loadInBackground().size()).isEqualTo(2);
98 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "keywords",
100 assertThat(loader.loadInBackground().size()).isEqualTo(2);
105 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "entries",
107 assertThat(loader.loadInBackground().size()).isEqualTo(2);
113 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "usage", mSiteMapManager);
114 assertThat(loader
[all...]
H A DSearchFeatureProviderImplTest.java65 final DatabaseResultLoader loader = mProvider.getDatabaseSearchLoader(mActivity, query);
67 assertThat(loader.mQueryText).isEqualTo(query.trim());
73 final InstalledAppResultLoader loader =
76 assertThat(loader.mQuery).isEqualTo(query.trim());
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
H A DTestLoaderManager.java84 // This loader has already completed since the last reset, do not wait for it.
88 final AsyncTaskLoader<?> loader =
90 if (loader == null) {
95 loaders.add(loader);
105 // We want to wait for each loader using a separate thread, so that we can
109 final AsyncTaskLoader<?> loader = (AsyncTaskLoader<?>) loaders[i];
114 AsyncTaskLoader.class.getMethod("waitForLoader").invoke(loader, null);
116 Log.e(TAG, "Exception while waiting for loader: " + loader.getId(), e);
117 Assert.fail("Exception while waiting for loader
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DDefaultContactListAdapter.java82 public void configureLoader(CursorLoader loader, long directoryId) { argument
83 if (loader instanceof FavoritesAndContactsLoader) {
84 ((FavoritesAndContactsLoader) loader).setLoadFavorites(shouldIncludeFavorites());
95 loader.setUri(Contacts.CONTENT_URI);
96 loader.setProjection(getProjection(false));
97 loader.setSelection("0");
100 configureUri(loader, directoryId, filter);
104 loader.setProjection(getProjection(/* forSearch */ false));
105 loader.setSelection(
110 loader
162 configureUri(CursorLoader loader, long directoryId, ContactListFilter filter) argument
195 configureSelection( CursorLoader loader, long directoryId, ContactListFilter filter) argument
[all...]
H A DLegacyPostalAddressListAdapter.java59 public void configureLoader(CursorLoader loader, long directoryId) { argument
60 loader.setUri(ContactMethods.CONTENT_URI);
61 loader.setProjection(POSTALS_PROJECTION);
62 loader.setSortOrder(People.DISPLAY_NAME);
63 loader.setSelection(ContactMethods.KIND + "=" + android.provider.Contacts.KIND_POSTAL);
H A DLegacyContactListAdapter.java55 public void configureLoader(CursorLoader loader, long directoryId) { argument
56 loader.setUri(People.CONTENT_URI);
57 loader.setProjection(PEOPLE_PROJECTION);
58 loader.setSortOrder(People.DISPLAY_NAME);
H A DLegacyPhoneNumberListAdapter.java59 public void configureLoader(CursorLoader loader, long directoryId) { argument
60 loader.setUri(Phones.CONTENT_URI);
61 loader.setProjection(PHONES_PROJECTION);
62 loader.setSortOrder(Phones.DISPLAY_NAME);
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DDefaultContactListAdapter.java44 public void configureLoader(CursorLoader loader, long directoryId) { argument
55 loader.setUri(Contacts.CONTENT_URI);
56 loader.setProjection(getProjection(false));
57 loader.setSelection("0");
61 loader.setUri(builder.build());
62 loader.setProjection(getProjection(true));
66 configureUri(loader, directoryId, filter);
67 loader.setProjection(getProjection(false));
68 configureSelection(loader, directoryId, filter);
84 loader
98 configureUri(CursorLoader loader, long directoryId, ContactListFilter filter) argument
121 configureSelection(CursorLoader loader, long directoryId, ContactListFilter filter) argument
[all...]
/packages/apps/Messaging/src/android/support/v7/mms/
H A DMmsManager.java77 * Set the optional carrier config values loader
82 * @param loader the carrier config values loader
84 public static void setCarrierConfigValuesLoader(CarrierConfigValuesLoader loader) { argument
85 if (loader == null) {
86 throw new IllegalArgumentException("Carrier configuration loader can not be empty");
89 MmsService.setCarrierConfigValuesLoader(loader);
95 * Set the optional APN settings loader
99 * @param loader the APN settings loader
101 setApnSettingsLoader(ApnSettingsLoader loader) argument
116 setUserAgentInfoLoader(final UserAgentInfoLoader loader) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DBlockedParticipantsData.java68 public void onLoadFinished(final Loader<Cursor> loader, final Cursor cursor) { argument
69 Assert.isTrue(loader.getId() == BLOCKED_PARTICIPANTS_LOADER);
70 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader;
76 public void onLoaderReset(final Loader<Cursor> loader) { argument
77 Assert.isTrue(loader.getId() == BLOCKED_PARTICIPANTS_LOADER);
78 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader;
H A DContactPickerData.java81 Assert.fail("Unknown loader id for contact picker!");
94 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { argument
95 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader;
97 switch (loader.getId()) {
109 Assert.fail("Unknown loader id for contact picker!");
113 if (loader.getId() != PARTICIPANT_LOADER) {
115 // all contacts and frequent contacts loader, and we don't know which will finish
132 public void onLoaderReset(final Loader<Cursor> loader) { argument
133 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader;
135 switch (loader
[all...]
H A DConversationListData.java86 Loader<Cursor> loader = null;
91 loader = new BoundCursorLoader(bindingId, mContext,
97 loader = new BoundCursorLoader(bindingId, mContext,
105 Assert.fail("Unknown loader id");
109 LogUtil.w(TAG, "Creating loader after unbinding list");
111 return loader;
119 final BoundCursorLoader loader = (BoundCursorLoader) generic;
120 if (isBound(loader.getBindingId())) {
121 switch (loader.getId()) {
135 Assert.fail("Unknown loader i
[all...]
H A DMediaPickerData.java70 Assert.fail("Unknown loader id for gallery picker!");
83 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { argument
84 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader;
86 switch (loader.getId()) {
93 Assert.fail("Unknown loader id for gallery picker!");
105 public void onLoaderReset(final Loader<Cursor> loader) { argument
106 final BoundCursorLoader cursorLoader = (BoundCursorLoader) loader;
108 switch (loader.getId()) {
115 Assert.fail("Unknown loader id for media picker!");
135 Assert.fail("Unsupported loader i
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DParcelableSparseArray.java40 final ClassLoader loader = array.getClass().getClassLoader();
43 array.put(source.readInt(), source.readParcelable(loader));
/packages/apps/Settings/src/com/android/settings/widget/
H A DRtlCompatibleViewPager.java100 private RtlSavedState(Parcel in, ClassLoader loader) { argument
101 super(in, loader);
115 ClassLoader loader) {
116 return new RtlSavedState(source, loader);
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
H A DBuglePhotoViewFragment.java42 public void onLoadFinished(Loader<BitmapResult> loader, BitmapResult result) { argument
43 super.onLoadFinished(loader, result);
45 if (PhotoViewCallbacks.BITMAP_LOADER_PHOTO == loader.getId()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
H A DNewSearchFragment.java70 // TODO add enterprise loader
76 throw new IllegalStateException("Invalid loader id: " + id);
81 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { argument
82 if (loader instanceof SearchContactsCursorLoader) {
84 } else if (loader instanceof NearbyPlacesCursorLoader) {
87 throw new IllegalStateException("Invalid loader: " + loader);
92 public void onLoaderReset(Loader<Cursor> loader) { argument
/packages/apps/Gallery2/src/com/android/photos/
H A DAlbumSetFragment.java73 MediaSetLoader loader = new MediaSetLoader(getActivity());
74 mAdapter.setDrawableFactory(loader);
75 mLoaderCompatShim = loader;
76 return loader;
80 public void onLoadFinished(Loader<Cursor> loader, argument
87 public void onLoaderReset(Loader<Cursor> loader) { argument
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
H A DPhoneLoader.java75 CursorLoader loader = newStrequentContactLoader(context);
76 loader.registerListener(0, listener);
77 loader.startLoading();
78 return loader;
123 CursorLoader loader = new CursorLoader(context, uri, null, selection,
125 loader.registerListener(0, listener);
126 loader.startLoading();
127 return loader;
/packages/apps/Contacts/src/com/android/contacts/
H A DViewNotificationService.java48 public void onLoadComplete(Loader<Contact> loader, Contact data) {
50 loader.reset();
52 Log.e(TAG, "Error reseting loader", e);

Completed in 402 milliseconds

12345678