commit | ad02cc6c4091a44fb60c475731c8f4cac9a55ab0 | [log] [tgz] |
---|---|---|
author | Edwin Wong <edwinwong@google.com> | Thu Aug 23 13:48:27 2018 -0700 |
committer | Edwin Wong <edwinwong@google.com> | Thu Aug 30 15:39:58 2018 -0700 |
tree | feb915fc8d4ab255bb8dc71985acd8df2f18f3b3 | |
parent | 15530ac49cc9af87ab0141e0875f23f8bd6b4264 [diff] |
Add onExpirationUpdate and onKeyStatusChange listeners. We must only create one DrmListener instance. We then process different listeners in DrmListener::notify. To facilitate testing, we call the listeners from clearkey plugin's provideKeyResponse function. We have previously tested EventType::VENDOR_DEFINED in the same manner. bug: 77712870 Test: native CTS test testClearKeyPlaybackCenc Test: CTS MediaDrmMockTest Change-Id: Ie15e3012a4068824f72371a66e9fca2ee27180f8