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

Commit be34d280 authored by Haofan Wang's avatar Haofan Wang
Browse files

Add sendParameter API in IMediaQuality

Added sendParameter API in IMediaQuality, so when the HAL requests
parameter by a profile ID, the framework will call this API to send the
parameters associate with the profile ID.

Test: mmm .
Bug: 375472716
Flag: android.media.tv.flags.media_quality_fw
Change-Id: I0cb0e8278ec346a774137a1b276879a6d7e585d0
parent f8d660a8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -55,4 +55,6 @@ interface IMediaQuality {
  void sendDefaultSoundParameters(in android.hardware.tv.mediaquality.SoundParameters soundParameters);
  void getParamCaps(in android.hardware.tv.mediaquality.ParameterName[] paramNames, out android.hardware.tv.mediaquality.ParamCapability[] caps);
  void getVendorParamCaps(in android.hardware.tv.mediaquality.VendorParameterIdentifier[] names, out android.hardware.tv.mediaquality.VendorParamCapability[] caps);
  void sendPictureParameters(in android.hardware.tv.mediaquality.PictureParameters pictureParameters);
  void sendSoundParameters(in android.hardware.tv.mediaquality.SoundParameters soundParameters);
}
+16 −0
Original line number Diff line number Diff line
@@ -207,4 +207,20 @@ interface IMediaQuality {
     * Gets vendor capability information of the given parameters.
     */
    void getVendorParamCaps(in VendorParameterIdentifier[] names, out VendorParamCapability[] caps);

    /**
     * When HAL request picture parameters by picture profile id, the framework will use this to
     * send the picture parameters associate with the profile id.
     *
     * @param pictureParameters pictureParameters that associate with the profile id HAL provided.
     */
    void sendPictureParameters(in PictureParameters pictureParameters);

    /**
     * When HAL request sound parameters by sound profile id, the framework will use this to
     * send the sound parameters associate with the profile id.
     *
     * @param soundParameters soundParameters that associate with the profile id HAL provided.
     */
    void sendSoundParameters(in SoundParameters soundParameters);
}
+10 −0
Original line number Diff line number Diff line
@@ -265,4 +265,14 @@ impl IMediaQuality for MediaQualityService {
        println!("getVendorParamCaps. len= {}", param_names.len());
        Ok(())
    }

    fn sendPictureParameters(&self, _picture_parameters: &PictureParameters) -> binder::Result<()>{
        println!("Received picture parameters");
        Ok(())
    }

    fn sendSoundParameters(&self, _sound_parameters: &SoundParameters) -> binder::Result<()>{
        println!("Received sound parameters");
        Ok(())
    }
}