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

Commit 06ffa9fc authored by Hongguang Chen's avatar Hongguang Chen Committed by Android (Google) Code Review
Browse files

Merge "Add CRC32 checking hint."

parents e57e0962 494ba666
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -39,4 +39,5 @@ parcelable DemuxFilterSectionSettings {
  boolean isCheckCrc;
  boolean isCheckCrc;
  boolean isRepeat;
  boolean isRepeat;
  boolean isRaw;
  boolean isRaw;
  int bitWidthOfLengthField;
}
}
+9 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ package android.hardware.tv.tuner;
import android.hardware.tv.tuner.DemuxFilterSectionSettingsCondition;
import android.hardware.tv.tuner.DemuxFilterSectionSettingsCondition;


/**
/**
 * Filter Settings for Section data according to ISO/IEC 13818-1.
 * Filter Settings for Section data according to ISO/IEC 13818-1 and ISO/IEC 23008-1.
 * @hide
 * @hide
 */
 */
@VintfStability
@VintfStability
@@ -49,4 +49,12 @@ parcelable DemuxFilterSectionSettings {
     * true if the filter send onFilterStatus instead of onFilterEvent.
     * true if the filter send onFilterStatus instead of onFilterEvent.
     */
     */
    boolean isRaw;
    boolean isRaw;

    /**
     * The bit width of the MMTP (MPEG Media Transport Protocol) section message's length field
     * according to ISO/IEC 23008-1.
     *
     * The filter uses this for CRC checking when isCheckCrc is true.
     */
    int bitWidthOfLengthField;
}
}
+1 −0
Original line number Original line Diff line number Diff line
@@ -954,6 +954,7 @@ struct TunerTestingConfigAidlReader1_0 {
        settings.isCheckCrc = section->getIsCheckCrc();
        settings.isCheckCrc = section->getIsCheckCrc();
        settings.isRepeat = section->getIsRepeat();
        settings.isRepeat = section->getIsRepeat();
        settings.isRaw = section->getIsRaw();
        settings.isRaw = section->getIsRaw();
        settings.bitWidthOfLengthField = section->getBitWidthOfLengthField();
        return settings;
        return settings;
    }
    }


+2 −0
Original line number Original line Diff line number Diff line
@@ -477,9 +477,11 @@ package android.media.tuner.testing.configuration.V1_0 {


  public class SectionFilterSettings {
  public class SectionFilterSettings {
    ctor public SectionFilterSettings();
    ctor public SectionFilterSettings();
    method @Nullable public java.math.BigInteger getBitWidthOfLengthField();
    method @Nullable public boolean getIsCheckCrc();
    method @Nullable public boolean getIsCheckCrc();
    method @Nullable public boolean getIsRaw();
    method @Nullable public boolean getIsRaw();
    method @Nullable public boolean getIsRepeat();
    method @Nullable public boolean getIsRepeat();
    method public void setBitWidthOfLengthField(@Nullable java.math.BigInteger);
    method public void setIsCheckCrc(@Nullable boolean);
    method public void setIsCheckCrc(@Nullable boolean);
    method public void setIsRaw(@Nullable boolean);
    method public void setIsRaw(@Nullable boolean);
    method public void setIsRepeat(@Nullable boolean);
    method public void setIsRepeat(@Nullable boolean);
+1 −0
Original line number Original line Diff line number Diff line
@@ -226,6 +226,7 @@
        <xs:attribute name="isCheckCrc" type="xs:boolean" use="required"/>
        <xs:attribute name="isCheckCrc" type="xs:boolean" use="required"/>
        <xs:attribute name="isRepeat" type="xs:boolean" use="required"/>
        <xs:attribute name="isRepeat" type="xs:boolean" use="required"/>
        <xs:attribute name="isRaw" type="xs:boolean" use="required"/>
        <xs:attribute name="isRaw" type="xs:boolean" use="required"/>
        <xs:attribute name="bitWidthOfLengthField" type="xs:nonNegativeInteger" use="required"/>
    </xs:complexType>
    </xs:complexType>
    <xs:complexType name="recordFilterSettings">
    <xs:complexType name="recordFilterSettings">
        <xs:attribute name="tsIndexMask" type="tsIndexMask" use="required"/>
        <xs:attribute name="tsIndexMask" type="tsIndexMask" use="required"/>