Commit Graph

4534 Commits

Author SHA1 Message Date
Shuo Qian
077cefb9a9 Merge "Add Setting API to set/get enriched calling with call composer user option" 2021-01-07 18:32:44 +00:00
Daniel Bright
f2f714a0dc Add apn throttle status notifications to QNS
* Added wiring for the apn unthrottled indication
* Added method to QNS that is notified when there is a change to
  the way an APN is throttled.

Test: Ran telephony tests
Test: Booted up device
Test: Checked for log message in
      NetworkAvailabilityProvider#onReportApnThrottleStatusChanged
Bug: 167434852
Bug: 174850845
Merged-In: Ia4dd3036f583a97e42b6054019005df1b33dc33c
Change-Id: Ia4dd3036f583a97e42b6054019005df1b33dc33c
2021-01-05 11:36:34 -08:00
Shuo Qian
631df95517 Add Setting API to set/get enriched calling with call composer user option
Test: cts
Bug: 173437870
Change-Id: Iaf2cb72864dca992249395103aedee93ff8d3ac0
Merged-In: Iaf2cb72864dca992249395103aedee93ff8d3ac0
(cherry picked from commit ccc5af201a)
2020-12-22 23:56:08 +00:00
Chiachang Wang
228306b008 Create getMobileProvisioningUrl in telephony
ConnectivityService is going to become mainline and can not
access hidden APIs. Telephony and Settings were both accessing
the hidden API ConnectivityManager#getMobileProvisioningUrl.
Moving #getMobileProvisioningUrl method into telephony means
that there is one less access to a hidden API within the
overall framework since the connectivity stack never needed
this value. Thus, add getMobileProvisioningUrl() to telephony
surface to replace the one in connectivity stack.

Bug: 175177794
Test: atest FrameworksTelephonyTests
Change-Id: Icff8bf39b168b28f972b6737e4e7be8fc86b3dee
2020-12-22 11:22:58 +08:00
Hui Wang
e92ddfef4f RCS Provisioning APIs for Single Registration
Bug: 154864150
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Merged-In: Ie9445dd450d175e0dc94b63b487dda5cde729123
Change-Id: Ie9445dd450d175e0dc94b63b487dda5cde729123
2020-12-17 17:13:24 +00:00
Thiébaud Weksteen
7e242b5bba Add constants for AllowedNetworkTypeBitmap
Bug: 163168917
Test: atest TeleServiceTests
Change-Id: Iae64e9118cb4f69f180517b7aadb9ace9b8ef98b
2020-12-15 13:48:51 +01:00
Hui Wang
4c9e7a8d0c Merge "Support Gba Api" 2020-12-10 22:40:07 +00:00
Jordan Liu
beb163c655 Merge "Add API for setting SIM power "synchronously"" 2020-12-10 21:46:30 +00:00
Hui Wang
bfc6cd7483 Support Gba Api
Added api to support generic authentication architecture.

Bug: 154865133
Test: atest cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
Test: manual by GbaTestApp
Merged-In: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2
Change-Id: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2
2020-12-10 18:02:19 +00:00
Jordan Liu
a10b782505 Add API for setting SIM power "synchronously"
Bug: 171433370
Test: manual
Change-Id: I958d6c3a46cc6e99e8addf2628361e37bc178464
Merged-In: I958d6c3a46cc6e99e8addf2628361e37bc178464
2020-12-09 13:34:58 -08:00
Jack Nudelman
d64c58744a Add ThermalMitigation API to Telephony.
go/telephony-thermal-mitigation

Test: make, cts
Bug: 158872959

Change-Id: Ib4be5edf063e4c54e9238b0403f59e1621df671e
Merged-In: Ib4be5edf063e4c54e9238b0403f59e1621df671e
2020-12-03 19:41:31 +00:00
Sarah Chin
138e2db12a Merge "Create getSystemSelectionChannel API" 2020-12-01 20:08:10 +00:00
Brad Ebinger
af18d59494 Merge "Add SIP Transport create/destroy API defs" 2020-12-01 01:20:12 +00:00
Sarah Chin
f06ca9903c Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Bug: 152813408
Change-Id: I2d80284b92414f403af977cbe193766eac08a6e0
Merged-In: I2d80284b92414f403af977cbe193766eac08a6e0
2020-11-30 14:45:27 -08:00
Brad Ebinger
082ae24fa8 Add SIP Transport create/destroy API defs
Move SIP transport APIs to @SystemApi

Bug: 154763999
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I181e84866fcdb683eb5933e54460bbe18e96851d
2020-11-25 14:59:49 -08:00
Daniel Bright
926aff5e7b Add support for pdu session id
Added startHandover and cancelHandover to DataService and DataServiceManager
so that it can be called by data connection

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 155176305
Merged-In: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
Change-Id: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
2020-11-20 12:23:43 -08:00
Sarah Chin
c315bf8c7d Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API
Test: atest TelephonyManagerTest
Fix: 171884158
Fix: 171883908
Change-Id: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
Merged-In: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
2020-11-19 14:37:35 -08:00
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