Merge "Remove DropBoxManager::getNextEntry"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7650ea6378
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user