Searched refs:editor (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/java/libcore/net/http/
H A DHttpResponseCache.java159 DiskLruCache.Editor editor = null;
161 editor = cache.edit(key);
162 if (editor == null) {
165 entry.writeTo(editor);
166 return new CacheRequestImpl(editor);
168 abortQuietly(editor);
189 DiskLruCache.Editor editor = null;
191 editor = snapshot.edit(); // returns null if snapshot is not current
192 if (editor != null) {
193 entry.writeTo(editor);
201 abortQuietly(DiskLruCache.Editor editor) argument
264 private final DiskLruCache.Editor editor; field in class:HttpResponseCache.CacheRequestImpl
269 CacheRequestImpl(final DiskLruCache.Editor editor) argument
428 writeTo(DiskLruCache.Editor editor) argument
[all...]
/libcore/luni/src/test/java/libcore/io/
H A DDiskLruCacheTest.java153 DiskLruCache.Editor editor = cache.edit("k1");
154 editor.set(0, "A");
155 editor.set(1, "B");
156 editor.commit();
157 assertInoperable(editor);
161 DiskLruCache.Editor editor = cache.edit("k1");
162 editor.set(0, "A");
163 editor.set(1, "B");
164 editor.abort();
165 assertInoperable(editor);
747 assertInoperable(DiskLruCache.Editor editor) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DDiskLruCache.java65 * entry may have only one editor at one time; if a value is not available to be
397 * Returns an editor for the entry named {@code key}, or null if another
419 Editor editor = new Editor(entry);
420 entry.currentEditor = editor;
425 return editor;
452 private synchronized void completeEdit(Editor editor, boolean success) throws IOException { argument
453 Entry entry = editor.entry;
454 if (entry.currentEditor != editor) {
461 if (!editor.written[i]) {
462 editor
[all...]

Completed in 370 milliseconds