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

Commit 1b2bc18d authored by Shubang Lu's avatar Shubang Lu
Browse files

[MQ HAL] Add set profile APIs to TV input

Test: mmm
Flag: android.media.tv.flags.media_quality_fw
Bug: 375472716
Change-Id: I1d66d345981da45bfe1c9ad100e8eee21c67c396
parent 65ce9e35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -607,7 +607,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);
}