Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7650ea63 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove DropBoxManager::getNextEntry"

parents 8e0e5722 60b30532
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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
+0 −11
Original line number Diff line number Diff line
@@ -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