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

Commit 628a3353 authored by Shuo Qian's avatar Shuo Qian Committed by sqian
Browse files

Skip emergency dialing VTS if device doesn't support radio

Test: vts
Bug: 176862267
Change-Id: I9e72ba5cf6cb118cd68f753355f4119d33fe0019
parent c26ba2dd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ enum CheckFlag {

static constexpr const char* FEATURE_VOICE_CALL = "android.software.connectionservice";

static constexpr const char* FEATURE_TELEPHONY = "android.hardware.telephony";

/*
 * Generate random serial number for radio test
 */
+9 −0
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial) {
    if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) {
        ALOGI("Skipping emergencyDial because voice call is not supported in device");
        return;
    } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) {
        ALOGI("Skipping emergencyDial because telephony radio is not supported in device");
        return;
    } else {
        ALOGI("Running emergencyDial because voice call is supported in device");
    }
@@ -72,6 +75,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial_withServices) {
    if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) {
        ALOGI("Skipping emergencyDial because voice call is not supported in device");
        return;
    } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) {
        ALOGI("Skipping emergencyDial because telephony radio is not supported in device");
        return;
    } else {
        ALOGI("Running emergencyDial because voice call is supported in device");
    }
@@ -111,6 +117,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial_withEmergencyRouting) {
    if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) {
        ALOGI("Skipping emergencyDial because voice call is not supported in device");
        return;
    } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) {
        ALOGI("Skipping emergencyDial because telephony radio is not supported in device");
        return;
    } else {
        ALOGI("Running emergencyDial because voice call is supported in device");
    }