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

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

Rename api name and parameter type base on HAL feedback

In AmbientbacklightSetting, change the string packageName to int id.
In AmbientBacklightSetting, rename threshold to colorThreshold.
In profileAdjustment, rename onRequest to request.

Bug: 375472716
Test: atest VtsHalMediaQualityTargetTest
Flag: android.media.tv.flags.media_quality_fw
Change-Id: I96775dd41c0a597cadaaf0746324e0870b818ea5
parent 5ac8aa41
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,12 +34,12 @@
package android.hardware.tv.mediaquality;
@VintfStability
parcelable AmbientBacklightSettings {
  String packageName;
  int uid;
  android.hardware.tv.mediaquality.AmbientBacklightSource source;
  int maxFramerate;
  android.hardware.graphics.common.PixelFormat colorFormat;
  int hZonesNumber;
  int vZonesNumber;
  boolean hasLetterbox;
  int threshold;
  int colorThreshold;
}
+1 −1
Original line number Diff line number Diff line
@@ -37,5 +37,5 @@ interface IPictureProfileAdjustmentListener {
  oneway void onPictureProfileAdjusted(in android.hardware.tv.mediaquality.PictureProfile pictureProfile);
  oneway void onParamCapabilityChanged(long pictureProfileId, in android.hardware.tv.mediaquality.ParamCapability[] caps);
  oneway void onVendorParamCapabilityChanged(long pictureProfileId, in android.hardware.tv.mediaquality.VendorParamCapability[] caps);
  oneway void onRequestPictureParameters(long pictureProfileId);
  oneway void requestPictureParameters(long pictureProfileId);
}
+1 −1
Original line number Diff line number Diff line
@@ -37,5 +37,5 @@ interface ISoundProfileAdjustmentListener {
  oneway void onSoundProfileAdjusted(in android.hardware.tv.mediaquality.SoundProfile soundProfile);
  oneway void onParamCapabilityChanged(long soundProfileId, in android.hardware.tv.mediaquality.ParamCapability[] caps);
  oneway void onVendorParamCapabilityChanged(long soundProfileId, in android.hardware.tv.mediaquality.VendorParamCapability[] caps);
  oneway void onRequestSoundParameters(long SoundProfileId);
  oneway void requestSoundParameters(long SoundProfileId);
}
+2 −2
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ parcelable AmbientBacklightSettings {
    /**
     * The package name of the ambient backlight control application.
     */
    String packageName;
    int uid;

    /**
     * The source of the ambient backlight.
@@ -66,5 +66,5 @@ parcelable AmbientBacklightSettings {
     * the colorFormat. For example, RGB888, where the values of R/G/B range from 0 to 255,
     * and the threshold is a positive number within the same range.
     */
    int threshold;
    int colorThreshold;
}
+1 −1
Original line number Diff line number Diff line
@@ -59,5 +59,5 @@ oneway interface IPictureProfileAdjustmentListener {
     *
     * @param pictureProfileId The PictureProfile id that associate with the PictureProfile.
     */
    void onRequestPictureParameters(long pictureProfileId);
    void requestPictureParameters(long pictureProfileId);
}
Loading