Commit graph

880 commits

Author SHA1 Message Date
Shuo Qian
42f01a6477 Mark RSSNR in 4G as an optional support, and vendor dependency
Test: build
Bug: 135717625
Change-Id: Iaf42797b2d388843778ce5fedbd28861f340ec5c
2019-11-14 21:37:09 +00:00
Shuo Qian
1f4012f417 Add Signal Strength Threshold HAL for 4G and 5G
Test: Build
Bug: 135717625

Change-Id: I324cfd592ca53a12ebe1161f242ae3b9c7fc59a4
2019-11-12 14:51:39 -08:00
Steven Moreland
f581c60f08 Merge "radio@1.5: update makefiles" 2019-11-05 17:58:02 +00:00
Steven Moreland
40f586c36e radio@1.5: update makefiles
To be consistent w/ hidl-gen output.

Bug: N/A
Test: N/A
Change-Id: Ic4bd68777e74e5cdfc222202398923d34125f2af
2019-11-04 12:22:23 -08:00
nelsonli
7a2cba8487 [vts-core] add VtsHalRadioConfigV1_*TargetTest to vts-core
Convert VtsHalRadioConfigV1_*TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalRadioConfigV1_1TargetTest
      $atest VtsHalRadioConfigV1_2TargetTest
Change-Id: I4dfa140e7d500022fcf59fefe62fee45c185b534
2019-11-04 15:38:56 +08:00
Treehugger Robot
c003777cff Merge "[vts-core] add VtsHalRadioConfigV1_0TargetTest to vts-core" 2019-11-04 01:18:31 +00:00
nelsonli
eb1fdff7d6 [vts-core] add VtsHalRadioConfigV1_0TargetTest to vts-core
Convert VtsHalRadioConfigV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalRadioConfigV1_0TargetTest
Change-Id: Ie9b62e8e655b17577e01aebb3a30e37a598c7bdd
2019-11-01 17:10:04 +08:00
Malcolm Chen
474009910e Creating IRadio 1.5 vts framework.
Bug: 141995149
Test: build

Change-Id: I260dfa2e57f1b8c7df5273e2d0b39cbc1d6a4571
Merged-In: I260dfa2e57f1b8c7df5273e2d0b39cbc1d6a4571
2019-10-29 20:45:11 +00:00
Malcolm Chen
360e1f9298 Create IRadio 1.5 folder and empty files.
So that later people can add APIs and type definitions as needed.

Bug: 141995149
Test: build
Change-Id: Ib18f75fd391b94ffbd65d7feb4589ff82b3ac1d4
Merged-In: Ib18f75fd391b94ffbd65d7feb4589ff82b3ac1d4
2019-10-29 13:44:21 -07:00
Nathan Harold
aad649b8df Merge "Fix RadioHidlTest_v1_2.startNetworkScan maxSearchTime"
am: 3c8f624724

Change-Id: If856c76531d329e7beac3d0b4902ecf46a7c8b6d
2019-10-09 19:38:49 -07:00
Nathan Harold
3c8f624724 Merge "Fix RadioHidlTest_v1_2.startNetworkScan maxSearchTime" 2019-10-10 02:18:48 +00:00
jun.wang
5341e17199 Fix RadioHidlTest_v1_2.startNetworkScan maxSearchTime
Add the initialization of the incrementalResultsPeriodicity and
maxSearchTime in the networkScan request.
The incrementalResultsPeriodicity and maxSearchTime are not
initialized in the networkScan request. So the default value is 0.
But the incrementalResultsPeriodicity and maxSearchTime
are required not to be 0 in subsequent tests.

CL ported from pag/1433565

Bug:140451434
Test: make vts && vts-tradefed run commandAndExit vts -m \
      VtsHalRadioV1_2Target -t RadioHidlTest_v1_2#startNetworkScan
Change-Id: I1b4e512a37d3d85ebc905a64987a40af801bce53
(cherry picked from commit f7894eb4d8c395add7c70a20520336057ae2656f)
2019-10-09 15:41:59 -07:00
Nathan Harold
696851b904 Merge "Clarify the start and end of scan intervals"
am: 111a10c44e

Change-Id: If37e587d604003ea2422938dfc994d2109ae359e
2019-10-01 14:06:26 -07:00
Nathan Harold
3b685a8ac8 Clarify the start and end of scan intervals
Update the documentation of NetworkScanRequest to clarify
that the interval between scans is from the completion of
one scan to the start of another. This is the only possible
definition that doesn't possibly result in back-to-back
scans which never complete.

In the initial design of this API, the stated use case was
for scans where "interval" >> "scan duration". For that
use case, this clarification doesn't make a meaningful
difference; however, for the use case of long-duration
scans, the distinction prevents the issue stated above.

Bug: 139935383
Test: compilation (docstring-only change)
Change-Id: Ib8393110bfd3ea883045648ee7dac9c6e6a32d44
2019-09-30 16:11:22 -07:00
Nathan Harold
ea37be51fa Merge "Use IncrementalResults in InvalidPeriodicity"
am: 9f50a49681

Change-Id: I4e2f90ce020f0522e4f8c7e09bb9356ee5c21b0b
2019-09-19 14:56:16 -07:00
Nathan Harold
0fc724e299 Use IncrementalResults in InvalidPeriodicity
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Set Incremental Results to true for InvalidPeriodicity
Tests in Radio 1.4. This is a spiritual cherry-pick of
the exact same test copied from HAL 1.2.

Related Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
Related Sha: 81c811b895

Bug: 138317383
Test: atest RadioHidlTest_v1_4#startNetworkScan_InvalidPeriodicity1
Test: atest RadioHidlTest_v1_4#startNetworkScan_InvalidPeriodicity2
Change-Id: I20d6423c01dfc1c708514e798589c36666f2c0d4
2019-09-19 00:07:21 +00:00
Xin Li
15be13ea71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: Ia07db5c8afeed7fe22a2b18d867a38390f910a81
Merged-In: Ibbd540dbb5baee46360d3fe9469212cfd8f550ba
2019-09-08 13:06:54 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Shuo Qian
2f055676a0 Merge "Update the currentCalls before VTS notification."
am: f0796fd497

Change-Id: I6c5748081b255d2b38e51aa285f60a786d72383a
2019-08-27 08:46:54 -07:00
sqian
5a14d20ae8 Update the currentCalls before VTS notification.
It's reasonable to update the global variable "currentCalls" before
notifying the reader thread. Otherwise this can cause some issues such
as null pointer dereference in other modem.

Bug: 139264227
Test: Don't have devices that uses the corresponding modem that reports
 this issues. This is verified according to a partner CL:
https://partner-android-review.googlesource.com/c/platform/hardware/interfaces/+/1422356

Change-Id: Iee9e18149397c39b7c84ec1dc570b9bac7142eb6
Merged-In: Iee9e18149397c39b7c84ec1dc570b9bac7142eb6
(cherry picked from commit fcd55caafd)
2019-08-26 17:13:52 +00:00
Xin Li
68464fb5a0 DO NOT MERGE - Merge build QP1A.190711.019 into stage-aosp-master
Bug: 139893257
Change-Id: I7e48b5477b2edda72c940e05531782dd28a2f784
2019-08-23 06:45:16 +00:00
Youming Ye
f5d07b84c1 Add non-dds check for startNetworkScan
Providing non-dds exemption for HAL 1.2 network scan due to some devices
only perform network scan on preferred data sim. Since logical modem
id(0/1) and physical sim slot id(0/1) are intuitively aligned. Set
first sim as dds sim, and skip the network scan on the second one
(non-dds).

Test: Vts
Bug: 135243177
Change-Id: I58b89473714dc6d3ce6567ba1809baad6cd6d799
(cherry picked from commit fc85e8fa50)
2019-08-01 00:58:48 +00:00
sqian
0acb1b7219 Verify there are no more current calls
am: c8a08c1816

Change-Id: I3209c206b8299b2ecb7f6ec5df69dee2f643c743
2019-07-31 11:51:30 -07:00
sqian
c8a08c1816 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
Merged-In: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
(cherry picked from commit 5f68117e87)
2019-07-30 16:29:33 -07:00
sqian
45fa5dacd9 Merge "Verify there are no more current calls" into qt-dev
am: 1f12b5323a

Change-Id: I6279a0da6ebf1f5c6e78e0c43d4d0ce4dc9a566a
2019-07-30 16:07:28 -07:00
sqian
5f68117e87 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
2019-07-26 18:49:02 +00:00
Youming Ye
8a0dcf7061 Add REQUEST_NOT_SUPPORTED to startNetworkScan
am: d005bbeb53

Change-Id: Ibcd1ae9af41a1330a1e5094ce2a34bee94dbae2d
2019-07-23 13:21:48 -07:00
Youming Ye
d005bbeb53 Add REQUEST_NOT_SUPPORTED to startNetworkScan
Test: VTS
Bug: 137298570
Change-Id: I0afacd413d467c3e25585d6d5431278fd61a1562
2019-07-22 18:34:56 -07:00
Youming Ye
ffdbe8d7b2 Merge "Add non-dds check for startNetworkScan" into qt-dev
am: 53861e16c3

Change-Id: I05e4a0d99c92e1ae790e183b121e8dba30feae91
2019-07-22 17:27:13 -07:00
Youming Ye
53861e16c3 Merge "Add non-dds check for startNetworkScan" into qt-dev 2019-07-23 00:08:37 +00:00
Youming Ye
fc85e8fa50 Add non-dds check for startNetworkScan
Providing non-dds exemption for HAL 1.2 network scan due to some devices
only perform network scan on preferred data sim. Since logical modem
id(0/1) and physical sim slot id(0/1) are intuitively aligned. Set
first sim as dds sim, and skip the network scan on the second one
(non-dds).

Test: Vts
Bug: 135243177
Change-Id: I58b89473714dc6d3ce6567ba1809baad6cd6d799
2019-07-19 16:32:46 -07:00
Youming Ye
05a97d2d4b Merge "Disable startNetworkScan tests with parameters." into qt-dev
am: c69700441e

Change-Id: Ie19296bfdea3a23986741e5e41813b51330b5009
2019-07-12 05:09:37 -07:00
TreeHugger Robot
c69700441e Merge "Disable startNetworkScan tests with parameters." into qt-dev 2019-07-12 11:41:24 +00:00
Willy Hu
d9d38451ef VTS: Change stopNetworkScan from 1_1 to 1_2
am: fb1616eb94

Change-Id: I9d8de8a97e23b2321640615d14d33c997b45bbe3
2019-07-11 20:23:39 -07:00
Youming Ye
bc5f18aae1 Disable startNetworkScan tests with parameters.
Network scan tests with parameters are disabled because of vendors
failed to fully implement startNetworkScan in HAL 1.4, and GSM rat scan
with parameters will get REQUEST_NOT_SUPPORTED error from modem.

Test: VTS
Bug: 137298570
Change-Id: I99df8495c5f654cb1420b7da36d7f5128ce14dbc
2019-07-12 00:07:25 +00:00
Willy Hu
fb1616eb94 VTS: Change stopNetworkScan from 1_1 to 1_2
Change stopNetworkScan from 1_1 to 1_2 when testing VtsHalRadioV1_2Target.

Symptom:

When vts process slot2 "startnetworkscan", it will call "stopnetworkscan()" when startnetworkscan
success. But from current design it will set stopnetworkscan to slot1(wrong slot, expect is slot2)
as bwlow log.

CTS fail log:
hardware/interfaces/radio/1.2/vts/functional/radio_hidl_hal_test.cpp:111

//Device request NwScan on 2nd Sim
06-28 11:30:22.770 radio   873  1213 F RILQ    : RIL[1][Log.cpp: 48] [DispatcherModul(873,1213)]
d: [DispatcherModule]: Handling msg = RIL_REQUEST_START_NETWORK_SCAN

//But Device want to abort on Primary Sim
06-28 11:30:22.776 radio   923  1205 F RILQ    : RIL[0][Log.cpp: 48] [DispatcherModul(923,1205)]
d: [NasModule]: Handling msg = RIL_REQUEST_STOP_NETWORK_SCAN[Context: IRadio(1681692777)]

Bug: 135982495
Test: Build pass. Local test VTS pass.
Change-Id: Ic53c24ab2a670e806b4ac7f192e6eb81252ade84
(cherry picked from commit 5cef297cb2)
2019-07-11 18:53:58 +00:00
Xin Li
1942f9edaa DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master
Bug: 136196576
Change-Id: I58505f104075c7c210612eda8e266df9e3ecfeda
2019-07-09 15:22:03 -07:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Treehugger Robot
98d0f4d52c Merge "Add interface info to .rc files" 2019-07-08 18:56:33 +00:00
sqian
1ade5556c8 Hang up EmergencyDial after Trigger in VTS
am: 8c9947de8d

Change-Id: Ieeb5e62c4709c4288ebf956631851124caf90867
2019-07-03 18:39:05 -07:00
Jordan Liu
fbd3b6cec4 Merge "Add radio config 1.2 VTS tests" 2019-07-03 17:07:58 +00:00
sqian
8c9947de8d Hang up EmergencyDial after Trigger in VTS
The whole test case run emergencyDial.RadioHidlTest_v1_4 first and then
 come after startNetworkScan.RadioHidlTest_v1_4 test case immediately
 (within ~3 secs) the NWscan failure is device in emergency call in
 progress/connected while doing emergencyDial.RadioHidlTest_v1_4 test

Although emergencyDial.RadioHidlTest_v1_4 only care about command/response
 is successful or not and don't care call is established or not, modem do
 care about call condition is in idle/progress/connected state before it
 can do NWscan

When there's dedicated channel established, modem can not perform AP
 request NWscan in parallel as we are single HW modem restriction.

Test: run vts
Bug: 135595082
Change-Id: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
Merged-In: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
(cherry picked from commit 07a53471c4)
2019-07-01 17:37:24 -07:00
sqian
b2e7c71f39 Hang up EmergencyDial after Trigger in VTS
The whole test case run emergencyDial.RadioHidlTest_v1_4 first and then
 come after startNetworkScan.RadioHidlTest_v1_4 test case immediately
 (within ~3 secs) the NWscan failure is device in emergency call in
 progress/connected while doing emergencyDial.RadioHidlTest_v1_4 test

Although emergencyDial.RadioHidlTest_v1_4 only care about command/response
 is successful or not and don't care call is established or not, modem do
 care about call condition is in idle/progress/connected state before it
 can do NWscan

When there's dedicated channel established, modem can not perform AP
 request NWscan in parallel as we are single HW modem restriction.

Test: run vts
Bug: 135595082
Change-Id: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
Merged-In: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
2019-07-01 21:48:22 +00:00
Jordan Liu
306c56e678 Add radio config 1.2 VTS tests
Bug: 122730535
Test: run vts -m VtsHalRadioConfigV1_2Target
Change-Id: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
Merged-In: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
2019-06-26 10:28:37 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
terrycrhuang
6e470f1755 Merge "VTS: stop network scan once trigger network scan success" into qt-dev
am: 6a660a6d7b

Change-Id: I20ea717cdfdefb3ec67a1c8cae80b57ea9937217
2019-06-19 23:47:55 -07:00
terrycrhuang
a2affa6636 VTS: stop network scan once trigger network scan success
For some vendors do not supports independent radios, if
there is one manual search ongoing, another manual search
on other SIM is not supported. So sending stop network scan
request once trigger network scan completed to exclude this
modem limitation.

Bug: 135005200
Test: atest RadioHidlTest_v1_2#startNetworkScan

Change-Id: Iacfd59ac2ad4d44e763ee03697c1f8f57162ce38
2019-06-19 00:53:29 +00:00
Tim Lin
d391e404ed Fix RadioConfig 1.1 vts test
am: 9c93b3500a

Change-Id: Ic8ed4d3324987d6d95b9153f19db60152ab0bc3c
2019-06-13 22:30:18 -07:00
Tim Lin
9c93b3500a Fix RadioConfig 1.1 vts test
Bug: 134645639
Test: VtsHalRadioConfigV1_0Target
      VtsHalRadioConfigV1_1Target
      VtsHalRadioConfigV1_2Target

Change-Id: I0c3171bf50de4f320b53d73962a4a5013a9c72e4
2019-06-12 16:44:07 +08:00
Jordan Liu
9fd14fbaa4 Add radio config 1.2 VTS tests
am: 15df27e428

Change-Id: I00e7f4c88ca2b37d5490fcaa0fa2bab65738d837
2019-05-31 20:35:25 -07:00