Commit Graph

7839 Commits

Author SHA1 Message Date
Sahin Caliskan
55a5d926d0 Merge "Implement RcsThread querying (base)" am: 7ec9e6849e am: 57d3db1230
am: 36f0d9b96a

Change-Id: I74bf7e8a7c8d2e0e9cece2ec15b829b445ac0cfa
2019-01-05 13:55:52 -08: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
TreeHugger Robot
86760ea679 Merge "Stop exposing reasons through phone state listener" 2019-01-05 11:21:33 +00:00
Nathan Harold
64f2019f3c Merge "Fix WCDMA Level Calculation for Default CC" am: 3ada51469a am: e3db7cfb12
am: 8339fc246b

Change-Id: I27985f27d8175ca374e6a63197cdbf087d201bb8
2019-01-04 18:03:31 -08: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
Jack Yu
4d1c945000 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

Change-Id: Ia005abf19664e6213118ee932495950af118456d
2019-01-04 14:13:28 -08: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
6af8b02244 Merge "Skeleton implementation of RCS APIs" am: 94d92dc3cf am: ac974d0b0d
am: 2f1e9b45a8

Change-Id: I29a5e5e7921e69e8f7625bab57f31dca9f3b9030
2019-01-03 16:56:14 -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
Meng Wang
585b285810 Merge "Migrate GPS configs to carrier config" 2018-12-31 18:01:08 +00:00
shilu
ccd86941b4 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
2018-12-28 22:39:26 +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
Mathew Inwood
31755f94e1 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: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 11:50:04 +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
Shuo Qian
755f2a38ac Merge "Make some SubscriptionManager APIs system APIs" 2018-12-27 21:58:00 +00:00
Nazanin Bakhshi
ecb117ebac Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java" 2018-12-27 18:57:02 +00:00
TreeHugger Robot
561ba9eae2 Merge "Cleaned up dead code" 2018-12-27 17:08:02 +00:00
Nathan Harold
d51c624874 Merge "Fix BSIC Check in CellIdentityGsm" am: 7d615aae59 am: d34107b272
am: af24817935

Change-Id: Id5dd355ca403db506cf2c9fa93b1282b3c28db92
2018-12-26 18:13:05 -08:00
Nathan Harold
af24817935 Merge "Fix BSIC Check in CellIdentityGsm" am: 7d615aae59
am: d34107b272

Change-Id: I565c33a88a34950bb788a1c0af6f270342d8c79b
2018-12-26 18:03:35 -08:00
Nathan Harold
b635fb8eb3 Fix BSIC Check in CellIdentityGsm
Because Java uses signed bytes, a comparison between
a byte and 0xFF will always fail after integer
promotion. Fix this by forcing 0xFF to be treated as
a byte for comparison.

Bug: 119224773
Test: fixes build breakage

Change-Id: I9615667a6b442060f1d43084d56bc9c3fdb3ba35
2018-12-27 01:40:40 +00:00
Nathan Harold
1a3aa1b586 Merge "Refactor CellInfo Constructors" am: bd9da6de04 am: 1d2825ce8e
am: 47872bf7e5

Change-Id: Ief5578fa6a5020d553c4d2c64cce2066667bb65f
2018-12-26 15:51:03 -08:00
Nathan Harold
47872bf7e5 Merge "Refactor CellInfo Constructors" am: bd9da6de04
am: 1d2825ce8e

Change-Id: I98f792d178813cc93c0123ba73486d3d18a4874f
2018-12-26 15:40:04 -08:00
Nathan Harold
7ce5baf9a9 Refactor CellInfo Constructors
Bug: 119224773
Test: atest FrameworksTelephonyTests
Change-Id: Ibf56797b5be2508656409a3437ff79210334bfd6
2018-12-26 09:45:31 -08:00
Jordan Liu
c9b8ad0c41 Merge "Add UiccCardInfo APIs" am: 8acece0441 am: a1ce4f0ec9
am: da2cdd3596

Change-Id: I831e44185649620ad9b48c2db7b103218638912a
2018-12-26 08:48:52 -08:00
Jordan Liu
da2cdd3596 Merge "Add UiccCardInfo APIs" am: 8acece0441
am: a1ce4f0ec9

Change-Id: I24b89cb46f6d9d8e4e0f9f24cde49090615ed007
2018-12-26 08:35:35 -08:00
Jordan Liu
8acece0441 Merge "Add UiccCardInfo APIs" 2018-12-26 16:16:02 +00:00
Jack Yu
5de4a2d869 Cleaned up dead code
Renamed the scanning state to retrying. Removed the
old retrying dead code.

Test: Telephony sanity tests
Bug: 73659459

Change-Id: I54849bafbd0d05206e67636f0717b4b833a5e229
2018-12-24 01:24:18 -08:00
Pengquan Meng
41ed670552 Merge "Add NR to preferred network type combination" 2018-12-22 04:48:40 +00:00
Nathan Harold
bc18834f9e Merge "Refactor SignalStrength" am: 0f1bf44c99 am: 77a7e552e6
am: b7d3f47536

Change-Id: Ic6f24455d20452d192302c13f766012bd4e2c70a
2018-12-21 17:17:18 -08:00
Nathan Harold
b7d3f47536 Merge "Refactor SignalStrength" am: 0f1bf44c99
am: 77a7e552e6

Change-Id: If6529167138e2d7521179a6b26389752dde6fe45
2018-12-21 17:04:24 -08:00
Nathan Harold
0f1bf44c99 Merge "Refactor SignalStrength" 2018-12-22 00:38:05 +00:00
Malcolm Chen
13caf061d6 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
2018-12-21 15:43:57 -08:00
Jordan Liu
5151b7df4e Merge "SubscriptionInfo contains int cardId" am: 97c9aba888
am: 212e2576e1

Change-Id: I5bee233bf3603a11f7da8b04a51919da838cb130
2018-12-21 14:19:19 -08:00
Pengquan Meng
8bcdc4cf66 Add NR to preferred network type combination
This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
2018-12-21 13:55:31 -08:00
Jordan Liu
97c9aba888 Merge "SubscriptionInfo contains int cardId" 2018-12-21 21:55:07 +00:00
Chen Xu
8229f4c5f8 Merge "new SystemAPI for preciseCallState and DisconnectCause" am: 6eacd30e8f
am: f034647231

Change-Id: I2320bd6f4b85ef55a2fe3b7c865ffde67d71d415
2018-12-20 20:19:15 -08:00
Chen Xu
6eacd30e8f Merge "new SystemAPI for preciseCallState and DisconnectCause" 2018-12-21 03:52:16 +00:00