aboutsummaryrefslogtreecommitdiff
path: root/TestMediaApp/src
AgeCommit message (Collapse)Author
2021-03-11Add FLAG_IMMUTABLE when creating PendingIntent instances.Arnaud Berry
Note that a media session library update is needed (was able to test by creating and passing a pending intent to new MediaSessionCompat in TmaBrowser#onCreate: ComponentName mbrComponent = MediaButtonReceiver.getMediaButtonReceiverComponent(this); Intent mediaButtonIntent = new Intent("android.intent.action.MEDIA_BUTTON"); mediaButtonIntent.setComponent(mbrComponent); PendingIntent mbrIntent = PendingIntent.getBroadcast(this, 0, mediaButtonIntent, PendingIntent.FLAG_IMMUTABLE); mSession = new MediaSessionCompat(this, MEDIA_SESSION_TAG, mbrComponent, mbrIntent); Fixes: 182007466 Test: manual Change-Id: I9cfe322463503018c4655ab7b811584e23070040
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
2020-09-25Fix crash when changing preferences from the phone activityandroid-11.0.0_r30android11-qpr1-c-releaseArnaud Berry
Fixes: 169444416 Test: manual Change-Id: I5ad25a151f815acd922744454ce1506703143aab
2020-08-26Make test apps buildable in Android StudioSam Lin
- Use AOSP links - Add git workflow & instructions in readme.md - Add build.gradle for RotaryPlayground - Fix build errors in TestMediaApp - Add git_clone_projects.sh & go_rotary.sh Bug: 161492279 Test: Build and Run both sucessfully on Android Studio and Emulator Change-Id: Ia73641f770044518a87f7487f52c734ec46f1a2b
2020-05-19Add foreground service test codeRoberto Perez
Bug: 153875734 Test: ran on emulator Change-Id: I24c81107886127edd911e7418a28f4699189f3ec
2020-04-08Add the option to make a folder progressively reveal its childrenArnaud Berry
This helps test animations triggered when the children of a node change. Bug: 151134078 Test: manual Change-Id: I5b1cc8f1f09c5f8f184c4ab04dff491cd16d57f0
2019-12-13Always start search from the root and make it case insensitive am: ↵Automerger Merge Worker
9d9bcc3d16 am: 8d92e3f6a4 am: 743ffba0d7 am: 80342195da Change-Id: I1c41bd69f100957382f829f413e56a2e61435d1f
2019-12-12Always start search from the root and make it case insensitiveArnaud Berry
Test: manual Bug: 146143204 Change-Id: If5a5f5ac8096d045bcbf3aa07925b2171d9650cb
2019-11-18Removing RemoteException try-catch block as per support api changes am: ↵Sunny Goyal
914fbbc6bc am: 3092ad3b02 Change-Id: I0e7560359160e25ef54a3dc08a69f0cf7b92f328
2019-11-18Removing RemoteException try-catch block as per support api changesSunny Goyal
am: 914fbbc6bc Change-Id: I322c4dd08f1e2f1a6f258f694fc88417bb4a4e36
2019-11-14Removing RemoteException try-catch block as per support api changesSunny Goyal
Change-Id: I8ec79a295ac1647c26769b511fbd65721f0886f6 Merged-In: I8ec79a295ac1647c26769b511fbd65721f0886f6
2019-11-13Add usages for category_list and category_gridArnaud Berry
Bug: 142249759 Test: manual Change-Id: I382e95388f2f3b32ad7e52b287dd27ba7d0132fc
2019-11-08Merge "Add untagged root node type as error case" into pi-car-devTreeHugger Robot
2019-10-31Add untagged root node type as error caseSimon Dai
Bug: 142157597 Test: Manual Change-Id: I71d13017411ab630669831d50d6a0bf94b74f08b
2019-10-28Merge "Fix null rootHints" into pi-car-devTreeHugger Robot
2019-10-28Fix null rootHintsYabin Huang
1.Create media browser with art size extra 2.Log the client name when rootHints is null Bug: 143305459 Test: manual Change-Id: I11ba78e3451ee8688b3c4e80e087a8f5399b8073
2019-10-25Add option for a single tab under the rootArnaud Berry
Test: manual Change-Id: Ib663a9026fdf037d4ace9169ece28f94bf447079
2019-10-23Add the option to create local files for the album artArnaud Berry
The data for those files still comes from the application's assets, but this illustrates what to do with bytes that would be received from a remote uri. Test: manual Change-Id: I5fa590d632df477df215231319e40bd05f5eb90b
2019-10-10Log the EXTRA_MEDIA_ART_SIZE_HINT_PIXELS value in onGetRootArnaud Berry
Shows apps how to retrieve the recommended bitmap size. Test: manual Change-Id: Iafe5fd211bd227454685212f52aad40fb392f3e8
2019-10-08Add initial playback state, and support prepare()Simon Dai
Test: Manual Change-Id: I7ea12ccf50420c07e9468225955f9e88ab003b77
2019-10-04Merge "Reset the state properly when logout" into pi-car-devYabin Huang
2019-10-04Enable AA for multiple browse servicesJay Sebastian
Add extra to enable AA to work with a media session in a package with multiple browse services. Test: manually with AAP Change-Id: Ibd84c51cba7890bff9a70ba73cacb9782334a416
2019-10-03Reset the state properly when logoutYabin Huang
This CL resets the metadata to be null and stop the ongoing playback when logout Fixes: 141892268 Test: manual Change-Id: Id78b168f8ce8da931e7c92983722a83a4403a629
2019-10-02Create unbundled gradle project, and make the app work with AutoArnaud Berry
Removed dependencies on other repositories so that the tests repository can be checked out and built independently with Android Studio. Test: manual Change-Id: If499e0510ffd5071dd674a66d74f378994b7c1f6
2019-09-26Handle prepare() in test media appSimon Dai
Now prepares the first playable item (in root) for playback Test: Manual Change-Id: I647c1ed518eb672bc89ad831daaedb6817c7b588
2019-09-24Add some test cases in test media appYabin Huang
Fixes: 139295650 Test: manual Change-Id: I4c2443992fe0fa7e9a21397aa1c47ba9ce62579f
2019-09-18Simulate blutooth case of having a playable queue without browse itemsArnaud Berry
Test: manual Change-Id: Ib47544cb340c0a17fc2bfea3f527a6fd51d93f16
2019-09-10Remove use of class hidden in masterAurimas Liutikas
Change-Id: I05cbd07d2488add544cf7b7ddf450455136ba49e
2019-08-30Add pref to control the new delay in TmaAssetProvider#openAssetFileArnaud Berry
Bug: 140314643 Test: manual Change-Id: I636e649435543adc073102de4eea130985eeca57
2019-08-20Add second media service so we can test both vector and non vector iconsArnaud Berry
When flagging is enabled, the Media center highlights the bitmap icon. Test: manual Change-Id: Ieda0a335819d64b9fb6d8dda486a9e79e6a9627c
2019-08-13Add ability to throw exceptions when playing media itemsArnaud Berry
Test: manual Change-Id: I94a1a08e601bda8750797e5d1b20a04e93471382
2019-08-08Support resource uris and use them for some media itemsArnaud Berry
Also add a rectangular vector icon. Test: manual Change-Id: I2bce9136310f5bfad8f061e15a72995e9152af9c
2019-07-31Fix a crash when a given media item is not foundYabin Huang
Fixes: 138455442 Test: manual Change-Id: Ib71832a8d04ed721f779a1505332684aa7d11342
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-07-01Remove previous EventTrigger callback when playing a new media itemYabin Huang
Fixes: 136506990 Test: manual Change-Id: I4db061590f66b0549982919183091fa6bacb2d65
2019-06-26Add search to test media appSimon Dai
Bug: 134767149 Test: Manual Change-Id: Ia129a0f71f4f17222d7c44ced87cd182a77d3dd3
2019-05-30Add artwork supportArnaud Berry
Added various resolution bitmaps and media items referencing them. Also added missing launcher icons. I took the photos myself so there's no previous copyright on them. Test: manual Change-Id: I4fe550bb2c55e246683e3242d776fe514059b891
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