aboutsummaryrefslogtreecommitdiff
path: root/TestMediaApp/src/com/android/car/media/testmediaapp/TmaMediaEvent.java
AgeCommit message (Collapse)Author
2021-02-26Add special items that hide/show others when playedArnaud Berry
This allows to simulate apps (like BT) that dynamically remove or add media items. Bug: 148811848 Test: manual Change-Id: I337a5cbb88b52adb59e8f56be86f7d535c9ab8da
2019-09-24Add some test cases in test media appYabin Huang
Fixes: 139295650 Test: manual Change-Id: I4c2443992fe0fa7e9a21397aa1c47ba9ce62579f
2019-08-13Add ability to throw exceptions when playing media itemsArnaud Berry
Test: manual Change-Id: I94a1a08e601bda8750797e5d1b20a04e93471382
2019-07-03TestMedia: prev/next + queue + one custom actionarnaudberry
The prev / next actions are now implemented. The queue shows the content of the active item's parent node The heart ++/-- custom actions is set on the Advanced/Custom Action item, it uses a vector drawable and a png to check the Media center's icon bitmap flagging logic. Test: manual Change-Id: Ib97d17551908f34e461aa9ae3cb2c860b260b8ca
2019-05-21Create Test Media AppArnaud Berry
This application is intended to help test the Car/Media app by making it easy to send it media items and playback states. Those media items are bundled within the assets of the TestMediaApp, as very readable json files. Quick overview: - loader package interprets the json files - prefs package implements the app's preferences (account type, root node, reply delay) - TmaBrowser implements the MediaBrowserService. It send replies based on the content of the prefs and the json files - TmaLibrary caches the interpreted files - TmaPlayer simulates all media interactions (without playing any sound) - TmaMediaItem represents the media items of the test app - TmaMediaEvent represents playback events to send to the media session Test: manual Change-Id: I5f4e6c537d8d0e49d4f5a1dc958e73722b78534e