Merge "Remove DropBoxManager::getNextEntry"

This commit is contained in:
TreeHugger Robot
2019-01-16 21:26:19 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 15 deletions

View File

@@ -62,7 +62,7 @@ public:
// file descriptor.
Status addFile(const String16& tag, int fd, int flags);
class Entry : public virtual RefBase, public Parcelable {
class Entry : public Parcelable {
public:
Entry();
virtual ~Entry();
@@ -89,9 +89,6 @@ public:
friend class DropBoxManager;
};
// Get the next entry from the drop box after the specified time.
Status getNextEntry(const String16& tag, long msec, Entry* entry);
private:
enum {
HAS_BYTE_ARRAY = 8

View File

@@ -228,15 +228,4 @@ DropBoxManager::add(const Entry& entry)
return service->add(entry);
}
Status
DropBoxManager::getNextEntry(const String16& tag, long msec, Entry* entry)
{
sp<IDropBoxManagerService> service = interface_cast<IDropBoxManagerService>(
defaultServiceManager()->getService(android::String16("dropbox")));
if (service == NULL) {
return Status::fromExceptionCode(Status::EX_NULL_POINTER, "can't find dropbox service");
}
return service->getNextEntry(tag, msec, android::String16("android"), entry);
}
}} // namespace android::os