Loading media/mtp/MtpServer.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ static const MtpEventCode kSupportedEventCodes[] = { MTP_EVENT_STORE_ADDED, MTP_EVENT_STORE_REMOVED, MTP_EVENT_DEVICE_PROP_CHANGED, MTP_EVENT_OBJECT_INFO_CHANGED, }; MtpServer::MtpServer(IMtpDatabase* database, int controlFd, bool ptp, Loading Loading @@ -259,6 +260,11 @@ void MtpServer::sendObjectRemoved(MtpObjectHandle handle) { sendEvent(MTP_EVENT_OBJECT_REMOVED, handle); } void MtpServer::sendObjectInfoChanged(MtpObjectHandle handle) { ALOGV("sendObjectInfoChanged %d\n", handle); sendEvent(MTP_EVENT_OBJECT_INFO_CHANGED, handle); } void MtpServer::sendStoreAdded(MtpStorageID id) { ALOGV("sendStoreAdded %08X\n", id); sendEvent(MTP_EVENT_STORE_ADDED, id); Loading media/mtp/MtpServer.h +1 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,7 @@ public: void sendObjectAdded(MtpObjectHandle handle); void sendObjectRemoved(MtpObjectHandle handle); void sendObjectInfoChanged(MtpObjectHandle handle); void sendDevicePropertyChanged(MtpDeviceProperty property); private: Loading Loading
media/mtp/MtpServer.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ static const MtpEventCode kSupportedEventCodes[] = { MTP_EVENT_STORE_ADDED, MTP_EVENT_STORE_REMOVED, MTP_EVENT_DEVICE_PROP_CHANGED, MTP_EVENT_OBJECT_INFO_CHANGED, }; MtpServer::MtpServer(IMtpDatabase* database, int controlFd, bool ptp, Loading Loading @@ -259,6 +260,11 @@ void MtpServer::sendObjectRemoved(MtpObjectHandle handle) { sendEvent(MTP_EVENT_OBJECT_REMOVED, handle); } void MtpServer::sendObjectInfoChanged(MtpObjectHandle handle) { ALOGV("sendObjectInfoChanged %d\n", handle); sendEvent(MTP_EVENT_OBJECT_INFO_CHANGED, handle); } void MtpServer::sendStoreAdded(MtpStorageID id) { ALOGV("sendStoreAdded %08X\n", id); sendEvent(MTP_EVENT_STORE_ADDED, id); Loading
media/mtp/MtpServer.h +1 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,7 @@ public: void sendObjectAdded(MtpObjectHandle handle); void sendObjectRemoved(MtpObjectHandle handle); void sendObjectInfoChanged(MtpObjectHandle handle); void sendDevicePropertyChanged(MtpDeviceProperty property); private: Loading