Commit Graph

13596 Commits

Author SHA1 Message Date
Daniel Bright
6fccdbb8d3 Merge "Added javadoc to apn retry \ throttling related methods" 2021-02-22 18:13:28 +00:00
Daniel Bright
43b78ebef7 Added javadoc to apn retry \ throttling related methods
Bug: 175092152
Test: N/A
Merged-In: I35a3b97f3e52eef68310a92178bb14495641c6e7
Change-Id: I35a3b97f3e52eef68310a92178bb14495641c6e7
2021-02-21 14:44:43 -08:00
Jack Yu
d5f25c2262 Simplified the initial attach APN logic
1. Instead of using the hardcoded order, read the order
   from configuration. This also allows carriers to specify
   the allowed types of APN can be used for initial attach.
2. Removed the preferred APN logic. The preferred APN is
   specifically for the default APN after a successful data
   setup. It's not related to initial attach.

Fix: 169657628
Test: Manual
Merged-In: I9fbf4f270726cba1281770db88fec7c1bb62e6db
Change-Id: I9fbf4f270726cba1281770db88fec7c1bb62e6db
(cherry picked from commit 0bebba7378)
2021-02-21 01:23:25 -08:00
Hunter Knepshield
68612ac556 Merge "Allow optional package names in carrier configs" 2021-02-17 20:58:27 +00:00
Brad Ebinger
c7baa4862f Merge "[RCS UCE] Expose the OPTIONS APIs to support OPTIONS mechanism" 2021-02-17 20:27:18 +00:00
James.cf Lin
603c23178a [RCS UCE] Expose the OPTIONS APIs to support OPTIONS mechanism
Expose OPTIONS portion of capability exchange APIs.

Bug: 174166957
Test: atest CtsTelephonyTestCases
Change-Id: I21277fce055f31400f2018b6f81102225cb7c7c8
2021-02-17 18:17:35 +00:00
Marcus Hagerott
407164df11 Add UCS-2 support for SimPhonebookContract
This simplifies the API by eliminating the need to attempt to detect
and report unsupported characters.

Test: atest FrameworksTelephonyTests:com.android.internal.telephony.uicc.IccUtilsTest TeleServiceTests:SimPhonebookProviderTest
Bug: 154363919
Change-Id: Ica8f3a642ee50ca81c43822ba39c0a071c279705
2021-02-16 06:47:23 -08:00
Franck Perez
32bd3884fc Allow optional package names in carrier configs
Bug: 149749602
Test: tested locally both the non-regression (no package names) and the new behaviour (package names) with carrier-provided test apps
Change-Id: I0b807ea1f6ae1f1663dd4362900ab61012a0aa8d
2021-02-15 10:29:43 -05:00
Brad Ebinger
dd170ee3f3 Merge "Add the ability to send the feature tags associated with IMS registration" 2021-02-12 18:35:13 +00:00
Daniel Bright
9379af7c56 Merge "Changed ApnThrottleStatus to ThrottleStatus" 2021-02-11 23:31:24 +00:00
Daniel Bright
a5a88fd3e8 Changed ApnThrottleStatus to ThrottleStatus
* Changed verbiage to be more generic at request of the API council

Bug: 175092152
Test: make & flash
Merged-In: I8bec64b0c38be94bcd3f3b99bcebfb378384c970
Change-Id: I8bec64b0c38be94bcd3f3b99bcebfb378384c970
2021-02-11 13:02:19 -08:00
Brad Ebinger
8420894edc Add the ability to send the feature tags associated with IMS registration
- In order to better support UCE, allow the IMS registration update to
the framework to include the feature tags associated with the registration
so that this information can be used in SIP PUBLISH.

- Encapsulate other IMS registration attributes into a singlular class.

Bug: 177375635
Test: atest CtsTelephonyTestCases:ImsServiceTest
Merged-In: Id730e5e0c9322c2a845523f3b3901f3d899c3f1c
Change-Id: Id730e5e0c9322c2a845523f3b3901f3d899c3f1c
2021-02-11 19:59:16 +00:00
Brad Ebinger
a7f8e8fe6e Merge "[RCS UCE] Expose the IMS RCS feature APIs" 2021-02-09 22:21:09 +00:00
Daniel Bright
6bc0f7cda3 Hide NO_THROTTLE_EXPIRY_TIME
There is no reason to expose NO_THROTTLE_EXPIRY_TIME since
the fact that the apn was not throttle can be explicitly checked
for by checking the throttle type.

Test: N/A
Bug: 175092152
Merged-In: I8888fae0037fd04e1668ab51eff91dd2bcb5e057
Change-Id: I8888fae0037fd04e1668ab51eff91dd2bcb5e057
2021-02-09 05:25:47 -08:00
Rambo Wang
31083c40b9 Merge "Rename SignalThresholdInfo.Builder#setThresholdUnlimited" 2021-02-09 02:29:15 +00:00
James.cf Lin
acf66491e0 [RCS UCE] Expose the IMS RCS feature APIs
The RCS feature is supported, expose the RCS APIs.

Bug: 174187744
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Merged-In: Ibc51a34cb3c3946ab8e8bd92591c734a45a4eb71
Change-Id: Ibc51a34cb3c3946ab8e8bd92591c734a45a4eb71
2021-02-09 01:42:48 +00:00
Sarah Chin
1c600eed49 Merge "Update setSubscriptionOverride API to allow network types" 2021-02-05 05:14:50 +00:00
Brad Ebinger
9e1009dd55 Merge "Discard dead MmTelFeature Binder Instances" 2021-02-05 03:12:28 +00:00
Calvin Pan
454e15dc12 Merge "Add a carrier config for non-RCS capabilities expiration" 2021-02-05 01:27:59 +00:00
Brad Ebinger
cd910c2131 Discard dead MmTelFeature Binder Instances
When the phone process crashes and the IMS service is in
a separate process, there is a condition where the ImsService may
still stay unbound, but alive and not torn down. In this case,
when the phone process comes back up and tries to register new
binder callbacks, detect that the old binder callbacks are dead
and discard instead of throwing an exception.

Bug: 179217608
Test: kill phone process
Change-Id: I4fc3b6d15fe19ebaf1fc52dab92a615a761222f8
2021-02-05 00:42:39 +00:00
James Lin
77c5faf493 Merge "[RCS UCE] Add a network response with Reason header info callback for the publish request and subscribe request." 2021-02-04 23:59:19 +00:00
Rambo Wang
27be9449a5 Rename SignalThresholdInfo.Builder#setThresholdUnlimited
Use method overload instead of two distinguish names since they
are both used to set thresholds but for different callers.

Bug: 177956167
Test: atest com.android.internal.telephony.SignalThresholdInfoTest
Change-Id: I56cba06f8d70d87aa188c54d58fefa6d785f5054
2021-02-04 12:11:28 -08:00
Adrian Roos
60f3d5cee4 Merge changes from topic "nullablecollection"
* changes:
  API: Suppress existing NullableCollections lints (TaskOrganizer)
  API: Suppress existing NullableCollections lints
2021-02-04 15:53:34 +00:00
James.cf Lin
440160856e [RCS UCE] Add a network response with Reason header info callback for the publish request and subscribe request.
Bug: 177495626
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: I830894bb022947f864a716959489c941f79ce070
2021-02-04 08:49:59 +08:00
Brad Ebinger
8cb6d95803 Merge "Define FEATURE_TELEPHONY_IMS_SINGLE_REGISTRATION feature" 2021-02-04 00:38:15 +00:00
Treehugger Robot
9b899f7253 Merge "NetworkRegistrationInfo: add Parcel recycle" 2021-02-03 18:31:07 +00:00
Sarah Chin
5becb8f399 Merge "Temporary fix to prevent TEMPORARILY_NOT_METERED leak" 2021-02-02 22:58:01 +00:00
Jack Yu
ad5413f724 Temporary fix to prevent TEMPORARILY_NOT_METERED leak
Currently we are seeing TEMPORARILY_NOT_METERED occurs on non-5G
devices. This fix adds more checks to prevent incorrect
TEMPORARILY_NOT_METERED being set. Before we root cause the issue,
we only allow this bit when all of the following conditions met.

1. Devices should support 5G.
2. Carriers should support 5G unmetered data.
3. Device should camp on 5G network.

This temporary fix should be removed after we root cause the issue.

Bug: 176119724
Test: Manual
Change-Id: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
Merged-In: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
2021-02-02 13:44:33 -08:00
Brad Ebinger
5c389e2507 Merge "Add SIP configration Bundle keys for UA and CNI" 2021-02-02 17:53:18 +00:00
James Lin
02bf7d1288 Merge "[RCS UCE] Add the APIs to access the device config of RCS User Capability Exchange enabled" 2021-02-02 05:52:03 +00:00
calvinpan
39884877dd Add a carrier config for non-RCS capabilities expiration
Bug: 174196620
Test: atest
Change-Id: I280d8e1687feb2d96a20e2d18a7abc62c4a89e25
2021-02-02 03:00:15 +00:00
Sarah Chin
58fe38182d Update setSubscriptionOverride API to allow network types
Allow 5G unmetered override via a different API than
setSubscriptionPlans. OVERRIDE_UNMETERED can be set without defining
SubscriptionPlans, but OVERRIDE_CONGESTED behavior remains the same.
Both the unmetered and congested case of setSubscriptionOverride take in
networkTypes as an additional parameter

Test: atest FrameworksTelephonyTests
Test: atest SubscriptionManagerTest
Bug: 175723642
Change-Id: Ie196db5e236e478f1c29c3dfd1ca31acc205c54b
Merged-In: Ie196db5e236e478f1c29c3dfd1ca31acc205c54b
2021-02-01 18:36:19 -08:00
Steven Moreland
87326e0f88 NetworkRegistrationInfo: add Parcel recycle
~580 hits on cuttlefish boot

Bug: 139327211
Test: boot w/ Parcel.java DEBUG_RECYCLE
Change-Id: I20b7c8865c3ab1f562dfa9f19039f08cef8f0f7d
2021-02-02 02:18:56 +00:00
Brad Ebinger
c28d5844dd Add SIP configration Bundle keys for UA and CNI
Adds IMS SIP configuration bundle keys for User-Agent and
Cellular-Network-Info headers required by some networks.

Bug: 178606181
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I389162ca0c6348580f6ee8bb6ce5ee3a4e84595e
2021-02-02 00:53:02 +00:00
Daniel Bright
bed5f6e84d Merge "Partial hal support for secondary link bandwidth" 2021-02-01 22:48:44 +00:00
James.cf Lin
1d44f9e09e [RCS UCE] Add the APIs to access the device config of RCS User Capability Exchange enabled
Bug: 178239287
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Change-Id: I1bd2d0e0dc88dcd72e7c2682483c8039f4aa8927
2021-02-02 06:30:49 +08:00
Brad Ebinger
33437bd046 Define FEATURE_TELEPHONY_IMS_SINGLE_REGISTRATION feature
Define a new feature that determines if a device supports IMS
single registration and integrate this feature tag into the
SIP transport and provisioning APIs.

Bug: 149426399
Bug: 173715911
Test: atest CtsTelephonyTestCases FrameworksTelephonyTests
Change-Id: Id9ac6a3a69be2072cf28136e98408118b7d9f07f
2021-02-01 21:27:41 +00:00
Adrian Roos
6a6aa5e23d API: Suppress existing NullableCollections lints
Bug: 152525509
Bug: 154763999
Test: make checkapi
Change-Id: Iecd0927e6be5496b2fbd1a49396db5439257ffe4
2021-02-01 15:04:10 +01:00
Daniel Bright
db95bcf851 Partial hal support for secondary link bandwidth
* Added modemReducedFeatureSet1 flag to HalDeviceCapabilities
* Applied flag to secondary link bandwidth getters in carrier bandwidth

Test: cts
Bug: 173806995
Change-Id: I5dd23812fe72b751ab29459111d0bc8f6cc63e39
Merged-In: I5dd23812fe72b751ab29459111d0bc8f6cc63e39
2021-01-29 11:30:43 -08:00
calvinpan
c20a67c5c5 Add TelephonyShellCommand to get EAB contact
Bug: 174166728
Test: atest
Change-Id: I102f67d7747c1bdd905a23d5deca6fbbd91ad890
2021-01-29 01:41:33 +00:00
Treehugger Robot
7bbf421612 Merge "Throw IllegalStateException to fail fast in IMS" 2021-01-28 23:59:11 +00:00
Jiashen Wang
f2193be3f0 Merge changes from topics "downloadable_init_change_1", "downloadable_init_change_2"
* changes:
  Do now throw exception when activation code is empty
  Init DownloadableSubscription with Confirmation Code
2021-01-28 19:53:49 +00:00
James Lin
4548fab7d6 Merge "Expose the RCS UCE APIs for capabilities request with presence mechanism." 2021-01-28 19:35:54 +00:00
Jiashen Wang
68418a0147 Do now throw exception when activation code is empty
Bug: 169276772
Test: 13352325
Change-Id: Ia8fd0ab98c33d1e30b4fce1bad53b1c628364725
Merged-In: Ia8fd0ab98c33d1e30b4fce1bad53b1c628364725
2021-01-27 17:05:37 -08:00
Jiashen Wang
738abf603a Init DownloadableSubscription with Confirmation Code
Currently carrier apps are not able to pass the confirmation code along
with the downloadable subscription because carrier apps do not have the
permission to set the CC. So carrier apps have to rely on LUI's scree
for entering the confirmation code. In order to make the process more
flexable for carriers, we decided to add a method to initialize a
Downloadable Subscription with the confirmation code.

Test: ag/13028582
Bug: 169276772
Change-Id: Icfa8b0f5b1699d24d8e39c3297ed25c7d1607739
Merged-In: Icfa8b0f5b1699d24d8e39c3297ed25c7d1607739
2021-01-27 16:30:25 -08:00
James.cf Lin
daaf205e18 Expose the RCS UCE APIs for capabilities request with presence mechanism.
The contact's capabilities request APIs are exposed to be the SystemAPI and add the CTS for these APIs.

Build: 174656329
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Change-Id: Id8a3be587f200dfee8f7c6343ed771e7ac738568
2021-01-28 02:59:30 +08:00
Daniel Bright
d7d4b0ca85 Merge "Add S-NSSAI" 2021-01-27 18:48:54 +00:00
Brad Ebinger
a9444a8ef6 Throw IllegalStateException to fail fast in IMS
Fail fast by throwing an IllegalStateException in IMS
rather than creating potential subtle bugs where listeners
overwrite each other.

Bug: 175810194
Test: atest FrameworksTelephonyTests ImsCommonTests
Change-Id: Ib1fc7d6120244df3649fa2afe5b3f738deea597c
2021-01-27 00:02:25 +00:00
Hall Liu
b6622aeeb6 Merge "Correct name of roaming RTT config" 2021-01-26 22:26:56 +00:00
Daniel Bright
dd7a9031eb Add S-NSSAI
* Added support for S-NSSAI
* Created SliceInfo that represents a S-NSSAI as defined in
  3GPP TS 24.501.
* Added slice info to setupDataCall and DataCallResponse within
  DataService related classes

Bug: 169960538
Test: made ims phone call
Change-Id: I8f136937f127ff14fedd790526544d5775010da8
Merged-In: I8f136937f127ff14fedd790526544d5775010da8
2021-01-26 13:53:58 -08:00