Commit Graph

4609 Commits

Author SHA1 Message Date
Hall Liu
d2ff486718 Merge "Expose the carrier signaling broadcasts" 2020-11-24 23:24:10 +00:00
Jack Nudelman
30f372a774 Add ThermalMitigation API to Telephony.
go/telephony-thermal-mitigation

Test: make, cts
Bug: 158872959

Change-Id: Ib4be5edf063e4c54e9238b0403f59e1621df671e
2020-11-20 20:58:45 -08:00
Daniel Bright
6ceef2d6a5 Add Radio Interface Capabilities
* Introduces a set of capabilities specific for the radio interface
that are determined by the vendor and are then surfaced through
TelephonyManager.
* There are no capabilities yet defined and will come later in S

Test: Added cts, ran cts, and telephony tests
Bug: 163085807
Change-Id: I56713e05cbd5200baa2a3bc79f7f4b0d580ad2a1
2020-11-20 12:52:59 -08:00
Sarah Chin
26144d4c21 Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Bug: 152813408
Change-Id: I2d80284b92414f403af977cbe193766eac08a6e0
2020-11-19 16:10:13 -08:00
Daniel Bright
c47c398475 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
Change-Id: Ia4dd3036f583a97e42b6054019005df1b33dc33c
2020-11-18 10:40:50 -08:00
Hall Liu
16359f3869 Expose the carrier signaling broadcasts
Expose broadcasts for communicating certain changes in state between
Telephony and carrier apps.

Implement a backward-compatibility layer to support carrier apps
targeting <=R that are listening to the old hidden broadcasts.

Fixes: 173050428
Test: atest CarrierSignalTest CarrierSignalAgentTest
Change-Id: I15d032ee1e31d9be847c2f084161f8555c8172c1
2020-11-16 16:08:14 -08:00
Daniel Bright
8888ec188c 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
Change-Id: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
2020-11-14 16:37:09 -08:00
Sooraj Sasindran
e81f13321b Merge "Provide API to retrive dual connected bandwidth" 2020-11-11 23:06:31 +00:00
Sooraj Sasindran
cfa5d24852 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

Change-Id: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
2020-11-10 10:40:25 -08:00
Sarah Chin
c6200cc366 Merge "Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API" 2020-11-10 08:52:50 +00:00
Daniel Bright
ade1d2a618 Merge "Allows APN to be unthrottled through an indication" am: bc99f76305 am: 98a2cb4729 am: 1cf14ba648 am: 50627f9058
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1479020

Change-Id: I9b5571efb0e1a313baa6efa17873f342a9a1342b
2020-11-06 06:41:15 +00:00
Daniel Bright
50627f9058 Merge "Allows APN to be unthrottled through an indication" am: bc99f76305 am: 98a2cb4729 am: 1cf14ba648
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1479020

Change-Id: I4151d7c099f8689f2b8d955f714cb6936514b96b
2020-11-06 06:04:04 +00:00
Daniel Bright
bc99f76305 Merge "Allows APN to be unthrottled through an indication" 2020-11-06 05:04:14 +00:00
Tyler Gunn
7c7bb03e41 Merge "Add support for DTMF and RTP header extension communications." am: 49612b38d8 am: 884d18b7d1 am: b18d3a92c8 am: e7fe523116
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1487449

Change-Id: I364fc7f2acddbab01a8f1f56ab990abe69ef51b7
2020-11-05 20:16:48 +00:00
Tyler Gunn
e7fe523116 Merge "Add support for DTMF and RTP header extension communications." am: 49612b38d8 am: 884d18b7d1 am: b18d3a92c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1487449

Change-Id: Id3ccaaa4f6d55d24620711b90e014c4058bba7d9
2020-11-05 20:06:57 +00:00
Tyler Gunn
49612b38d8 Merge "Add support for DTMF and RTP header extension communications." 2020-11-05 17:57:40 +00:00
Treehugger Robot
72f2a2c52a Merge "Ability to configure NR dual connectivity" am: aa756e198c am: d54065a670 am: 0589ecb8ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486306

Change-Id: I963cdcb960124643aa12760073dd34351921cd75
2020-11-05 16:11:33 +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
Treehugger Robot
e4e65d6e6e Merge "sync RadioError from IRadio 1.6" am: 9c06156252 am: f56624d96f am: 313d2dd398 am: 8b142a6825
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1475822

Change-Id: I99db48d236e8c9b0a6d69f62355380bc1ca26000
2020-11-03 11:00:05 +00:00
Treehugger Robot
8b142a6825 Merge "sync RadioError from IRadio 1.6" am: 9c06156252 am: f56624d96f am: 313d2dd398
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1475822

Change-Id: Ic74c9fbd5c92e20b989642c4a51bba62867a34a3
2020-11-03 10:48:07 +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
9d3183cbec Merge "Add HAL for pdu session id support" am: 9fece51be5 am: 1c8bae8301 am: 3724bcb85a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1480315

Change-Id: I4fc5fa50e015c3479cbe0d913eaa21f35a407b28
2020-11-03 00:32:53 +00:00
Treehugger Robot
e36940b5da Merge changes from topic "setDataEnabled" am: b43f1dc00b am: 38bf0c92d1 am: ee7f357d0c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481057

Change-Id: I599441bb34ae1874c8b675484d4a05fcc18c2438
2020-11-02 23:11:54 +00:00
Sooraj Sasindran
898ce879ff Support api to control data by thermal service am: 70c1d66847 am: 760d579771 am: 74fdb20969
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481056

Change-Id: Iceffbd60fc326bb4982297003c8f081f28c2126e
2020-11-02 23:11:32 +00:00
Daniel Bright
9fece51be5 Merge "Add HAL for pdu session id support" 2020-11-02 23:10:05 +00:00
Mathew Inwood
5f0edaaaf5 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: I8285daa8530260251ecad6f3f38f98e263629ca7
Change-Id: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
2020-11-02 10:30:09 +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
Sarah Chin
85058d5bf2 Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API
Test: atest TelephonyManagerTest
Fix: 171884158
Fix: 171883908
Change-Id: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
2020-10-30 16:02:58 -07:00
Daniel Bright
394775b1b9 Merge "Add HAL for pdu session id support" 2020-10-30 16:06:04 +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
Mathew Inwood
8e742f928e 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.

This is a resubmit of ag/12929664 with some APIs excluded that caused
test failures; see bugs 171886397, 171888296, 171864568.

APIs excluded:
Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord;
Landroid/os/Process;->myPpid()I
Landroid/os/SharedMemory;->getFd()I
Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I

Bug: 170729553
Test: Treehugger
Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
2020-10-29 11:51:12 +00:00
Daniel Bright
8723b2565f 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

Test: N/A
Bug: 161572859
Change-Id: I1637fe48c785eae28f04e55cdb6fcabd606d744f
2020-10-28 21:40:32 -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
Hongwei Wang
050275cd83 Revert "Add maxTargetSdk restriction to unused APIs."
This reverts commit 72f07d6a8a.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397

Bug: 171886397
Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
2020-10-28 20:16:22 +00:00
Mathew Inwood
72f07d6a8a 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
Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
2020-10-27 15:46:07 +00:00
Sooraj Sasindran
7962a2ad84 Ability to configure NR dual connectivity
Provide ability to configure EUTRANR dual
connectivity

Bug: 162373679
Test: build
Change-Id: I48f5ef0a5f84157de9feffa8c5aa85d226163068
2020-10-26 15:16:27 +00:00
Hall Liu
84a9653e18 Expose and update the call forward/waiting APIs am: 8410239d72
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471162

Change-Id: Icd499ce501a1b418e23a550154d642a52ccb5c3d
2020-10-22 21:22:32 +00: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
d2c3ab49c0 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
Change-Id: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
2020-10-16 12:52:25 -07:00
Hall Liu
526abec2f6 Merge changes from topic "telephonymanager-data-policy"
* changes:
  Remove old methods for mobile data
  Add new methods for setting mobile data policy
2020-10-09 17:03:15 +00: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
Brad Ebinger
c34d3564f3 Merge changes from topics "ims_manager_eff", "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-05 17:34:12 +00:00