Gate gsm/cdma radio feature only for emergency dial

Test: vts
Bug: 207920538
Signed-off-by: Seongho Kim <sh_tiger.kim@samsung.com>
Change-Id: I388bc51e58b5680b5b5c806d88a338822af0c8a7
Merged-In: I388bc51e58b5680b5b5c806d88a338822af0c8a7
(cherry picked from commit a0b33745b5)
This commit is contained in:
Seongho Kim 2021-12-03 08:26:04 +09:00 committed by Shuo Qian
parent f6564e68e5
commit 82a892c110

View file

@ -645,6 +645,10 @@ TEST_P(RadioHidlTest_v1_6, emergencyDial_1_6) {
if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) {
ALOGI("Skipping emergencyDial because voice call is not supported in device");
return;
} else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) &&
!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) {
ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device");
return;
} else {
ALOGI("Running emergencyDial because voice call is supported in device");
}
@ -699,6 +703,10 @@ TEST_P(RadioHidlTest_v1_6, emergencyDial_1_6_withServices) {
if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) {
ALOGI("Skipping emergencyDial because voice call is not supported in device");
return;
} else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) &&
!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) {
ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device");
return;
} else {
ALOGI("Running emergencyDial because voice call is supported in device");
}
@ -752,6 +760,10 @@ TEST_P(RadioHidlTest_v1_6, emergencyDial_1_6_withEmergencyRouting) {
if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) {
ALOGI("Skipping emergencyDial because voice call is not supported in device");
return;
} else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) &&
!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) {
ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device");
return;
} else {
ALOGI("Running emergencyDial because voice call is supported in device");
}