History log of /frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7e6627eade85a1861ad5ca55200301cd7799e4e1 21-Jan-2017 Chris Phoenix <cphoenix@google.com> tv_cec HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: I64e028573f3cf5959cbe251bf351ce4d238d50c5
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
d002a8b07becc7ce1b0978b837bd61f29f8c4d18 04-Jan-2017 Steven Moreland <smoreland@google.com> Return<*> getStatus().isOk() -> isOk()

Bug: 31348667
Test: compiles
Change-Id: I7b99a655aefab8c5129b35799e3897a31166be91
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
bc6e372b25d7d62efecefba09304c5a66218c91a 03-Nov-2016 Donghyun Cho <donghyun@google.com> tv.cec: Update framework code to call Treble HAL

Bug: 32073236
Test: Checked CEC features works on fugu after applying Treble HAL
Change-Id: I26df037594e2505bd8f2d2bb6222cba5ddca2906
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
03df42268995e3742aeb42ee6a77048dcc8fd889 20-May-2016 Chih-Hung Hsieh <chh@google.com> Merge "Fix misc-macro-parentheses warnings in services jni." am: fe91d2a83d
am: d05b6478d5

* commit 'd05b6478d5341f7d70e78fad031d2d426155f68a':
Fix misc-macro-parentheses warnings in services jni.

Change-Id: Ibee251ace2e3f15b98a8f91da0d8450069500177
6c89616c388d2e5cac5f7d0c1682e48fa6ea7d31 20-May-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings in services jni.

Bug: 28705665
Change-Id: Iaf965875b667e45e1557e447de7988f729adfd52
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
85e0c89ba55188ecc484538efbfdb570606fc1a2 28-Apr-2016 Chih-Hung Hsieh <chh@google.com> resolve merge conflicts of 1599b981 to nyc-dev-plus-aosp

Change-Id: I90807581e10b6a0024515ff634ac8b29eaa5fc9f
c6baf563ba6aa207a48317c177b29f1d2b70cf3d 27-Apr-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings.

Bug: 28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
d0efcbbbb5145da42beafd36f86a6d90047ce9af 12-Feb-2016 Jae Seo <jaeseo@google.com> TIF: Check the CEC message length before copying the data

Bug: 25768736
Change-Id: Ife46891e785fe816c0ee6ba65bd57512366ce84d
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
76f6a86de25e1bf74717e047e55fd44b089673f3 19-Sep-2015 Daniel Micay <danielmicay@gmail.com> constify JNINativeMethod function pointer tables

Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
23ac13c6b95c15d029426ff8424f7f6f23bf0220 17-Dec-2014 Jinsuk Kim <jinsukkim@google.com> am 08ca1694: am fadfe708: Merge "CEC: Pass port ID for set_audio_return_channel" into lmp-mr1-dev

* commit '08ca1694eb3013bd1f6c050e021588b8614e8764':
CEC: Pass port ID for set_audio_return_channel
1481a4282818939436f590d8c88aea2d19166b8e 17-Dec-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Pass port ID for set_audio_return_channel

This CL passes a port ID when enabling/disabling ARC in case
there are multiple HDMI ports that support the feature.

Bug: 18781204

Change-Id: I632518132bf07c8ae6f0ff5135429ca719b596b2
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
4048a4bcb1ea709ddb83a4fde3ff5c53e642f7d0 23-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Remove unused variables and functions, don't warn about unused parameters

Remove unused variables and static functions clang complains about,
disable warnings about unused parameters (needed for clang and for gcc
with -Wextra enabled)

Change-Id: I76a22cd0158b3c7375c54e3d4d15bc1ac448591e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
8c688ada2dc256a746429b10b2e7a47a52e9b02f 24-Jul-2014 Jinsuk Kim <jinsukkim@google.com> MHL controller for subcommand reception

Implement HdmiMhlController command reception part.

Bug: 16215362

Change-Id: Iabf46dfaa762fae8c537e4d4ebd3469388a6b7c3
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
284c31b92e4e0d0b8095ae50c61db9c83c9d577c 11-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Update HdmiControlService JNI to the change in HAL definition

Change-Id: Iab235785c4d0242ab5845d1f8ad62d78770ff9c4
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
42230728b8212738c2351939c5577730f05a58de 07-Jul-2014 Jungshik Jang <jayjang@google.com> Add port number to hot plug event handler.

This is to remove a TODO about adding port number to
jni interface.

Bug: 15844074
Change-Id: I4dba0879527035a4cabad6cc80e359e6c1fd39b0
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
ba147582b1ae504e9c00a0c94d715c061506b2ba 02-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Remove the usage of TX_STATUS in HdmiControlService

Reflects the change to come in CEC HAL

Change-Id: I3a64e19bbdd8067855911ef11653fe64049b8880
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
63dd3bb3602bc00557680432b08b49a5a15bcdb7 13-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Fixed a wrong path to HdmiPortInfo class

This fixes a JNI error for HdmiCecController

Change-Id: I8ce987dfa3126ecffd455a964c01d27fb9aa01eb
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
0340bbc89f8162f9c2a298c98b03bfcdd1bc6e87 05-Jun-2014 Jinsuk Kim <jinsukkim@google.com> RoutingControlAction for HdmiControlService

Routing control action is initiated in various cases, such as manual
TV input port switching, routing change of a different CEC switch,
and so on. The action determines the device to be a new active source.

Change-Id: I1efcd6ff1919dd94d6fa0e0ffa6e430c48d4e9c6
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
a6ce7708d6124224399241503fadcafe0c4684d4 10-May-2014 Jinsuk Kim <jinsukkim@google.com> DeviceSelectAction for HdmiControlService

DeviceSelectAction is the main handler for the API deviceSelect() which is
used to choose a new active source among logical devices on the bus.

Change-Id: I77582a1f873423fc316d89f67a89a867461a76b2
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
092b445ef898e3c1e5b2918b554480940f0f5a28 11-Jun-2014 Jungshik Jang <jayjang@google.com> Move message handling logic to local device instead of service.

Local device is in charge of handling incoming messages
and for some messages such as <set menum language> or
<report physical address> each device has slightly different
behavior. Instread of checking destination address and
local device status from service, this change leaves it
to each local device.
Note that some messages are still left on service
and will be refactored in the following changes.

Along with this, following changes are included.
1. add missing jin interfaces
set_option
set_audio_return_channel
is_connected
Note that get_port_info is under review of jinsuk's change
2. if tv device receives <Report Physical Address>,
starts NewDeviceAction.
3. add constants variables related to new interfaces.
4. add two helper methods for physical address and vendor
id handling

Change-Id: I9c9d04744bc09fbf38431ecfa6e77097b0618a37
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
8692fc68a413c7aca75f094bb02bcbabcc277c73 29-May-2014 Jinsuk Kim <jinsukkim@google.com> Stop publishing HdmiCecService, start publishing HdmiControlService

HdmiCecService will soon be deprecated and replaced with HdmiControlService.
Stopped publishing the service, and turned the corresponding manager to
stub so that it will do nothing but print out a warning msg instead.

Will help the app transition to the new service in the meantime. Once
the migration is finished, will gut out all the HdmiCecService/
HdmiCecManager stuff.

Change-Id: Ic34a69c4fb99f4e5a2c8323538195204ab16a545
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
4085d0ef62554c7e139b82bca0f97161bb159f8c 27-May-2014 Jungshik Jang <jayjang@google.com> Add cec message handler to hdmi cec jni implementation

Notification for incoming cec message can be issued
from any thread but jni can call java method
in the thread that jni knows like service thread.
So this change delegates incoming message to
jni-friendly thread, service thread by exploit
looper of service thread.

Change-Id: If3b141d917df3e209912af1778eb509777199969
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
a9095ba488ea18aeafaf9c3a8258bf9f459bda71 02-May-2014 Jungshik Jang <jayjang@google.com> Implement more native api for Hdmi cec.

HAL interface for CEC has more apis that haven't
connected with HdmiCecController.
Here is a list of apis.

1. addLogicalAddress
2. clearLogicalAddress
3. getPhysicalAddress
4. getVersion
5. getVendorId

Verified that it does not affect to other components in nakasi

Change-Id: I535bde47c43dd25bbede002c0a2aefbe86779076
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
97babdc92be8c81325f3a9f4f520a8c20bed177d 02-May-2014 Jungshik Jang <jayjang@google.com> Fix unmatched jni method name.

It breaks systemserver

Change-Id: Iecc5600d64a273c4bbf51bd8fd779a79a3dab107
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
e9c77c88ea34a66f83a94f960547275c0ff6bd07 24-Apr-2014 Jungshik Jang <jayjang@google.com> Implement native send and receive logic for HdmiCecController.

This change includes native jni implementation for
incoming and outgoing message of CEC.
For incoming message, native layer converts it into three
pieces, source address (initiator), destination address (follower)
and data body which includes opcode. In Java layer, it is delegated to
main io thread. For now all messages are rejected by sending <Feature Abort>
to initiator.
For outoging message, all messages are sent to io thread and it delegates
it into native layer. Native logic converts it into cec_message and
pass it to HAL so that HAL performs sending message.
In order to handle <Feature Abort> message, added [Abort reason] which is
defined in hdmi_cec.h.

Change-Id: If9fd74745f476105e5cfae964e39c78bae69d3e2
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp
0792d37385e60aa8d73f8df174d0a32f4f618bc4 23-Apr-2014 Jungshik Jang <jayjang@google.com> Implement skeleton of new HDMI Control Service.

HdmiCecService is a system service handling HDMI-CEC features
and command. Recently we found out that industry has more
requirements to support HDMI-CEC. Also, MHL is another
standard should be in our pocket. Basically, MHL is
a standard to support communication between mobile device
and TV or Av device. As CEC is a control standard over HDMI
cable, MHL has control channel for peer device.
There behavior is very similiar. Both have commands that
can change Tv's current input and can send/receive key
to other device to control other deivce or TV.

In order to cover both CEC and MHL, current HdmiCecService
implementation has limitation. We had several
session of discussion and decided to refactor
HdmiCecService into HdmiControlService.
For each standard it will have separate controller instance
like HdmiCecController and HdmiMhlController.

In this change I didn't touch original HdmiCecService
because some component, like cast receiver, uses HdmiCecService.
For a while we will keep HdmiCecService until HdmiControlService
accomodates all features of HdmiCecService.

Change-Id: I5485280ab803dbf071d898bfbe34be0b11ce7958
/frameworks/base/services/core/jni/com_android_server_hdmi_HdmiCecController.cpp