f03da4a9e6cc02251c2f804eb6f25da61821d6a7 |
|
31-May-2013 |
Jeff Brown <jeffbrown@google.com> |
Add CALLBACK_FLAG_REQUEST_DISCOVERY. This change is designed to reduce the network discovery overhead and memory footprint of the media router. Make the media router more conservative about when it binds to media route providers and performs discovery. It will now only perform discovery if the application has specified CALLBACK_FLAG_REQUEST_DISCOVERY or CALLBACK_FLAG_PERFORM_ACTIVE_SCAN. Furthermore, it will only bind to media route provider services while discovery is requested or while the app has selected a route that belongs to the provider. It will automatically unbind when these conditions no longer hold true to allow the system to reclaim memory used by the MRP service process. Added a MediaRouteDiscoveryFragment to make it a bit easier to manage the lifecycle of media router callbacks. Bug: 9210033 Change-Id: I9e7399022d51eb6db3ac79f843ccfa5aba3a8762
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteDiscoveryRequest.java
|