/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchivesProvider.java | 101 final Loader loader = getLoaderOrThrow(documentId); in queryChildDocuments() local 102 final int status = loader.getStatus(); in queryChildDocuments() 105 return loader.get().queryChildDocuments(documentId, projection, sortOrder); in queryChildDocuments() 139 final Loader loader = getLoaderOrThrow(documentId); in getDocumentType() local 140 return loader.get().getDocumentType(documentId); in getDocumentType() 145 final Loader loader = getLoaderOrThrow(documentId); in isChildDocument() local 146 return loader.get().isChildDocument(parentDocumentId, documentId); in isChildDocument() 202 final Loader loader = getLoaderOrThrow(documentId); in queryDocument() local 203 return loader.get().queryDocument(documentId, projection); in queryDocument() 210 final Loader loader = getLoaderOrThrow(parentDocumentId); in createDocument() local [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestSupportLoaderManager.java | 22 import androidx.loader.app.LoaderManager; 23 import androidx.loader.content.AsyncTaskLoader; 24 import androidx.loader.content.Loader; 25 import androidx.loader.content.Loader.OnLoadCompleteListener; 45 Loader<D> loader = mLoaders.get(id); in initLoader() local 47 if (loader == null) { in initLoader() 48 loader = callback.onCreateLoader(id, args); in initLoader() 49 mLoaders.put(id, loader); in initLoader() 51 loader.unregisterListener(mListeners.get(id)); in initLoader() 54 loader.registerListener(id, listener); in initLoader() [all …]
|
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/Contacts/src/com/android/contacts/list/ |
D | DefaultContactListAdapter.java | 53 public void configureLoader(CursorLoader loader, long directoryId) { in configureLoader() argument 54 if (loader instanceof FavoritesAndContactsLoader) { in configureLoader() 55 ((FavoritesAndContactsLoader) loader).setLoadFavorites(shouldIncludeFavorites()); in configureLoader() 66 loader.setUri(Contacts.CONTENT_URI); in configureLoader() 67 loader.setProjection(getProjection(false)); in configureLoader() 68 loader.setSelection("0"); in configureLoader() 71 configureUri(loader, directoryId, filter); in configureLoader() 75 loader.setProjection(getProjection(/* forSearch */ false)); in configureLoader() 76 loader.setSelection( in configureLoader() 81 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()
|
/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 | 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 | 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 | 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/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); 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/KeyChain/robotests/src/com/android/keychain/ |
D | AliasLoaderTest.java | 155 KeyChainActivity.AliasLoader loader = in testAliasLoader_loadsAllAliases() local 161 loader.execute(); in testAliasLoader_loadsAllAliases() 164 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_loadsAllAliases() 179 KeyChainActivity.AliasLoader loader = in testAliasLoader_copesWithNoAliases() local 185 loader.execute(); in testAliasLoader_copesWithNoAliases() 188 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_copesWithNoAliases() 205 KeyChainActivity.AliasLoader loader = in testAliasLoader_filtersNonUserSelectableAliases() local 208 loader.execute(); in testAliasLoader_filtersNonUserSelectableAliases() 211 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_filtersNonUserSelectableAliases() 242 KeyChainActivity.AliasLoader loader = in testAliasLoader_filtersAliasesWithNonConformingParameters() local [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/DocumentsUI/src/com/android/documentsui/inspector/ |
D | RuntimeDataSupplier.java | 29 import androidx.loader.app.LoaderManager; 30 import androidx.loader.app.LoaderManager.LoaderCallbacks; 31 import androidx.loader.content.CursorLoader; 32 import androidx.loader.content.Loader; 118 public void onLoadFinished(Loader<Bundle> loader, Bundle data) { in getDocumentMetadata() 123 public void onLoaderReset(Loader<Bundle> loader) { in getDocumentMetadata() 182 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in onLoadFinished() argument 185 mObserver = new InspectorContentObserver(loader::onContentChanged); in onLoadFinished() 193 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
D | NewSearchFragment.java | 222 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { in onLoadFinished() argument 223 LogUtil.i("NewSearchFragment.onLoadFinished", "Loader finished: " + loader); in onLoadFinished() 225 && !(loader instanceof DirectoriesCursorLoader) in onLoadFinished() 230 if (loader instanceof SearchContactsCursorLoader) { in onLoadFinished() 233 } else if (loader instanceof NearbyPlacesCursorLoader) { in onLoadFinished() 236 } else if (loader instanceof DirectoryContactsCursorLoader) { in onLoadFinished() 239 } else if (loader instanceof DirectoriesCursorLoader) { in onLoadFinished() 246 throw new IllegalStateException("Invalid loader: " + loader); in onLoadFinished() 251 public void onLoaderReset(Loader<Cursor> loader) { in onLoaderReset() argument 252 LogUtil.i("NewSearchFragment.onLoaderReset", "Loader reset: " + loader); in onLoaderReset() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | ConfigureNotificationSettingsTest.java | 53 SummaryLoader loader = mock(SummaryLoader.class); in getSummary_noneBlocked() local 57 (SummaryProvider) SUMMARY_PROVIDER_FACTORY.createSummaryProvider(mActivity, loader); in getSummary_noneBlocked() 63 verify(loader).setSummary(any(), captor.capture()); in getSummary_noneBlocked() 70 SummaryLoader loader = mock(SummaryLoader.class); in getSummary_someBlocked() local 74 (SummaryProvider) SUMMARY_PROVIDER_FACTORY.createSummaryProvider(mActivity, loader); in getSummary_someBlocked() 80 verify(loader).setSummary(any(), captor.capture()); in getSummary_someBlocked()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | PhoneFavoriteTileView.java | 193 private ContactLoader loader; 200 if (loader != null) { 202 loader.reset(); 204 loader = new ContactLoader(context, contactUri, true /* postViewNotification */); 206 loader.registerListener(0, (loader1, contact) -> loader.reset()); 207 loader.startLoading();
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageSettingsManager.java | 29 import androidx.loader.app.LoaderManager; 30 import androidx.loader.content.Loader; 122 Loader<PrivateStorageInfo> loader, PrivateStorageInfo privateStorageInfo) { in onLoadFinished() argument 131 public void onLoaderReset(Loader<PrivateStorageInfo> loader) { in onLoaderReset() argument 151 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 159 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
|
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | PowerUsageSummary.java | 35 import androidx.loader.app.LoaderManager; 36 import androidx.loader.app.LoaderManager.LoaderCallbacks; 37 import androidx.loader.content.Loader; 114 public void onLoadFinished(Loader<BatteryInfo> loader, BatteryInfo batteryInfo) { 121 public void onLoaderReset(Loader<BatteryInfo> loader) { 134 public void onLoadFinished(Loader<List<BatteryInfo>> loader, 140 public void onLoaderReset(Loader<List<BatteryInfo>> loader) { 180 public void onLoadFinished(Loader<List<BatteryTip>> loader, 186 public void onLoaderReset(Loader<List<BatteryTip>> loader) {
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummary.java | 39 import androidx.loader.app.LoaderManager; 40 import androidx.loader.app.LoaderManager.LoaderCallbacks; 41 import androidx.loader.content.Loader; 127 public void onLoadFinished(Loader<BatteryInfo> loader, BatteryInfo batteryInfo) { 134 public void onLoaderReset(Loader<BatteryInfo> loader) { 147 public void onLoadFinished(Loader<List<BatteryInfo>> loader, 153 public void onLoaderReset(Loader<List<BatteryInfo>> loader) { 191 public void onLoadFinished(Loader<List<BatteryTip>> loader, 197 public void onLoaderReset(Loader<List<BatteryTip>> loader) {
|