Commit graph

262 commits

Author SHA1 Message Date
TreeHugger Robot
3a57cca59c Merge "Add the error code "OPERATION_NOT_ALLOWED" and log the error." into oc-dr1-dev 2017-08-08 20:41:27 +00:00
yinxu
4181504523 Add the error code "OPERATION_NOT_ALLOWED" and log the error.
Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 64426938
Change-Id: Id4f06842186b10a52640372c23bc2b368cc1e9ab
2017-08-08 10:31:03 -07:00
sqian
a6e57a9647 resolve merge conflicts of 345a396c to oc-dr1-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I5d816e17b2c8b113d07bf5e827d8c9378af761d9
Merged-In: I5d816e17b2c8b113d07bf5e827d8c9378af761d9
2017-08-01 12:25:53 -07:00
Shuo Qian
345a396c18 Merge "Add EMPTY_RECORD for getDeviceIdentity" into oc-dev 2017-08-01 17:55:32 +00:00
sqian
67901bf2ce Add EMPTY_RECORD for getDeviceIdentity
Remove same unit test case with arguments "","0" for:
- sendEnvelope
- sendTerminalResponseToSim
- sendEnvelopeWithStatus

Test: verified by vendor, treehuger
Bug: 62926561
Change-Id: I5f535bdfc5821275a7ea2571d411374e0d7a8822
Merged-In: I5f535bdfc5821275a7ea2571d411374e0d7a8822
2017-07-31 17:56:36 -07:00
Shuo Qian
417af3a797 Merge "Add corresponding error code to fix vts test" into oc-dev 2017-08-01 00:19:48 +00:00
Shuo Qian
a20caf7720 Merge "Add corresponding error code to fix vts test" into oc-dr1-dev 2017-08-01 00:19:33 +00:00
Nathan Harold
64aae865f0 RadioV1_1 VTS Tests: startKeepalive, stopKeepalive
VTS tests for the initial implementaion of NATT
Keepalive support in the V1_1 HAL.

Bug:63530561
Test: this
Change-Id: Iafabd4b0f8a8f4da78f65bf4061d47f4bfd69a7a
2017-07-28 14:26:09 -07:00
sqian
ce1f89d9cf Add corresponding error code to fix vts test
Test: run vts
Bug: 63152815
Bug: 62989786
Bug: 64041522
Change-Id: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
Merged-In: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
2017-07-28 12:29:30 -07:00
sqian
5b26557330 Add vts test for setCarrierInfoForImsiEncryption
Currently there is no implementation for this api by vendor code.
So we should check only for REQUEST_NOT_SUPPPORTED or NONE
as error returned at present.

Test: run vts
Bug: 64073713
Change-Id: I27f544cf6521d2f913f97e1b8f662a05166ddc11
2017-07-27 15:00:12 -07:00
sqian
1e5b695016 Add corresponding error code to fix vts test
Test: run vts
Bug: 63152815
Bug: 62989786
Bug: 64041522
Change-Id: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
Merged-In: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
2017-07-27 13:28:42 -07:00
yinxu
03c6b592c1 Fix VTS errors of the network scan API
Since the new network scan API is only supported by some devices, we
should add the REQUEST_NOT_SUPPORTED to the possible returned errors.

Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 63914600
Change-Id: I965ee6422aaa5e02bf67466f5288b808183f1738
2017-07-25 15:15:52 -07:00
Shuo Qian
5b472ec138 Merge "Add Sim absent assertion in the 1.0 setup" into oc-dev 2017-07-25 00:14:21 +00:00
Shuo Qian
1d87508ce1 Merge "Add Sim absent assertion in the setup" into oc-dr1-dev 2017-07-25 00:14:00 +00:00
Sanket Padawe
257845f011 Update VTS tests so that more tests pass for O.
Cherry picked from ag/2562201
Bug: b/62926561
Test: vts tests

Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60
Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60
2017-07-24 16:46:36 +00:00
Legler Wu
b36443a864 Update VTS tests so that Mediatek pass more VTS for O.
Bug: b/62926561
Test: vts tests

Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60
Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60
2017-07-21 17:28:26 -07:00
sqian
69cfb0aa38 Add Sim absent assertion in the 1.0 setup
Currently the VTS tests for radio are for Sim Absent only. Adding this
assertion in the set up before running VTS tests clarifies the current
tests running is for sim absent only.

Test: run vts
Bug: 63898623
Change-Id: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa
2017-07-21 12:25:27 -07:00
sqian
0e323b2689 Add Sim absent assertion in the setup
Currently the VTS tests for radio are for Sim Absent only. Adding this
assertion in the set up before running VTS tests clarifies the current
tests running is for sim absent only.

Test: run vts
Bug: 63898623
Change-Id: I0017dd1b3939348b183ce19a5ec4cbc977946cc1
2017-07-21 12:24:00 -07:00
Shuo Qian
7c60d26763 Merge "Update IRadioResponse.hal documentation" into oc-dev 2017-07-21 18:58:12 +00:00
Ying Xu
cc360c3f87 Merge " Add VTS code for the network scan API" into oc-dr1-dev 2017-07-20 16:37:11 +00:00
sqian
c699ba3901 Fix some VTS for 2017 devices
- sendDeviceState
- setIndicationFilter

Mentioned in b/63148938
- getNeighboringCids

Add Request_not_support for Apis mentioned in Bugs:
 - 62989786
 - 62986286
 - 62987946

Test: run vts
Bug: 63130111
Bug: 63148938
Bug: 62989786
Bug: 62986286
Bug: 62987946
Change-Id: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
Merged-In: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
(cherry picked from commit fe0699535e)
2017-07-19 13:45:18 -07:00
sqian
ba1a060051 Modified error code for OPERATION_NOT_ALLOWED
Test: run vts
Bug: 62584347
Change-Id: I3abacdbcc5391c790f61c7f5710c1292447a29b6
2017-07-18 11:45:21 -07:00
yinxu
2495cf5a95 Add VTS code for the network scan API
Test: Telephony sanity tests, run vts -m VtsHalRadioV1_1Target
Bug: 63531235

Change-Id: I25c85b2abb738959d1445e0054049db4bb2f2dfd
2017-07-18 10:31:34 -07:00
Naina Nalluri
236e8e4b78 Change mapping of QMI error
Change mapping of QMI_ERR_OP_NETWORK_UNSUPPORTED
from MODE_NOT_SUPPORTED to OPERATION_NOT_ALLOWED.

Test: run vts
Bug: 62584347

Change-Id: I16a17579581f891701750b4be52cc2ef57594d0c
2017-07-17 15:56:56 -07:00
Shuo Qian
92cc6209a7 Merge "Fix some VTS for 2017 devices" into oc-dr1-dev 2017-07-17 22:09:30 +00:00
Shuo Qian
7e26812206 Merge "Add RadioIndication for Radio VTS test" into oc-dr1-dev 2017-07-17 17:23:24 +00:00
sqian
54d88b7a99 Add RadioIndication for Radio VTS test
Fix 1.1 radio folder bug

Bug: 38499208
Test: run vts
Change-Id: I6d39ce258d5318ce06fc7c99dad4caf0a3e35415
2017-07-15 03:37:39 +00:00
sqian
fe0699535e Fix some VTS for 2017 devices
- sendDeviceState
- setIndicationFilter

Mentioned in b/63148938
- getNeighboringCids

Add Request_not_support for Apis mentioned in Bugs:
 - 62989786
 - 62986286
 - 62987946

Test: run vts
Bug: 63130111
Bug: 63148938
Bug: 62989786
Bug: 62986286
Bug: 62987946
Change-Id: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
Merged-In: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
2017-07-13 19:01:13 -07:00
Amit Mahajan
3b24b6eb2f Add an empty 1.1 ISap interface.
This is needed since manifest doesn't support different versions
for different interfaces in a package. Since there's a 1.1 for
IRadio, there needs to be a 1.1 for ISap as well.

Test: build
Bug: 63598469
Change-Id: I9a0bd898e5d236f05d6574b3e3093521d0f57d52
2017-07-12 10:26:51 -07:00
Shuo Qian
c631963d4b Merge "Update .hal file for radio 1.0 hal" into oc-dr1-dev 2017-06-29 03:28:46 +00:00
Shuo Qian
55967b136e Merge "Fix failure vts tests:" into oc-dr1-dev 2017-06-29 03:28:46 +00:00
Shuo Qian
00eb34b57a Merge "Add a new vts directory under 1.1 for radio 1.1 APIs vts tests." into oc-dr1-dev 2017-06-29 02:41:57 +00:00
sqian
017f15c2b0 Update .hal file for radio 1.0 hal
Test: compile, treehugger
Bug: 62584347
Change-Id: Ic595d9934d3d4e059cfa40c5f6da3f4cc97b3352
2017-06-28 14:44:41 -07:00
sqian
48124dac55 Fix failure vts tests:
- setCdmaBroadcastConfig
- getCdmaBroadcastConfig
- setCdmaBroadcastActivation
- pullLceData
- setAllowedCarriers
- setAllowedCarriers
- sendEnvelope
- sendEnvelopeWithStatus
- cancelPendingUssd
- sendCDMAFeatureCode

Test: mma -j30; adb shell binary
Bug: 62960543, 62584347
Change-Id: Ie907cdb464a44d92be47d898151d71eb2d83a11c
Merged-In: Ie907cdb464a44d92be47d898151d71eb2d83a11c
2017-06-28 21:34:38 +00:00
sqian
0c74fc7839 Add a new vts directory under 1.1 for radio 1.1 APIs vts tests.
Bug: 38034125
Test: compile; adb shell compiled_vts_binary
Change-Id: I05d4f03db40ac712f120ac0e3e52301a6252f041
2017-06-28 13:06:08 -07:00
pkanwar
fc5f3558fe Radio Interface changes to allow the modem to query the framework
for the key.

We will now pass the ImsiEncryptionInfo object which includes mnc/mcc.
BUG: 35606429
Test: manual

Merged-In: Iae18382f1f244be6a756a47753f0345e1925ca4a
Change-Id: Iae18382f1f244be6a756a47753f0345e1925ca4a
2017-06-27 19:45:46 -07:00
TreeHugger Robot
bf7dcd2adb Merge "Radio Keepalive HAL" into oc-dr1-dev 2017-06-27 08:13:36 +00:00
Nathan Harold
77e3c4597d Radio Keepalive HAL
This adds support for offloading of keepalive packets
to the radio for reduced power consumption.

Bug: 33277538
Test: none
Change-Id: I8e8a841e25f18afeae07f70024c698efa58263e2
(cherry picked from commit 4e2541ecc6)
2017-06-22 14:36:00 -07:00
sqian
be63f4b89e Update IRadioResponse.hal documentation
Update the error codes

A copy of https://partner-android-review.googlesource.com/#/c/836552/
+ some missed updated error codes
+ request_not_supported

Test: Manual
Bug: 35671595
Change-Id: I2880b442b5fd56149abc83949c12e2eba5ee67df
Merged-In: I2880b442b5fd56149abc83949c12e2eba5ee67df
2017-06-21 14:53:07 -07:00
sqian
6381ac46aa Update IRadioResponse.hal documentation
Update the error codes

A copy of https://partner-android-review.googlesource.com/#/c/836552/
+ some missed updated error codes
+ request_not_supported

Test: Manual
Bug: 35671595
Change-Id: I2880b442b5fd56149abc83949c12e2eba5ee67df
2017-06-21 10:26:47 -07:00
sqian
a009cd5b03 Fix vts tests:
- setCdmaSubscriptionSource
- nvReadItem
- nvWriteItem
- nvWriteCdmaPrl
- getHardwareConfig
- sendEnvelope
- sendTerminalResponseToSim

Will update .hal file seperately.

Test: adb shell <vts_binary>
Bug: 35671595
Bug: 35800570
Change-Id: I651af50f122f37721778b1088df40fa6e12ac6e4
2017-06-09 18:01:29 -07:00
sqian
10a619ab6d Fix vts tests:
- setCdmaSubscriptionSource
- nvReadItem
- nvWriteItem
- nvWriteCdmaPrl
- getHardwareConfig
- sendEnvelope
- sendTerminalResponseToSim

Apply ag/2373104/ to prevent merge conflicts

Will update .hal file seperately.

Test: adb shell <vts_binary>
Bug: 35671595
Bug: 35800570
Change-Id: I651af50f122f37721778b1088df40fa6e12ac6e4
Merged-In: I651af50f122f37721778b1088df40fa6e12ac6e4
2017-06-09 14:47:24 -07:00
Shuo Qian
c1feed1128 Merge "Fix vts tests:" into oc-dev
am: dda2e8cdc2

Change-Id: I48640bc1b6225e39309f2832613986fce4a43754
2017-06-09 02:13:08 +00:00
sqian
08e90550f1 Fix vts tests:
Fixed with QC updated documentation:
- setGsmBroadcastConfig
- getGsmBroadcastConfig
- setGsmBroadcastActivation
- getImsRegistrationState
- pullLceData
- deleteSmsOnSim
- deleteSmsOnRuim
- sendDtmf
- startDtmf
- stopDtmf
- sendBurstDtmf

Try to increase timeout to 75 to fix (suggest by QC in b/35671595 #62):
- dial

Test: adb shell data/local/tmp/VtsHalRadioV1_0TargetTest
Bug: 35671595, 35800570
Change-Id: Idd50bf71ae4c4490722d88d7cba0485b9d49073b
2017-06-08 11:30:13 -07:00
Sanket Padawe
2ab0ec0626 Fix some stk api Radio Vts tests.
Bug: 37502436
Test: Manual vts
Change-Id: Idd9a1fd38413aed89aaa152cb9a91c001f18b339
Merged-in: Idd9a1fd38413aed89aaa152cb9a91c001f18b339
2017-06-05 19:35:35 +00:00
Sanket Padawe
92a1599b80 Fix some stk api Radio Vts tests.
Bug: 37502436
Test: Manual vts
Change-Id: Idd9a1fd38413aed89aaa152cb9a91c001f18b339
2017-06-05 12:04:52 -07:00
sqian
fcc6118882 Generate serial number randomly in VTS unit test
Any fixed integer can be returned by vendor's APIs response.
Ideally it should be a random value for testing a vendor library.

Applying this to all the unit tests serial number.

Cherry-pick from:
  https://googleplex-android-review.git.corp.google.com/#/c/2330821/

Bug: 38499889
Test: adb shell data/local/tmp/VtsHalRadioV1_0TargetTest
Change-Id: I491db829cca607fad9f6a21987de92269d115253
Merged-In: I491db829cca607fad9f6a21987de92269d115253
(cherry picked from commit 0e8a3be41c)
2017-05-31 14:21:43 -07:00
sqian
42c66f700a Generate serial number randomly in VTS unit test
Any fixed integer can be returned by vendor's APIs response.
Ideally it should be a random value for testing a vendor library.

Applying this to all the unit tests serial number.

Bug: 38499889
Test: adb shell data/local/tmp/VtsHalRadioV1_0TargetTest
Change-Id: I491db829cca607fad9f6a21987de92269d115253
2017-05-30 17:13:59 -07:00
Sanket Padawe
29687c4bf4 Merge "Fix more radio VTS test." into oc-dev
am: 3cc7c4e314

Change-Id: Id8f41004922cfb7d5622e2a20aa0c7569a46efbe
2017-05-25 17:14:04 +00:00
Sanket Padawe
e32c4ea00d Fix more radio VTS test.
+ Increase timeout to 65s to fix some tests failing because of timeouts.

Bug: 35800570
Test: vts
Change-Id: Idf0204908592eac5f2a954d4425123df75999b1c
2017-05-23 13:36:47 -07:00