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

Commit cadece5c authored by Ray Chin's avatar Ray Chin Committed by Automerger Merge Worker
Browse files

Blind scan should be an optional feature based on the design document am:...

Blind scan should be an optional feature based on the design document am: 58be11ec am: d9ae7bae am: 455a3923

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2890674



Change-Id: I9dcabe4d3de6c1946a788362839e97245a1fba7f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7770a155 455a3923
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1198,6 +1198,10 @@ TEST_P(TunerFrontendAidlTest, BlindScanFrontend) {
    vector<ScanHardwareConnections> scan_configs = generateScanConfigurations();
    for (auto& configuration : scan_configs) {
        scan = configuration;
        // Skip test if the frontend implementation doesn't support blind scan
        if (!frontendMap[scan.frontendId].supportBlindScan) {
            continue;
        }
        mFrontendTests.scanTest(frontendMap[scan.frontendId], FrontendScanType::SCAN_BLIND);
    }
}
@@ -1222,6 +1226,10 @@ TEST_P(TunerFrontendAidlTest, BlindScanFrontendWithEndFrequency) {
    vector<ScanHardwareConnections> scan_configs = generateScanConfigurations();
    for (auto& configuration : scan_configs) {
        scan = configuration;
        // Skip test if the frontend implementation doesn't support blind scan
        if (!frontendMap[scan.frontendId].supportBlindScan) {
            continue;
        }
        mFrontendTests.scanTest(frontendMap[scan.frontendId], FrontendScanType::SCAN_BLIND);
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -612,6 +612,7 @@ inline void initFrontendConfig() {
    frontendMap[defaultFeId].isSoftwareFe = true;
    frontendMap[defaultFeId].canConnectToCiCam = true;
    frontendMap[defaultFeId].ciCamId = 0;
    frontendMap[defaultFeId].supportBlindScan = true;
    FrontendDvbtSettings dvbt;
    dvbt.transmissionMode = FrontendDvbtTransmissionMode::MODE_8K_E;
    frontendMap[defaultFeId].settings.set<FrontendSettings::Tag::dvbt>(dvbt);
+6 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ struct FrontendConfig {
    FrontendSettings settings;
    vector<FrontendStatusType> tuneStatusTypes;
    vector<FrontendStatus> expectTuneStatuses;
    bool supportBlindScan;
};

struct FilterConfig {
@@ -354,6 +355,11 @@ struct TunerTestingConfigAidlReader1_0 {
                } else {
                    hasHwFe = true;
                }
                if (feConfig.hasSupportBlindScan()) {
                    frontendMap[id].supportBlindScan = feConfig.getSupportBlindScan();
                } else {
                    frontendMap[id].supportBlindScan = true;
                }
                // TODO: b/182519645 complete the tune status config
                frontendMap[id].tuneStatusTypes = types;
                frontendMap[id].expectTuneStatuses = statuses;
+2 −0
Original line number Diff line number Diff line
@@ -369,6 +369,7 @@ package android.media.tuner.testing.configuration.V1_0 {
    method @Nullable public android.media.tuner.testing.configuration.V1_0.IsdbsFrontendSettings getIsdbsFrontendSettings_optional();
    method @Nullable public android.media.tuner.testing.configuration.V1_0.IsdbtFrontendSettings getIsdbtFrontendSettings_optional();
    method @Nullable public java.math.BigInteger getRemoveOutputPid();
    method @Nullable public boolean getSupportBlindScan();
    method @Nullable public android.media.tuner.testing.configuration.V1_0.FrontendTypeEnum getType();
    method public void setAtscFrontendSettings_optional(@Nullable android.media.tuner.testing.configuration.V1_0.AtscFrontendSettings);
    method public void setConnectToCicamId(@Nullable java.math.BigInteger);
@@ -381,6 +382,7 @@ package android.media.tuner.testing.configuration.V1_0 {
    method public void setIsdbsFrontendSettings_optional(@Nullable android.media.tuner.testing.configuration.V1_0.IsdbsFrontendSettings);
    method public void setIsdbtFrontendSettings_optional(@Nullable android.media.tuner.testing.configuration.V1_0.IsdbtFrontendSettings);
    method public void setRemoveOutputPid(@Nullable java.math.BigInteger);
    method public void setSupportBlindScan(@Nullable boolean);
    method public void setType(@Nullable android.media.tuner.testing.configuration.V1_0.FrontendTypeEnum);
  }

+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@
        <xs:attribute name="connectToCicamId" type="xs:nonNegativeInteger" use="optional"/>
        <xs:attribute name="removeOutputPid" type="xs:nonNegativeInteger" use="optional"/>
        <xs:attribute name="endFrequency" type="xs:nonNegativeInteger" use="optional"/>
        <xs:attribute name="supportBlindScan" type="xs:boolean" use="optional"/>
    </xs:complexType>

    <!-- FILTER SESSION -->