Limit the number of MediaSessions per uid

This CL makes MediaSessionService counts the number of current
MediaSessions per uid, and throw exception to the app if the number
exceeds the limit.

Bug: 143672815
Test: atest MediaSessionTest
Change-Id: Ib3dd0f655d54f9ca436bcc3808e8eba241dfaacc
2 files changed