summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yixiao Luo <yixiaoluo@google.com> 2023-08-18 18:47:31 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-08-18 18:47:31 +0000
commite65f6c729b687553a0e2bafd0600d92c9a2c28a9 (patch)
tree202232cb0c7080c88b24a7a703221bf287bb59ad
parentded17f5913adeb48a7f367dba74eb33ad1cb56bf (diff)
parente9b7067be43f73d3d5ca0ec2b180067fb65f617a (diff)
Merge "Update the default values of fields for logExternalInputEvent" into main
-rw-r--r--services/core/java/com/android/server/tv/TvInputManagerService.java8
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) {