mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 10:44:41 +00:00
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
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user