Commit graph

619 commits

Author SHA1 Message Date
sqian
57c9e5fc37 resolve merge conflicts of ccda8d6296 to pi-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: 72075328
Change-Id: I8c993cd2fa95c961dc7f976b5bd85a2826b42889
2018-07-16 21:20:47 +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
c0a06f34c8 Add REQUEST_NOT_SUPPORTED for pin and pin2 Icc VTS
Bug: 111222834
Test: sanity
Change-Id: Ia3b96e83d6173c2c80bdbf7763a876883b167af9
2018-07-12 16:30:24 -07:00
sqian
4ed0a216ad 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
2018-07-12 10:57:30 -07:00
Nathan Harold
518b8253b0 Merge "Add docs for setSignalStrengthReportingCriteria" into pi-dev 2018-06-27 22:26:25 +00:00
TreeHugger Robot
be8beb8c0a Merge "Fix missed refactor of serial" into pi-dev 2018-06-27 22:12:19 +00:00
sqian
c0e2e2b071 Fix missed refactor of serial
Bug: 109822806
Test: run vts
Change-Id: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8
2018-06-27 12:12:26 -07:00
TreeHugger Robot
01e286d5a7 Merge "Revert "Handle radio API in low version VTS for high version service"" into pi-dev 2018-06-27 01:51:07 +00:00
Shuo Qian
0215d11cf2 Revert "Handle radio API in low version VTS for high version service"
This reverts commit cabe101cd2.

Bug: 109839239

Reason for revert: Treble/VTS backward compatibility 

Change-Id: Ibef1d91261fe6318c65fd617a2bee7f5d69bebae
2018-06-27 00:33:10 +00:00
TreeHugger Robot
1e757749fb Merge "Handle radio API in low version VTS for high version service" into pi-dev 2018-06-26 20:08:32 +00:00
sqian
cabe101cd2 Handle radio API in low version VTS for high version service
There are some request/response pair that could be replaced in
higher-version hal. Radio service need to handle
these request/response pair specific to version number. For example,
e.g. getVoiceRegistrationStateResponse_1_2 replaces
getVoiceRegistrationStateResponse for getVoiceRegistrationState
in 1.2 radio service. We need to add util and update version number
of IRadio service to check the version for testing the correct
behavior.

Bug: 109839239
Test: run vts
Change-Id: I291690e77ea0e6e37fe75219e550f79fa44fb840
2018-06-26 12:03:22 -07:00
TreeHugger Robot
e4722f92dd Merge "Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN." into pi-dev 2018-06-26 00:05:19 +00:00
Amit Mahajan
c7896501db Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN.
Test: run vts -m VtsHalRadioV1_2Target
Bug: 110716988
Change-Id: I9a5f014d498db00d818870cbd73e119f66562ef1
2018-06-25 14:18:15 -07:00
TreeHugger Robot
7dab610c36 Merge "Call notify for voiceReg and dataReg VTS tests" into pi-dev 2018-06-25 20:52:42 +00:00
TreeHugger Robot
a0ff82f781 Merge "Add setIndicationFilter response notification in 1.2 VTS" into pi-dev 2018-06-25 20:06:25 +00:00
Nathan Harold
529d2fffa0 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
2018-06-25 16:52:11 +00:00
TreeHugger Robot
d33b77a194 Merge "Fixed VTS failure in no SIM case" into pi-dev 2018-06-22 23:53:09 +00:00
Shuo Qian
dfe1131c97 Merge "Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp" into pi-dev 2018-06-22 23:29:14 +00:00
Jack Yu
431eb118f8 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
Change-Id: I4469c371f999b99d35f4078df000f05ee1f3c84d
2018-06-22 13:31:09 -07:00
Amit Mahajan
a7587b5a7f 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
2018-06-20 15:56:16 -07:00
sqian
7470cbd04d Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp
Bug: 110037298
Test: run vts -m VtsHalRadioV1_0Target
Change-Id: Iaba800814c5a6950d086a2f105714d01fdaa14a4
2018-06-19 10:30:58 -07:00
sqian
ab2b8bf919 Fix setBandMode.
Bug: 67834975
Test: sanity

Merged-In: Ie907cdb464a44d92be47d898151d71eb2d83a11c
2018-06-18 17:10:08 +00:00
Amit Mahajan
817848e59e Allow general errors for getImsiForApp().
This is to match it with other 1.0 tests where general errors are
allowed. For newer tests we have decided to not allow these errors,
but a failure for this old test is reported when run with SIM
present.

Test: run vts -m VtsHalRadioV1_0Target
Bug: 109889468
Change-Id: If36083b7832706a50805932e8ba08e4eb397f3fe
2018-06-12 15:28:05 -07:00
sqian
0ff41b94b3 Add setIndicationFilter response notification in 1.2 VTS
Test: compile
Bug: 109822806
Change-Id: I95102a148a26cab80235cc68ad83143a9bb6eb39
2018-06-07 21:05:30 +00:00
Eric Schwarzenbach
2bb626a297 Call notify for voiceReg and dataReg VTS tests
Bug: 80554443
Test: vts
Change-Id: I19f7131f7b65323065f3c283a89668ff761815e3
2018-06-06 16:09:58 -07: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