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

Commit cc01341d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add sendParameter API in IMediaQuality" into main

parents ac63ebfc be34d280
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(())
    }
}