Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c90143e7 authored by Yixiao Luo's avatar Yixiao Luo Committed by Android (Google) Code Review
Browse files

Merge "[MQ HAL] Add set profile APIs to TV input" into main

parents a2bf437d 1b2bc18d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -615,7 +615,7 @@
    </hal>
    <hal format="aidl">
        <name>android.hardware.tv.input</name>
        <version>1-2</version>
        <version>1-3</version>
        <interface>
            <name>ITvInput</name>
            <instance>default</instance>
+1 −1
Original line number Diff line number Diff line
@@ -45,5 +45,5 @@ aidl_interface {
        },

    ],
    frozen: true,
    frozen: false,
}
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ interface ITvInput {
  void setCallback(in android.hardware.tv.input.ITvInputCallback callback);
  void setTvMessageEnabled(int deviceId, int streamId, in android.hardware.tv.input.TvMessageEventType type, boolean enabled);
  void getTvMessageQueueDesc(out android.hardware.common.fmq.MQDescriptor<byte,android.hardware.common.fmq.SynchronizedReadWrite> queue, int deviceId, int streamId);
  void setPictureProfileId(in int deviceId, in int streamId, in long profileId);
  void setSoundProfileId(in int deviceId, in int streamId, in long profileId);
  const int STATUS_UNKNOWN = 1;
  const int STATUS_NO_RESOURCE = 2;
  const int STATUS_INVALID_ARGUMENTS = 3;
+24 −0
Original line number Diff line number Diff line
@@ -109,4 +109,28 @@ interface ITvInput {
     */
    void getTvMessageQueueDesc(
            out MQDescriptor<byte, SynchronizedReadWrite> queue, int deviceId, int streamId);

    /**
     * Set the picture profile ID for a specific stream in a device.
     *
     * @param deviceId Device ID for the stream to use the profile.
     * @param streamId Stream ID for the stream to  use the profile. Must be one of the
     *         stream IDs returned from getStreamConfigurations().
     * @param profileId Picture profile ID for the stream. The ID is assigned by the framework,
     *         and can be set by applications or TV input framework. See
     *         android.media.quality.PictureQuality for more details.
     */
    void setPictureProfileId(in int deviceId, in int streamId, in long profileId);

    /**
     * Set the sound profile ID for a specific stream in a device.
     *
     * @param deviceId Device ID for the stream to use the profile.
     * @param streamId Stream ID for the stream to  use the profile. Must be one of the
     *         stream IDs returned from getStreamConfigurations().
     * @param profileId Sound profile ID for the stream. The ID is assigned by the framework,
     *         and can be set by applications or TV input framework. See
     *         android.media.quality.SoundQuality for more details.
     */
    void setSoundProfileId(in int deviceId, in int streamId, in long profileId);
}