Commit graph

696 commits

Author SHA1 Message Date
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
Malcolm Chen
638f005af0 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: move 1.3 to 1.4.

Bug: 117805040
Test: build and telephony unittest
Change-Id: I9fc36f1af0e7cc4d2a5878531aae5746823e1bb4
Merged-In: I9fc36f1af0e7cc4d2a5878531aae5746823e1bb4
2018-11-27 19:13:42 +00:00
Pengquan Meng
7687650635 Add data call mapping to physicalChannelConfig
- Add 5G NR rat type
- Add data call mapping to PhysicalChannelConfig

Bug: 111453000
Test: build
Change-Id: I8da7185305b46781cccd114721d53167a2e1798a
2018-11-21 19:12:53 +00:00
Jordan Liu
398e84dd6f Add EID to 1.3::CardStatus
The EID should be reported for any GSM compliant eUICCs.

Test: make
Bug: 116656814
Change-Id: I3090f13084b474a9236b43bfb96da3db4003b382
2018-11-13 11:00:06 -08:00
Pengquan Meng
bfdbd58097 Merge "HAL change for 5G NSA only" 2018-11-13 18:21:38 +00:00
Pengquan Meng
1d4e8ae51e HAL change for 5G NSA only
Add the parameters for 5G NSA and change related type & API.

Bug: 111453000
Test: Build
Change-Id: I97aab866993cc84d6f3fd30d33a0273f661e4c2d
2018-11-12 14:30:21 -08:00
Jordan Liu
57cb7b832f Add EID to types 1.1
The EID should be reported for any GSMA compliant eUICCs.

Test: make
Bug: 116656814
Change-Id: I90bdddfcb968ee4a575d8cafd5362095e00e1d55
2018-10-26 14:12:57 -07:00
Jack Yu
4b5371de99 Restored 'maxConnsTime' and 'maxConns' in data profile
These two fields are still needed for some carriers. Should
not be removed in 1.3. Reverted back to what we have in 1.0.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: I33e7b9b0cb26b56fc3c0e011557657136cb38a6c
2018-10-15 09:55:12 -07:00
Steven Moreland
dec5272582 Add monostate to optional safe unions.
Bug: 116156870
Test: hidl_test, hidl_test_java
Change-Id: Ie17a80dee982775e267a39086016071ac2361fb5
2018-10-11 11:02:25 -07:00
Jack Yu
e7de00c5f5 Added 1.3 DataProfileInfo
1. Deprecated the fields 'mvnoType', 'mvnoMatchData', 'maxConnsTime',
   and 'maxConns'.
2. Added a new flag 'preferred' indicating if this data profile
   is preferred for default data connection setup.
3. Move modemCognative flag from setupDataCall and setInitialAttachApn
   into the struct DataProfileInfo and rename it to 'persistent'.
4. Removed isRoaming flag in setupDataCall, setInitialAttachApn, and
   setDataProfile.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: Ia28715e85755b47a1ee870b5c90e5505a7fd8c4a
2018-10-05 14:49:08 -07:00
sqian
968f531267 Emergency Function HAL (continued)
- Add Emergency Number source for Emergency number, which is critical for
management and display priority.
- Remove solicited request for getting emergency number list.
- Rephrasing the documentations.

Test: Treehugger (will add VTS later)
Bug: 112657134
Change-Id: Idbfebf8d246de06fd91e8de89088f5cc2c70227b
2018-10-02 12:18:10 -07:00
Amruth Ramachandran
d146a72e2f Radio HAL: Add VoPS network support
Update 1.3 HAL:
 - Added DataRegStateResult
 - Added LteVopsInfo
 - Added getDataRegistrationStateResponse_1_3

Bug:112194535
Test: Compiled. VTS tests to be added in separate gerrit

Change-Id: I1996bb0dbfb1c585668b097c206296d5d8e3c8d0
2018-09-20 09:37:01 -07:00
Shuo Qian
5bc9799808 Merge "Add IRadioResponse/Indication 1.3 and Emergency Function HAL" 2018-09-05 18:44:31 +00:00