Commit Graph

4301 Commits

Author SHA1 Message Date
Pengquan Meng
82e6b2ab02 Fix doc of NETWORK_TYPE_NR & add converter
This fix some documents related to NETWORK_TYPE_NR and add a converter
from ril rat to NETWORK_TYPE_NR.

Bug: 111453000
Bug: 123099654
Test: build
Merged-In: Ib9ee0dbe0234ef1bf9ef22900b00ddd47195914f
Change-Id: Ib9ee0dbe0234ef1bf9ef22900b00ddd47195914f
2019-01-23 14:57:28 -08:00
Nathan Harold
a3ab270ce1 Merge "Deprecate Duplicate SignalStrength Methods" 2019-01-23 17:37:03 +00:00
Xiangyu/Malcolm Chen
8df9d17289 Merge "Add System API to enable / disable a logical modem." 2019-01-23 05:40:04 +00:00
Holly Jiuyu Sun
feb047acb3 Merge "Check whether cardId is valid in EuiccManager#isEnabled." 2019-01-22 19:03:58 +00:00
Nathan Harold
d261a313d6 Deprecate Duplicate SignalStrength Methods
This change cleans up access and deprecates method
on the SignalStrength class that are no longer needed
due to the support of getCellSignalStrengths(). These
methods are generally technology-specific getters. In
addition, this tags non-public methods that were also
of this type to restrict their access to apps
targeting P or earlier via the @UnsupportedAppUsage
annotation.

In addition, deprecate the semantically incorrect
isGsm().

Lastly, deprecate the NotifierBundle() methods that
rely heavily on implementation details that changed
in this release, and which should also be unneeded due
to getCellSignalStrengths() giving access to the
internal storage classes of SignalStrength.

Bug: 122845432
Test: make update-api && make offline-sdk-docs && make
      (no functional change).
Change-Id: Iec794aee337099dee91d0820f7269fda433e8b01
2019-01-22 10:36:31 -08:00
paulhu
6a184ed31a Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause
For exposing more data call failed cause from modem, add more
cause definitions in radio HAL V1.4 and adjust some related
parameters in SetupDataCallResult. Update frameworks related
files to fulfill V1.4 modification.

Bug: 113505704
Test: 1. atest FrameworksTelephonyTests
      2. Manually test data call functions

Change-Id: I47265345df151e080b873c5b29bf5b1eb6ab4a74
2019-01-22 15:30:58 +08:00
Xiangyu/Malcolm Chen
5c1968475c Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java" 2019-01-22 03:16:28 +00:00
Xiangyu/Malcolm Chen
b4a450a13c Merge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList" 2019-01-21 22:45:09 +00:00
Malcolm Chen
1a5de86744 Add System API to enable / disable a logical modem.
Bug: 122926141
Test: unittest
Change-Id: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
Merged-In: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
2019-01-21 13:43:18 -08:00
Malcolm Chen
c3d7de01c7 Add helper API to hide subscriptions when getting active subscriptions
Adding a hidden API that only return user visible active subscriptions.

Bug: 121396526
Test: manual
Change-Id: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f
Merged-In: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f
2019-01-21 21:17:25 +00:00
Malcolm Chen
4616e52aef Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java
IRadioConfig 1.1 getPhoneCapability and setPreferredDataModem
are defined. Here we hook the calls into RadioConfig.

Bug: 121354686
Test: sanity
Change-Id: I2a198d446962510ef9a3019d3aa30b40e796ebe0
Merged-In: I2a198d446962510ef9a3019d3aa30b40e796ebe0
2019-01-21 13:07:41 -08:00
Malcolm Chen
28eeb3ac37 Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList
Don't call getAvailableSubscriptionInfoList twice in
getSelectableSubscriptionInfoList.

Test: build
Change-Id: Ie5821b1d8a01834228401ce6bb1e9ae251168760
Merged-In: Ie5821b1d8a01834228401ce6bb1e9ae251168760
2019-01-21 13:04:59 -08:00
Treehugger Robot
cd4ca49b18 Merge "Trigger PhoneStateListener onCallAttributesChanged" 2019-01-19 06:49:09 +00:00
Holly Jiuyu Sun
ef5c4a5397 Check whether cardId is valid in EuiccManager#isEnabled.
EuiccManager#isEnabled should be only true if its cardId is a valid one.

Bug: 111614811
Test: test on phone
Change-Id: I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8
Merged-In: I7b63d3e117a1bd1eb17dab8e1a7b1dfec1a8abe8
2019-01-18 18:13:51 -08:00
Michele Berionne
a4a1ae499d 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.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
Merged-In: I2723fb07db13efdafbc74471a87182e2d2a32718
2019-01-18 22:37:12 +00:00
Leland Miller
a24e12b46e Merge "Add thread ID reuse to API contract" 2019-01-18 19:32:37 +00:00
Nathan Harold
b822af0022 Remove LTE Rsrp Boost from SignalStrength
The RSRP boost is no longer used in SignalStrength,
and there are no major users of this value to
justify keeping the value around even though there is
no direct alternative. Thus, removing it from
SignalStrength.

Bug: 122846268
Test: compilation (code removal)
Change-Id: I2d4409986a64aa13379e2894457d000ae43f92ca
2019-01-17 22:37:14 +00:00
Brad Ebinger
1d8df63744 Merge "Use better Exception handling in IMS APIs." 2019-01-17 22:05:44 +00:00
yuemingw
681cba5ef5 Revert to previous constant value for ApnSetting.TYPE_DEFAULT.
Bug: 113097474
Test: m -j && atest ApnSettingTest
Change-Id: Iadbb5cde21a9f1fff77000f10cee218ca9806b2e
2019-01-17 21:31:22 +00:00
Nathan Harold
1699bb7d92 Merge "Invoke Both onDataConnectionStateChanged Methods" 2019-01-17 21:23:50 +00:00
Jordan Liu
b39f47fe46 Merge "EuiccManager handles multiple eUICCs using cardId" 2019-01-17 20:24:09 +00:00
sqian
20799e41f4 Add Emergency Call Routing
Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.

Do not send service types from the database
as the emergency service categories

When searching for the corresponding service categories,
try to find the one that comes from the radio indication.

Test: Treehugger
Bug: 112657134
Change-Id: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
Merged-In: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
(cherry picked from commit a4bd738b8b)
2019-01-17 18:05:16 +00:00
Nathan Harold
15baf7f6da Invoke Both onDataConnectionStateChanged Methods
PhoneStateListener#onDataConnectionStateChanged is
overloaded to either take 1 or 2 parameters.

When receiving a callback from binder, the same call
should invoke both methods. sequentially.

Bug: 122274960
Test: atest PhoneStateListenerTest
Change-Id: I146f1eafa475969119254339d86b41244a96fb56
2019-01-16 17:04:21 -08:00
Pengquan Meng
40aa75d3da Merge "Add CellInfo converter V1_4" 2019-01-16 23:48:41 +00:00
Jordan Liu
8218ddd963 Trigger PhoneStateListener onCallAttributesChanged
onCallAttributesChanged can trigger whenever the PreciseCallState or
network type changes, or when the modem reports call quality changes.

Bug: 122366240
Test: builds
Change-Id: I9b13cbdd85c24c077e1a13df302bf60128c164e9
2019-01-16 15:13:12 -08:00
Leland Miller
c445b2b98b Add thread ID reuse to API contract
This make explicit that thread IDs should not be reused to point to new
threads as this may cause issues in applications that expect threads to
remain consistent.

Test: Tested by CTS test in CtsTelephonyProviderTestCases
Bug: 122616805
Change-Id: I068943c402084c524f7e7002044a7efc59ef796d
2019-01-16 18:35:55 +00:00
Jordan Liu
17715735ed EuiccManager handles multiple eUICCs using cardId
Bug: 80097562
Test: manual
Change-Id: I61ab60dfe4b97080148c9ee4b180e0a582b10f59
Merged-In: I61ab60dfe4b97080148c9ee4b180e0a582b10f59
2019-01-15 16:13:32 -08:00
Sooraj Sasindran
760a240d0e Allocate memory before reading from parcel
Allocate memory for mccmnc before reading from parcel
Bug: 113613093
Test: verified manual system test that request sent down correctly.

Change-Id: Ib436dc8dc62e7237143e099b1af23b26468b0392
2019-01-15 15:54:50 -08:00
Xiangyu/Malcolm Chen
609ed3380f Merge "Make setMetered and setOpportunistic public." 2019-01-15 23:31:34 +00:00
Treehugger Robot
4ba30c1bec Merge "Expose WFC roaming Mode ISIM IST EF as SystemApi" 2019-01-15 22:43:49 +00:00
Holly Jiuyu Sun
81801283e3 Merge "Allow privileged carrier app to update subscription nickname." 2019-01-15 22:09:10 +00:00
Nazanin Bakhshi
396e01a168 Merge "add getPreferredDataSubId to SubscriptionManager and rename setPreferredData -> serPreferredDataSubId" 2019-01-15 17:25:31 +00:00
Pengquan Meng
3c0efa4e0a Merge "cherry-picked "Add multiple esim support for SubscriptionManager"" 2019-01-15 04:40:07 +00:00
Pengquan Meng
629f11606d Add CellInfo converter V1_4
Bug: 117805040
Test: build
Change-Id: Ie08187f0ad272b92d43480b86b1bd7c577c16e6a
2019-01-14 20:34:56 -08:00
Nazanin Bakhshi
e0215a7026 add getPreferredDataSubId to SubscriptionManager
and rename setPreferredData -> serPreferredDataSubId

Bug: 117833883
Test: sanity
Change-Id: I67b18f1ef450c3d9e5615b3d2ec8a53a0691d7af
Merged-In: I67b18f1ef450c3d9e5615b3d2ec8a53a0691d7af
2019-01-14 18:00:40 -08:00
Brad Ebinger
6efd88345b Expose WFC roaming Mode ISIM IST EF as SystemApi
Bug: 120986348
Bug: 120945804
Test: atest FrameworksTelephonyTests
Change-Id: I4d7a203dd57050535867329c8dc36f8c75667c15
Merged-In: I4d7a203dd57050535867329c8dc36f8c75667c15
2019-01-15 01:35:49 +00:00
Treehugger Robot
c83e37317f Merge "Fix typo according to API review." 2019-01-15 00:51:23 +00:00
Holly Jiuyu Sun
997a88853b Merge "Support profile policy rule as a resolvable error." 2019-01-14 23:35:56 +00:00
Malcolm Chen
d4dc4ee269 Make setMetered and setOpportunistic public.
Making SubscriptionManager#setMetered and #setOpportunistic public
APIs. Adding proper permission checks and descriptions.

Bug: 120138251
Test: cts, unittest

Change-Id: Id6f074b15a1c03d00ede2665d44595fa7be965e4
Merged-In: Id6f074b15a1c03d00ede2665d44595fa7be965e4
2019-01-14 13:52:32 -08:00
Pengquan Meng
eb7ac7396a cherry-picked "Add multiple esim support for SubscriptionManager"
Bug: 112902036
Test: atest FrameworksTelephonyTests
Merged-In: Iea25c78e4f9c0b1e16add5f796b293e7ace08c67
Change-Id: Iea25c78e4f9c0b1e16add5f796b293e7ace08c67
2019-01-14 13:45:58 -08:00
Hall Liu
7ae295368d Merge "IMS: Propagate media profile changed message" 2019-01-14 21:28:28 +00:00
Holly Jiuyu Sun
a74079a242 Allow privileged carrier app to update subscription nickname.
Make EuiccManager#updateSubscriptionNickname as public API to allow
carrier app to call it.
Only a privileged app of the given subscription can update the
subscription nickname.
Refresh cached subscription list after the nickname is successfully
updated.

Bug: 122597547
Test: test on phone
Change-Id: I63c5ec4366f32735a54adf40b9cc0b47af681736
Merged-In: I63c5ec4366f32735a54adf40b9cc0b47af681736
2019-01-14 13:22:02 -08:00
Jordan Liu
7bc14fcc38 Merge "Add CallAttributes and PhoneStateListener method" 2019-01-14 18:45:12 +00:00
Nathan Harold
b6d32aa5e8 Merge "Add API to Retrieve Detailed SignalStrength Info" 2019-01-14 17:51:38 +00:00
Nathan Harold
360e25280c Merge changes from topic "cellinfocallback-error"
* changes:
  Add an onError() method to CellInfoCallback
  Add AIDL for ParcelableException
2019-01-14 17:50:39 +00:00
Sooraj Sasindran
c78240df19 Merge "Rename ANS to ONS" 2019-01-12 19:11:53 +00:00
Amruth Ramachandran
c43846705b Merge "Add support for LTE VoPS info" 2019-01-12 12:02:19 +00:00
Amruth Ramachandran
a46bc5c266 Add support for LTE VoPS info
LTE VoPS support contains:
    isVopsSupported: This indicates if camped network support VoLTE services.
    isEmcBearerSupported: This indicates if camped network support VoLTE emergency bearers.

Bug:112194535
Test: atest
Change-Id: I6ab186d0423b857daaf579a75a852b230783eb39
2019-01-11 16:33:51 -08:00
Nathan Harold
7484270560 Add an onError() method to CellInfoCallback
There are 2 known types of failures that result in
CellInfo requests to fail:
1) timeout waiting for a response from the modem
2) errors returned from the modem (including the RIL).

This patch adds an explicit onError() callback to
ensure that callers can get detailed error information.

Bug: 120488917
Test: manually tested both error cases by modifying
    RadioResponse.java and forcing both the timeout
    and an explicit error.
Change-Id: Ieb499dc220718aa99a552ea081eb4b4b5c1424aa
2019-01-11 14:42:54 -08:00
Wileen Chiu
f2ec298d7d IMS: Propagate media profile changed message
- RTT Voice information will be passed to the UI via
  media profile changed message

- The RTT voice information - SPEECH/SILENCE, will be conveyed
  via the ImsStreamMediaProfile.hasRttAudioSpeech

- A connection event will be sent from frameworks to the UI -
  EVENT_RTT_AUDIO_INDICATION_CHANGED

- Add listeners, connection event and extras to propagate
  media profile changed to the UI

Test: Manual
Bug: 110976450
Change-Id: I34d2dd612915d65f5047986dabece968c78f0abe
2019-01-11 11:58:31 -08:00