summaryrefslogtreecommitdiffstats
path: root/services/core/java/com/android/server/hdmi
Commit message (Collapse)AuthorAgeFilesLines
* Merge "CEC: Stub MHL Controller" into lmp-devJinsuk Kim2014-09-102-2/+151
|\
| * CEC: Stub MHL ControllerJinsuk Kim2014-09-092-2/+151
| | | | | | | | | | | | | | | | Replace MHL Controller with a stub impl Bug: 17259897 Change-Id: Id57bac363441f72b3da3f30d31c68c6d3b502237
* | Prevent sending <Feature Abort> for some messages.Jungshik Jang2014-09-054-9/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes the following cases. - <Report Power Status>(0x90) - When TV receives <Report Power Status> as a reply of <Give Device Power Status>, TV does not send <Feature Abort>. But if a device sends <Report Power Status> actively, TV sends <Feature Abort>. - <Set System Audio Mode>(0x72) - <System Audio Mode Status>(0x7E) Directly address message is also defined. - <Record Status>(0x0A) (We will support One-touch record function at least in Japan) - <Timer Status>(0x35) (We will support Timer programming function at least in Japan) - No response for <Record TV Screen>(0x0F) Bug: 17382769 Change-Id: I8ae355337757710d54b788edfdf37293f96cfa97
* | CEC: Revamp volume control action.Jungshik Jang2014-09-0513-199/+232
|/ | | | | | | | | | | | | Here is a list of changes 1. Change volume control into event base not level base 2. Hide volume ui if volume change is triggered by CEC 3. Report volume change triggered by CEC in OSD message 4. Revamp HdmiLogger so that normal class uses static method only. 5. Apply format message to HdmiLogger's helper methods. Bug: 17367215 Change-Id: I9f3cd41f7c66f76919059b463df956ed5176b054
* Merge "Invoke the callback only when DeviceInfo is available." into lmp-devYuncheol Heo2014-09-031-3/+6
|\
| * Invoke the callback only when DeviceInfo is available.Yuncheol Heo2014-09-031-3/+6
| | | | | | | | | | | | | | | | | | | | | | - There is possibility that DeviceInfo can be null when unplugging MHL cable, if the capability register event is missed. and we should not invoke the callback in this case. - In addition, we'd better use the portId of HdmiMhlLocalDevice directly, not one of DeviceInfo. Bug: 17366541 Change-Id: I40d71e27d82c5f3a4c7aabda32119856c0bde83d
* | Disable the debug flag in HdmiLogger.Yuncheol Heo2014-09-021-1/+1
| | | | | | | | | | | | | | The flag was enabled by mistake in the previous CL. And this can cause the log-spam on HdmiCec. Change-Id: Ie705eba8718e9dfe1750726278b6dce6bd872eb9
* | Merge "Reallocate the logical address on the hotplug event." into lmp-devYuncheol Heo2014-09-023-16/+51
|\ \ | |/ |/|
| * Reallocate the logical address on the hotplug event.Yuncheol Heo2014-09-023-16/+51
| | | | | | | | | | Bug: 17337451 Change-Id: I4117638e96c64eabd64edfef3359a0f12cf110f6
* | CEC: Fixes bugs in routing controlJinsuk Kim2014-09-021-7/+13
|/ | | | | | | | | | | | | 1) HdmiControlService#inInDeviceList was passed the parameters in a wrong order. Fixed here. Turned the method to private as well. 2) Passed path not port to Routing control when handling active path removal to update the active path correctly. 3) adb dumpsys hdmi_control outputs the status of the connected CEC devices for debugging. Bug: 17344892 Bug: 17346869 Change-Id: I289d980a2534a6159b12286dd43f159e1b4134d4
* Merge "Fix system audio mode failure in boot up" into lmp-devJungshik Jang2014-08-294-9/+15
|\
| * Fix system audio mode failure in boot upJungshik Jang2014-08-294-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | This bug happens because <Set System Audio Mode> is arrived before <Give System Audio Mode Status>'s send result callback is called in service thread. We do set internal state on callback resut. This change sets state when we send command. Along with this, add more debug log to help future debugging. Bug: 17309726 Change-Id: I0e41f684372a4c8891a90f724944227fc689e053
* | CEC: Implement dump() of HdmiControlServiceTerry Heo2014-08-285-0/+81
|/ | | | | | | In addition, use hexadecimal address representation in HdmiPortInfo.toString() Bug: 17310007 Change-Id: Iaba8f718f86a18a23b50f983053c7589dcdcfaf8
* Merge "CEC: return non-null MHL controller when not ready" into lmp-devJinsuk Kim2014-08-282-105/+90
|\
| * CEC: return non-null MHL controller when not readyJinsuk Kim2014-08-262-105/+90
| | | | | | | | | | | | | | | | | | Refactored the service and MHL controller so that non-null instance is returned even when MHL is not ready. Bug: 17234291 Change-Id: Id86444a20f64c2d3c470133487938c9524693474
* | Allow broadcast for <Set System Audio Mode>.Jungshik Jang2014-08-272-9/+12
| | | | | | | | | | | | | | | | AVR may broadcst <Set System Audio Mode> to start system audio mode. But we do handle direct message case. Bug: 17292360 Change-Id: I9111f8122d58b31f3801e4e78f283db65e79330b
* | Add more debug message to HdmiControlServiceJungshik Jang2014-08-274-32/+180
| | | | | | | | | | Bug: 17291374 Change-Id: I9568dd12b0e5864c50f81bacc2729b82242187c4
* | Merge "Fix a bug that the HdmiCecLocalDeviceTv sends <User Control Released> ↵Jinsuk Kim2014-08-272-0/+12
|\ \ | | | | | | | | | message for unsupported keys" into lmp-dev
| * | Fix a bug that the HdmiCecLocalDeviceTv sends <User Control Released> ↵Dongil Seo2014-08-272-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | message for unsupported keys Bug: 17170954 Change-Id: I0ad624eb3a1301b24865228164d8dd5a97452329
* | | Fix several bugs in HdmiControlService.Jungshik Jang2014-08-269-70/+125
|/ / | | | | | | | | | | | | | | | | | | | | 1. Fix HdmniLogger null pointer exception 2. Should check arc enabled port for arc requests 3. Disallow ARC action coming from indirect AVR device. 4. Check original opcode of feature action 5. Add bitmasking to all parameters of cec message. Bug: 17243701, Bug: 17238394, Bug: 17241401 Change-Id: Iff0da78b0de9a29fb00e683c261528e0baea66af
* | CEC: Log the current time instead when the timing information is emptyJae Seo2014-08-251-5/+5
| | | | | | | | | | Bug: 17237045 Change-Id: Iaa59167c23ce5b460ccfefcf31b6f579f8dda98a
* | Use common language code in hdmi service.Jungshik Jang2014-08-222-7/+20
|/ | | | | Bug: 15844859 Change-Id: I12945f743730ee234b25a40543ea44345abf43fa
* Add spam-safe logger.Jungshik Jang2014-08-223-8/+94
| | | | | | | | This change introduces a new helper class, HdmiLogger, which prevents spammy log for same error message. Bug: 17179667 Change-Id: Ia55808408e0a92b0370cd627361f80754b2f1018
* Implement interfaces for MHL scratchpad commandJungshik Jang2014-08-221-78/+122
| | | | | | | | | | | | 1. Add sendScratchpadCommand to IHdmiControlService interface, which is used to send scratchpad command. 2. Add IHdmiMhlScratchpadCommandListener to handle incoming MHL scratchpad command. Bug: 17146522 Change-Id: I8e8e743dc08a18c80867be470997ce79d3292c15
* Merge "CEC: Skip routing control/internal source selection conditionally" ↵Jinsuk Kim2014-08-221-6/+14
|\ | | | | | | into lmp-dev
| * CEC: Skip routing control/internal source selection conditionallyJinsuk Kim2014-08-221-6/+14
| | | | | | | | | | | | | | | | | | This is necessary for TV woken up by <Text/Image View On> to override initial TV source selection/routing control, since the input change will immediately come from external device. Bug: 17189114 Change-Id: I4aa1ac31bc7f6ab554e29a9e6065e534e15abd58
* | Merge "CEC: Fix a bug not sending <Set Stream Path>" into lmp-devJinsuk Kim2014-08-211-1/+1
|\ \ | |/ |/|
| * CEC: Fix a bug not sending <Set Stream Path>Jinsuk Kim2014-08-211-1/+1
| | | | | | | | | | | | | | | | Passes the right flag to manual routing switching method for TV to send out <Set Stream Path> to the newly selected device(path). Bug: 17169555 Change-Id: I4a14925e366a433f36b28170e37d041053c0060d
* | CEC: Invoke input change for RAP request from MHL deviceJinsuk Kim2014-08-212-1/+69
|/ | | | | | | Transform RAP[ContentOn/Off] to input change event. Bug: 17141884 Change-Id: Ic2d8e305f482ebb4f4f3b3e167f726a66dc174cf
* Merge "CEC: Broadcast language setting whenever it changes" into lmp-devTerry Heo2014-08-162-8/+38
|\
| * CEC: Broadcast language setting whenever it changesTerry Heo2014-08-182-8/+38
| | | | | | | | | | Bug: 16995278 Change-Id: Id695d4d2f213cd8039c9915f3d4e451e829e715c
* | Merge "CEC: Hook up device select API to MHL device RAP" into lmp-devJinsuk Kim2014-08-162-1/+11
|\ \
| * | CEC: Hook up device select API to MHL device RAPJinsuk Kim2014-08-202-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | This lets the input selection on UI perform MHL RAP signalling, and CEC routing control. Bug: 17141884 Change-Id: Ic1605175c5779a9a3c43df954baf9fdb6f154d36
* | | Merge "Clean up MHL local devices when HdmiControlService turns into ↵Jungshik Jang2014-08-161-6/+12
|\ \ \ | | | | | | | | | | | | disabled state" into lmp-dev
| * | | Clean up MHL local devices when HdmiControlService turns into disabled stateJungshik Jang2014-08-191-6/+12
| |/ / | | | | | | | | | | | | Bug: 17122583 Change-Id: Id8f17faf9891952c762f86b46a89732f1497c5fc
* | | Implement missing mhl apisJungshik Jang2014-08-201-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. get_supported_features 2. get_ecbug_device_rols 3. set_option in native. 4. get_mhl_version 5. get_peer_mhl_version 6. send_scratchpad_command - it includes send_scratchpad_command but does not include java side implementation. It will be added when we implement scratchpad. Bug: 17096490 Change-Id: Iacb4a41234cbbd2d832908b48d188bd81a301b0f
* | Merge "CEC: Invoke events listener upon MHL device state change" into lmp-devJinsuk Kim2014-08-163-13/+67
|\ \
| * | CEC: Invoke events listener upon MHL device state changeJinsuk Kim2014-08-193-13/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, mobile devices state changes are propagated through TIF to UI, hence the input pickers shows the mobile devices as expected. Bug: 16986744 Change-Id: Id633207acf4f814f57d43cc1de5f8cb88ac23ad6
* | | Remove parameter field in HdmiCecKeycode.Jungshik Jang2014-08-194-48/+23
|/ / | | | | | | | | | | | | | | Since we don't support mapping between android key and parameterized cec keycode, remove parameter fields in HdmiCecKeycode. Bug: 17099253 Change-Id: I8b6b6b361f0c343b0a263240b49e41bf289d36ca
* | Merge "CEC: Handle Remote Control command" into lmp-devTerry Heo2014-08-163-0/+90
|\ \
| * | CEC: Handle Remote Control commandTerry Heo2014-08-183-0/+90
| |/ | | | | | | | | | | | | | | | | Generate an Android key event when a UserControl message is received. And report menu state active when a MenuRequest message is received to notify sender can send a UserControl message. Bug: 16938007 Change-Id: Id8f393dc254508b9e7a6fa203f8e817fbe807e38
* | Implement MHL send key action.Jungshik Jang2014-08-183-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | This class introduces two classes, MhlSendKeyAction and HdmiMhlKeycode. - MhlSendKeyAction is a feature action that manages MHL message for RCP, Remote Control Pass Through. - HdmiMhlKeycode is a collection of MHL keycode including keycode mapping between MHL and Android keycode. Bug: 16966459 Change-Id: Ib3f7229c71b66837cd0d239e5af1940dfccee7df
* | Merge "CEC: Replace the usage of logical address with id for HdmiDeviceInfo" ↵Jinsuk Kim2014-08-163-43/+46
|\ \ | | | | | | | | | into lmp-dev
| * | CEC: Replace the usage of logical address with id for HdmiDeviceInfoJinsuk Kim2014-08-143-43/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced 'id' of HdmiDeviceInfo to replace the direct use of logical address as id. This accomodates the identification of MHL device with ease. Also updated TIF to use id instead of logical address. Bug: 16986744 Change-Id: Ifa827fb5e5fcf1d2f612f0845accbfe5c03734aa
* | | Log who is calling goToSleep().Jeff Brown2014-08-141-1/+1
| | | | | | | | | | | | Change-Id: Ibae61c90ee115735835e878bb3bf79eedaa0ae44
* | | Implement MHL RAP reception.Yuncheol Heo2014-08-132-2/+31
| | | | | | | | | | | | | | | Bug: 16966458 Change-Id: I77effc917e19072c387be8ba28d6ce1664d16415
* | | CEC: Remove timeout from deviceSelect processingJinsuk Kim2014-08-131-25/+2
|/ / | | | | | | | | | | | | | | | | 20-second timeout set for incoming <active source> command after <set stream path> is moved out of HdmiControlService, to HDMI input service. Bug: 16967429 Change-Id: I5b50b0187e562b51e227a29e54824740ca37906e
* | Merge "Use the system property for the HdmiControlService configuration." ↵Yuncheol Heo2014-08-112-4/+23
|\ \ | | | | | | | | | into lmp-dev
| * | Use the system property for the HdmiControlService configuration.Yuncheol Heo2014-08-122-4/+23
| |/ | | | | | | | | | | | | | | | | | | - We've used the system resoure overlay for this purpose, but we found that it's hard for OEM which uses PDK to override this. Since the resource was already compiled and provided as a binary, so it's hard to change it. Bug: 16965963 Change-Id: I868305d6f76c128d79c00ab6a8023656cd476c62
* | Merge "CEC: Fix two bugs" into lmp-devJinsuk Kim2014-08-111-3/+4
|\ \ | |/ |/|