Now it uses mLock to synchronize mCallbackRecords, mControlCategories, and mClient instead of enforcing main thread. Also, check concurrency of MediaRouter2 and MediaRouter2Manager. This CL also removes control category parameter from addCallback(registerCallback) not to permit two callbacks in an application to have different control categories. Function names are changed from add/remove callbacks to register/unregister callbacks to follow the API guideline. Test: atest mediaroutertest Change-Id: I40f2bc45f7d108416182b68b4ae23127f8bb2eb4
MediaFrameworkTest/
Uses instrumentation and so can be run with runtest.
It assumes /sdcard/media_api/ has been populated.
contents/media_api/
Push to /sdcard/media_api/ for use with MediaFrameworkTest:
adb shell mkdir /sdcard/media_api
adb push contents/media_api/ /sdcard/media_api/
All other subdirectories are manual tests or sample apps.