summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorPaul <donpaul@google.com>2021-09-15 15:45:35 +0000
committerPaul Colța <donpaul@google.com>2021-09-27 11:00:16 +0000
commite96fe8f40d975faf969a3fed46a7133da1da841a (patch)
treedf6621fa30b1eb085e1c5350436cc74d7fd40e7c /core/java/android/inputmethodservice/AbstractInputMethodService.java
parent86170faab2c53512dc5a0fd09036edac878fd4ef (diff)
HDMICEC: Add a new validation to CEC messages
Add one more parameter to the isValid() method to indicate if the message that needs to be validated is sent or received by the device. Add a filter that ignores received messages which have source's logical address equal to device's logical address. Revise isValid() calls and tests affected by the change. Edit HdmiControlServiceTest#handleCecCommand_errorParameter_returnsAbortInvalidOperand() test. Since the logical address Constants.ADDR_PLAYBACK_1 is already used by mPlaybackDeviceSpy the message's source is set to Constants.ADDR_PLAYBACK_2; otherwise HdmiCecMessageValidator#isValid() fails with a different error code than expected. Bug: 198261021 Test: make && atest CtsHdmiCecHostTestCases Change-Id: I274a9a2385d616784dfc891aabd8f335c32658da (cherry picked from commit c3d3e32e50fe162f40d69f9f204468a30ea3e201)
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions