Merge change Ib3b06fc3 into eclair-mr2

* changes:
  It turns out to be useful to allow enumeration on a per-tag basis, and it's easy to support based on the data structures we have, so add a tag parameter to getNextEvent().
This commit is contained in:
Android (Google) Code Review
2009-10-20 16:23:01 -04:00
3 changed files with 116 additions and 56 deletions

View File

@@ -77,12 +77,14 @@ interface IDropBox {
/**
* Gets the next entry from the drop box *after* the specified time.
* Requires android.permission.READ_LOGS.
* Requires android.permission.READ_LOGS. You must always call
* {@link DropBoxEntry#close()} on the return value!
*
* @param tag of entry to look for, null for all tags
* @param millis time of the last entry seen
* @return the next entry, or null if there are no more entries
*/
DropBoxEntry getNextEntry(long millis);
DropBoxEntry getNextEntry(String tag, long millis);
// TODO: It may be useful to have some sort of notification mechanism
// when data is added to the dropbox, for demand-driven readers --