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

Commit 370dccf2 authored by Shubang Lu's avatar Shubang Lu
Browse files

[MQ HAL] Add a method for supported vendor parameters

This is a reposne to an SDK API feedback at b/382041722:
"Should there be an API to query all available parameter names"

Test: mmm
Flag: android.media.tv.flags.media_quality_fw
Bug: 382041722
Change-Id: Ia3cd3ffe38289bcb3d2e2f05bde2de1a897c6d21
parent ac63ebfc
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;