summaryrefslogtreecommitdiffstats
path: root/services/core/java/com/android/server/hdmi
Commit message (Collapse)AuthorAgeFilesLines
* Improve tracking of screen on reasons.Dianne Hackborn2015-07-151-1/+1
| | | | | | | | | | | | | | | | | - New screen on app op to record the last time each app has caused the screen to be turned on. - New battery stats event that tells us the reason the screen has been asked to turn on. - Propagate out power manager API to specify the reason a caller is asking to have the screen turned on. Note that currently the window flag to turn the screen on bypasses much of this because it is being handled in the window manager by just directly telling the power manager to turn the screen on. To make this better we need a new API where it can specify who it is calling the API for. Change-Id: I667e56cb1f80508d054da004db667efbcc22e971
* CEC: Do not switch language if the new one is same as the old oneJinsuk Kim2015-07-101-0/+8
| | | | | | | | | Do not switch language if the new language is the same as the current one. This helps avoid accidental country variant switching such as from en_US to en_AU due to the limitation of CEC. Bug: 22373619 Change-Id: Ia98aff67e37b470b3f550a5c097e8140c1a51ecf
* CEC: Handle <Set Menu Language> message on playback devicesTerry Heo2015-06-172-0/+44
| | | | | Bug: 16819131, Bug: 21505123 Change-Id: I3dc6439c13c2ebe5591d9e27c0c86419ed440f9b
* Merge "CEC: Remove obsolete TODOs" into mnc-devJinsuk Kim2015-05-141-4/+0
|\
| * CEC: Remove obsolete TODOsJinsuk Kim2015-05-151-4/+0
| | | | | | | | | | | | | | | | Removed legacy TODOs and the associated hack to enable CEC service for buggy partner low-level implementation. Bug: 21153475 Change-Id: I105f77389dd5c604336f86ce375016fa87c86759
* | CEC: Let playback device send <Standby> upon power offJinsuk Kim2015-05-124-9/+68
|/ | | | | | | | Let playback device send a command <Standby> based on the setting. ACTION_SHUTDOWN leads to broadcast command to put all the devices to sleep, and ACTION_SCREEN_OFF optionally turns off TV only. Change-Id: Id458b23ce86b0c3179efa21cce85b721a47001be
* Merge "CEC: Update ARC feature flag on hotplug" into mnc-devJinsuk Kim2015-05-101-2/+10
|\
| * CEC: Update ARC feature flag on hotplugJinsuk Kim2015-05-111-2/+10
| | | | | | | | | | | | | | | | | | ARC feature flag should have been updated whenever hotplug[on] was detected, so that the ARC can be established upon device discovery. This CL rectifies the bug. Bug: 20817208 Change-Id: I5053ad3f576d0e405b6d8fc0c4e6584e66ed0a86
* | Merge "CEC: Make wakeup on hotplug optional" into mnc-devJinsuk Kim2015-05-072-1/+8
|\ \
| * | CEC: Make wakeup on hotplug optionalJinsuk Kim2015-05-072-1/+8
| |/ | | | | | | | | | | | | | | Added a new system property to make the feature optional. True by default. Bug: 20897914 Change-Id: I8bfca5144b802b95361e63b29abd6371971c7dbb
* | CEC: Reset active source/path before going into standbyJinsuk Kim2015-04-301-0/+3
|/ | | | | Bug: 20681302 Change-Id: I2e6d460f9ec06d1ef988b7a7ff73a03586958484
* Merge "CEC: Check port id for ARC status update on hotplug"Jinsuk Kim2015-04-241-1/+5
|\
| * CEC: Check port id for ARC status update on hotplugJinsuk Kim2015-04-241-1/+5
| | | | | | | | | | | | | | | | Fixes a bug that was updating ARC status on hotplug event regardless of the port for which the event occurred. Bug: 20520664 Change-Id: I17c4f391af4dd221215412ed9e3ff3d730bbf152
* | CEC: Prevent premature standby process completionJinsuk Kim2015-04-212-8/+14
|/ | | | | | | | | | | | | | | | | Handles the situation where standby is prematurely completed by handleTerminateArc initiated in HdmiCecLocalDeviceTv.disableDevice(). Power status is now checked to stop the flow before removing RequestArcTerminateAction which can call mPendingActionClearedCallback. Also Make sure mPendingActionClearedCallback is set to null at the beginning so that disable callback is not invoked unintentionally in HdmiCecLocalDevice.checkIfPendingActionsCleared() which is supposed to work at standby process only. It is now invoked by handleDisableDeviceTimeout to make sure standby process is completed with PendingActionClearedCallback at HdmiControlService.onStandby(). Bug: 20159835, Bug: 19930352 Change-Id: Iac29dfb6acff76182ff4e9563edc611406c23f3c
* Merge "CEC: Do not terminate ARC on send error busy"Jinsuk Kim2015-04-161-7/+16
|\
| * CEC: Do not terminate ARC on send error busyJinsuk Kim2015-04-161-7/+16
| | | | | | | | | | | | | | | | | | Silently ignores the transmission error busy/failure for the command <Report ARC Initiated> to keep the ARC on. Termination is done only for the explicit error (NAK). Bug: 20267416 Change-Id: I649d6494855b2d6aa0cecc8fd76d36001c0edb68
* | CEC: Remove system audio on hotplugJinsuk Kim2015-04-143-4/+19
|/ | | | | | | | | | | | | System audio was not being immediately removed by polling mechanism mechanism but was being checked three times in order to avoid accidental polling failure. This came with a side effect of the system audio not removed instantly even when the device is physically removed. This CL relies on hotplug event to tell whether the device removal should be done right away or has to wait for 3 polling intervals. Bug: 20133405 Change-Id: I9dbd7a8b9e424d523d0c22e4cac19b341461b71e
* Reset system audio mode on startup rather than on stop.Wally Yau2015-04-061-4/+2
| | | | | | | | | | Bug fixed - When TV was turned off and AVR was on, audio was routed back to TV momentarily before the TV turned off. b/19791264 Change-Id: Iad639b6ba151b6615a7f4ce49fddfa4fc485e16c (cherry picked from commit b0efbf3898e80181210103f6ac535af69d3abb2d)
* Merge "CEC: Let arc termination start before standby"Jinsuk Kim2015-04-062-2/+3
|\
| * CEC: Let arc termination start before standbyJinsuk Kim2015-04-022-2/+3
| | | | | | | | | | Bug: 19930352 Change-Id: Ie344f06a66beafecf64eccadc1881c4d2ec170b3
* | Merge "CEC: Support arc feature flag for multiple ports"Jinsuk Kim2015-04-062-16/+26
|\ \
| * | CEC: Support arc feature flag for multiple portsJinsuk Kim2015-04-022-16/+26
| |/ | | | | | | | | | | | | | | mArcFeatureEnabled is extended to a flag array to correctly indicate the state of each port that supports ARC. Bug: 19957954 Change-Id: I63e4dc2ebd4d71c5ebf59118a3076b52b489c2f2
* | CEC: Back up active input correctly against repeated active source commandsJinsuk Kim2015-04-034-7/+19
|/ | | | | | | | | The repeated <Active Source> commands were incorrectly backing up active input to use for <Inactive Source>. The input should not be handled if the command comes from the current active source. Bug: 20017736 Change-Id: I30e92dab2dce7c1b6835af553efae66c0934188e
* Merge "CEC: Do not send <ARC Terminated> when init request gets rejected"Jinsuk Kim2015-03-303-8/+11
|\
| * CEC: Do not send <ARC Terminated> when init request gets rejectedJinsuk Kim2015-03-303-8/+11
| | | | | | | | | | | | | | | | | | | | | | System audio may reject <Request ARC Initiation> with a response <Feature Abort> or just time out. Do not send <Request ARC Terminated> in response so as not to turn off the ARC mode, as it may not be the intended behavior. Bug: 19928094 Change-Id: I469dfa53bf35dfbca7daa86a69763b10551663ec
* | Merge "Enable selecting device whose power status is not on"Jinsuk Kim2015-03-261-1/+3
|\ \
| * | Enable selecting device whose power status is not onYu.Ishihara2015-03-261-1/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | DeviceSelect() returns immediately if the active routing path is selected even if the device is turned off and not displaying anything. This fix allows device to be selected again if target device's power status is not on in order to wake it up, hence improve the user experience. Bug: 19724238 Change-Id: I3b62b9aa0aecaf2957a445d82e966d52b9be6879
* | CEC: Explicitly turn on screen for remote control passthroughJinsuk Kim2015-03-241-1/+13
|/ | | | | | | | Ensures that the playback device turns on display output signal upon receiving CEC command <User Control Pressed>. Bug: 19518981 Change-Id: I4f898380c9ffc071da2357a51e61309ae5d233f5
* CEC: Expose API sendStandby()Jinsuk Kim2015-03-201-0/+10
| | | | | | | | Allows playback/TV device to use the API to turn off TV/other device that accepts the command. Bug: 19802768 Change-Id: I6440626c08efb1473bea5ab577e571d0bb92d4a1
* Merge "CEC: Do not start queued actions for TV device"Jinsuk Kim2015-03-051-1/+0
|\
| * CEC: Do not start queued actions for TV deviceJinsuk Kim2015-02-281-1/+0
| | | | | | | | | | | | | | | | | | Handling the queued actions is useful for playback device only. It is not useful and does nothing for TV device which has its own delayed message buffer to process the messages to be handled later in time. Change-Id: Ic4d507177cfdbc3b8a474e45dfd3862f4b1bd4a7
* | Remove unused imports in frameworks/base.John Spurlock2015-02-284-10/+0
|/ | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* CEC: Switch ARC hardware circuit before device updateJinsuk Kim2015-02-232-1/+14
| | | | | | | | | | | | | Audio Return Channel hardware circuit was being switched after the device update initiated by hotplug event. The device instance was already removed by the time ARC update was attempted, hence caused an exception. This CL ensure the config change is done in advance, when the AVR device instance is still present. Bug: 19250400 Change-Id: I31cf682f5c8d1a279a0703d10fe182f3da23d3db
* CEC: Define a system property to keep playback device awakeJinsuk Kim2015-02-102-7/+56
| | | | | | | | | Playback device doesn't go to suspend (standby) mode if it's the active source. This CL makes the behavior configurable through the system property persist.sys.hdmi.keep_awake. Bug: 19299723 Change-Id: Icb8b593ab44429ec0520e60d19d0368982ff5667
* Add additional info to AudioPort for enum/selection API.Paul McLean2015-02-041-1/+1
| | | | | | | | | | | Add "device name" member to AudioPort. Moved unique device ID from DevicePort to AudioPort. Straighten out confusion between "name" and "address" Created string constants for Intent "extra" data keys. Combine card/address data into "address" at sender.Add additional info to AudioPort for enum/selection API. Parse out USB Device name in UsbCardsParser. Change-Id: Ifd76b0298312090a8f39e638339f993b86d47080
* Merge "Revert "CEC: Let playback device switch TV input after bootup"" into ↵Jinsuk Kim2015-01-301-4/+0
|\ | | | | | | lmp-mr1-dev
| * Revert "CEC: Let playback device switch TV input after bootup"Jinsuk Kim2015-01-301-4/+0
| | | | | | | | | | | | This reverts commit 8913a0e1e8559d96e82b1ff408dd312ed279021b. Change-Id: Ibfabdd94206141274a69040e0ed90ba29aeae75b
* | Merge "CEC: Discard key event to itself" into lmp-mr1-devJinsuk Kim2015-01-291-1/+5
|\ \
| * | CEC: Discard key event to itselfJinsuk Kim2015-01-301-1/+5
| | | | | | | | | | | | | | | | | | | | | Should discard keyevents if the target address is the device itself. Bug: 19188660 Change-Id: Id47d79c996f60c9d90540f28c4b2509976d2f378
* | | Merge "CEC: Add CEC device upon receiving <Report Physical Address>" into ↵Jinsuk Kim2015-01-292-1/+13
|\ \ \ | | | | | | | | | | | | lmp-mr1-dev
| * | | CEC: Add CEC device upon receiving <Report Physical Address>Jinsuk Kim2015-01-292-1/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | Help devices be processed sooner when new device detection operation takes longer than usual. Bug: 19181472 Change-Id: I96c29081a9c7c9f73ebcd027ed9d18056dc89bf9
* | | CEC: Ensure stable AVR connectionJinsuk Kim2015-01-291-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure AVR device removal due to hotplug detection failure occur in a less strict manner - doing it only if the failure is detected 3 times in a row. Bug: 19171321 Change-Id: I1479663b05cdc957cc52123799c756f6b74f6708
* | | CEC: Stop ARC if hotplug event is asserted lowJinsuk Kim2015-01-291-0/+13
| | | | | | | | | | | | | | | | | | | | | Updated to stop ARC as specified in HEAC 2.4 transmission condition. Bug: 19170947 Change-Id: Ibf797ce3b49f32561ef0c36b6874e7ebe19ed65a
* | | CEC: Fix a regression bugJinsuk Kim2015-01-292-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The HdmiControlService.getActiveSource() has a regression (exception) when calling getDeviceInfoByPath since method should be called on a service thread. Introduced a method that can be invoked safely from the main thread. Bug: 19170884 Change-Id: I393161e08c916270faf46147a97076bc573b808f
* | | CEC: Let <Active Source> from the active source workJinsuk Kim2015-01-281-5/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | <Active Source> from the device which is already in active source state is being ignored now, but it should work with an effect of putting input view foreground in case it is hidden behind home launcher overlay. For better user experience, this change lets the command from the active source takes effect to hide the overlay if present. Bug: 19171319 Change-Id: I43d2646f2ad470b3636e82ff71ac83cf0031ef6c
* | Merge "CEC: Handles initiation of press-and-hold correctly" into lmp-mr1-devJinsuk Kim2015-01-231-12/+34
|\ \
| * | CEC: Handles initiation of press-and-hold correctlyJinsuk Kim2015-01-231-12/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the time gap between the first and the second key event for repeated keys(press-and-hold) can be bigger than the threshold, which violates CEC spec. This CL rectifies it by managing its own state rather than relying on Android key handler. Bug: 19117830 Change-Id: Iedfa48f9ab826252e8616d1c3b7491e8b8333c81
* | | Merge "CEC: Add logic to return to internal source" into lmp-mr1-devJinsuk Kim2015-01-232-12/+21
|\ \ \ | |_|/ |/| |
| * | CEC: Add logic to return to internal sourceJinsuk Kim2015-01-222-12/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL introduces a logic that, upon receiving <Inactive Source> from the active source or a corresponding MHL subcommand, lets the service return to one of internal inputs. Introduced to handle it is a new type for HdmiDevice (INACTIVE) that will be passed to input change listeners. The callback is expected to transform to other mechanism such as intent, to let TV app to decide which input to switch to, which will be one of non-HDMI input that was viewed previously. Bug: 19008579 Change-Id: I1922f4cd20e9220411061bb9d9fbe5fbc5676d48
* | CEC: Let playback device switch TV input after bootupJinsuk Kim2015-01-211-0/+4
|/ | | | | | | | Saves users from having to switch TV input manually to a playback device after it boots up. Bug: 19046176 Change-Id: I0a4fae1036138ce2e19cbac9fdd9dda41bdcf89f