Lines Matching defs:feature
507 * feature name describing a required or optional feature for a codec capabilities
509 * The associated value is an integer, where non-0 value means the feature is
510 * requested to be present, while 0 value means the feature is requested to be not
518 public static final String KEY_FEATURE_ = "feature-";
570 * Returns whether a feature is to be enabled ({@code true}) or disabled
573 * @param feature the name of a {@link MediaCodecInfo.CodecCapabilities} feature.
575 * @throws IllegalArgumentException if the feature was neither set to be enabled
578 public boolean getFeatureEnabled(String feature) {
579 Integer enabled = (Integer)mMap.get(KEY_FEATURE_ + feature);
581 throw new IllegalArgumentException("feature is not specified");
622 * Sets whether a feature is to be enabled ({@code true}) or disabled
625 * If {@code enabled} is {@code true}, the feature is requested to be present.
626 * Otherwise, the feature is requested to be not present.
628 * @param feature the name of a {@link MediaCodecInfo.CodecCapabilities} feature.
634 public void setFeatureEnabled(String feature, boolean enabled) {
635 setInteger(KEY_FEATURE_ + feature, enabled ? 1 : 0);