Commit graph

117 commits

Author SHA1 Message Date
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
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
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
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
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
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
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