Loading libs/services/include/android/os/DropBoxManager.h +4 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,10 @@ public: // are required from the system process. Returns NULL if the file can't be opened. Status addFile(const String16& tag, const string& filename, int flags); // Create a new Entry from an already opened file. Takes ownership of the // file descriptor. Status addFile(const String16& tag, int fd, int flags); class Entry : public virtual RefBase, public Parcelable { public: Entry(); Loading libs/services/src/os/DropBoxManager.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -202,7 +202,12 @@ DropBoxManager::addFile(const String16& tag, const string& filename, int flags) ALOGW("DropboxManager: %s", message.c_str()); return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, message.c_str()); } return addFile(tag, fd, flags); } Status DropBoxManager::addFile(const String16& tag, int fd, int flags) { Entry entry(tag, flags, fd); return add(entry); } Loading Loading
libs/services/include/android/os/DropBoxManager.h +4 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,10 @@ public: // are required from the system process. Returns NULL if the file can't be opened. Status addFile(const String16& tag, const string& filename, int flags); // Create a new Entry from an already opened file. Takes ownership of the // file descriptor. Status addFile(const String16& tag, int fd, int flags); class Entry : public virtual RefBase, public Parcelable { public: Entry(); Loading
libs/services/src/os/DropBoxManager.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -202,7 +202,12 @@ DropBoxManager::addFile(const String16& tag, const string& filename, int flags) ALOGW("DropboxManager: %s", message.c_str()); return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, message.c_str()); } return addFile(tag, fd, flags); } Status DropBoxManager::addFile(const String16& tag, int fd, int flags) { Entry entry(tag, flags, fd); return add(entry); } Loading