Commit Graph

4580 Commits

Author SHA1 Message Date
Nathan Harold
ce349cfec4 Merge "Add API to Retrieve Detailed SignalStrength Info" am: b6d32aa5e8
am: 1ee0a3de13

Change-Id: I9abe7802a5e04714275efc901bcff295625c5b1f
2019-01-14 11:37:32 -08:00
Nathan Harold
28d31b21c4 Merge changes from topic "cellinfocallback-error" am: 360e25280c
am: ed0c722aad

Change-Id: I835826b8197bea1e87491a8c18fc938d64c20f8d
2019-01-14 11:30:24 -08: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
a951bbe072 Merge "Rename ANS to ONS" am: c78240df19
am: ac483b306d

Change-Id: I8714b3f7b4c71d817d2a8e8361442f720bf5a5a2
2019-01-12 11:37:42 -08:00
Sooraj Sasindran
c78240df19 Merge "Rename ANS to ONS" 2019-01-12 19:11:53 +00:00
Amruth Ramachandran
766e5d7e86 Merge "Add support for LTE VoPS info" am: c43846705b
am: 474ed578d1

Change-Id: I1f7f4977d921950736c3f540ed8f68cbea0174dc
2019-01-12 04:27:04 -08: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
Hall Liu
b8d605bc29 Merge "Propagate some SIP INVITE header fields on a MT call" am: a24ced9e9b
am: fb1c1a61db

Change-Id: I85abf94a108439da8a0858778f5fccc10cf2a415
2019-01-11 11:46:07 -08:00
Hall Liu
a24ced9e9b Merge "Propagate some SIP INVITE header fields on a MT call" 2019-01-11 19:17:35 +00:00
Chen Xu
26c60d6d69 Merge "precisedataState refactor part 3" am: 2351fa8b8f
am: f7f229bc1d

Change-Id: Iad8b0677d1853957582c20a86c242bff3512f869
2019-01-11 11:02:38 -08:00
Grace Chen
bf59b843f4 Merge "Add profile class in SubscriptionInfo database" am: 1403b61c05
am: ec0c47f5e7

Change-Id: I7778eac7340eafc2ff80dedc6064c4d655e58f15
2019-01-11 10:55:38 -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
Sooraj Sasindran
88a17f3b67 Merge "Define entry and exit threshold for opportunistic" am: d748f78231
am: d7f69a3de7

Change-Id: I9edc56b0b4a4bf382ea567bcb1eeeff47da8e5ff
2019-01-10 22:56:58 -08: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
Nathan Harold
dc6ada0237 Merge changes Ic4bd706a,I680224ba am: bad2bc1167
am: fb57a250aa

Change-Id: I3ed4373f425989f382d9b702deb41210e92c5da0
2019-01-09 10:09:01 -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
6c160b2232 Merge "Implement RcsParticipant (base)" am: a2e577d8ed
am: 2ff175569a

Change-Id: I19e23c04feb02fc895f56f41fff1cbfd0a8f2971
2019-01-08 14:57:49 -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
4d3d43d006 Merge "Stop exposing reasons through phone state listener" am: 26ebccdcff
am: d05f403adc

Change-Id: I12080acebc37dc496f9b016784fc8ef6e611f1d4
2019-01-07 07:54:34 -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
36f0d9b96a Merge "Implement RcsThread querying (base)" am: 7ec9e6849e
am: 57d3db1230

Change-Id: I409f34fddeb833802be67cc2c49767ba8157af24
2019-01-05 13:42:35 -08:00
Sahin Caliskan
7ec9e6849e Merge "Implement RcsThread querying (base)" 2019-01-05 21:19:09 +00:00
Nathan Harold
8339fc246b Merge "Fix WCDMA Level Calculation for Default CC" am: 3ada51469a
am: e3db7cfb12

Change-Id: I1772eed2663d6e421a17a268f9fb4844d0118c36
2019-01-04 17:53:11 -08: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
2f1e9b45a8 Merge "Skeleton implementation of RCS APIs" am: 94d92dc3cf
am: ac974d0b0d

Change-Id: If442615ddbd0d46e7dd1a4f667534f4413324a22
2019-01-03 16:37:34 -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
Mathew Inwood
8501ae1763 Merge "Limit access to suspected false positives." am: aeda49d185
am: 152d5a5dcd

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
aeda49d185 Merge "Limit access to suspected false positives." 2019-01-02 12:30:32 +00:00
Shuo Qian
65008ba65b Merge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check" am: 8336204f99
am: 9038699348

Change-Id: I2e749228e6ff119c2dbd3962889ff6637d3575bf
2018-12-28 12:32:35 -08:00
sqian
c18b326a5b Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
Bug: 112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit 6279e97c43)
2018-12-28 11:00:26 -08:00
Shuo Qian
d78fdd83b2 Merge "EmergencyNumber enhancement" am: b158b12cbb
am: 8af07a9e24

Change-Id: I17931c9ef06a9e192a6c7f7c28563045daf37e2d
2018-12-28 10:33:42 -08:00
Mathew Inwood
55418eada5 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
Shuo Qian
47eb930d87 Merge "Add Emergency service categories in ImsCallProfile" am: cfc6518c48
am: 128f421992

Change-Id: Ifa177a7348108dc3bd19fc37826c684b60b38898
2018-12-27 14:32:21 -08:00
Shuo Qian
945180736b Merge "Make some SubscriptionManager APIs system APIs" am: 755f2a38ac
am: ca9ce0df60

Change-Id: Ifca1ad29ce283d083619c5d0f11cb02d246007d6
2018-12-27 14:27:32 -08:00
sqian
46c0c303fa EmergencyNumber enhancement
1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers
3) enable Listener.EmergencyNumber enhancement
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes
10) add mnc into EmergencyNumber

Bug: 112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
Merged-In: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
(cherry picked from commit 9f93a12e1f)
2018-12-27 22:16:25 +00:00
Shuo Qian
cfc6518c48 Merge "Add Emergency service categories in ImsCallProfile" 2018-12-27 22:03:45 +00:00