Loading media/mtp/MtpProperty.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -190,8 +190,8 @@ void MtpProperty::write(MtpDataPacket& packet) { if (deviceProp) writeValue(packet, mCurrentValue); } packet.putUInt32(mGroupCode); if (!deviceProp) packet.putUInt32(mGroupCode); packet.putUInt8(mFormFlag); if (mFormFlag == kFormRange) { writeValue(packet, mMinimumValue); Loading media/mtp/MtpServer.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ static const MtpEventCode kSupportedEventCodes[] = { MTP_EVENT_OBJECT_REMOVED, MTP_EVENT_STORE_ADDED, MTP_EVENT_STORE_REMOVED, MTP_EVENT_DEVICE_PROP_CHANGED, }; MtpServer::MtpServer(int fd, MtpDatabase* database, bool ptp, Loading Loading @@ -261,6 +262,11 @@ void MtpServer::sendStoreRemoved(MtpStorageID id) { sendEvent(MTP_EVENT_STORE_REMOVED, id); } void MtpServer::sendDevicePropertyChanged(MtpDeviceProperty property) { ALOGV("sendDevicePropertyChanged %d\n", property); sendEvent(MTP_EVENT_DEVICE_PROP_CHANGED, property); } void MtpServer::sendEvent(MtpEventCode code, uint32_t param1) { if (mSessionOpen) { mEvent.setEventCode(code); Loading media/mtp/MtpServer.h +1 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,7 @@ public: void sendObjectAdded(MtpObjectHandle handle); void sendObjectRemoved(MtpObjectHandle handle); void sendDevicePropertyChanged(MtpDeviceProperty property); private: void sendStoreAdded(MtpStorageID id); Loading Loading
media/mtp/MtpProperty.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -190,8 +190,8 @@ void MtpProperty::write(MtpDataPacket& packet) { if (deviceProp) writeValue(packet, mCurrentValue); } packet.putUInt32(mGroupCode); if (!deviceProp) packet.putUInt32(mGroupCode); packet.putUInt8(mFormFlag); if (mFormFlag == kFormRange) { writeValue(packet, mMinimumValue); Loading
media/mtp/MtpServer.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ static const MtpEventCode kSupportedEventCodes[] = { MTP_EVENT_OBJECT_REMOVED, MTP_EVENT_STORE_ADDED, MTP_EVENT_STORE_REMOVED, MTP_EVENT_DEVICE_PROP_CHANGED, }; MtpServer::MtpServer(int fd, MtpDatabase* database, bool ptp, Loading Loading @@ -261,6 +262,11 @@ void MtpServer::sendStoreRemoved(MtpStorageID id) { sendEvent(MTP_EVENT_STORE_REMOVED, id); } void MtpServer::sendDevicePropertyChanged(MtpDeviceProperty property) { ALOGV("sendDevicePropertyChanged %d\n", property); sendEvent(MTP_EVENT_DEVICE_PROP_CHANGED, property); } void MtpServer::sendEvent(MtpEventCode code, uint32_t param1) { if (mSessionOpen) { mEvent.setEventCode(code); Loading
media/mtp/MtpServer.h +1 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,7 @@ public: void sendObjectAdded(MtpObjectHandle handle); void sendObjectRemoved(MtpObjectHandle handle); void sendDevicePropertyChanged(MtpDeviceProperty property); private: void sendStoreAdded(MtpStorageID id); Loading