diff options
| author | Seongho Kim <sh_tiger.kim@samsung.com> | 2021-12-07 04:19:58 +0000 |
|---|---|---|
| committer | Shuo Qian <shuoq@google.com> | 2021-12-15 22:41:41 +0000 |
| commit | 41a7f94f879aee66abd6ace5217c16012526ee8c (patch) | |
| tree | 1fe7acc2346b755ab19391b650d4829e4a651e4f | |
| parent | e1ed5c63094512248203cbabaf6c44b8bf4120ad (diff) | |
Cherry pick "Gate gsm/cdma radio feature only for emergency dial" sc-v2-dev
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908681
Bug: 207920538
Change-Id: I4eb369495d27e697679ecb3d4381f0b3e0cef758
Merged-In: I388bc51e58b5680b5b5c806d88a338822af0c8a7
| -rw-r--r-- | radio/1.6/vts/functional/radio_hidl_hal_api.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/radio/1.6/vts/functional/radio_hidl_hal_api.cpp b/radio/1.6/vts/functional/radio_hidl_hal_api.cpp index 76bbebbfe..4549f5106 100644 --- a/radio/1.6/vts/functional/radio_hidl_hal_api.cpp +++ b/radio/1.6/vts/functional/radio_hidl_hal_api.cpp @@ -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"); } |
