summaryrefslogtreecommitdiff
path: root/core/java/android/app/MediaRouteButton.java
Commit message (Collapse)AuthorAgeFilesLines
* Change Media Route Button animation imagesyangren2017-07-111-18/+33
| | | | | Bug: 34690983 Change-Id: Id68195fbba06102e8d860d89b8167400c8c8230f
* Rename View.setTooltip/getTooltip to setTooltipText/getTooltipTextVladislav Kaznacheev2017-01-191-1/+1
| | | | | | Bug: 34454987 Test: android.view.cts.TooltipTest Change-Id: I7203d5c61804b79584ba8449643c6c0f27a90747
* Replace Toast-based cheat sheets with tooltipsVladislav Kaznacheev2016-12-061-54/+4
| | | | | | | | | | | | | | Currently ActionMenuItemView, MediaRouteButton and ScrollingTabContainerView each have their own implementation of a Toast-based long-press tooltips (the last two apparently copy/pasted from the first). Replacing those with the recently introduced tooltips supported by the framework. Bug: 31516506 Test: manual in ApiDemos Change-Id: Ibcb8c5a43577a8b4d30f1a26e48ddcfde015d1dc
* Add consistent @NonNull annotations for drawable callbacksAlan Viverette2016-03-111-1/+2
| | | | | Bug: 27599515 Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
* Invalidate when Drawable.setState() returns trueAlan Viverette2015-09-041-4/+4
| | | | | | | | Ensures views that manage drawables follow the contract set forth in the Drawable.setState() documentation. Bug: 23792020 Change-Id: I4e5a449cd6535487873fd8443da50555c38e8ed9
* MediaRouter: make MediaRouteButton inherit Widget.Material.ActionButtonDongwon Kang2015-08-071-13/+13
| | | | | | | Also, fix onMeasure() to ensure that (min) width/height includes paddings. Bug: 22947288 Change-Id: Iba49d89e014d0df747cbdde8383de4158700ac70
* resolved conflicts for merge of f0b9ee96 to masterJeff Brown2013-11-111-178/+144
|\ | | | | | | Change-Id: I1b347e895049474e11076c60074dc5918cfe1405
| * Update the media router dialogs and integrate into system UI.Jeff Brown2013-11-101-178/+144
| | | | | | | | | | | | | | | | | | | | | | | | Port the new style UI back into the framework from the support library. There are now two dialogs: a chooser and a controller. We use the same dialogs for selecting routes within app and within quick settings. Note that the new UI does not support any grouping features since they are deprecated and unused. Bug: 11257292 Change-Id: I64e936a18d25ab75f0c470cbc1e7085f67004863
* | am c2b652fd: am 5182ea4b: am d40a4d74: Merge "Add media router service and ↵Jeff Brown2013-11-071-12/+15
|\| | | | | | | | | | | | | integrate with remote displays." into klp-dev * commit 'c2b652fd4d386b79dc99af249b6ad3844e53fdf1': Add media router service and integrate with remote displays.
| * Add media router service and integrate with remote displays.Jeff Brown2013-11-071-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new media router service whose purpose is to track global state information associated with media routes. This service publishes routes to the media router instance in application processes and handles requested state changes such as selecting or unselecting global routes. The service also binds to remote display provider services which can offer new remote display routes to the system. Includes a test application for manually verifying certain aspects of the operation of the media router service. The remote display provider interface is essentially a stripped down media route provider interface as defined in the support library media router implementation. For now, it is designed to be used only by first parties to publish remote display routes to the system so it is not exposed as public API in the SDK. In the future, the remote display provider interface will most likely be deprecated and replaced with a more featureful media route provider interface for third party integration, similar to what is in the support library today. Further patch sets integrate these new capabilities into the System UI and Settings for connecting remote displays. Bug: 11257292 Change-Id: I31109f23f17b474d17534d0f5f4503e388b081c2
* | Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-3/+8
|/ | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Enhance MediaRouter API.Jeff Brown2013-03-071-3/+3
| | | | | | | | The support library MediaRouter implementation needs a couple of extra generally useful APIs in the platform MediaRouter to ensure that it can safely synchronize its state. Change-Id: I72c5652e10f3b6de48800abfa922affbefbd250f
* Clean up behavior of type arguments for MediaRouter#getSelectedRouteAdam Powell2012-11-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* MediaRouter/Wifi Display improvementsAdam Powell2012-10-011-3/+31
| | | | | | | | | | | * Don't select the default route on initialization in a process * Add "connecting" state to MediaRouteButton Bug 7258981 Bug 7262522 Change-Id: I5cd39b09843783b7e1e17620ca33193f0f3b8fca
* Add wireless display selection support to MediaRouter.Adam Powell2012-09-281-3/+10
| | | | | | | | | | | | | | | * 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
* Make MediaRouteButton focusable by defaultAdam Powell2012-08-021-0/+53
| | | | | | | | | | | | Bug 6921236 Add a default contentDescription for MediaRouteButton. Add long-press "cheat sheet" support to MediaRouteButtons created by MediaRouteActionProvider for use in the action bar to match standard action button behavior. Change-Id: I313cfcb2349210765b084c3388095de4624009e8
* Fix bug in parsing attributes for MediaRouteButtonAdam Powell2012-06-271-1/+1
| | | | Change-Id: Ib61506f7b09b1e043f3f21d2fd46281fbced00f4
* Update route count properly when MediaRouteButton detectsAdam Powell2012-06-221-0/+11
| | | | | | grouped/ungrouped events Change-Id: I1b00678cc3b548f347c51c3fcbfce18ecc8fbabe
* Merge "Avoid memory leak by only registering callback while attached to ↵Adam Powell2012-06-221-2/+32
|\ | | | | | | window." into jb-dev
| * Avoid memory leak by only registering callback while attached to window.Jack Palevich2012-06-221-2/+32
| | | | | | | | | | Bug: 6710307 Change-Id: Idf57251e6feb48ec3e75e797144ff800fa874cc8
* | Allow ungrouping media routes when a group is the only alternate routeAdam Powell2012-06-211-2/+8
|/ | | | | | | | Fix a MediaRouteButton bug where group item counts weren't taken into account when deciding whether to toggle between two available groups or show the chooser dialog. Change-Id: I6400ffd4cfe80c8072c5be360264b8ca91d71c41
* Add an XML attribute for controlling which route types aAdam Powell2012-06-191-0/+5
| | | | | | MediaRouteButton in a layout will alter. Change-Id: I897a68188fa87e4c2dbc88794117a3ef87ffaab0
* Permit MediaRouteButton to select system routes in toggle mode.Adam Powell2012-06-191-1/+1
| | | | | | Bug 6694917 Change-Id: I82e68aee196c72f349e7638717b727ef3f23e9b5
* API updates for MediaRouterAdam Powell2012-06-141-1/+1
| | | | | | | | | | | | | | | | | | | * 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
* MediaRouter dialogAdam Powell2012-06-131-2/+48
| | | | | | | | | | | | | | | | | | 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
* MediaRouter workAdam Powell2012-06-121-0/+7
| | | | | | | | | Fix a bug where MediaRouter would crash on creation Add click listener for app-supplied extended settings on the route selection dialog. Change-Id: I2991db1720b5c574148e250526984592f4dc3c44
* Rework media router to be per-context with global process state.Dianne Hackborn2012-06-111-1/+1
| | | | Change-Id: Ic1cb6f13e691d22783bcdafae85b7c75aec0a66f
* Further work on MediaRouterAdam Powell2012-06-111-4/+4
| | | | | | | | | | Remove volume control and tracking. This will be handled by extensions to existing audio and media APIs for now. Tweak/refine other aspects of the API. Pass the router to callbacks for easier future-proofing. Add group/ungroup callback methods. Change-Id: Ib69e76e5f46280a9002b545bcf4cbc7b839844ee
* More fun with MediaRouterAdam Powell2012-06-051-0/+284
Add action provider, button, and styles. Extend ActionProvider to allow for getting references to MenuItem instances. Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog selection yet to come. Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171