Commit graph

708 commits

Author SHA1 Message Date
Michele Berionne
0be84989e5 Merge "VTS test cases for IRadio 1.4 API for carrier restrictions" 2019-03-04 21:30:54 +00:00
Amit Mahajan
60bc204c1d Updated comment for enableModem().
Test: build
Bug: 124771128
Change-Id: I9ddd679daa9b806b8c8677b9d4ef54dacb40d242
2019-03-04 10:28:27 -08:00
Michele
a31d000865 VTS test cases for IRadio 1.4 API for carrier restrictions
Introduction of VTS test cases for setAllowedCarriers_1_4 and
getAllowedCarriers_1_4.

Bug: 124015822
Test: compilation, VTS execution on cuttlefish
Change-Id: Ie1e737d413e6d3559d7a52170bff197eb709c7ca
2019-03-01 18:18:25 -08:00
Amit Mahajan
f72bb5d556 Adding new APN type for Mission Critical Services.
Test: build
Bug: 124447962
Change-Id: I499c81140d2e4300f5bb81a0815b92f276c9167c
2019-03-01 16:48:35 -08:00
Xiangyu/Malcolm Chen
d6245c05d1 Merge "Add vts tests on CBRS related HAL APIs" 2019-02-28 23:48:12 +00:00
Treehugger Robot
183665d248 Merge "Fix doc on getModemStackStatus" 2019-02-28 23:31:46 +00:00
Pengquan Meng
8d6c1de16e Add VTS for get/setPreferredNetworkBitmap
Bug: 121345980
Test: make vts -j32
Change-Id: I94b48f974e7244e1acbace26af8c00e05bee28e1
2019-02-27 18:58:32 -08:00
Malcolm Chen
5d51ea67e2 Add vts tests on CBRS related HAL APIs
Bug: 121345298
Test: vts
Change-Id: I011f052fdaa07dcd571d2357865486c7708f797a
Merged-In: I011f052fdaa07dcd571d2357865486c7708f797a
2019-02-28 01:16:30 +00:00
Nazanin Bakhshi
22df069a0a Fix doc on getModemStackStatus
Bug: 123958093
Test: build
Change-Id: I9ed735df7acd704144f3d399b09f80973e6ff4ab
Merged-In: I9ed735df7acd704144f3d399b09f80973e6ff4ab
(cherry picked from commit 68eef0850c)
2019-02-27 23:13:27 +00:00
paulye
7042a1aa9d Add vts for getSignalStrength_1_4
Test: VTS
Bug: 124013054
Change-Id: Ia23391970d2c333b128ab8d2990d231e62748789
2019-02-26 15:34:34 -08:00
sqian
0446c2ec68 Modify the documentation of 'Routing'
Bug: 121047189
Test: Treehugger
Change-Id: If2c22916062f7f0dbaa0b98185660f3d33bc254a
2019-02-25 18:28:46 +00:00
paulye
2a7c4a59d0 Add vts tests for start network scan 1.4.
Bug: 122730115
Test: vts
Change-Id: If04c5b8c2d2c7d5239805ef65df577f7d4dea61b
2019-02-21 16:03:48 -08:00
paulhu
56a94d502d Add setupDataCall_1_4 VTS test case
Add a test case for testing setupDataCall_1_4 of radio 1.4

Test: Compilation
Bug: 121348900
Change-Id: I0055a6492f1e111444391ffa67b0db2c5d29da1f
2019-02-20 16:26:13 +08:00
sqian
f67133f216 Add VTS for emergencyDial
Modify the document for 'hasKnownUserIntentEmergency'.

In the scenarios that the 'address' in the 'dialInfo' field has other
 functions besides the emergency number function, if the
 'hasKnownUserIntentEmergency' field is true, the user's intent for this
 dial request is emergency call, and the modem must treat this as an
 actual emergency dial; if the 'hasKnownUserIntentEmergency' field is
 false, Android does not know user's intent for this call.

Test: compile
Bug: 121345950
Change-Id: I3457e7519be564ac5043e06380e9450a1b12425f
(cherry picked from commit 7208840ec0148ad5a01bdf419170282cd1b32437)
2019-02-14 04:22:12 +00:00
Nathan Harold
a579346d26 Add NR Cell Identity to CellIdentityNr
Add the NR Cell Identity field to the NrCellIdentity
struct.

Bug: 124126359
Test: compilation on goog/master; VTS currently infeasible
      pending other changes.
Change-Id: Ie7082a7dc1737cb613ab178e86016fa0d09c24d3
2019-02-12 21:02:33 +00:00
Pengquan Meng
16ad3c25df Fix doc on 1.4 IRadioIndication.cellInfoList1_4
Bug: 123959296
Test: build
Change-Id: Ia12ad593ab33fbaec36b6ce95e1108550f8ff52c
2019-02-06 22:55:12 +00:00
Steven Moreland
941f105b60 Update makefiles.
Some of these are out of date.

Bug: N/A
Test: N/A
Change-Id: Ibf87fad9981d4e430a0bf797feadbb0bede232fc
2019-02-05 13:14:26 -08:00
Pengquan Meng
7ac99ae365 Merge "Add 5G cellInfo & signal strength" 2019-02-01 21:09:46 +00:00
Pengquan Meng
e32a755ed2 Add 5G cellInfo & signal strength
Bug: 123532650
Test: build
Change-Id: I76bff3f6ff56ef76cb357c327b44d54757952e32
2019-01-31 14:11:37 -08:00
Nathan Harold
304c0ce012 Merge "Explicitly Document INT_MAX for Invalid Fields" 2019-01-30 22:45:06 +00:00
Nathan Harold
5109018dfa Explicitly Document INT_MAX for Invalid Fields
When fields are inapplicable, they should not
be set to a clearly out-of-range value to signal
to the framework that those fields are not used.
In some cases, there is an in-range invalid value
that has been defined by the standards. The docs
are inconsistent in calling out INT_MAX as the
value to be used when something is inapplicable
vs the case when a measurement is simply not
reported. In all cases, INT_MAX can be used to
denote an invalid value, and in cases where the
field/structure is inapplicable, it is the correct
value. This CL updates all the docstrings for
SignalStrength-related fields to clarify that
INT_MAX is the correct "invalid" value for cases
when fields are inapplicable.

Bug: 123088652
Test: compilation (docstring-only change); CTS
    naturally enforces this change on devices with
    newer HALs; backwards compatibility is preserved
    for existing HAL versions.

Change-Id: I5cfa917f504d15691ab3f2c298189bdd47794a42
2019-01-28 18:59:08 -08:00
Amit Mahajan
685fcc0098 Merge "Add a new parameter to emergencyDial()." 2019-01-28 23:33:54 +00:00
Amit Mahajan
cc07875537 Merge "Add Emergency Call testing mode" 2019-01-28 20:51:25 +00:00
Youming Ye
8327a56b3d Merge "Add functional folder for vts 1.4." 2019-01-28 19:19:19 +00:00
Youming Ye
ae28042bff Add functional folder for vts 1.4.
New tests would be added in cpp files under functional folder. Add a new
folder since it doesn't exist for 1.4 yet.

Test: Compilation
Change-Id: Ieac30bbbc865b76a08d4bdd655f0d489bb7f77bd
Bug: 73784494
2019-01-25 14:27:57 -08:00
Amit Mahajan
44f86a6f97 Add a new parameter to emergencyDial().
The new parameter is to indicate if the request is initiated
by the user through an emergency dialer or shortcut, meaning
that the request is explicitly an emergency dial request.
This is to indicate to the modem that no disambiguation (regarding
whether this is really an emergency request) should
be done for this request.

Test: builds fine
Bug: 123101600
Merged-in: Ic830762d8a8319f494f22d875ca6adad91ffce3b
Change-Id: Ic830762d8a8319f494f22d875ca6adad91ffce3b
(cherry picked from commit 143d32860f)
2019-01-23 17:34:52 -08:00
sqian
2434ba47b4 Add Emergency Call testing mode
If 'isTesting' is true, this request is for testing purpose,
and must not be sent to a real emergency service; otherwise it's
a real emergency call request.

Bug: 122840137
Test: Treehugger (VTS later)
Merged-in: I9607967b2a362f72e9d2bcda4ef25afaf0cc7f1d
Change-Id: I9607967b2a362f72e9d2bcda4ef25afaf0cc7f1d
(cherry picked from commit 527d650656)
2019-01-23 17:30:38 -08:00
sqian
99004cd57e Add Emergency Uniform Resource Name (URN)
Test: Treehugger
Bug: 112657134
Change-Id: I6c965d6b4a55e9370de3a9eeef5402468ae9c44b
Merged-In: I6c965d6b4a55e9370de3a9eeef5402468ae9c44b
(cherry picked from commit 2a45c732e3)
2019-01-23 17:18:54 -08:00
Paul Hu
db4cc673f5 Merge "Refine error causes to make them more clear" 2019-01-23 01:25:02 +00:00
Treehugger Robot
5acbc036b0 Merge "Add getModemEnabled HAL API" 2019-01-22 21:29:24 +00:00
Nazanin Bakhshi
da4e793b56 Add getModemEnabled HAL API
Bug: 121020566
Test: vts
Change-Id: I1ac193dd144b840e4f3e3a397c0c93327ac00186
Merged-In: I1ac193dd144b840e4f3e3a397c0c93327ac00186
2019-01-22 20:51:33 +00:00
Youming Ye
7224c5dc1c Clean up error codes and add error description for IRadioResponse 1.4.
Clean up some unneeded/confusing error codes in the 1.4 Radio HAL.
Quoting description from aosp/616923:

-Remove SYSTEM_ERROR. This is an ultra-generic error
 that also provides no meaningful distinction from
 INTERNAL_ERROR but is even less specified in scope.

-Remove NO_MEMORY. This is very implementation
 specific, and should be essentially impossible to
 hit in the generic sense. Today we don't have a
 generic EBUSY error code, which this would map to.
 Since it should be essentially impossible to hit,
 the preference is to assert that it shouldn't be.
 If an implementation really has memory pressure
 then it can return INTERNAL_ERROR, of which this
 is a class. INTERNAL_ERROR will be treated as a
 temporary failure anyway, making NO_MEMORY a
 distinction without a difference.

-Remove CANCELLED. We have no way to cancel an API
 call. If a persistent/ongoing request is cancelled
 by the caller using a separate API request, then
 that's a success case rather than an error case.

Bug: 73174777
Change-Id: I5bf268f86ed52e7294f7127f24beba04c9159fea
Test: Compilation
2019-01-22 17:49:40 +00:00
paulhu
14e4d76502 Refine error causes to make them more clear
Many of error causes reason are using very esoteric
abbreviations and acronyms. Refine description for making more
clear to the developer.

Bug: 113505704
Test: Build pass and data call can setup normally.
Change-Id: Ifb9c256eef8354add46c76c322cd6a3bd126bd44
2019-01-19 03:17:35 +00:00
Michele Berionne
f6dbeefbc3 Merge "Carrier restriction enhancements for Android Q" 2019-01-19 00:13:57 +00:00
Michele Berionne
ef9ab4a065 Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Change-Id: Ib05267fda5f2fd0b8821a5812fcf47d460e60a2b
Merged-In: Ib05267fda5f2fd0b8821a5812fcf47d460e60a2b
2019-01-18 22:37:21 +00:00
Nazanin Bakhshi
dd7937b705 Add HAL API for enabling DSDS
setModemsConfig and getModemsConfig APIs will allow the framework
to set the number of live modems to switch to single/multi sim state

Bug: 122073700
Test: vts
Change-Id: Ib200ffa5f2aebe21caf2b761407c79828730e6f1
Merged-In: Ib200ffa5f2aebe21caf2b761407c79828730e6f1
2019-01-18 18:42:35 +00:00
Youming Ye
9f94a1532f Add startNetworkScan 1.4 API.
add APIs startNetworkScan_1_4 and startNetworkScanResponse_1_4,
disallowing error codes OPERATION_NOT_ALLOWED and
REQUEST_NOT_SUPPORTED for network scan.

Test: Compilation
Bug: 73784494
Change-Id: If42e61fb30c4b482d4552f04f1934bd3c8d1a525
Merged-In: If42e61fb30c4b482d4552f04f1934bd3c8d1a525
2019-01-17 21:41:58 +00:00
sqian
6142408071 Add Emergency Call Routing in HAL
Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.

In multi-sim senario, this radio request will be sent through the IRadio
service that serves the subscription the emergency number belongs to,
no matter of the PUK/PIN state of the subscription and the service state.

Test: Treehugger
Bug: 112657134
Change-Id: Iaa9768226dc2d7d2d66a9678823ba7d0047a1988
Merged-In: Iaa9768226dc2d7d2d66a9678823ba7d0047a1988
(cherry picked from commit dd49ad675e)
2019-01-17 00:31:23 +00:00
Pengquan Meng
1355303547 Add ConnectionStatus to CellInfo v1_4
Bug: 117805040
Test: build
Change-Id: Ic0343671000c320ec8f62f84bcefc18c84ee323a
2019-01-15 13:48:14 -08:00
sqian
ed2eb3de0a Add mnc and modify docs for emergencyDial
Test: Treehugger
Bug: 112657134
Change-Id: Ia731ed350184fc35663a7bee54144a3ee7febcbe
Merged-In: Ia731ed350184fc35663a7bee54144a3ee7febcbe
(cherry picked from commit ee5598dc2e)
2018-12-27 14:15:13 -08:00
paulhu
31aed67a0f Expose detailed data call end reasons
Currently, most of the fail causes for data connectivity are
exposed as ERROR_UNSPECIFIED. To know the precise fail
cause not just common exception, add more cause definitions
let exact fail reason can pass up to the apps from modem.

Bug: 113505704
Test: Build pass and data call can setup normally.
Change-Id: I1c8b910c272a027c811434d6d034b60ebfd64afa
2018-12-18 19:30:16 +08:00
Treehugger Robot
d25bffff74 Merge "Add a bitmap version for get/set PreferredNetworkType" 2018-12-14 06:06:30 +00:00
Pengquan Meng
1ed39240a9 Add a bitmap version for get/set PreferredNetworkType
Bug: 111453000
Test: build
Change-Id: I42af8de62484c8f8e310b520574d0114901ed452
2018-12-10 18:28:19 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Xiangyu/Malcolm Chen
60d34da5f0 Merge "Define CBRS HAL interfaces in IRadio 1.3 and IRadioConfig 1.1." 2018-12-05 19:24:31 +00:00
Malcolm Chen
ded4399940 Define CBRS HAL interfaces in IRadio 1.3 and IRadioConfig 1.1.
Bug: 117805040
Test: build and telephony unittest
Change-Id: I79e188ef742c3d5167f32c359e86e435f55f4a75
2018-12-04 19:25:16 -08:00
Pengquan Meng
41fb074832 Add E-UTRA-NR Dual Connectivity indicator to DataRegStateResult
Bug: 111454000
Test: build
Change-Id: Ib664f589e1514f6fe9b7dba70d161f4e2103be6f
2018-11-30 11:57:31 -08:00
Steven Moreland
6b110994d2 Update makefiles.
Bug: N/A
Test: N/A
Change-Id: Ie4ccc7f7638e9eca3bcd43c36c16f2f0053ac596
2018-11-29 18:05:35 -08:00
Malcolm Chen
fd5aca9399 Migration of IRadioConfig 1.1 types to 1.2.
To better test CBRS, we want IRadio 1.1 to be Android P plus CBRS
HAL interfaces, while 1.2 will be 1.1 plus all other Android Q
interfaces. So we are creating V1_2 folder and moving everything
currently defined in android.hardware.radio.config.V1_1 there.

Bug: 117805040
Test: build and telephony unittest
Change-Id: Ia221258b62351d1190e78fa0e5faafc36163f4a9
Merged-In: Ia221258b62351d1190e78fa0e5faafc36163f4a9
2018-11-27 19:24:06 +00:00
Malcolm Chen
f168f0b364 Migration of IRadio 1.3 types to 1.4.
To better test CBRS, we want IRadio 1.3 to be Android P plus CBRS
HAL interfaces, while 1.4 will be 1.3 plus all other Android Q
interfaces. So we are creating V1_4 folder and moving everything
currently defined in android.hardware.radio.V1_3 there.

Part 2: re-create 1.3 folder.

Bug: 117805040
Test: build and telephony unittest
Change-Id: If177cd24d8275e22c18d9b5b907cd65ac13a4461
Merged-In: If177cd24d8275e22c18d9b5b907cd65ac13a4461
2018-11-27 19:17:35 +00:00