Introduce common interfaces for both session1 and session2

This is intermediate step toward for making session2 to handle media
key event.

Bug: 147279043
Test: Build and run media cts
Change-Id: I2a5723dab9e81db2338575774567f2e7b1d6f8c1
6 files changed