History log of /frameworks/av/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
843328ff13456dbdfca72e3825222bcc65f4fac3 12-Jul-2017 George Burgess IV <gbiv@google.com> Fix format string warnings

MockCasPlugin.cpp: These are printing out `size_t`s, so we should be
using %zu.

ClearKeyFetcher.cpp: asset_.id() is an `unsigned long long`, so we
can't use PRIu64 for it.

Bug: None
Test: mma. Warnings are gone.
Change-Id: Ie34acb274696dea999f6309fb914b39ef00f4d77
/frameworks/av/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp
b01fb48fcc755d6bfad9bc94d8c227349155e1b5 24-Mar-2017 Chong Zhang <chz@google.com> MediaCas: fixes for playback tests

- Set crypto mode to kMode_AES_CTR, since kMode_AES_CBC is not defined
on Java API, and is rejected when the sample is queued to MediaCodec.

- Wrap the plugin object in a RefBase, and hold a strong ref to it
when executing any API calls in CasImpl. This is needed because
CasImpl could be released by Java API, while MediaCodec native is
still trying to access it.

- Fix build warnings.

Tests: cts-tradefed run cts-dev --module CtsMediaTestCases --test android.media.cts.ClearKeySystemTest

It should not fail.

bug: 22804304
Change-Id: Id4ef037d57dd741d2bb22b1de3d04c8d078b69fb
/frameworks/av/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp
791a1a206b56be8601a6fffd2614926e67d64790 03-Jan-2017 Chong Zhang <chz@google.com> MediaCas: add two sets of test plugins

- MockCasPlugin: does nothing other than API logging

- ClearKeyCasPlugin: implement a clear key CAS that carries content
keys in the clear in ECMs. It initializes from a test asset string
with a valid id. It outputs to clear buffers.

bug: 22804304
Change-Id: Ifc70b86c1ec80a45b75c7bdd1e558a59018ace5a
/frameworks/av/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp