MediaSession2: Import missing test from MediaComponents test (2/2)

This imports following CL from the frameworks/av
e0e207174 MediaSession2: Implement setAllowedCommands()

The change wasn't included in the following initial commit by mistake
c1134132dd Initial MediaSession2 CTS commit

Bug: 72533540, Bug: 73148658
Test: Passed MediaSession2Test and PermissionTest
Change-Id: Ibab2ae425861557be090ca51d3878e7624dc9db8
4 files changed