diff options
author | 2023-08-17 18:45:34 -0700 | |
---|---|---|
committer | 2023-08-17 18:45:34 -0700 | |
commit | e9b7067be43f73d3d5ca0ec2b180067fb65f617a (patch) | |
tree | 08c1d1b547c95d90536dde90abca92d18996ba60 | |
parent | 091e31d2ca79f06a1819f73c6dc9cbe818662045 (diff) |
Update the default values of fields for logExternalInputEvent
Bug: 279185950
Test: mmm
Change-Id: Ifbcdd28499f08766cc7d344690c5415efa33455e
-rw-r--r-- | services/core/java/com/android/server/tv/TvInputManagerService.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java index cb09aef90420..5b36cd6b36c1 100644 --- a/services/core/java/com/android/server/tv/TvInputManagerService.java +++ b/services/core/java/com/android/server/tv/TvInputManagerService.java @@ -3055,10 +3055,10 @@ public final class TvInputManagerService extends SystemService { TvInputInfo tvInputInfo = tvInputState.info; int inputState = tvInputState.state; int inputType = tvInputInfo.getType(); - // For non-CEC input, the value of vendorId is 0. - int vendorId = 0; - // For non-HDMI input, the value of hdmiPort is 0. - int hdmiPort = 0; + // For non-CEC input, the value of vendorId is 0xFFFFFF (16777215 in decimal). + int vendorId = 16777215; + // For non-HDMI input, the value of hdmiPort is -1. + int hdmiPort = -1; String tifSessionId = sessionState.sessionId; if (tvInputInfo.getType() == TvInputInfo.TYPE_HDMI) { |