Commit Graph

10373 Commits

Author SHA1 Message Date
Zoey Chen
761614c85f Merge "[Telephony] Fix the unknown value of ARFCN from -1 to INT.MAX" 2021-03-09 07:06:06 +00:00
Hui Wang
629a24b258 Merge "Update Provisioning API name and doc per API review" 2021-03-08 22:02:20 +00:00
Daniel Bright
e69ec553b4 Hide start and cancel handover from api surface
* Since AOSP is in control of when IWlan allocates and releases the
  pdu session id, it doesn't need to react to start handover and
  cancel handover.
* CellularDataService can still use these methods since it is in
  AOSP.

Bug: 177607048
Test: make
Merged-In: I9e65ad178a843e92a59e5e4f7debd4d7b77a3edb
Change-Id: I9e65ad178a843e92a59e5e4f7debd4d7b77a3edb
2021-03-05 13:41:17 -08:00
Hui Wang
944ad68449 Update Provisioning API name and doc per API review
Bug: 178456092
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: I2a5c6c9a760479361ce66401f87316dd3c9d909d
2021-03-05 03:16:39 +00:00
SongFerng Wang
b332627a15 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" 2021-03-05 01:59:53 +00:00
Brad Ebinger
9a13fb1dbf Merge "Parse params needed for SipDelegate routing" 2021-03-05 01:11:02 +00:00
Brad Ebinger
ca282c8cbf Merge "Define new permission to perform IMS RCS Reg actions and integrate ACCESS_IMS_SINGLE_REGISTRATION into APIS" 2021-03-04 23:17:13 +00:00
Zoey Chen
0aed75aa77 [Telephony] Fix the unknown value of ARFCN from -1 to INT.MAX
Bug: 181792548
Test: atest CellIdentityTest, atest CtsTelephonyTestCases:android.telephony.cts.PhysicalChannelConfigTest
Change-Id: Idb22afc743e81d2fe38f0be683aeb7ca3398aa50
2021-03-04 16:47:59 +08:00
SongFerngWang
e206456a16 Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType
- Add more reasons of allowed network type
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
- Add @systemApi for below
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_POWER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
  - setAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesBitmask API
- Add Public for below
  - CARRIER_NR_AVAILABILITY_NONE
  - CARRIER_NR_AVAILABILITY_NSA
  - CARRIER_NR_AVAILABILITY_SA
  - KEY_CARRIER_NR_AVAILABILITY_INT
- @Deprecated API
  - setPreferredNetworkTypeBitmask
  - getPreferredNetworkTypeBitmask
  - setAllowedNetworkType
  - getAllowedNetworkType
- Add a new way to notify allowedNetworkType at PhoneStateListener
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)

Change-Id: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
Merged-In: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
2021-03-04 14:58:54 +08:00
Brad Ebinger
3215beb9e0 Parse params needed for SipDelegate routing
Add getViaBranchParameter and getCallId parameter to SipMessage
API in order to allow the SipDelegate to quickly route SipMessages
without requiring the app to peak into the headers.

Bug: 181591815
Test: atest CtsTelephonyTestCases
Change-Id: Iac94f73335ac5caa634b31c10a675aaf91c13af7
2021-03-04 02:06:28 +00:00
Sarah Chin
08b9f41364 Merge "APIs for 5G slicing" 2021-03-03 18:42:20 +00:00
Sarah Chin
e97855c10f APIs for 5G slicing
Create TrafficDescriptor class
Create new APN ENTERPRISE
Update setupDataCall and DataCallResponse to take TrafficDescriptor and
matchAllRuleAllowed
Move ApnTypes from Annotation to ApnSetting

Bug: 179312227
Test: atest FrameworksTelephonyTests
Change-Id: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
Merged-In: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
2021-03-03 14:16:21 +09:00
Brad Ebinger
ded80f3e33 Move illegal state detection in stub classes to warning
In order to increase stability, move *ImplBase listeners to warning for
now until we can find the source of the error.

Fixes: 179217608
Test: manual; kill phone process
Merged-In: If1813ed6c82b778018d61691018604b6891ff34e
Change-Id: If1813ed6c82b778018d61691018604b6891ff34e
2021-03-03 00:59:27 +00:00
Hall Liu
bff8389872 Merge "Expose ApnSetting#TYPE_*_STRING constants" 2021-03-02 23:20:15 +00:00
Hall Liu
b8cc532986 Merge "Expose the carrier signaling broadcasts" 2021-03-02 22:54:18 +00:00
Hall Liu
39087a439e 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
Merged-In: I15d032ee1e31d9be847c2f084161f8555c8172c1
2021-03-02 13:38:53 -08:00
Jayachandran C
82984a8ca1 Add QoS filter matching and unit tests
Bug: 158315614
Test: atest com.android.internal.telephony.dataconnection.QosCallbackTrackerTest

Merged-In: I7d6d66eba5612182703826b60b4d735230572eea
Change-Id: I7d6d66eba5612182703826b60b4d735230572eea
2021-03-02 13:31:26 -08:00
Hall Liu
dee1a5ad8c Expose ApnSetting#TYPE_*_STRING constants
Expose these string representations of APN types as SystemApi, and add
utility methods to convert between these and their integer equivalents.

Fixes: 173133122
Test: atest ApnSettingTest TelephonyRegistryTest
Change-Id: I8095ebc4f766be52042eec1c8ee043bf2e2dabfb
Merged-In: I8095ebc4f766be52042eec1c8ee043bf2e2dabfb
2021-03-02 13:25:47 -08:00
Hui Wang
a340c35a86 Merge "Notify rcs config as needed when RCS service ready" 2021-03-02 19:20:38 +00:00
Chiachang Wang
237d2d47a4 Merge "Revert "Expose NetworkRegistrationInfo.getNrState() as public API"" 2021-03-02 06:31:26 +00:00
Brad Ebinger
29dfa1cd76 Define new permission to perform IMS RCS Reg actions and integrate ACCESS_IMS_SINGLE_REGISTRATION into APIS
Move from MODIFY_PHONE_STATE to ACCESS_IMS_SINGLE_REGISTRATION
as per design doc.

Bug: 149426399
Bug: 173652571
Bug: 168923956
Test: atest CtsTelephonyTestCases
Merged-In: I6d4ae879d9d2b347f6576ea20f9e42454b39936b
Merged-In: Idabfda6853ec2a24544da5253ad0e43c47a6cc69
Change-Id: Ie0e1198c8b9cfa0bab90407c8d35273159f63302
2021-03-02 11:39:02 +08:00
Hui Wang
e4fb450fe0 Notify rcs config as needed when RCS service ready
Bug: 180503768
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Merged-In: I859a9b6bd439cca01aeed8448f684e17cb80d397
Change-Id: I859a9b6bd439cca01aeed8448f684e17cb80d397
2021-03-01 22:51:42 +00:00
Brad Ebinger
44d6bdc332 Merge "[RCS UCE] Define a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission for associated RCS UCE APIs" 2021-02-26 20:45:18 +00:00
James Lin
a2d03f9eec Merge "Update the UCE OPTIONS API" 2021-02-26 09:49:57 +00:00
Daniel Bright
cc318221a5 Merge "Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"" 2021-02-26 02:34:42 +00:00
Daniel Bright
c018a8ce65 Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"
0acda00463

Change-Id: Ia55b965fc43efa239ec6d502f37fc8ef6b6bb916
Merged-In: Ie31d32a08b10b8c125f27832e81a3e65b6d8767a
2021-02-25 18:50:56 +00:00
Chiachang Wang
1e427c1e0a Revert "Expose NetworkRegistrationInfo.getNrState() as public API"
getNrState() was exposed. However, it doesn't actually get the NR
state in most cases and it is a mixture of a couple different
concepts. This API does not provide the correct 5G NR state, so
revert it from API surface and also the related change.

Bug: 171183530
Test: make update-api ; m
Change-Id: I651ed14500be5af45dd896ae5da1da36ad249a26
2021-02-25 15:57:34 +08:00
Rambo Wang
0dd3627b72 Merge "SignalStrengthUpdateRequest#getLiveToken should not be in current.txt" 2021-02-25 00:18:22 +00:00
Daniel Bright
3e21e0ab47 Merge "Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"" 2021-02-24 19:59:07 +00:00
Daniel Bright
0acda00463 Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"
Revert "Update getRadioInterfaceCapabilities return type"

Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"

Revert submission 1597527-capability_allowed_network_types

Reason for revert: Fix Build
Reverted Changes:
Icdee3444d:Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED
I531256f85:Update getRadioInterfaceCapabilities return type
I92c2d019a:Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED

Change-Id: I3d4dcea056079851095a267f04ea528c8ddbb3ba
2021-02-24 19:51:22 +00:00
James.cf Lin
8916536822 [RCS UCE] Define a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission for associated RCS UCE APIs
Define a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission and move from MODIFY_PHONE_STATE to ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission for associated APIs.

Bug: 174861641
Bug: 154764486
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Merged-In: I863f2e6e1afffce5e8ea103790cf368c59734029
Merged-In: I978161a230ce23e17d3b16cc92c3e82ea1cbb407
Change-Id: I3b524158b81dc4437812e7b57fb3adcd17c02c71
2021-02-25 03:49:24 +08:00
Rambo Wang
6dd150461b SignalStrengthUpdateRequest#getLiveToken should not be in current.txt
A missing asterisk in the javadoc causes the hidden API leak into current.txt

Bug: 180395362
Test: make update-api && make; // and double check manually
Change-Id: If86208136fb7402b132c62fa2caad4df3366e8d9
2021-02-24 18:47:25 +00:00
Daniel Bright
9816c0ce86 Merge "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED" 2021-02-24 18:36:18 +00:00
James.cf Lin
12b5644a43 Update the UCE OPTIONS API
Change the UCE OPTIONS api from
"OptionsRequestCallback#onRespondToCapabilityRequest(RcsContactUceCapability caps)"
to
"OptionsRequestCallback#onRespondToCapabilityRequest(RcsContactUceCapability caps, boolean isBlocked)"

Bug: 180619695
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Change-Id: I7ef0bc7142079b4bf2645f09ca710a13530a10c0
2021-02-24 15:20:44 +08:00
Michele Berionne
ae77970ae1 Add new API for unattended reboot.
CTS-Coverage-Bug: 179310594
Bug: 160784387
Test: manual
Change-Id: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
Merged-In: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
(cherry picked from commit 726fa0a5f4)
2021-02-22 19:43:09 +00:00
Daniel Bright
6fccdbb8d3 Merge "Added javadoc to apn retry \ throttling related methods" 2021-02-22 18:13:28 +00:00
Daniel Bright
bc1768cbde Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED
* Made the HAL version available to radio interface capabilities
* With version 1.6 of the Radio HAL, a new function was added to enforce
the user network types preference (setAllowedNetworkTypeBitmap).
Depending on the version implemented by the modem the
setPreferredNetworkType and setAllowedNetworkTypes TelephonyManager API
methods may use this new HAL method or rely on the previous method
(setPreferredNetworkType). This new capability enum value can be used by
TelephonyManager consumers to know which HAL function is effectively
backing up their calls.

Bug: 163168917
Test: checked logs, created RadioConfigCapabilitiesResponseTest
Merged-In: Ie31d32a08b10b8c125f27832e81a3e65b6d8767a
Change-Id: I92c2d019ad594e6604503c57a52c3c2cf8660f56
2021-02-21 17:33:46 -08: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
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