Commit graph

189 commits

Author SHA1 Message Date
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
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
sqian
40c4ff77c6 Add None into cancelPendingUssd
Bug: 67834975
Test: Compile
2018-01-23 16:36:05 -08:00
sqian
d4c4a4edfb Set time delay in the vts test setup
Bug: 69398018
Test: run vts
Change-Id: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
Merged-In: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
(cherry picked from commit 1a5c25dd95)
2018-01-23 22:38:12 +00:00
sqian
1d93dbfb3b Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Merged-In: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
(cherry picked from commit 83cc3ab888)
2018-01-23 22:31:26 +00:00
Sanket Padawe
71620817a9 Fix VTS test which turns off radio.
Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.

Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
(cherry picked from commit 9a721b8087)
(cherry picked from commit 536818d17a)
2018-01-23 22:31:01 +00:00
sqian
40d93997b5 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
(cherry picked from commit 67901bf2ce)
2018-01-23 22:19:46 +00:00
sqian
fce53868fd Add corresponding error code to fix vts test
Test: run vts
Bug: 63152815
Bug: 62989786
Bug: 64041522
Change-Id: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
Merged-In: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
(cherry picked from commit 1e5b695016)
2018-01-23 22:11:47 +00:00
Legler Wu
a945baae7f Update VTS tests so that Mediatek pass more VTS for O.
Bug: b/62926561
Test: vts tests

Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60
Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60
(cherry picked from commit b36443a864)
2018-01-23 22:11:13 +00:00
sqian
4e81e1f726 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
Merged-In: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa
Change-Id: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa
(cherry picked from commit 69cfb0aa38)
2018-01-23 22:11:01 +00:00
sqian
44bd0bb4f4 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)
(cherry picked from commit c699ba3901)
2018-01-23 22:10:42 +00:00
sqian
01d37ff8a1 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
(cherry picked from commit be63f4b89e)
2018-01-23 12:22:43 -08: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
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
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
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
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
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
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
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
Shuo Qian
79c636a4ff Merge "Add GENERIC_FAILURE error checks for some Radio BTSAP Apis which are failing" into oc-dev 2017-05-08 17:49:18 +00:00
sqian
153a84ef11 Add GENERIC_FAILURE error checks for some Radio BTSAP Apis which are
failing

Test: Vts
Bug: 35671595
Change-Id: Ie2ca86437283ce2f8e4b5cad21454a8d201e53ad
2017-05-05 15:58:28 -07:00
Jayachandran C
21e28b71da VTS: Fix IRadio.setAllowedCarriers and IRadio.nvResetConfig
1) IRadio.setAllowedCarriers
Fix IRadio.setAllowedCarriers to pass no restrictions.
Passing restrictions will block all other SIM cards until
a new IRadio.setAllowedCarriers with no restriction is
invoked. Even factory reset will not recover.

2) IRadio.nvResetConfig
IRadio.nvResetConfig with ResetNvType RELOAD causes radio restart.
All subsuquent scripts fail with cause RADIO_NOT_AVAILABLE.
Fix to use ResetNvType ERASE which does not restart the radio.

Test: VTS
Bug: 37946160

Change-Id: Ib671758414cc97e1a596358306f89eed13918c48
2017-05-04 17:01:27 -07:00
Shuo Qian
05935a7e06 Merge "Update .hal file for fixing vts tests" into oc-dev 2017-04-26 23:21:23 +00:00
sqian
01e7c6ee5f Fix Vts errors
- Add REQUEST_NOT_SUPPORT into General Errors
- Add a util function to check General Errors
- Add a util function to check OEM Errors
- Changes to RIL command api tests based on the QC provided pdf
  to see if the errors from vts-web can be fixed

Test: Manual
Bug: 35671595
Change-Id: I9500c686a75539dab37f0272349bc2f965cc0a8f
2017-04-26 13:57:58 -07:00
sqian
159ec7fbf5 Update .hal file for fixing vts tests
- update 'voice' and 'sms' based on QC pdf file
- remove GENERIC_FAILURE still there
- fix duplicate error code

Note, current.txt updated only because this interface
has not been released as of the time of this CL.

Test: Manual
Bug: 35671595
Change-Id: I83831c222cb0d157d0aa06e48cf0a177ab0ecf31
2017-04-26 18:45:38 +00:00
Sanket Padawe
f9723eef1f Fix test case for setSimCardPower radio api.
Bug: 35800570
Test: vts
Change-Id: I93e78c46971158cd14666931b527d8e268e0a39e
2017-04-17 17:07:32 -07:00
Andreas Huber
6fa374ad30 Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:23:46 -07:00
Steven Moreland
17f0c0dde7 Merge changes from topic 'hidl-vendor-available' into oc-dev
* changes:
  Update makefiles (2/2).
  Update makefiles.
2017-04-12 22:13:58 +00:00
Amit Mahajan
ddeb776201 Merge "Add p2 option in OpenLogicalChannel" into oc-dev 2017-04-12 22:02:40 +00:00
Wileen Chiu
d87bd02d5a Add p2 option in OpenLogicalChannel
- Adding support for P2 parameter
- Needed to support OMAPI 3.0 defined
  by SIM Alliance

Test: Basic telephony sanity
Bug: 27360148
Merged-In: I6a274195065ab1ef8406849228f60859ee826e53
Change-Id: I88134eded001e14c12e1f2a18efd0a2b51bc22fe
2017-04-12 17:16:50 +00:00
Steven Moreland
b2799c370f Update makefiles.
Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e
2017-04-11 09:57:40 -07:00
Sanket Padawe
807bc1546b Update Radio and Sap service name in VTS.
Bug: 37164398
Test: VTS tests pass.
Change-Id: I71562e5b9709166695d08a96a04928027dcb4ee7
2017-04-10 10:34:58 -07:00
Yuexi Ma
87bde3312a Change sytle of radio and sap tests to clang google
Test: make VtsHalRadioV1_0TargetTest, make VtsHalSapV1_0TargetTest
Change-Id: Ie13efe0d049ade7839881c14ed2904d8acd99b93
(cherry picked from commit bb96133731)
2017-04-01 00:18:32 +00:00
Shuoq
9823fcd865 Add VTS tests for Sap Apis.
Bug: 32022332
Test: vts
Change-Id: I9a55978aa485a59510090f46a8e5edfb87bccc0e
2017-03-29 16:06:47 -07:00
Andreas Huber
675ae49ab1 Convert all comments into "doxygen-ready" comments.
Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40
2017-03-28 16:14:43 -07:00
Steven Moreland
53b21566bc Update makefiles. am: e90c31f125 am: f11981de68
am: 103bada0e1

Change-Id: Ibe6eeeacab5660a8cf70d59dd9a4864d6f70ab80
2017-03-27 17:51:28 +00:00
Steven Moreland
e90c31f125 Update makefiles.
Test: pass
Change-Id: I925baccbe51a32b7b7f3f66cf2918d017ee6b039
2017-03-24 21:50:45 -07:00
Shuo Qian
af59bc0e76 Merge "Remove GENERIC_FAILURE and INVALID_ARGUMENT for Api documentation" am: 2d0b636b29 am: 0efe019342
am: 56fc4104b9

Change-Id: Ia37f47663ce7932c9d294512b7af011849e27c97
2017-03-24 17:30:27 +00:00
Shuo Qian
2d0b636b29 Merge "Remove GENERIC_FAILURE and INVALID_ARGUMENT for Api documentation" 2017-03-24 17:21:18 +00:00
Sanket Padawe
cae250ad67 Merge "Add VTS for couple of missing APIs and some cleanup for earlier APIs." am: 60449e68d1 am: 516a71e295
am: 0f8a067a04

Change-Id: Ifbdbf6c739e140eb10c8fafdeaa31b92f281a41b
2017-03-22 21:44:37 +00:00
Shuoq
6ec2bb2a6a Remove GENERIC_FAILURE and INVALID_ARGUMENT for Api documentation
Remove GENERIC_FAILURE for the documentation of the apis
in the IRadioResponse.hal, which should not be
returned in any case.

Remove INVALID_ARGUMENT for the documentation of the apis
in IRadioResponse.hal if it is not present in the ril.h file.

Bug: 36385785
Test: No change to behavior
Change-Id: Iab0976ddc6b10863cdbdbfb8a8f213d7d9b17cb5
2017-03-22 12:38:22 -07:00
Steven Moreland
32a8a98b3f Revert "Make setResponseFunctions() and setCallback() oneway."
This reverts commit 08b949450e.

Change-Id: Ie2f6c84e1b9264b109b55432be9b77abb82643fd
2017-03-21 23:09:44 +00:00
Sanket Padawe
6f957ea5c5 Add VTS for couple of missing APIs and some cleanup for earlier APIs.
Bug: 32022332
Test: vts
Change-Id: I361af4a37985e5bc686a2d7302917afa134ebc24
2017-03-21 14:57:22 -07:00
Amit Mahajan
08b949450e Make setResponseFunctions() and setCallback() oneway.
Test: Basic telephony sanity
Bug: 32020264
Change-Id: I05351b5c4d61c19eb08841704bf50ae7de5f683f
2017-03-20 17:44:51 -07:00
Sanket Padawe
f8654facce Merge "Add VTS test for misc RIL apis." am: 69c546ba21 am: d9dabe6b57
am: 592ddbf04e

Change-Id: Iebeec166e521d2203fb01c75f2a4ae5b8c041477
2017-03-17 23:34:24 +00:00