Also fixes a few cases where invalid inputs were not checked. bug: 34178477 Change-Id: I15c1e5f96e0843f484d8d3e29f548eac30d9dd80
This module is used with the drm VTS tests as part of HIDL/HAL testing. For background reference: hardware/interfaces/drm/1.0/vts/doc/Drm_Vendor_Modules_v1.pdf Change-Id: I38eb13696343e08fa2a1758219350d25698bfb7d related-to-bug: 32815560