Correct the comments for radio hal types The type of mcc and mnc is String instead of Int now. They should be an empty string if unknown. Also added a test case for their values. Bug: 111703979 Test: Vts Change-Id: Ie0426453dc426ccc6cf203b315806e78511ce14d
Loose startNetworkScan cases startNetworkScan: Some vendor may not support the required manual GSM search functionality. startNetworkScan_GoodRequest1 and startNetworkScan_GoodRequest2: Some vendor may not support max search time of 360s. Test: sanity Bug: 109765420 Change-Id: I456847815057d76561bfb3e840016619ac753476 Merged-In: I456847815057d76561bfb3e840016619ac753476 (cherry picked from commit 12f7d6127b301b140ee81696fed19f81a7ea50c6)
Revert "Fixed VTS failure in no SIM case" Since the EMERGENCY-type APN is a must set in the radio setupDataCall request for modem to perform Emergency call, and the given VTS test case does not set that emergency bit, I think modem should treat the request as a normal call request, and should not return "NONE" for no-sim. This reverts commit 431eb118f84de14c94ec18f887197944ec17e712. Reason for revert: after further discussion, NONE is not acceptable given the test case. Bug: 109767888 Change-Id: I3d1cc96120d53a9be0ae5059c26b091bf82dc352 Merged-In: I3d1cc96120d53a9be0ae5059c26b091bf82dc352 (cherry picked from commit 17fec3625d7094fd68c4a43966ddc2eb513658e4)
Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN. Test: run vts -m VtsHalRadioV1_2Target Bug: 110716988 Change-Id: I9a5f014d498db00d818870cbd73e119f66562ef1 (cherry picked from commit c7896501db413c9a0fa44d2697da4079610075d8)
Fix missed refactor of serial Bug: 109822806 Test: run vts Change-Id: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8 Merged-In: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8 (cherry picked from commit c0e2e2b071df5cdff10193556163e2975f0b682c)
Fixed VTS failure in no SIM case Added RadioError::NONE as a possible return value for data call setup API. The data call could be setup for emergency purposes when no SIM inserted. Test: VTS Bug: 109767888 Merged-In: I4469c371f999b99d35f4078df000f05ee1f3c84d Change-Id: I4469c371f999b99d35f4078df000f05ee1f3c84d (cherry picked from commit 431eb118f84de14c94ec18f887197944ec17e712)
Allow REQUEST_NOT_SUPPORTED as an error for startNetworkScan We are trying to tighten the APIs. However for this case since the documentation was not updated, we are allowing NOT_SUPPORTED for now and will be cleaned up in a later release. Test: run vts -m VtsHalRadioV1_2Target Bug: 110118713 Change-Id: Id9dd3d7bac99bed36ceb9c906189f1fea78d5a2c (cherry picked from commit a7587b5a7fdace0d193ad333e6f5cda8b995570b)
Sim Status Present VTS Fix and enhance sim-present tests, Save VTS running time, Fix serial number inconsistancy issue Fix and enhance sim-present tests: In 1.0: - setupDataCall timeout, need more waiting time - requestIccSimAuthentication returns REQUEST_NOT_SUPPORTED, need to check it - sendSms timeout, would need more waiting time - sendSMSExpectMore timeout, would need more waiting time - getAllowedCarriers, getting CardState::RESTRICTED, the previous test of setAllowedCarriers is doing resetting back to no carrier restriction, but that needs some time to populate. In 1.1: - setSimCardPower_1_1 set sim card power down that makes other tests fail, reset it back with sim card power on. Save VTS running time, - Use waiting loop and prevent unnecessary waiting to save the whole running time. Fix serial number inconsistancy issue - During the enforcement running, it is liked the serial number is not consistent. And it happens in b/78249227. Suspect that when sim card is inserted, during the testing running time, the radio may request some response that is not triggered from the test, but the test may receive it and think it is what is triggered by the test. The fix is to check serial number before notifying of unlock the test lock. Bug: 76125134 Bug: 78248071 Bug: 78139665 Bug: 78249227 Test: run vts -m VtsHalRadioV1_0Target; run vts -m VtsHalRadioV1_1Target Change-Id: I08fe9d7ac16283c7ce1a5aeb6b3b372786a8d5c3 Merged-In: I08fe9d7ac16283c7ce1a5aeb6b3b372786a8d5c3 (cherry picked from commit 788eb8083059ff0dca686734ceebf942042c4893)
Fix Radio response/indication 1.2 Radio VTS client 1.2 radio response cannot be cast from radio response in the service. To fix it, the client radio response and indication should extend 1.2 IRadioResponse and IRadioIndication Bug: 77815815 Test: ran it on the default service Change-Id: Ib014af98d52d9f208d2139f4a239e9d61ea4d569 Merged-In: Ib014af98d52d9f208d2139f4a239e9d61ea4d569 (cherry picked from commit 79bafb943bb53e48351cd159724164c7526976c4)
Add a Test for RadioBandMode to Ensure Auto Mode The radio band mode is perilous because depending on the setting and the detected locale, other settings may be disabled. That can leave the modem in a soft-brick state. Thus, BandMode = 0 = AUTOMATIC should always be supported so that the modem can update and select a band mode of its choosing. Bug: 28124606 Test: vts radio - getAvailableBandModes Merged-In: I1f25d9125ef06d290e3a89b5d2162c6bfe939eba Change-Id: I1f25d9125ef06d290e3a89b5d2162c6bfe939eba (cherry picked from commit c9e391801ba5ccd24b41481b26c2861b71ef03d0)
Update RegState for new CellIdentity types Bug: 74826109 Test: make, make vts Change-Id: I6350e5da5bc064e665e54d161ee589c3eadf901a Merged-In: I6350e5da5bc064e665e54d161ee589c3eadf901a (cherry picked from commit 74befb69b9c532e5be77a1a64eb38713b8d51118)
Add VTS test for getCellInfoList_1_2 Bug: 63984327 Test: VTS test Change-Id: Ie6987f885dfe34c94b30370e1d4853084ee4030b
Added new VTS test cases for v1.2 data call APIs Test: VtsHalRadioV1_2Target Bug: 64132030 Change-Id: I3b9d94985f42a5dd9b9a24e0592cf1657da237d5
Add VTS tests for 1.2 reporting criteria Bug: 72115876 Test: make Change-Id: I7a7633994888d2f1781ac7d5730727112eb0c86d
Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test. Bug: 71636480 Test: VTS test Change-Id: I067f9fe94e20399fd0f07c6b2b0713544b717959
Modify VTS error check so that the error code can be displayed - Add AssertionResult in gtest to display logs - Refactor all the error checks - Replace INTERNAL_ERR with INVALID_ARGUMENT for requestIsimAuthentication - Add missing SIM_ABSENT from ag/2582439/ - Fix incorrect indentation Bug: 63760809 Bug: 65150146 Test: run vts Change-Id: Id3d876ea515f47998e3e45be11db5edf306ffc24 Merged-In: Id3d876ea515f47998e3e45be11db5edf306ffc24 (cherry picked from commit e986b85fddeb3412606840e4cdc76051e3cc966e)
vts test for 1.2 Add VTS test for 1.2 interface Test: verfied the test with a dummy radio service Bug:67750232 Change-Id: Ieac680a303c79a9d4c8b314112121303b3aebcce