mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Gate gsm/cdma radio feature only for emergency dial am: 80b03d7bf2 am: 2655aecb1a am: a960203546
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1546408 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iea24afacc19cf1c5b9eb2ee2a27fc608613a200d
This commit is contained in:
@@ -37,6 +37,10 @@ static constexpr const char* FEATURE_VOICE_CALL = "android.software.connectionse
|
||||
|
||||
static constexpr const char* FEATURE_TELEPHONY = "android.hardware.telephony";
|
||||
|
||||
static constexpr const char* FEATURE_TELEPHONY_GSM = "android.hardware.telephony.gsm";
|
||||
|
||||
static constexpr const char* FEATURE_TELEPHONY_CDMA = "android.hardware.telephony.cdma";
|
||||
|
||||
/*
|
||||
* Generate random serial number for radio test
|
||||
*/
|
||||
|
||||
@@ -34,8 +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");
|
||||
} 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");
|
||||
@@ -89,8 +90,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");
|
||||
} 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");
|
||||
@@ -144,8 +146,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");
|
||||
} 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