27644c071b7fc0e1e4f91194f2a08b4aa2cf1465 |
|
05-Mar-2017 |
Aurimas Liutikas <aurimas@google.com> |
Remove unused imports in support library classes. Test: ./gradlew assebmle assembleAndroidTest Change-Id: I429f0abb742bfed9288f84a7d6a3208063068f23
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|
e2c6a94b6e4aab502f9b88dd3ff664bd90b25839 |
|
25-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Remove all the extra accessor methods added by javac in support-mediarouter. Change private methods to be package protected to avoid extra methods that get added to be able to access them from inner classes. This CL saves 143 methods in our jar. Bug: 31075707 Change-Id: Iddd66c7f04ae9522792a889a59b3ae7629b2983c
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|
9c83739aefcb1748551645a656bece0d864cef76 |
|
29-Jun-2016 |
Sungsoo Lim <sungsoo@google.com> |
MediaRouter: Introduce min/max client version in MediaRouteDescriptor When sending a descriptor changed message to a router, MediaRouteService will filter routes out if the router's client version is lower than the routes' min client version or is higher than routes' max client version. Also, this CL increases the client version from 1 to 2. Bug: 29519687 Change-Id: I6151646b6902a66485429d8b25b8dc7030f0e5fe
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|
d11aa1784335270b8d85e385f2c8be79ee6a586c |
|
31-May-2013 |
Jeff Brown <jeffbrown@google.com> |
Remove isActiveScanRequired(). This flag was originally added to support media route providers that are unable to discover media routes passively. However, this would be true in practice for most media route providers since they will usually need to poll the network periodically to find new routes. Previously we did not have a good way to tell when discovery was really needed so we forced these providers to rely on active scans instead. Unfortunately this meant that the MediaRouterButton needed to be visible all of the time. Now that we have CALLBACK_FLAG_REQUEST_DISCOVERY, we can be more conservative about when discovery occurs. In practice, discovery will only happen when an application that uses media router is in the foreground. So it's ok for providers to do some moderate work during normal discovery and we don't need to force them to rely exclusively on active scans anymore. We also remove getDiscoverableControlFilters() since it was only needed for the case where active scans were required. Note that we still do perform active scans when the chooser dialog is open. However, we don't allow providers to require them. This even works for Wifi Display because the system already knows which displays have been paired so it doesn't require active scans to decide whether to advertise those routes (although it does require active scans to discover whether they are really available). Bug: 9210033 Change-Id: I69adaf42fb461ee2b564e3605f921d23b6b5c7be
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|
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/MediaRouteProviderDescriptor.java
|
3d4c9459ed77f732dd3ba602713af6ebf9280c8c |
|
21-May-2013 |
Jeff Brown <jeffbrown@google.com> |
Streamline media router API. Merge progress and status and remove ACTION_GET_PROGRESS. Add a new MediaItemStatus object to ensure that apps package the status information correctly into the Bundle and to remove possible ambiguity about the interpretation of each field. Add EXTRA_ITEM_STATUS as a standard output result from most requests include ACTION_PLAY, ACTION_PAUSE, etc. Add a timestamp to the status object. Add a mechanism for returning an error string from failed media control requests. Add a unique prefix to all mediarouter library resources to make conflicts with application resources less likely. Bug: 8175766 Change-Id: Ifca759424125ca62e8a72d35068dd3cc045d21ad
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|
7599feee523c7b7d33576ae5825e43e3d62cbcbe |
|
16-May-2013 |
Jeff Brown <jeffbrown@google.com> |
Generalize collection types used in builders. Small change to make the API easier to use. Bug: 8175766 Change-Id: I88cb531e801c3e309c4a6e0e70668d6d4560d2bd
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|
11417b1cfde8f1749905f2d735623af9214148af |
|
27-Apr-2013 |
Jeff Brown <jeffbrown@google.com> |
Add media router picker UI. Introduced the concept of a MediaRouteSelector which is the means by which an application states the route capabilities of routes that it would like to discover. Added selectors to the addCallback method along with several other methods to assist with discovery. Callbacks can specify flags to perform active scans of routes or to disable filtering of route events. Added a workaround to scan for wifi displays on JB MR1. Refactored the route descriptor objects to use the builder pattern instead of simply documenting that they should be immutable since several developers have already tripped over this. The UI is feature complete but not final. Bug: 8175766 Change-Id: I54ebb7488222746b0c07292e65b9ded1b9d720fa
/frameworks/support/v7/mediarouter/src/android/support/v7/media/MediaRouteProviderDescriptor.java
|