Add vts tests to verify DRM AIDL interface
The DRM AIDL interface is in change 15329852.
The default implementation of the interface is in the clearkey
HAL in change 15958954.
[TODO] APIs pending vts coverage:
+ ICryptoFactory
+ isCryptoSchemeSupported
+ ICryptoPlugin
+ getLogMessages
+ notifyResolution
+ requiresSecureDecoderComponent
+ IDrmFactory
+ getSupportedCryptoSchemes
+ isContentTypeSupported
+ IDrmPlugin
+ decrypt
+ encrypt
+ getLogMessages
+ getMetrics
+ getNumberOfSessions
+ getPropertyByteArray
+ getPropertyString
+ getSecureStop
+ getSecureStopIds
+ getSecureStops
+ queryKeyStatus
+ releaseAllSecureStops
+ releaseSecureStop
+ releaseSecureStops
+ removeAllSecureStops
+ removeKeys
+ removeSecureStop
+ requiresSecureDecoder
+ requiresSecureDecoderDefault
+ restoreKeys
+ setCipherAlgorithm
+ setMacAlgorithm
+ setPlaybackId
+ setPropertyByteArray
+ sign
+ signRSA
+ verify
Bug: 170964303
Bug: 200055138
Test: atest VtsAidlHalDrmTargetTest
Change-Id: If8b582796fdbc34d3d7720fa45df8291f72cd46a
diff --git a/drm/1.0/vts/functional/Android.bp b/drm/1.0/vts/functional/Android.bp
index 5ea6ad3..a35d41d 100644
--- a/drm/1.0/vts/functional/Android.bp
+++ b/drm/1.0/vts/functional/Android.bp
@@ -23,6 +23,14 @@
default_applicable_licenses: ["hardware_interfaces_license"],
}
+cc_library_headers {
+ name: "drm_hal_vendor_module_headers",
+ vendor_available: true,
+ export_include_dirs: [
+ "include",
+ ],
+}
+
cc_library_static {
name: "libdrmvtshelper",
defaults: ["VtsHalTargetTestDefaults"],
@@ -36,6 +44,7 @@
"android.hardware.drm@1.0-helper",
],
export_include_dirs: ["include"],
+ export_static_lib_headers: ["android.hardware.drm@1.0-helper"],
}
cc_library_static {