Lines Matching refs:loader
116 Loader loader = null;
118 loader = obtainInstance(documentId);
119 return loader.get().queryChildDocuments(documentId, projection, sortOrder);
121 releaseInstance(loader);
131 Loader loader = null;
133 loader = obtainInstance(documentId);
134 return loader.get().getDocumentType(documentId);
136 releaseInstance(loader);
147 Loader loader = null;
149 loader = obtainInstance(documentId);
150 return loader.get().isChildDocument(parentDocumentId, documentId);
154 releaseInstance(loader);
165 Loader loader = null;
167 loader = obtainInstance(documentId);
168 return loader.get().queryDocument(documentId, projection);
170 releaseInstance(loader);
182 Loader loader = null;
184 loader = obtainInstance(documentId);
185 return loader.get().openDocument(documentId, mode, signal);
187 releaseInstance(loader);
199 Loader loader = null;
201 loader = obtainInstance(documentId);
202 return loader.get().openDocumentThumbnail(documentId, sizeHint, signal);
204 releaseInstance(loader);
254 Loader loader;
256 loader = getInstanceUncheckedLocked(documentId);
257 loader.getReadLock().lock();
259 return loader;
262 private void releaseInstance(@Nullable Loader loader) {
263 if (loader != null) {
264 loader.getReadLock().unlock();
287 final Loader loader = new Loader(mProvider, localFile, id, mIdDelimiter,
300 if (currentLoader == loader) {
308 mArchives.put(id.mArchiveId, loader);
309 return loader;