Commit graph

605 commits

Author SHA1 Message Date
sqian
ad34a11fba Add SIM_PUK2 for Icc VTS tests
Add SIM_PUK2 for supplyIccPin2ForApp and changeIccPin2ForApp if sim
card is in the puk2 state.

Bug: 111211929
Test: sanity
Change-Id: I80d924cc4a61565887cbd2a65ee5927a42ad656e
Merged-In: I80d924cc4a61565887cbd2a65ee5927a42ad656e
(cherry picked from commit 4ed0a216ad)
2018-08-22 19:04:18 +08:00
Nathan Harold
dd06d73cab Add docs for setSignalStrengthReportingCriteria
Because setSignalStrengthReportingCriteria only
supports a single measurement quantity, provide
further clarification on the applicability of the
API and how it may be used in various situations.

Bug: 110121199
Test: compilation - docstring-only change
Merged-In: If4236070fbc03368e5a78b0cf502cdc4a529a6ed
Change-Id: If4236070fbc03368e5a78b0cf502cdc4a529a6ed
(cherry picked from commit 529d2fffa0)
2018-08-21 02:12:38 +00:00
sqian
a8b8b6b1b3 Patch for setSimCardPower_1_1
Do not expect its affect on cardStatus if it is not successfully returned.
Check the response error before updating sim card status.

Test: sanity
Bug: 111661946
Change-Id: I48551f5469289b9fcfc47dd9fd2e455779640329
Merged-In: I48551f5469289b9fcfc47dd9fd2e455779640329
(cherry picked from commit 7e787e192cd4700d8f4e7cc5f55501bc37590245)
2018-08-15 05:49:52 +00:00
Treehugger Robot
c1db422723 Merge "Fix setSimCardPower_1_1" into pie-vts-dev 2018-08-14 20:13:47 +00:00
sqian
f25e996302 Fix setSimCardPower_1_1
If the function isn't executed successfully, do not expect its effect
of cardStatus.

Bug: 111661946
Test: run vts
Change-Id: I952728311b595149b449280e73142f2f82af544d
Merged-In: I952728311b595149b449280e73142f2f82af544d
(cherry picked from commit 934243085a)
(cherry picked from commit c02dd2562f)
2018-08-14 12:15:35 -07:00
sqian
2d0ba0f61b Check INVALID_SIM_STATE for sim permanent lock status
PUK1 and PUK2 can get permanent blocked when it inputs wrong
passwords more than 10 times.

Bug: 111211929
Test: sanity
Change-Id: I736873b1b181b88f279df7dc1c09e18e0fc76af3
2018-08-13 17:36:54 -07:00
sqian
9da8a72744 resolve merge conflicts of 898d05a713 to pie-vts-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: 72075328
Change-Id: I5d7c124bc3905f899e63f080ac94def4e06fe9c2
Merged-In: I8c993cd2fa95c961dc7f976b5bd85a2826b42889
2018-08-13 16:32:59 -07:00
Eric Schwarzenbach
a22fea6160 Call notify for voiceReg and dataReg VTS tests
Bug: 80554443
Test: vts
Merged-In: I19f7131f7b65323065f3c283a89668ff761815e3
Change-Id: I19f7131f7b65323065f3c283a89668ff761815e3
(cherry picked from commit 2bb626a297)
2018-08-10 00:48:52 +00:00
sqian
70afa883ae Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp
Bug: 110037298
Test: run vts -m VtsHalRadioV1_0Target
Merged-In: Iaba800814c5a6950d086a2f105714d01fdaa14a4
Change-Id: Iaba800814c5a6950d086a2f105714d01fdaa14a4
(cherry picked from commit 7470cbd04d)
2018-08-10 00:48:45 +00:00
sqian
898d05a713 resolve merge conflicts of dfa79a6292 to oreo-mr1-vts-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I10919718b841fdb33ab0e873d1b4bbd787fafcd2
2018-07-16 08:36:50 -07:00
sqian
70805cffdd Add NONE for LceService
"Allow startLceService to succeed even in the
SIM_ABSENT case. The original RIL documentation
states that SUCCESS is valid for all LCE
operations, and there is no logical reason why
one of these operations must fail in a no-SIM
case (though a vendor may choose not to support
that configuration). Thus, a call to
startLceService should permit NONE when requested
in the no-SIM case for 1.0 VTS.

In addition, a successful call to startLceService
should also permit a successful call to
pullLceData, so also allow RadioError::NONE for
the pull operation. Ideally the tests would only
allow NONE for pull if startLceService also
returns NONE, but that's out of scope for now."

Bug: 110181475
Bug: 72075328
Test: confirmed in the discussion; compilation
2018-07-13 18:12:08 +00:00
sqian
ab2b8bf919 Fix setBandMode.
Bug: 67834975
Test: sanity

Merged-In: Ie907cdb464a44d92be47d898151d71eb2d83a11c
2018-06-18 17:10:08 +00:00
Steven Moreland
4ee4582230 Update comments for doc comments.
Doc comments look like "/** ... */" and they
can only be in certain places.

Bug: 79865343
Test: m
Change-Id: Ic15c08ff7dc6e4f9827c1dbe7f7236c11a572ec1
2018-05-18 10:10:32 -07:00
sqian
788eb80830 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
2018-04-20 00:21:14 +00:00
Shuo Qian
f06ac68796 Merge "Radio Sap 1.2 default implementation" into pi-dev 2018-04-16 18:44:39 +00:00
Iris Chang
14ad821b0a VTS: fix RadioHidlTest.getAvailableNetworks issue
Analysis: VtsHalRadioV1_0Target's timeout is too short for
getAvailableNetworks, because this request duration depends on NW
environment or frequency.

Suggested solution: Add a timeout parameter to wait() and default
timeout value is 5 minutes in order to avoid timeout fail due to NW
environment.

Bug: 68834032
Test: getAvailableNetworks can be passed after we apply this patch and
      test result for all other telephony 1.0 test cases are not changed.

Change-Id: Iaef7e8eefa8fcfde0ff8030cba1f9753a28eac61
Merged-In: Iaae71e0abacd28275d86a19264813ff209ddb79c
2018-04-16 05:53:27 +00:00
Nathan Harold
8e7fc9f4f5 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
Change-Id: I1f25d9125ef06d290e3a89b5d2162c6bfe939eba
2018-04-11 17:16:24 -07:00
sqian
0de4d31569 Radio Sap 1.2 default implementation
Checked points:
- service is on
- vts can run on it
- provided a dummy implementation that a VTS test can pass it
- applied with recent update in radio 1.2 hal
- format repaired
- pass on a 1.0 VTS test, a 1.1 VTS test, and a 1.2 VTS test

Bug: 74114758
Test: run vts

Change-Id: I8a052e3cedb41db9028552ab88f1e26492718497
2018-04-11 21:33:02 +00:00
sqian
79bafb943b 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
2018-04-11 19:15:17 +00:00
Eric Schwarzenbach
74befb69b9 Update RegState for new CellIdentity types
Bug: 74826109
Test: make, make vts
Change-Id: I6350e5da5bc064e665e54d161ee589c3eadf901a
2018-03-29 12:37:42 -07:00
Nathan Harold
c2b7f42d7d Merge "Fix Copy+Paste Errors in TdscdmaSignalStrength" into pi-dev 2018-03-06 17:59:10 +00:00
Nathan Harold
6df3d8eb63 Fix Copy+Paste Errors in TdscdmaSignalStrength
When copying over from WcdmaSignalStrength, the
ranges and references were wrong. Sadly they
were carried over. Fixing before this gets
out of hand.

Bug: 18628145
Test: compilation - documentation-only change
Change-Id: I08a247674cf42ebeed26c721ff99a71db4152bbf
2018-03-05 14:48:20 -08:00
Jordan Liu
6f8e4d5593 Fix wcdma signal strength comments
As per the spec, the range should be 0-31, 99, and the section
should be 8.5.

Test: builds - No change to behavior
Bug: 71329173
Change-Id: Ib1ea54b19a7bcb33a0235b3ddb3fa09c4872890f
2018-03-05 20:30:18 +00:00
Cassie
72f409ce49 Merge "Add VTS test for getCellInfoList_1_2" am: 6a83645f64 am: a56b4090f8
am: af1fd9d4d7

Change-Id: I753d13a4505c661071ae88aea0e6450d69a71aea
2018-03-02 08:03:27 +00:00
Cassie
af1fd9d4d7 Merge "Add VTS test for getCellInfoList_1_2" am: 6a83645f64
am: a56b4090f8

Change-Id: Ic6841e7d46b02c271e56db91cf9be6a4bc0c69fe
2018-03-02 07:57:26 +00:00
Treehugger Robot
6a83645f64 Merge "Add VTS test for getCellInfoList_1_2" 2018-03-02 07:42:33 +00:00
yinxu
69177feacf Add vts response functions for Radio Response 1.2 am: 2e6ed18055 am: 1ef5301ca3
am: 8e14e19ef5

Change-Id: I3f9ca84d3db0399e319f8ff36aac12aee0eb1cde
2018-03-02 01:38:07 +00:00
yinxu
8e14e19ef5 Add vts response functions for Radio Response 1.2 am: 2e6ed18055
am: 1ef5301ca3

Change-Id: Iae1bf6feb0bd092cdce9b0e2a39aeecb5720a60e
2018-03-02 01:33:03 +00:00
Cassie
65a3ad31b8 Add VTS test for getCellInfoList_1_2
Bug: 63984327
Test: VTS test
Change-Id: Ie6987f885dfe34c94b30370e1d4853084ee4030b
2018-03-01 15:49:51 -08:00
yinxu
2e6ed18055 Add vts response functions for Radio Response 1.2
Bug: 67750232
Test: Compile and Run VTS
Change-Id: I866cea94b1505b05dee336a53ab72ab685c8f441
2018-03-01 14:15:32 -08:00
Jack Yu
668583d529 Added new VTS test cases for v1.2 data call APIs am: ac1844fac4 am: 67e9c401ec
am: 20d65fe38f

Change-Id: Ic4e1a3aa90769ab3568706f303a12acf5b6f6298
2018-03-01 07:13:53 +00:00
Jack Yu
20d65fe38f Added new VTS test cases for v1.2 data call APIs am: ac1844fac4
am: 67e9c401ec

Change-Id: If3627351c92fcf781c2f7c3b87255197e980d824
2018-03-01 07:08:16 +00:00
Jack Yu
ac1844fac4 Added new VTS test cases for v1.2 data call APIs
Test: VtsHalRadioV1_2Target
Bug: 64132030
Change-Id: I3b9d94985f42a5dd9b9a24e0592cf1657da237d5
2018-03-01 04:31:11 +00:00
Eric Schwarzenbach
10a76aa6ea Add VTS tests for 1.2 reporting criteria am: 8bdc4e04e2 am: 1c9406eb01
am: 35882a28ed

Change-Id: I1c92998d3356446598877f9b1858183f6997ad2c
2018-02-28 18:53:45 +00:00
Eric Schwarzenbach
35882a28ed Add VTS tests for 1.2 reporting criteria am: 8bdc4e04e2
am: 1c9406eb01

Change-Id: I08e4ca8ab25e41e6600f14c8ca04b4cfcb772693
2018-02-28 18:41:01 +00:00
Eric Schwarzenbach
8bdc4e04e2 Add VTS tests for 1.2 reporting criteria
Bug: 72115876
Test: make
Change-Id: I7a7633994888d2f1781ac7d5730727112eb0c86d
2018-02-27 17:29:40 -08:00
Eric Schwarzenbach
dd7fa72823 Merge "Update documentation for currentPhysicalChannelConfigs()" am: 115484976b am: 501a334235
am: 1505331206

Change-Id: Ie29ba4839bded9b8ae7fd56ef39d42a236f2c355
2018-02-23 21:51:14 +00:00
Eric Schwarzenbach
1505331206 Merge "Update documentation for currentPhysicalChannelConfigs()" am: 115484976b
am: 501a334235

Change-Id: Id5d20f5c4096bd68b20214fcb33a9eeff280ba9c
2018-02-23 21:36:24 +00:00
Treehugger Robot
115484976b Merge "Update documentation for currentPhysicalChannelConfigs()" 2018-02-23 20:00:22 +00:00
Cassie
538790de37 Merge "Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test." am: bc2e6fec16 am: 99c25f30b8
am: fea475e9f7

Change-Id: Iaf74f720be9e4966f7898509d070f6067a114fc1
2018-02-22 23:32:32 +00:00
Cassie
fea475e9f7 Merge "Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test." am: bc2e6fec16
am: 99c25f30b8

Change-Id: I2c0aab341e4308a2c00b33d0cb72fa57daec89a9
2018-02-22 23:19:17 +00:00
Treehugger Robot
bc2e6fec16 Merge "Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test." 2018-02-22 22:30:58 +00:00
Eric Schwarzenbach
f9ec2f19bf Update documentation for currentPhysicalChannelConfigs()
Bug: 73739331
Test: n/a, documentation-only change
Change-Id: Ib35af6bc54ee22aaab2f043f7524548f65af1b82
2018-02-22 11:43:09 -08:00
TreeHugger Robot
b7e90af3b4 Merge "Fix LTE Timing Advance Doc String" 2018-02-16 19:15:30 +00:00
Nathan Harold
6aae45015f Fix LTE Timing Advance Doc String
The LTE TA Doc string has been fixed to reflect
the actual reported value of the field. The spec
reference was previously incorrect, which would
have indicated a range of 0-63 as the incremental
timing advance; however the field actually reports
the absolute timing advance, which has a much
larger range of 0-1282. In addition, this CL
updates the comment to remove a link to a defunct
website and explicitly states the range extracted
from the updated spec reference. This does not
impact the current behavior of the API as the the
previously incorrect docstring was nonsensical.

Bug: 66751464
Test: compilation (doc only change)
Change-Id: I2fc90c08ed6dd14548b10c638bf805b37d5c34e8
2018-02-16 17:32:47 +00:00
Eric Schwarzenbach
b1a7e8475a Fix comments for link capacity and signal strength reporting. am: 591387fb4f am: f35e02a910
am: bc83e6b3f5

Change-Id: I27aa1f7945569d7947cf899177ea47b2e759b6ff
2018-02-16 06:05:23 +00:00
Eric Schwarzenbach
bc83e6b3f5 Fix comments for link capacity and signal strength reporting. am: 591387fb4f
am: f35e02a910

Change-Id: Iaacb981b7268db75d761b6612c1a6f99f77ee7f4
2018-02-16 05:49:27 +00:00
Eric Schwarzenbach
3061c171bd Merge "Use new AccessNetwork type in the reporting criteria API" am: e09fba4813 am: 5455d9fe4c
am: ef9caf1db4

Change-Id: I4caf6b8c82f1654c14ec80603d99eb24f63d0d91
2018-02-16 01:23:23 +00:00
nharold
76bd518ba1 Merge "Fixes to Align TdScdma Reports with All Others" am: 38dcd0c535 am: ff3eff3386
am: 4ce247b6ff

Change-Id: I8dc3dab1dc5dffa79843ef1cfc53e719c162e025
2018-02-16 01:01:02 +00:00
Eric Schwarzenbach
ef9caf1db4 Merge "Use new AccessNetwork type in the reporting criteria API" am: e09fba4813
am: 5455d9fe4c

Change-Id: Icd64418ba333adee2a541069643c1168d8cba204
2018-02-16 00:57:49 +00:00