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

Commit 1a78a20f authored by Shubang Lu's avatar Shubang Lu Committed by Android (Google) Code Review
Browse files

Merge "[MQ HAL] Add a method for supported vendor parameters" into main

parents ec3c547a 370dccf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
package android.hardware.tv.mediaquality;
@VintfStability
parcelable VendorParamCapability {
  ParcelableHolder name;
  android.hardware.tv.mediaquality.VendorParameterIdentifier identifier;
  boolean isSupported;
  @nullable android.hardware.tv.mediaquality.ParameterDefaultValue defaultValue;
  @nullable android.hardware.tv.mediaquality.ParameterRange range;
+4 −1
Original line number Diff line number Diff line
@@ -39,7 +39,10 @@ oneway interface IPictureProfileAdjustmentListener {
    void onParamCapabilityChanged(long pictureProfileId, in ParamCapability[] caps);

    /**
     * Notifies Media Quality Manager when venfor parameter capabilities changed.
     * Notifies Media Quality Manager when vendor parameter capabilities changed.
     *
     * <p>This should be also called when the listener is registered to let the client know
     * what vendor parameters are supported.
     *
     * @param pictureProfileId the ID of the profile used by the media content. -1 if there
     *                         is no associated profile.
+4 −1
Original line number Diff line number Diff line
@@ -39,7 +39,10 @@ oneway interface ISoundProfileAdjustmentListener {
    void onParamCapabilityChanged(long soundProfileId, in ParamCapability[] caps);

    /**
     * Notifies Media Quality Manager when venfor parameter capabilities changed.
     * Notifies Media Quality Manager when vendor parameter capabilities changed.
     *
     * <p>This should be also called when the listener is registered to let the client know
     * what vendor parameters are supported.
     *
     * @param soundProfileId the ID of the profile used by the media content. -1 if there
     *                         is no associated profile.
+3 −2
Original line number Diff line number Diff line
@@ -18,14 +18,15 @@ package android.hardware.tv.mediaquality;

import android.hardware.tv.mediaquality.ParameterDefaultValue;
import android.hardware.tv.mediaquality.ParameterRange;
import android.hardware.tv.mediaquality.VendorParameterIdentifier;

/**
 * Capability of vendor parameters.
 */
@VintfStability
parcelable VendorParamCapability {
    /** Name of the parameter **/
    ParcelableHolder name;
    /** Identifier of the parameter **/
    VendorParameterIdentifier identifier;

    /** true if this parameter is supported **/
    boolean isSupported;
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ using aidl::android::hardware::tv::mediaquality::SoundParameter;
using aidl::android::hardware::tv::mediaquality::SoundParameters;
using aidl::android::hardware::tv::mediaquality::SoundProfile;
using aidl::android::hardware::tv::mediaquality::VendorParamCapability;
using aidl::android::hardware::tv::mediaquality::VendorParameterIdentifier;
using android::ProcessState;
using android::String16;
using ndk::ScopedAStatus;