diff --git a/compatibility_matrices/compatibility_matrix.9.xml b/compatibility_matrices/compatibility_matrix.9.xml index 00139232e9..e5e469ef6f 100644 --- a/compatibility_matrices/compatibility_matrix.9.xml +++ b/compatibility_matrices/compatibility_matrix.9.xml @@ -611,7 +611,7 @@ android.hardware.tv.input - 1 + 1-2 ITvInput default diff --git a/tv/input/aidl/Android.bp b/tv/input/aidl/Android.bp index 35f510a162..cd69130f8b 100644 --- a/tv/input/aidl/Android.bp +++ b/tv/input/aidl/Android.bp @@ -35,6 +35,5 @@ aidl_interface { ], }, ], - frozen: true, - + frozen: false, } diff --git a/tv/input/aidl/aidl_api/android.hardware.tv.input/current/android/hardware/tv/input/TvMessageEvent.aidl b/tv/input/aidl/aidl_api/android.hardware.tv.input/current/android/hardware/tv/input/TvMessageEvent.aidl index 94fe665d1d..3c1cb74860 100644 --- a/tv/input/aidl/aidl_api/android.hardware.tv.input/current/android/hardware/tv/input/TvMessageEvent.aidl +++ b/tv/input/aidl/aidl_api/android.hardware.tv.input/current/android/hardware/tv/input/TvMessageEvent.aidl @@ -37,4 +37,5 @@ parcelable TvMessageEvent { android.hardware.tv.input.TvMessageEventType type; int streamId; android.hardware.tv.input.TvMessage[] messages; + int deviceId; } diff --git a/tv/input/aidl/android/hardware/tv/input/ITvInputCallback.aidl b/tv/input/aidl/android/hardware/tv/input/ITvInputCallback.aidl index a3afd41fd5..4121fc7516 100644 --- a/tv/input/aidl/android/hardware/tv/input/ITvInputCallback.aidl +++ b/tv/input/aidl/android/hardware/tv/input/ITvInputCallback.aidl @@ -32,17 +32,20 @@ interface ITvInputCallback { * Notifies the client that an TV message event has occurred. For possible event types, * check {@link android.hardware.tv.input.TvMessageEventType}. * - * The first message in a list of messages contained in a + *

For implementations of version 1, The first message in a list of messages contained in a * {@link android.hardware.tv.input.TvMessageEvent} should always have a * {@link android.hardware.tv.input.TvMessage#subType} of "device_id", * otherwise the event is discarded. When the subType of a message is "device_id", the ID of * the device that sent the message should be contained in - * {@link android.hardware.tv.input.TvMessage#groupId} + * {@link android.hardware.tv.input.TvMessage#groupId}. * - * Invoking this callback for the first time immediately triggers + *

For version 2 and beyond, the device ID should be contained in + * {@link android.hardware.tv.input.TvMessageEvent#deviceId}. + * + *

Invoking this callback for the first time immediately triggers * {@link android.hardware.tv.input.ITvInput#getTvMessageQueueDesc}. It is - * expected for the queue to be ready with - * the relevant messages for the event before this callback is called. + * expected for the queue to be ready with the relevant messages for the event before this + * callback is called. * * @param event Event passed to the client. */ diff --git a/tv/input/aidl/android/hardware/tv/input/TvMessageEvent.aidl b/tv/input/aidl/android/hardware/tv/input/TvMessageEvent.aidl index 74a078a45e..e04a725e47 100644 --- a/tv/input/aidl/android/hardware/tv/input/TvMessageEvent.aidl +++ b/tv/input/aidl/android/hardware/tv/input/TvMessageEvent.aidl @@ -25,4 +25,5 @@ parcelable TvMessageEvent { int streamId; TvMessage[] messages; + int deviceId; } diff --git a/tv/input/aidl/vts/functional/Android.bp b/tv/input/aidl/vts/functional/Android.bp index 22487eafb1..930c5a808f 100644 --- a/tv/input/aidl/vts/functional/Android.bp +++ b/tv/input/aidl/vts/functional/Android.bp @@ -32,7 +32,7 @@ cc_test { "libvndksupport", "libfmq", "android.hardware.common.fmq-V1-ndk", - "android.hardware.tv.input-V1-ndk", + "android.hardware.tv.input-V2-ndk", ], require_root: true, }