summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/display/WifiDisplayController.java
AgeCommit message (Collapse)Author
2013-12-19Move some system services to separate directoriesAmith Yamasani
Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
2013-11-21Stop wifi display discovery when no longer needed.Jeff Brown
Keep track of how many clients are requesting scans and scan continuously until all of them are gone then explicitly terminate the scan instead of letting it time out as before. Suspend wifi display scans while connecting or connected to a remote display. This is handled by both the display manager and media router since neither has complete information about what is happening. Much of this code will no longer be needed once wifi display support is integrated directly into the media router service. Ensure that we don't attempt to scan or connect to wifi displays while the wifi display feature is off. Infer when a connection attempt fails and unselect the wifi display route automatically so it doesn't appear to be connecting forever. Fix issues around correctly canceling and retrying connection attempts. Often we would cancel but not retry. Improved connection reliability somewhat. It seems that discovery must already be in progress in order for a connection attempt to succeed. Ensure QuickSettings uses exactly the same logic as the MediaRouteButton to determine when the remote display tile should be made visible. Bug: 11717053 Change-Id: I18afc977b0e8c26204b8c96adaa79f05225f7b6e
2013-11-13Finalize assets for screen casting.Jeff Brown
Extend wifi display connection timeout. Show a notification while connecting to wifi display. Ensure that remote display providers are really trusted before connecting to them. Bug: 11257292 Change-Id: Iad0caaa30d7946df818bc75ade071f2e377f8a53
2013-08-30wifi-display: add a global setting to force WPS config methodChong Zhang
Bug: 9371882 Change-Id: I7417535f12fa5b75be471974250cfd13e45f87b2
2013-08-29wifi-display: disable WFD IE when Wifi display is turned offChong Zhang
Change-Id: Ibd7e3a59f7988975b4ac6c7efdba2b545097a2bd
2013-08-23wifi-display: add certification optionsChong Zhang
When certification mode is enabled: - Pass wfd session info to wifi display settings - Allow sink to connect to source - Add interface in display manager for pausing/resuming session - Add interface in WifiP2pManager for setting lc, oc and starting autonomous GO Note that we're compliant regardless of certification mode, but some confusing options (eg. allowing incoming connection from sink) we want to hide when not being tested. Bug: 9371882 Change-Id: Icc7dcae4e046453796cfa03f5f197055fabf234b
2013-08-16Remove setRemoteSubmixOn method.Jeff Brown
The submix will be controlled automatically from now on based on whether there is an active audio recorder. Bug: 10265163 Change-Id: I90a8592136c6507680e70f054243df70cc82efad
2013-06-13MediaRouter: grey out wifi displays that's in useChong Zhang
bug 9229799 Change-Id: I9f5fd2107f60c492d42c74e575e6483838a51267
2013-06-06wifi-display: set display to unavailable if p2p device is unavailableChong Zhang
Bug 9229799 Change-Id: I680015943f40cded45645dfa0eae42bbce5ce9a3
2013-04-17Sent hint to Wifi driver when enabling WFD.Jeff Brown
Bug: 8521148 Change-Id: I53b4cf7a3714b28f9df457e559abe92711c02cef
2012-11-28WFD: Fallback to PIN mode if PBC is not supportedIrfan Sheriff
Bug: 7627641 Change-Id: Ibba6114f907c67f1cb60c460d5b65479f2d1b148
2012-11-07Support Wifi display devices that rename themselves.Jeff Brown
Some Wifi display devices like to rename themselves after a connection completes (or at other times). Make sure to update the name of the display when we detect that it changed in our scan results. This problem is somewhat complicated by the fact that we remember the display name persistently, so we need to update our list of remembered displays too. Improve the state machine to avoid redundant attempts to disconnect or cancel connection. Bug: 7478895 Change-Id: I35a9e2c6a8deadbe892dacd5e3b4a5a2b12d6cf0
2012-10-01Always update peer list in display controllerIrfan Sheriff
Display controller should always stay in sync with peer list to avoid showing incorrect available status on peers which would cause connectivity issues. Bug: 7268307 Change-Id: If04644339c1ee3f567939e4441dd6f6a45e4179a
2012-09-23Increase WFD connect time out to 60sIrfan Sheriff
The worst case WPS timeout for GO negotiation is two minutes. Until, we better handle cancelling/disconnecting and re-syncing the WFD framework with the wifi direct framework/supplicant, increase the time out to 60s to help with dogfood Bug: 7217600 Change-Id: I1ba0d9963b957454e2c6f47bfdf05176dea07be7
2012-09-20Use min group owner intent for concurrencyIrfan Sheriff
Our device only supports STA & GC concurrency Change-Id: I4f16c959a6f4e7ad5610dcae67be830d741f162c
2012-09-19Make wifi display state changes more robust.Jeff Brown
Bug: 7178216 Change-Id: Icceaeb61730b0b4916cdda44459f4c69553e303c
2012-09-19Add support for remembering Wifi display devices.Jeff Brown
Add a setting to globally disable Wifi display. Fixed a bug where the wifi display broadcast receiver was running on the wrong thread. Removed the wifi-display QuickSettings dialog, all functionality has been moved to Settings. Bug: 7178216 Bug: 7192799 Change-Id: I9796baac8245d664cf28fa147b9ed978d81d8ab9
2012-09-18Merge "WFD fixes" into jb-mr1-devIrfan Sheriff
2012-09-18WFD fixesIrfan Sheriff
- Specificy max GO intent for WFD - Increase GO idle time out to 20s and use it for GO and client - Fix connection broadcast Change-Id: Ia0e28bc9eb3e23d2830a6c814c5a537ca0bcd5db
2012-09-17Merge "Revert "Specify max go intent for wifi display"" into jb-mr1-devDave Burke
2012-09-17Revert "Specify max go intent for wifi display"Dave Burke
This reverts commit 7ab7260697de617aced0b0ba594304a42e5395bd Change-Id: I5b322f41729695465b164e1dfe6d4b1902cd8117
2012-09-17Merge "Specify max go intent for wifi display" into jb-mr1-devIrfan Sheriff
2012-09-17Specify max go intent for wifi displayIrfan Sheriff
For p2p and sta single channel concurrency, we need the device to be a GO Change-Id: I8c3f180b8fc450238e24dace478f03cdf4e370a7
2012-09-17Swap remote submix initialization order.Jeff Brown
Need to turn the submix on before connecting and off after disconnecting. Change-Id: I53389c3b61e6d663855accd0461eed42a67d9d2b
2012-09-13Merge "Add preliminary API for reporting display capabilities." into jb-mr1-devJeff Brown
2012-09-13Add preliminary API for reporting display capabilities.Jeff Brown
Change-Id: Ie18dce5b5d130f9a7cdfca08cddbf9b099312277
2012-09-12Enable remote submix for wifi display.Jeff Brown
Change-Id: Ib6cad4ecfed91abf835555a1089a206ee9b0763c
2012-09-11Improve reporting of wifi connection state.Jeff Brown
We should only report that the wifi display is connected after the RTSP connection has been fully established. Change-Id: Ifc6bc5d5cebd42d551026885b31cbc74b7ece2b1
2012-09-11Don't auto-discover peers until scan requested.Jeff Brown
Change-Id: I4ad08873567a5ac86e9bd46abd2375b183e2e95b
2012-09-11Use wfdInfo to filter available sinks.Jeff Brown
Change-Id: If056267738f70835af645a8c6e7a91c0c5407816
2012-09-10Fix port logic in WifiDisplayController.Andreas Huber
It's not the port advertised in the sink's wfd IE, it's the one our source broadcasts in its wfd IE. In addition some dongles ignore the broadcast port and have to be special cased. Change-Id: Id5d279652e336391ba34dfc30bba700043d49b1d
2012-09-08Improve Wifi display discovery API.Jeff Brown
Change-Id: I4d46503e5413f52da16f79bbc9c631cc5ae9c178
2012-09-08Add new wifi display discovery API.Jeff Brown
The API is quite simple. There are a few extra functions on DisplayManager to scan, connect and disconnect from wifi displays and get status, and a single protected broadcast sent when the status changes. Change-Id: Ic91dbab5ee818e790b27fa32e1a1e93788793be0
2012-09-07Retry wifi display connections.Jeff Brown
Change-Id: I48c62c7e272c2696022ddeea1c3107d24a9431b8
2012-09-07Disable hardcoded wifi display adapter.Jeff Brown
Change-Id: Id0f7d59b6eafa8794ff7616cf54a0b94ba78c763
2012-09-07Add support for Wifi display.Jeff Brown
Change-Id: I99693786cf9d07d07d3400046c55eb4933730b80