Commit Graph

4279 Commits

Author SHA1 Message Date
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
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
Hall Liu
a24ced9e9b Merge "Propagate some SIP INVITE header fields on a MT call" 2019-01-11 19:17:35 +00:00
Jordan Liu
fd59a81329 Add CallAttributes and PhoneStateListener method
CallAttributes changes will not be reported until we have a full modem
and framework implementation. Registering for one right now is a no-op.

Test: builds
Bug: 110107501
Change-Id: I9c246438de407f5553fd90652e481cdc39b8c844
2019-01-11 10:41:52 -08:00
Chen Xu
2351fa8b8f Merge "precisedataState refactor part 3" 2019-01-11 18:11:37 +00:00
Treehugger Robot
1403b61c05 Merge "Add profile class in SubscriptionInfo database" 2019-01-11 18:04:44 +00:00
Sooraj Sasindran
9ac6a8b5d4 Rename ANS to ONS
Rename AlternativeNetworkService to OpportunisticNetworkService
Bug: 118347827
Test: compile

Merged-In: Ifbbc5eccd35c4b0c2c4e60a04425f4aea0fdeafd
Change-Id: Ifbbc5eccd35c4b0c2c4e60a04425f4aea0fdeafd
2019-01-11 17:46:50 +00:00
Treehugger Robot
d748f78231 Merge "Define entry and exit threshold for opportunistic" 2019-01-11 06:34:28 +00:00
Grace Chen
5be6e9cb27 Add profile class in SubscriptionInfo database
Bug: 116732485
Test: Basic telephony sanity

Change-Id: I28a6d64c90db94ef0735f4d97f430560b733e797
Merged-In: I28a6d64c90db94ef0735f4d97f430560b733e797
2019-01-10 18:49:08 -08:00
shilu
b7ec9a0c9a Propagate some SIP INVITE header fields on a MT call
These fields can be used for Spoof call detection in the Dialer

Bug: 115537553
Test: compile and test on device
Change-Id: Ib92043536e0fc43e40efc53189a28c4e58064ddc
2019-01-10 15:59:06 -08:00
chen xu
896e3d4580 precisedataState refactor part 3
1. expose DataFailCause to systemAPI
2. expose PreciseDataState to systemAPI
3. change string apntype to bitmask.
4. change string dataFaiLcause to intdef

Bug: 119891533
Change-Id: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
(cherry picked from commit 16e24cd5de)
Merged-in: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
2019-01-09 22:49:42 -08:00
Sooraj Sasindran
abf137431b Define entry and exit threshold for opportunistic
Define entry and exit threshold for opportunistic network RSRP and RSSNR

Bug: 120847469
Test: compile
Merged-In: I6a2a02e03b66dc8ea682fc2483ec71c343563d7a
Change-Id: I6a2a02e03b66dc8ea682fc2483ec71c343563d7a
2019-01-09 17:40:43 +00:00
Nathan Harold
bad2bc1167 Merge changes Ic4bd706a,I680224ba
* changes:
  Log Invalid Level as an Error in SignalStrength
  Set DBG Flag False for CellSignalStrengthLte
2019-01-09 17:38:10 +00:00
Nathan Harold
5472d802b7 Log Invalid Level as an Error in SignalStrength
If one of the CellSignalStrength classes returns a
level value that's out of range, it should be logged
as an error. This CL adds loge() to SignalStrength
and logs this event at the correct level.

Bug: 8675309
Test: compilation
Change-Id: Ic4bd706ae83e647cd782a60d94db7077c6d0fc1b
2019-01-08 15:05:04 -08:00
Nathan Harold
ffdd905439 Set DBG Flag False for CellSignalStrengthLte
The debug flag for CellSignalStrengthLte was left
"true" due to "f23153f - Refactor SignalStrength".

This CL sets it to false to fix log spam.

Bug: 122545223
Test: compilation
Change-Id: I680224ba726dde26c1e45584bd37d85bc02aa91a
2019-01-08 15:04:54 -08:00
Sahin Caliskan
cd9c24dcdb Implement RcsParticipant (base)
This change adds the tables, APIs and provider for RcsParticipants. It
is now possible to add/update/query participants.

Test: Added unit tests

Bug: 109759350
Change-Id: I61f3ee3bcb0b3a2d70906a282258677377d9fa5a
2019-01-07 14:39:19 -08:00
Jack Yu
f05919ab76 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c945000)
2019-01-07 06:39:38 +00:00
Sahin Caliskan
7ec9e6849e Merge "Implement RcsThread querying (base)" 2019-01-05 21:19:09 +00:00
Nathan Harold
3ada51469a Merge "Fix WCDMA Level Calculation for Default CC" 2019-01-05 01:25:14 +00:00
Sahin Caliskan
424945e010 Implement RcsThread querying (base)
This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.

Test: Added unit test

Bug: 109759350
Change-Id: Ib116cd533a19ce4d099864a095f585ac47cdc9f6
2019-01-04 23:53:58 +00:00
Nathan Harold
549c3ba3b5 Fix WCDMA Level Calculation for Default CC
The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.

-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
 measurement type is set to RSCP.
-Define RSCP thresholds as constants.

Bug: 118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9
2019-01-04 13:34:02 -08:00
Sahin Caliskan
94d92dc3cf Merge "Skeleton implementation of RCS APIs" 2019-01-04 00:04:43 +00:00
Sahin Caliskan
ec851b1f98 Skeleton implementation of RCS APIs
This change adds the classes for RCS Storage APIs. There
is no business logic implemented yet, and the parcelable boilerplate
code doesn't really do anything.

This was needed as these APIs are meant to be interconnected, i.e. to
use an RcsPart, the app developer will need an RcsMessage, and for
that they will need the RcsThread etc.

Test: Builds fine. Tests will be added as I add business logic.

Bug: 109759350
Change-Id: I20897946dc1d9218f60274c7e3242194c7e2ac32
2019-01-03 14:18:06 -08:00