Commit Graph

4 Commits

Author SHA1 Message Date
Hyundo Moon
42bef14ac1 Unhide routing session related APIs
Bug: 147646634
Test: make update-api -j; atest mediaroutertest
Change-Id: Ia0278af6a2b62fa90e61bb278772c6369c62481d
2020-01-21 14:31:27 +09:00
Hyundo Moon
67c41fddd8 MediaRouter2: Add getDefaultController()
The controller which can control the system routes (phone speaker,
bluetooth, etc) is returned by this new method.

This CL makes the default controller can know the current system route,
and make SessionCallback#onSessionInfoChanged() be called when
the current system route is changed.

Note that selecting route (BT / speaker) via this controller is not
yet supported by this CL.

Bug: 147937954
Test: atest mediaroutertest
      Also, manually checked logs by connecting bluetooth device.
Change-Id: I8c6254855f8121d1d2331959224fe7237affa1e2
2020-01-19 16:03:52 +09:00
Hyundo Moon
dc79a7a8da Remove route features from RoutingSessionInfo related APIs
Bug: 147786965
Test: atest mediaroutertest
Change-Id: I2dcb1a1a40b4d40e3557fd70bcc7111f748886b2
2020-01-17 04:17:10 +09:00
Hyundo Moon
f829e6f1d6 Rename RouteSessionInfo and RouteSessionController
This CL renames following classes:
 - RouteSessionInfo to RoutingSessionInfo
 - RouteSessionController to RoutingController

Bug: 147527788
Test: atest mediaroutertest
Change-Id: I6d6c997d9119b668bd8879f2f5a8ca266ddbeccc
2020-01-11 19:56:37 +09:00