Commit graph

246 commits

Author SHA1 Message Date
Ying Xu
d9cdb2181d Merge "Fix VTS errors of the network scan API" into oc-dr1-dev
am: 6bba7c9ca4

Change-Id: Ida8be5c1e8f34a8fad520964b1a7104f9744efc1
2017-07-26 18:14:56 +00: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
a344d40ae5 Merge "Add Sim absent assertion in the setup" into oc-dr1-dev
am: 1d87508ce1

Change-Id: I9e8d2feb92b45ff653d61202b4e73f1b073e3d46
2017-07-25 00:22:48 +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
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
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
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
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
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
Steven Moreland
67b9ae7d9c Merge "Update makefiles." am: 9119d4ccd1 am: 242b2288d7
am: c6da54569f

Change-Id: Ib7f7a9cdb64985d545443edac5bb8e9c169fc592
2017-05-20 00:19:40 +00:00
Steven Moreland
e4d318948a Update makefiles.
Adds default configuration to all hals.

Test: pass
Merged-In: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
Change-Id: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
2017-05-19 15:53:53 -07:00
Steven Moreland
06c85d986a Update makefiles.
Adds default configuration to all hals.

Test: pass
Change-Id: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
2017-05-18 16:14:16 -07:00
Shuo Qian
8d0e10f08d Merge changes from topic 'fix-vts-test' into oc-dev
am: a64eb7c698

Change-Id: I3ed89c13301ce07e5fc8ac0be59f33dbf4be492b
2017-05-18 22:59:25 +00:00
sqian
284c53c028 update .hal file to fix vts test
Test: Manual
Bug: 35671595
Change-Id: Ic97cc8e9a713bfa22f9986c18ddb5af624142b17
2017-05-18 14:06:44 -07:00
sqian
786ddd532c Fix vts tests
- apduReq

(with QC UIM document)
- handleStkCallSetupRequestFromSim
- supplyNetworkDepersonalization

Test: make vts; vts-tradefed; run vts -m VtsHalRadioV1_0Target
Bug: 35671595
Change-Id: Ie7427e027eb93e89a9790260cfdbbb2d01c50cc1
2017-05-18 14:06:32 -07:00
yinxu
62890ef7b2 Add the new RIL requests to start/stop network scan
The CL defines the RIL API including the methods and structs which will
be used start and stop the network scan.

Test: Telephony Sanity Test
Bug: 30954762

Merged-in: I18462bf4aa5e8a9497d5eb214d905e4e7c827a04
Change-Id: I18462bf4aa5e8a9497d5eb214d905e4e7c827a04
(cherry picked from commit b187e9f95e)
(cherry picked from commit 872518a234)
2017-05-16 23:04:26 -07:00
yinxu
872518a234 Add the new RIL requests to start/stop network scan
The CL defines the RIL API including the methods and structs which will
be used start and stop the network scan.

Test: Telephony Sanity Test
Bug: 30954762

Change-Id: I18462bf4aa5e8a9497d5eb214d905e4e7c827a04
(cherry picked from commit b187e9f95e)
2017-05-16 13:49:16 -07:00
Grace Chen
a442f2873f Merge "Support different SIM power states" am: f94eb06d32 am: b6e91f51f6
am: 22facb038d

Change-Id: Ib45036bead4fe35323f39fa7fa9bc882b73dd0de
2017-05-16 19:58:53 +00:00
Grace Chen
91865c2173 Support different SIM power states
Test: Verify SIM power states
Bug:  35844036
Merged-In: I769f7eada97286680cb516c63d28da11bb69db4d
Change-Id: I769f7eada97286680cb516c63d28da11bb69db4d
2017-05-16 10:55:58 -07:00
Steven Moreland
4be51a8512 Merge changes from topic 'fix-hidl-generate' into oc-dev
* changes:
  Update makefiles for c++-sources and c++-headers.
  Update makefiles for c++-sources and c++-headers. (2/2)
2017-05-10 20:02:40 +00:00
Steven Moreland
8716f3063e Update makefiles for c++-sources and c++-headers.
Test: pass
Bug: 38174080
Merged-In: I683455736eed35e6ced24e2763c2bdb5fb6c9601
Change-Id: I683455736eed35e6ced24e2763c2bdb5fb6c9601
2017-05-09 19:58:45 -07:00
Steven Moreland
8e89a43590 Update makefiles for c++-sources and c++-headers. am: cb360c60d8 am: 4bd4e7fb3b
am: 127b116fe5

Change-Id: I3a2aa76acef0f0d1455bfad775e87e8089d357e8
2017-05-10 02:58:00 +00:00
Sanket Padawe
3ea42032f4 Merge "Update IRadioResponse.hal documentation to fix failing VTS" into oc-dev
am: 41ea816c9d

Change-Id: I3f9efd6422652efc967a9c8a5bda284f87a4a458
2017-05-10 02:41:46 +00:00
Naina Nalluri
9cc29c8f57 Update IRadioResponse.hal documentation to fix failing VTS
update IRadioResponse.hal documentation with
nas/data error codes

Bug: 35671595
Test: Only doc update.
Change-Id: I5a106e05b487f7deecb208af6465e5ea5238b26e
2017-05-09 15:23:48 -07:00
Steven Moreland
cb360c60d8 Update makefiles for c++-sources and c++-headers.
Test: pass
Bug: 38174080
Change-Id: I683455736eed35e6ced24e2763c2bdb5fb6c9601
2017-05-09 14:34:19 -07:00