Loading radio/1.0/vts/functional/vts_test_util.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -138,3 +138,7 @@ std::cv_status RadioResponseWaiter::wait() { count_--; return status; } bool isLteConnected(){ return testing::checkSubstringInCommandOutput("getprop gsm.network.type", "LTE"); } radio/1.0/vts/functional/vts_test_util.h +5 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,11 @@ bool isVoiceEmergencyOnly(RegState state); */ bool isVoiceInService(RegState state); /* * Check if device is in Lte Connected status. */ bool isLteConnected(); /** * Used when waiting for an asynchronous response from the HAL. */ Loading radio/1.5/vts/functional/radio_hidl_hal_api.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -597,7 +597,7 @@ TEST_P(RadioHidlTest_v1_5, startNetworkScan) { } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) { // Modems support 3GPP RAT family need to // support scanning requests combined with some parameters. if (deviceSupportsFeature(FEATURE_TELEPHONY_GSM)) { if (deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && isLteConnected()) { ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_5->rspInfo.error, {RadioError::NONE, RadioError::OPERATION_NOT_ALLOWED})); } else { Loading radio/aidl/vts/radio_aidl_hal_utils.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -227,3 +227,7 @@ void RadioServiceTest::updateSimSlotStatus(int physicalSlotId) { slotStatus = radioConfigRsp->simSlotStatus[physicalSlotId]; } } bool isLteConnected(){ return testing::checkSubstringInCommandOutput("getprop gsm.network.type", "LTE"); } radio/aidl/vts/radio_aidl_hal_utils.h +5 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,11 @@ bool isVoiceInService(RegState state); */ bool isServiceValidForDeviceConfiguration(std::string& serviceName); /* * Check if device is in Lte Connected status. */ bool isLteConnected(); /** * RadioServiceTest base class */ Loading Loading
radio/1.0/vts/functional/vts_test_util.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -138,3 +138,7 @@ std::cv_status RadioResponseWaiter::wait() { count_--; return status; } bool isLteConnected(){ return testing::checkSubstringInCommandOutput("getprop gsm.network.type", "LTE"); }
radio/1.0/vts/functional/vts_test_util.h +5 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,11 @@ bool isVoiceEmergencyOnly(RegState state); */ bool isVoiceInService(RegState state); /* * Check if device is in Lte Connected status. */ bool isLteConnected(); /** * Used when waiting for an asynchronous response from the HAL. */ Loading
radio/1.5/vts/functional/radio_hidl_hal_api.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -597,7 +597,7 @@ TEST_P(RadioHidlTest_v1_5, startNetworkScan) { } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) { // Modems support 3GPP RAT family need to // support scanning requests combined with some parameters. if (deviceSupportsFeature(FEATURE_TELEPHONY_GSM)) { if (deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && isLteConnected()) { ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_5->rspInfo.error, {RadioError::NONE, RadioError::OPERATION_NOT_ALLOWED})); } else { Loading
radio/aidl/vts/radio_aidl_hal_utils.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -227,3 +227,7 @@ void RadioServiceTest::updateSimSlotStatus(int physicalSlotId) { slotStatus = radioConfigRsp->simSlotStatus[physicalSlotId]; } } bool isLteConnected(){ return testing::checkSubstringInCommandOutput("getprop gsm.network.type", "LTE"); }
radio/aidl/vts/radio_aidl_hal_utils.h +5 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,11 @@ bool isVoiceInService(RegState state); */ bool isServiceValidForDeviceConfiguration(std::string& serviceName); /* * Check if device is in Lte Connected status. */ bool isLteConnected(); /** * RadioServiceTest base class */ Loading