/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
D | DatabaseResultLoaderTest.java | 84 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "title", mSiteMapManager); in testMatchTitle() local 85 assertThat(loader.loadInBackground().size()).isEqualTo(2); in testMatchTitle() 91 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "summary", in testMatchSummary() local 93 assertThat(loader.loadInBackground().size()).isEqualTo(2); in testMatchSummary() 98 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "keywords", in testMatchKeywords() local 100 assertThat(loader.loadInBackground().size()).isEqualTo(2); in testMatchKeywords() 105 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "entries", in testMatchEntries() local 107 assertThat(loader.loadInBackground().size()).isEqualTo(2); in testMatchEntries() 113 DatabaseResultLoader loader = new DatabaseResultLoader(mContext, "usage", mSiteMapManager); in testSpecialCaseWord_matchesNonPrefix() local 114 assertThat(loader.loadInBackground().size()).isEqualTo(1); in testSpecialCaseWord_matchesNonPrefix() [all …]
|
D | SavedQueryRecorderAndRemoverTest.java | 64 final SavedQueryLoader loader = new SavedQueryLoader(mContext); in canSaveAndRemoveQuery() local 65 List<? extends SearchResult> results = loader.loadInBackground(); in canSaveAndRemoveQuery() 73 results = loader.loadInBackground(); in canSaveAndRemoveQuery() 86 final SavedQueryLoader loader = new SavedQueryLoader(mContext); in canRemoveAllQueriesAtOnce() local 87 List<? extends SearchResult> results = loader.loadInBackground(); in canRemoveAllQueriesAtOnce() 91 results = loader.loadInBackground(); in canRemoveAllQueriesAtOnce()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchivesProvider.java | 107 final Loader loader = getLoaderOrThrow(documentId); in queryChildDocuments() local 108 final int status = loader.getStatus(); in queryChildDocuments() 111 return loader.get().queryChildDocuments(documentId, projection, sortOrder); in queryChildDocuments() 145 final Loader loader = getLoaderOrThrow(documentId); in getDocumentType() local 146 return loader.get().getDocumentType(documentId); in getDocumentType() 151 final Loader loader = getLoaderOrThrow(documentId); in isChildDocument() local 152 return loader.get().isChildDocument(parentDocumentId, documentId); in isChildDocument() 182 final Loader loader = getLoaderOrThrow(documentId); in queryDocument() local 183 return loader.get().queryDocument(documentId, projection); in queryDocument() 190 final Loader loader = getLoaderOrThrow(parentDocumentId); in createDocument() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | LicenseHtmlLoaderTest.java | 50 LicenseHtmlLoader loader = spy(new LicenseHtmlLoader(mContext)); in newLicenseHtmlLoader() local 51 doReturn(xmlFiles).when(loader).getVaildXmlFiles(); in newLicenseHtmlLoader() 52 doReturn(cachedHtmlFile).when(loader).getCachedHtmlFile(); in newLicenseHtmlLoader() 53 doReturn(isCachedHtmlFileOutdated).when(loader).isCachedHtmlFileOutdated(any(), any()); in newLicenseHtmlLoader() 54 doReturn(generateHtmlFileSucceeded).when(loader).generateHtmlFile(any(), any()); in newLicenseHtmlLoader() 55 return loader; in newLicenseHtmlLoader() 69 LicenseHtmlLoader loader = newLicenseHtmlLoader(xmlFiles, cachedHtmlFile, true, true); in testLoadInBackground() local 71 assertThat(loader.loadInBackground()).isEqualTo(cachedHtmlFile); in testLoadInBackground() 72 verify(loader).generateHtmlFile(any(), any()); in testLoadInBackground() 80 LicenseHtmlLoader loader = newLicenseHtmlLoader(xmlFiles, cachedHtmlFile, true, true); in testLoadInBackgroundWithNoVaildXmlFiles() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | DefaultContactListAdapter.java | 82 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 83 if (loader instanceof FavoritesAndContactsLoader) { in configureLoader() 84 ((FavoritesAndContactsLoader) loader).setLoadFavorites(shouldIncludeFavorites()); in configureLoader() 95 loader.setUri(Contacts.CONTENT_URI); in configureLoader() 96 loader.setProjection(getProjection(false)); in configureLoader() 97 loader.setSelection("0"); in configureLoader() 100 configureUri(loader, directoryId, filter); in configureLoader() 104 loader.setProjection(getProjection(/* forSearch */ false)); in configureLoader() 105 loader.setSelection( in configureLoader() 110 loader.setSelectionArgs(args); in configureLoader() [all …]
|
D | PhoneNumberListAdapter.java | 195 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 …]
|
D | JoinContactListAdapter.java | 69 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()
|
D | MultiSelectEmailAddressesListAdapter.java | 87 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()
|
D | MultiSelectPhoneNumbersListAdapter.java | 87 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()
|
D | PostalAddressListAdapter.java | 77 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 83 loader.setUri(builder.build()); in configureLoader() 86 loader.setProjection(PostalQuery.PROJECTION_PRIMARY); in configureLoader() 88 loader.setProjection(PostalQuery.PROJECTION_ALTERNATIVE); in configureLoader() 92 loader.setSortOrder(StructuredPostal.SORT_KEY_PRIMARY); in configureLoader() 94 loader.setSortOrder(StructuredPostal.SORT_KEY_ALTERNATIVE); in configureLoader()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationData.java | 186 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 …]
|
D | ConversationListData.java | 86 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()
|
D | ContactPickerData.java | 94 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()
|
D | SettingsData.java | 133 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()
|
D | BlockedParticipantsData.java | 68 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()
|
D | MediaPickerData.java | 83 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()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestLoaderManager.java | 42 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/Dialer/java/com/android/contacts/common/list/ |
D | DefaultContactListAdapter.java | 44 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 55 loader.setUri(Contacts.CONTENT_URI); in configureLoader() 56 loader.setProjection(getProjection(false)); in configureLoader() 57 loader.setSelection("0"); in configureLoader() 61 loader.setUri(builder.build()); in configureLoader() 62 loader.setProjection(getProjection(true)); in configureLoader() 66 configureUri(loader, directoryId, filter); in configureLoader() 67 loader.setProjection(getProjection(false)); in configureLoader() 68 configureSelection(loader, directoryId, filter); in configureLoader() 84 loader.setSortOrder(sortOrder); in configureLoader() [all …]
|
D | PhoneNumberListAdapter.java | 97 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 112 loader.setUri(builder.build()); in configureLoader() 113 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader() 145 applyFilter(loader, builder, directoryId, getFilter()); in configureLoader() 150 final String prevSelection = loader.getSelection(); in configureLoader() 157 loader.setSelection(newSelection); in configureLoader() 161 loader.setUri(builder.build()); in configureLoader() 165 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader() 167 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader() 171 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); in configureLoader() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
D | TestLoaderManager.java | 88 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, null); 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/ |
D | MmsManager.java | 84 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/Car/Dialer/src/com/android/car/dialer/telecom/ |
D | PhoneLoader.java | 75 CursorLoader loader = newStrequentContactLoader(context); in registerCallObserver() local 76 loader.registerListener(0, listener); in registerCallObserver() 77 loader.startLoading(); in registerCallObserver() 78 return loader; in registerCallObserver() 123 CursorLoader loader = new CursorLoader(context, uri, null, selection, in fetchCallLog() local 125 loader.registerListener(0, listener); in fetchCallLog() 126 loader.startLoading(); in fetchCallLog() 127 return loader; in fetchCallLog()
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | AlbumSetFragment.java | 73 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/UnifiedEmail/src/com/android/mail/ui/ |
D | LeaveBehindData.java | 47 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/Contacts/src/com/android/contacts/group/ |
D | GroupMembersAdapter.java | 108 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()
|