Home | History | Annotate | Download | only in os

Lines Matching defs:Entry

50     /** Flag value: Entry's content was deleted to save space. */
63 * Broadcast Action: This is broadcast when a new entry is added in the dropbox.
82 * when the entry was created.
87 * A single entry retrieved from the drop box.
91 public static class Entry implements Parcelable, Closeable {
99 /** Create a new empty Entry with no contents. */
100 public Entry(String tag, long millis) {
110 /** Create a new Entry with plain text contents. */
111 public Entry(String tag, long millis, String text) {
123 * Create a new Entry with byte array contents.
124 * The data array must not be modified after creating this entry.
126 public Entry(String tag, long millis, byte[] data, int flags) {
140 * Create a new Entry with streaming data contents.
143 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) {
157 * Create a new Entry with the contents read from a file.
158 * The file will be read when the entry's contents are requested.
160 public Entry(String tag, long millis, File data, int flags) throws IOException {
171 /** Close the input stream associated with this entry. */
176 /** @return the tag originally attached to the entry. */
179 /** @return time when the entry was originally created. */
187 * @return the uncompressed text contents of the entry, null if the entry is not text.
211 /** @return the uncompressed contents of the entry, or null if the contents were lost */
224 public static final Parcelable.Creator<Entry> CREATOR = new Parcelable.Creator() {
225 public Entry[] newArray(int size) { return new Entry[size]; }
226 public Entry createFromParcel(Parcel in) {
231 return new Entry(tag, millis, in.createByteArray(), flags & ~HAS_BYTE_ARRAY);
234 return new Entry(tag, millis, pfd, flags);
277 * @param tag describing the type of entry being stored
282 mService.add(new Entry(tag, 0, data));
296 * @param tag describing the type of entry being stored
303 mService.add(new Entry(tag, 0, data, flags));
318 * @param tag describing the type of entry being stored
325 Entry entry = new Entry(tag, 0, file, flags);
327 mService.add(entry);
331 entry.close();
352 * Gets the next entry from the drop box <em>after</em> the specified time.
354 * {@link Entry#close()} on the return value!
356 * @param tag of entry to look for, null for all tags
357 * @param msec time of the last entry seen
358 * @return the next entry, or null if there are no more entries
360 public Entry getNextEntry(String tag, long msec) {