Loading drm/common/IDrmManagerService.cpp +17 −2 Original line number Original line Diff line number Diff line Loading @@ -51,6 +51,13 @@ static void writeDecrptHandleToParcelData( data->writeInt32(handle->copyControlVector.valueAt(i)); data->writeInt32(handle->copyControlVector.valueAt(i)); } } size = handle->extendedData.size(); data->writeInt32(size); for(int i = 0; i < size; i++) { data->writeString8(handle->extendedData.keyAt(i)); data->writeString8(handle->extendedData.valueAt(i)); } if (NULL != handle->decryptInfo) { if (NULL != handle->decryptInfo) { data->writeInt32(handle->decryptInfo->decryptBufferLength); data->writeInt32(handle->decryptInfo->decryptBufferLength); } else { } else { Loading @@ -71,8 +78,16 @@ static void readDecryptHandleFromParcelData( int size = data.readInt32(); int size = data.readInt32(); for (int i = 0; i < size; i ++) { for (int i = 0; i < size; i ++) { handle->copyControlVector.add( DrmCopyControl key = (DrmCopyControl)data.readInt32(); (DrmCopyControl)data.readInt32(), data.readInt32()); int value = data.readInt32(); handle->copyControlVector.add(key, value); } size = data.readInt32(); for (int i = 0; i < size; i ++) { String8 key = data.readString8(); String8 value = data.readString8(); handle->extendedData.add(key, value); } } handle->decryptInfo = NULL; handle->decryptInfo = NULL; Loading include/drm/drm_framework_common.h +6 −0 Original line number Original line Diff line number Diff line Loading @@ -297,6 +297,12 @@ public: */ */ KeyedVector<DrmCopyControl, int> copyControlVector; KeyedVector<DrmCopyControl, int> copyControlVector; /** * Defines a vector for any extra data the DRM plugin wants to send * to the native code */ KeyedVector<String8, String8> extendedData; public: public: DecryptHandle(): DecryptHandle(): decryptId(INVALID_VALUE), decryptId(INVALID_VALUE), Loading Loading
drm/common/IDrmManagerService.cpp +17 −2 Original line number Original line Diff line number Diff line Loading @@ -51,6 +51,13 @@ static void writeDecrptHandleToParcelData( data->writeInt32(handle->copyControlVector.valueAt(i)); data->writeInt32(handle->copyControlVector.valueAt(i)); } } size = handle->extendedData.size(); data->writeInt32(size); for(int i = 0; i < size; i++) { data->writeString8(handle->extendedData.keyAt(i)); data->writeString8(handle->extendedData.valueAt(i)); } if (NULL != handle->decryptInfo) { if (NULL != handle->decryptInfo) { data->writeInt32(handle->decryptInfo->decryptBufferLength); data->writeInt32(handle->decryptInfo->decryptBufferLength); } else { } else { Loading @@ -71,8 +78,16 @@ static void readDecryptHandleFromParcelData( int size = data.readInt32(); int size = data.readInt32(); for (int i = 0; i < size; i ++) { for (int i = 0; i < size; i ++) { handle->copyControlVector.add( DrmCopyControl key = (DrmCopyControl)data.readInt32(); (DrmCopyControl)data.readInt32(), data.readInt32()); int value = data.readInt32(); handle->copyControlVector.add(key, value); } size = data.readInt32(); for (int i = 0; i < size; i ++) { String8 key = data.readString8(); String8 value = data.readString8(); handle->extendedData.add(key, value); } } handle->decryptInfo = NULL; handle->decryptInfo = NULL; Loading
include/drm/drm_framework_common.h +6 −0 Original line number Original line Diff line number Diff line Loading @@ -297,6 +297,12 @@ public: */ */ KeyedVector<DrmCopyControl, int> copyControlVector; KeyedVector<DrmCopyControl, int> copyControlVector; /** * Defines a vector for any extra data the DRM plugin wants to send * to the native code */ KeyedVector<String8, String8> extendedData; public: public: DecryptHandle(): DecryptHandle(): decryptId(INVALID_VALUE), decryptId(INVALID_VALUE), Loading