Loading radio/1.0/vts/functional/vts_test_util.h +2 −0 Original line number Original line Diff line number Diff line Loading @@ -35,6 +35,8 @@ enum CheckFlag { static constexpr const char* FEATURE_VOICE_CALL = "android.software.connectionservice"; 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 * Generate random serial number for radio test */ */ Loading radio/1.4/vts/functional/radio_hidl_hal_api.cpp +9 −0 Original line number Original line Diff line number Diff line Loading @@ -34,6 +34,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { ALOGI("Skipping emergencyDial because voice call is not supported in device"); ALOGI("Skipping emergencyDial because voice call is not supported in device"); return; return; } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { ALOGI("Skipping emergencyDial because telephony radio is not supported in device"); return; } else { } else { ALOGI("Running emergencyDial because voice call is supported in device"); ALOGI("Running emergencyDial because voice call is supported in device"); } } Loading Loading @@ -86,6 +89,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial_withServices) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { ALOGI("Skipping emergencyDial because voice call is not supported in device"); ALOGI("Skipping emergencyDial because voice call is not supported in device"); return; return; } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { ALOGI("Skipping emergencyDial because telephony radio is not supported in device"); return; } else { } else { ALOGI("Running emergencyDial because voice call is supported in device"); ALOGI("Running emergencyDial because voice call is supported in device"); } } Loading Loading @@ -138,6 +144,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial_withEmergencyRouting) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { ALOGI("Skipping emergencyDial because voice call is not supported in device"); ALOGI("Skipping emergencyDial because voice call is not supported in device"); return; return; } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { ALOGI("Skipping emergencyDial because telephony radio is not supported in device"); return; } else { } else { ALOGI("Running emergencyDial because voice call is supported in device"); ALOGI("Running emergencyDial because voice call is supported in device"); } } Loading Loading
radio/1.0/vts/functional/vts_test_util.h +2 −0 Original line number Original line Diff line number Diff line Loading @@ -35,6 +35,8 @@ enum CheckFlag { static constexpr const char* FEATURE_VOICE_CALL = "android.software.connectionservice"; 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 * Generate random serial number for radio test */ */ Loading
radio/1.4/vts/functional/radio_hidl_hal_api.cpp +9 −0 Original line number Original line Diff line number Diff line Loading @@ -34,6 +34,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { ALOGI("Skipping emergencyDial because voice call is not supported in device"); ALOGI("Skipping emergencyDial because voice call is not supported in device"); return; return; } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { ALOGI("Skipping emergencyDial because telephony radio is not supported in device"); return; } else { } else { ALOGI("Running emergencyDial because voice call is supported in device"); ALOGI("Running emergencyDial because voice call is supported in device"); } } Loading Loading @@ -86,6 +89,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial_withServices) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { ALOGI("Skipping emergencyDial because voice call is not supported in device"); ALOGI("Skipping emergencyDial because voice call is not supported in device"); return; return; } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { ALOGI("Skipping emergencyDial because telephony radio is not supported in device"); return; } else { } else { ALOGI("Running emergencyDial because voice call is supported in device"); ALOGI("Running emergencyDial because voice call is supported in device"); } } Loading Loading @@ -138,6 +144,9 @@ TEST_P(RadioHidlTest_v1_4, emergencyDial_withEmergencyRouting) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { ALOGI("Skipping emergencyDial because voice call is not supported in device"); ALOGI("Skipping emergencyDial because voice call is not supported in device"); return; return; } else if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { ALOGI("Skipping emergencyDial because telephony radio is not supported in device"); return; } else { } else { ALOGI("Running emergencyDial because voice call is supported in device"); ALOGI("Running emergencyDial because voice call is supported in device"); } } Loading