summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice
diff options
context:
space:
mode:
authorYan Han <yanha@google.com>2021-12-15 10:03:15 +0100
committerYan Han <yanha@google.com>2022-01-14 18:36:11 +0100
commitf430140f9910b9754732f441e55a6477784ea58b (patch)
tree15d276cefeb5e7db36f70ecd7dced7238fb72f04 /core/java/android/inputmethodservice
parentabbbf2ae456b518a581406bf54b2097c00ad4b8d (diff)
Validate all messages on construction
Refactors message validation in preparation for letting messages have their own class: - HdmiCecMessage is now built using a static factory method, which validates the message and stores the result in an instance variable. - HdmiCecMessageValidator is now static to remove its dependence on HdmiControlService and allow HdmiCecMessage construction to use it. - To achieve this, validation steps that are dependent on a HdmiControlService instance are now done in HdmiControlService instead. These are really verification steps instead of validation steps, as they depend on the state a specific CEC network - for example, they include checks for whether a physical address has a valid port on a local TV device. Change-Id: I5e8c0bbeb7069e3b5cc797d6fe98470ecddda438 Bug: 207359637 Test: atest com.android.server.hdmi
Diffstat (limited to 'core/java/android/inputmethodservice')
0 files changed, 0 insertions, 0 deletions