4517 Commits

Author SHA1 Message Date
Sooraj Sasindran
a63c16f36a Provide API to retrive dual connected bandwidth
Provide API to retrive bandwidth per primary carrier
and secondary carrier

Bug: 162373679
Test: New CTS test, unit test, build

Merged-In: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
Change-Id: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
2020-11-11 22:17:32 -08:00
Mathew Inwood
f8abe13db4 Merge "Add maxTargetSdk restriction to unused APIs." 2020-11-09 14:41:20 +00:00
Daniel Bright
bc99f76305 Merge "Allows APN to be unthrottled through an indication" 2020-11-06 05:04:14 +00:00
Tyler Gunn
49612b38d8 Merge "Add support for DTMF and RTP header extension communications." 2020-11-05 17:57:40 +00:00
Tyler Gunn
08ddbc2b6d Add support for DTMF and RTP header extension communications.
Add support for:
- reporting of incoming DTMF tones from IMS stack.
- incoming/outgoing RTP header extension data.

Test: Added unit tests where possible.
Test: Added test intents to inject test data into framework for platform
testing.
Bug: 163085177
Change-Id: If34faeba0461c677a1381c82ead4a79c607bcf13
2020-11-05 00:19:52 +00:00
Sooraj Sasindran
11a66cb266 Ability to configure NR dual connectivity
Provide ability to configure EUTRANR dual
connectivity

Bug: 162373679
Test: build
Change-Id: I48f5ef0a5f84157de9feffa8c5aa85d226163068
2020-11-04 10:28:10 -08:00
Mathew Inwood
5d123b6775 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-04 09:45:53 +00:00
Tim Lin
60a61bec89 sync RadioError from IRadio 1.6
Bug: 170938075
Test: make
Change-Id: I7378bea47449b0b0111ce8a9f6fad852c81f9f5e
2020-11-03 07:24:48 +00:00
Daniel Bright
9fece51be5 Merge "Add HAL for pdu session id support" 2020-11-02 23:10:05 +00:00
Sooraj Sasindran
64db0761f7 Rename setDataEnabledWithReason
1. Rename setDataEnabledWithReason to
setDataEnabledForReasn

2. Allow isDataConnectionAllowed to be accessed by
same apps as isDataEnabledForReason

3. Make these apis public

Bug: 156332911
Test: cts and build
Change-Id: I8672ab8861fdec1854427ee9ce5ad8eec8774608
Merged-In: I8672ab8861fdec1854427ee9ce5ad8eec8774608
2020-10-31 16:22:53 +00:00
Sooraj Sasindran
70c1d66847 Support api to control data by thermal service
Support api to control data by thermal service
Restructure data enablement API to have single API
with reason as an input to stop adding new apis
for new usecases.

Bug: 151342791
Test: added new CTS tests and verified

Change-Id: I763c422ba54907984977d19b2774c31337e5ffe5
Merged-In: I763c422ba54907984977d19b2774c31337e5ffe5
2020-10-31 16:22:12 +00:00
Daniel Bright
ae9daa85e0 Add HAL for pdu session id support
* Add in HAL support for AOSP allocating pdu session ids from modem
* Add in HAL support that notifies modem when a handover has begun and was cannceled
(clean cherry pick)

Test: N/A
Bug: 161572859
Merged-In: I1637fe48c785eae28f04e55cdb6fcabd606d744f
Change-Id: I58f6803a7e3eeccd3077dca888e2a4021f47b57f
2020-10-29 21:57:19 -07:00
Daniel Bright
a6a2eef20f Allows APN to be unthrottled through an indication
* Exposed new radio indication that can unthrottle an APN

Test: N/a
Bug: 167434852
Change-Id: Id9ffbd80c5d7f9bcd46caee7cfe5435f15b91fd9
2020-10-28 15:29:16 -07:00
Hall Liu
f0b822c8bb Merge changes from topic "expose-call-forward"
* changes:
  Move some of the call-forwarding related constants
  Expose and update the call forward/waiting APIs
2020-10-22 19:48:18 +00:00
Hall Liu
8410239d72 Expose and update the call forward/waiting APIs
Expose the call forwarding and call waiting APIs, update their
documentation, and convert them to async APIs due to their dependence on
network communication.

Fixes: 168655869
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: Ic20bc99314c8538a3f75f6af9c37bc4d30781825
Merged-In: Ic20bc99314c8538a3f75f6af9c37bc4d30781825
2020-10-22 18:18:29 +00:00
Hall Liu
c4587ed1c9 Remove old methods for mobile data
Bug: 169367013
Test: builds
Change-Id: I9aa69c9bd8d31e6bbdd9a237b0aa2c3922431227
Merged-In: I9aa69c9bd8d31e6bbdd9a237b0aa2c3922431227
2020-10-22 01:08:30 +00:00
Hall Liu
83bb093cc5 Add new methods for setting mobile data policy
Add isMobileDataPolicyEnabled and setMobileDataPolicyEnabledStatus in
TelephonyManager. These are intended to replace the mms-always-allowed
and data-during-voice-call setters/getters.

Old methods will be removed in a follow up commit.
Fixes: 169367013
Test: atest TelephonyManagerTest

Change-Id: I6033a84f0a0163e460343ebf603d66078455fe38
Merged-In: I6033a84f0a0163e460343ebf603d66078455fe38
2020-10-21 16:23:34 -07:00
Brad Ebinger
c50aeb319a Pipe through new SipTransport IInterface to listeners
Create base SipTransport implementation and make it available to
listeners.

Expose new SipDelegate creation capability to the framework from the
ImsService.

The next CL will start the integration of the SipDelegateManager
with the framework and SipTransport.

Bug: 154763999
Test: atest FrameworksTelephonyTests TeleServiceTests
Merged-In: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
Change-Id: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
2020-10-21 13:24:22 -07:00
Brad Ebinger
ec6681c927 Merge changes from topic "redo_ims_poll"
* changes:
  Remove "one shot" type of FeatureCallback
  Clean up IMS based interfaces to use a push model instead of poll
2020-10-07 17:49:29 +00:00
Brad Ebinger
a7df4c0be6 Remove "one shot" type of FeatureCallback
Instead of having a special case for ImsManager#getInstance,
implement it properly.

Test: atest CtsTelephonyTestCases

Merged-In: I2e986fb2a1086043a25b11c71c005481cea74196
Change-Id: I2e986fb2a1086043a25b11c71c005481cea74196
2020-10-05 11:04:40 -07:00
Brad Ebinger
1e9cc7b2e5 Clean up IMS based interfaces to use a push model instead of poll
[RESUBMISSION AFTER REVERT aosp/1443078]

Instead of requiring that listeners poll for an ImsFeature binder
when they go down, modify interfaces to notify listeners when a
new instance of a Binder is available.

Test: atest CtsTelephonyTestCases FrameworksTelephonyTests ImsCommonTests
Test: manual E2E tests of IMS functionality (call, SMS, settings...)

Merged-In: I0bb48f82ecf7a1283be8fd441a787dff587d6d61
Change-Id: I0bb48f82ecf7a1283be8fd441a787dff587d6d61
2020-10-05 11:03:59 -07:00
Jack Yu
6c541722ff Merge "Added getEquivalentHomePlmns API" 2020-10-01 18:29:31 +00:00
Jack Yu
34a50e35f5 Added getEquivalentHomePlmns API
Added a new API to retrieve EF_EHPLMN from the SIM.

Fix: 155843989
Test: CtsTelephonyTestCases

Change-Id: I2797dc466e12f9aa64b830b93446ee1d0532c760
2020-09-30 12:16:19 -07:00
Brad Ebinger
bdd15379d2 Revert "Clean up IMS based interfaces to use a push model instea..."
Revert "Move IMS to a listener type model instead of a poll model"

Revert "Push Binder updates when ImsFeatures change"

Revert submission 1425374-ims_poll

Reason for revert: b/169729036, ANR in phone process
Reverted Changes:
I1d6dd2dfd:Move to a push model of querying ImsFeature Binder...
Ie3982c245:Move IMS to a listener type model instead of a pol...
I8b9ded0f4:Push Binder updates when ImsFeatures change
Ia9f7ae3db:Clean up IMS based interfaces to use a push model ...

Merged-In: I7ef3c07021a79e809d2c8b30ed2422372eae962d
Change-Id: I7ef3c07021a79e809d2c8b30ed2422372eae962d
2020-09-30 17:31:59 +00:00
Brad Ebinger
19bdbabb80 Clean up IMS based interfaces to use a push model instead of poll
Instead of requiring that listeners poll for an ImsFeature binder
when they go down, modify interfaces to notify listeners when a
new instance of a Binder is available.

Test: atest CtsTelephonyTestCases FrameworksTelephonyTests ImsCommonTests
Test: manual E2E tests of IMS functionality (call, SMS, settings...)

Change-Id: Ia9f7ae3db193b1c4b3f6693a45cdcf9a4aaefe1d
2020-09-28 14:34:40 -07:00
Brad Ebinger
03a843a281 Decouple the ImsFeature status listener from creating the feature
Add the listener after the ImsFeature has been created to ensure
that listeners do not miss the state update due to the feature not
being tracked internally yet.

(This is part 1 of a two part process to clean up ImsFeature
connecting).

Test: atest CtsTelephonyTestCases FrameworksTelephonyTests ImsCommonTests
Change-Id: I6a0cf4a4dfae2593ea77d3b098cd7a93325ea740
2020-09-15 11:22:30 -07:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
zoey chen
c647fa10a9 [TelephonyMainline] Make getMergedSubscriberIdsFromGroup as System API and rename it
Bug: 145584030
Test: make
Merged-In: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29
Change-Id: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29
2020-08-27 15:57:57 -07:00
Meng Wang
f3c71997ee Add KEY_VOICE_OVER_WIFI_ENTITLEMENT_ID
Bug: 164250692
Test: make
Change-Id: I917085cf6f962c7f5cc7088e2e5298597f661514
Merged-In: I917085cf6f962c7f5cc7088e2e5298597f661514
2020-08-18 02:22:11 +00:00
Tyler Gunn
a005cb30ed Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 20:42:55 +00:00
Tyler Gunn
460360d6b8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: Presubmit
Bug: 161896447
Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-29 10:23:07 -07:00
Treehugger Robot
9006230a7e Merge "Fix some style issues" am: 1b87c970c8 am: 9a155b957a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1313803

Change-Id: I0269a40f6984fa61522b0fb48aa1a66f1906683b
2020-07-14 11:16:21 +00:00
Treehugger Robot
a7a04f6c5c Merge "Suppress showing "Invalid Validity Period-1" for sending messages" am: 8daa4a1389 am: ee59d3306a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1313804

Change-Id: Ic7c6ffe1943ccbe7d79633fc6d2f29ef6f4e75a1
2020-07-14 10:50:04 +00:00
Treehugger Robot
1b87c970c8 Merge "Fix some style issues" 2020-07-14 10:45:39 +00:00
Taesu Lee
1ec60185f8 Suppress showing "Invalid Validity Period-1" for sending messages
Show the error log when only wrong value is set actually for sending
instead.
And it includes some cleanup.

Bug: 161156510
Test: MO SMS and check log

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I2b58b431c59c52dd05cfa54ac34551550cd614d2
2020-07-14 16:05:44 +09:00
Taesu Lee
2238af8e30 Fix some style issues
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I119d6351057d91a11c9bb58ea6b469807f469c38
2020-07-14 12:13:24 +09:00
Treehugger Robot
2d017866f1 Merge "Ignore invalid time stamp in SMS PDUs" am: a19cd20f01 am: 43887910a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354342

Change-Id: I74bcc259c8764f969a7328ff97bec20aeeabf036
2020-07-13 08:39:07 +00:00
Treehugger Robot
a19cd20f01 Merge "Ignore invalid time stamp in SMS PDUs" 2020-07-13 08:10:24 +00:00
Shuo Qian
47351ebc1b Merge "Fix a Sms7BitEncodingTranslator threading issue, since translate() method can easily race when called by multiple threads." am: 02b664649a am: 1609733fae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360883

Change-Id: Ia8d0608b3ef8291030a8131b732dee2eff2c8745
2020-07-13 02:33:38 +00:00
Jeff Sharkey
d8d6992c07 Fix a Sms7BitEncodingTranslator threading issue, since translate() method can easily race when called by multiple threads.
Bug: 160733170
Test: Sanity; Telephony unit tests; hard to reproduce
Change-Id: If8347a27a79351e84060c9a35e1cc9efd468f7a0
Merged-In: If8347a27a79351e84060c9a35e1cc9efd468f7a0
(cherry picked from commit 131781145dbd7a6f65a759f932abb48aca652ace)
2020-07-10 20:16:02 +00:00
Treehugger Robot
5850cbdfad Merge "Delete newFromCMT() and newFromCDS() from SmsMessage" am: b599edc541 am: b403b0877d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1359205

Change-Id: I05e4806aca68c0b42912834a6da1976443846c56
2020-07-10 07:16:52 +00:00
Treehugger Robot
b599edc541 Merge "Delete newFromCMT() and newFromCDS() from SmsMessage" 2020-07-10 06:48:53 +00:00
Sooraj Sasindran
dc52bd51d8 Merge "Add hidden API to support allowed networks reason" 2020-07-09 22:40:37 +00:00
Nathan Harold
dbe2b4c8a9 Merge changes from topic "servicelocation" am: 63ced6b508 am: 0b41b930a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355808

Change-Id: I1992b4e1c9d7c2cf442515b4c397a9975478df85
2020-07-09 17:34:30 +00:00
Nathan Harold
b169887af7 Add Location Checks on CellLocation#requestLocationUpdate am: 32deda2df3 am: 3b7647b8d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355807

Change-Id: I44159f46bb114dcc181e4974fabcc22c881b5395
2020-07-09 17:34:25 +00:00
Taesu Lee
c483107ac7 Delete newFromCMT() and newFromCDS() from SmsMessage
Bug: 160847655
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: Ie451a24ef6b6c03ee8668fb055d83c7cc4175cdb
2020-07-09 19:23:27 +09:00
Sooraj Sasindran
23eda90058 Add hidden API to support allowed networks reason
Add hidden API to support allowed networks type for
specific reason like power.

Bug: 156709797
Test: system test
Merged-In: If4424d7d94ac26ad31725a1658dad5751d0d2629
Change-Id: If4424d7d94ac26ad31725a1658dad5751d0d2629
2020-07-08 23:23:05 -07:00
Nathan Harold
0459eb7cdc Remove Support for Deprecated Location Updating
Remove support for location update control that impacts
the services state tracker. This functionality hasn't been
needed in many years, and it has the ability to:
-consume additional battery
-cause ServiceState to be reported incorrectly
-cause the phone to not know about changes to
 the service state (current cell, technology, etc).

Bug: 152648516
Test: compilation - code removal only
Change-Id: I1bf880c037b5c005bdd61a0ff6f5c4000ec2f9be
2020-07-06 13:54:20 -07:00
Nathan Harold
32deda2df3 Add Location Checks on CellLocation#requestLocationUpdate
Update CellLocation#requestLocationUpdate to pass the necessary
information to do soft location permission checks and bill
modem battery usage against the caller of the API.

Bug: 152648516
Test: atest CellLocationTest
Change-Id: Id9e354538953ef93193a937a834e5890e62ecebd
2020-07-06 13:54:15 -07:00
Taesu Lee
3e3baa0b9d Ignore invalid time stamp in SMS PDUs
Catch a DateTimeException so that we don't lose SMS PDUs even if they
have invalid time stamp caused by SMSC problems.

Bug: 160200121
Test: Received SMS having invalid time stamp

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I80ef1c134f49d6a23e87a77125f54f4f66d62023
2020-07-02 16:50:08 +09:00