Add a check for invalid session size in restoreKeys
and correct the return code when attempting to create a
plugin with an invalid uuid. Also correct the return code
when attempting to decrypt after keys have been removed.
bug:37172151
Change-Id: I7e832ffe04081471a0cdb3a9329808f47f12cfc3
MediaCodecTest.android.media.cts.MediaCodecTest.testCryptoError
was failing due to incorrect error code translation introduced
by the drm hidl hal.
Test: ANDROID_BUILD_TOP= ./android-cts/tools/cts-tradefed run cts
--module CtsMediaTestCases --test
android.media.cts.MediaCodecTest#testCryptoError
bug: 35137940
Change-Id: I5177367df7b57fe23a4b17c38462886786537140