1cf2ca83584a4cf0aa3ded787bd191b9a60e3521 |
|
28-Nov-2012 |
Adam Powell <adamp@google.com> |
Clean up behavior of type arguments for MediaRouter#getSelectedRoute MediaRouter's policy so far has been around a single selected route, but when route types are entirely orthogonal this should not be the case. However we still don't want to get into a situation where we have multiple, very different routes selected for different types at the same time, we still want to have more of an element of predictability. Behavior of getSelectedRoute is now: * If the selected route matches at least one type with the requested type flags, it is still considered selected for that request. * If the caller specifically requested the selected user route and the currently selected route is not a user route, return null. * If the requested type flags do not match any types with the selected route, return the default system route. Note that this is "any" behavior instead of "all" - this matches existing usage of the method. We may consider adding an "all" variant later on. Bug 7588042 Change-Id: I3a79d8153ca6b882fd3ef6b9b1de8f538873dec2
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
705ab808cf023e0cc38c2ba7cdb9571942cdc04f |
|
17-Sep-2012 |
Adam Powell <adamp@google.com> |
Add wireless display selection support to MediaRouter. * Adds the new route type LIVE_VIDEO * Wireless displays support both LIVE_VIDEO and LIVE_AUDIO, making wireless display routes valid selections in when apps make selecting live audio routes available. * MediaRouter will only report/manipulate wireless displays that have already been paired at the system level. Bug 7177920 Change-Id: Ic221b8687d77b4c0df9801c396b74870e86206e9
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
1b4ea7eff50545f4673ca01b664e5edccc784688 |
|
23-Jun-2012 |
Adam Powell <adamp@google.com> |
Sanity check while updating volume in MediaRouteChooserDialog Bug 6720224 When a window dies it's possible to receive a lingering ACTION_CANCEL event to the SeekBar for volume. Be sure that we don't try to mess with something that's already gone by that point. Change-Id: I4f6119718fc21204d9013d591bc984b785b698b4
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
4dd21c8e77c0d369ee835f50cba1701e76aa18c4 |
|
22-Jun-2012 |
Adam Powell <adamp@google.com> |
Volume changes in MediaRouteChooserDialog Use the max volume reported by the selected route as the max value to set. Change-Id: I9848dfb201387843e7ed398ac61e2d13e14e3f51
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
8e37a85bf3dc39519942698dc90a3951306b934b |
|
21-Jun-2012 |
Adam Powell <adamp@google.com> |
Expand volume APIs for MediaRouter Allow applications to set a requested volume level on RouteInfo objects. If requested for a user route, the app-supplied callback will be invoked to perform actual volume adjustment. Change-Id: I856990a0da7292492aa15e6562dbc3d055b848a0
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
4599696591f745b3a546197d2ba7e5cfc5562484 |
|
16-Jun-2012 |
Adam Powell <adamp@google.com> |
Volume control in MediaRouter dialogs MediaRouter dialogs now intercept the volume keys for altering the current volume. The status icon indicates if the slider/buttons are currently controlling the local device volume or a remote device's volume. Group volume for user routes is handled by using the RemoteControlClient supplied by the first route in the group. Change-Id: I40a0d054847ed5acce7a4c3b669487841b4dca15
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
b5e2af5919351486a385effe77409d2a91ae9c19 |
|
15-Jun-2012 |
Adam Powell <adamp@google.com> |
Update MediaRouteChooserDialog grouping UI Move UserRouteInfo tag support to RouteInfo Change-Id: Ia753924f8613462d5f74736be93a8d748689eef1
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
0d03c042f90bf62d5bad7c64e77028a5f9f8fae0 |
|
15-Jun-2012 |
Adam Powell <adamp@google.com> |
API updates for MediaRouter * Accept a Context when fetching the names of routes and categories. This lets string resources resolve at time of access with the correct configuration. The older versions remain available that will use the static resources from the application. (There are enough cases where applications will populate this from external data that requiring it each time even when it was not initialized from a resource doesn't seem reasonable.) * Remove the ability for apps to programmatically select non-user routes. * Make MediaRouter.Callback an abstract class instead of an interface. This will make further extensions easier to keep compatible in the future. Change-Id: If981c511dfbdfaf41ef0d1cfe4a377fc14bb5600
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
d6d0bddee363e0c7fe61f63bd9d9864a71d887d6 |
|
14-Jun-2012 |
Adam Powell <adamp@google.com> |
Support route grouping in the MediaRouter dialog UI. Change-Id: Idcae12cedfb7ca13950e7fa45441fba2029a9f68
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|
70e11e50eecfc8f1dfb76316d099e4331ebd28f7 |
|
13-Jun-2012 |
Adam Powell <adamp@google.com> |
MediaRouter dialog Add the dialog behavior for MediaRouteActionProvider/MediaRouteButton. Still TODO: * Switch audio icon based on source; speaker/bt/user * Rig up volume slider * Rig up item icons * Rig up group button for groupable categories * Make grouping work Change-Id: I3f992516b184d5ae940ddb7bbb7f94ff58914589
/frameworks/base/core/java/com/android/internal/app/MediaRouteChooserDialogFragment.java
|