summaryrefslogtreecommitdiff
path: root/telephony/java
AgeCommit message (Collapse)Author
2021-03-08Update the RCS UCE APIs.James.cf Lin
Add the RCS APIs and keep the original APIs. The original APIs will be removed when the applications call the new APIs. 1) document the ImsException on the API requestAvailability 2) Use Collection instead of List for the contacts 3) Use Instant object to represent the timestamp information Bug: 180126217 Test: atest ImsServiceTest RcsUceAdapterTest Merged-In: I56a54cd07e8f785d7db8094b9b8a0191d6e28282 Change-Id: I56a54cd07e8f785d7db8094b9b8a0191d6e28282
2021-03-06Add a new Config to map PIDF service-description to IMS Feature TagsBrad Ebinger
1) In order to support publishing carrier extenstions in the SIP PUBLISH PIDF XML file, this change introduces a new carrier config that allows a customizable mapping from service-description to IMS feature tag groups 2) Add better logging in dumpsys for SIP PUBLISH. Bug: 180868933 Test: atest CtsTelephonyTestCases:ImsServiceTest Merged-In: I69a7eed66591841df2c0bef043747b7fff3a48cf Change-Id: I69a7eed66591841df2c0bef043747b7fff3a48cf
2021-03-05Hide start and cancel handover from api surfaceDaniel Bright
* 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-05Rename AllowedNetworkType to AllowedNetworkTypesSongFerngWang
Reference the ag/q/topic:%22b_171791177%22+(status:open%20OR%20status:merged) and ag/q/topic:"getAllowedNetworkTypeBitmap"+(status:open%20OR%20status:merged) Bug: 161434786 Test: build pass Change-Id: I48d36d73d016f7aa7fabec25a725abe03b1dee8d Merged-In: I48d36d73d016f7aa7fabec25a725abe03b1dee8d
2021-03-05Merge "[Telephony] Remove the dead code setRadioCapability in ITelephony"Zoey Chen
2021-03-05Update Provisioning API name and doc per API reviewHui Wang
Bug: 178456092 Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest Change-Id: I2a5c6c9a760479361ce66401f87316dd3c9d909d
2021-03-05Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType"SongFerng Wang
2021-03-05Merge "Parse params needed for SipDelegate routing"Brad Ebinger
2021-03-04Merge "Define new permission to perform IMS RCS Reg actions and integrate ↵Brad Ebinger
ACCESS_IMS_SINGLE_REGISTRATION into APIS"
2021-03-04[Telephony] Remove the dead code setRadioCapability in ITelephonyZoey Chen
Bug: 181156124 Test: make Change-Id: I5b8ebcdcc60815de93420c742740032a0d21f028
2021-03-04[Telephony] Fix the unknown value of ARFCN from -1 to INT.MAXZoey Chen
Bug: 181792548 Test: atest CellIdentityTest, atest CtsTelephonyTestCases:android.telephony.cts.PhysicalChannelConfigTest Change-Id: Idb22afc743e81d2fe38f0be683aeb7ca3398aa50
2021-03-04Improve AllowedNetworkTypesForReason and refactor PreferredNetworkTypeSongFerngWang
- 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-04Parse params needed for SipDelegate routingBrad Ebinger
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-03Merge "APIs for 5G slicing"Sarah Chin
2021-03-03APIs for 5G slicingSarah Chin
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-03Move illegal state detection in stub classes to warningBrad Ebinger
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-02Merge "Expose ApnSetting#TYPE_*_STRING constants"Hall Liu
2021-03-02Merge "Expose the carrier signaling broadcasts"Hall Liu
2021-03-02Expose the carrier signaling broadcastsHall Liu
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-02Add QoS filter matching and unit testsJayachandran C
Bug: 158315614 Test: atest com.android.internal.telephony.dataconnection.QosCallbackTrackerTest Merged-In: I7d6d66eba5612182703826b60b4d735230572eea Change-Id: I7d6d66eba5612182703826b60b4d735230572eea
2021-03-02Expose ApnSetting#TYPE_*_STRING constantsHall Liu
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-02Merge "Notify rcs config as needed when RCS service ready"Hui Wang
2021-03-02Merge "Support telephoy command to set test mode for RCS single registration"Hui Wang
2021-03-02Merge "Revert "Expose NetworkRegistrationInfo.getNrState() as public API""Chiachang Wang
2021-03-02Define new permission to perform IMS RCS Reg actions and integrate ↵Brad Ebinger
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-01Notify rcs config as needed when RCS service readyHui Wang
Bug: 180503768 Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest Merged-In: I859a9b6bd439cca01aeed8448f684e17cb80d397 Change-Id: I859a9b6bd439cca01aeed8448f684e17cb80d397
2021-03-01Support telephoy command to set test mode for RCS single registrationHui Wang
Bug: 181054754 Test: Manual Merged-In: Id34c212e536b47c61bc1939ef056905fc26b4df2 Change-Id: Id34c212e536b47c61bc1939ef056905fc26b4df2
2021-02-26Merge "[RCS UCE] Define a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission ↵Brad Ebinger
for associated RCS UCE APIs"
2021-02-26Merge "Update the UCE OPTIONS API"James Lin
2021-02-26Merge "Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED""Daniel Bright
2021-02-25Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"Daniel Bright
0acda00463e02bfe4d0018563e3225f29078bd4a Change-Id: Ia55b965fc43efa239ec6d502f37fc8ef6b6bb916 Merged-In: Ie31d32a08b10b8c125f27832e81a3e65b6d8767a
2021-02-25Revert "Expose NetworkRegistrationInfo.getNrState() as public API"Chiachang Wang
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-25Merge "SignalStrengthUpdateRequest#getLiveToken should not be in current.txt"Rambo Wang
2021-02-24Merge "Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED""Daniel Bright
2021-02-24Revert "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"Daniel Bright
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-25[RCS UCE] Define a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission for ↵James.cf Lin
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-24SignalStrengthUpdateRequest#getLiveToken should not be in current.txtRambo Wang
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-24Merge "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"Daniel Bright
2021-02-24Update the UCE OPTIONS APIJames.cf Lin
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-22Add new API for unattended reboot.Michele Berionne
CTS-Coverage-Bug: 179310594 Bug: 160784387 Test: manual Change-Id: I59b7ff7afec9846a114ee8d20f14d22cf69f0680 Merged-In: I59b7ff7afec9846a114ee8d20f14d22cf69f0680 (cherry picked from commit 726fa0a5f400f95558dcb31effbb98fee67b54ed)
2021-02-22Merge "Added javadoc to apn retry \ throttling related methods"Daniel Bright
2021-02-21Add CAPABILITY_ALLOWED_NETWORK_TYPES_USEDDaniel Bright
* 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-21Added javadoc to apn retry \ throttling related methodsDaniel Bright
Bug: 175092152 Test: N/A Merged-In: I35a3b97f3e52eef68310a92178bb14495641c6e7 Change-Id: I35a3b97f3e52eef68310a92178bb14495641c6e7
2021-02-21Simplified the initial attach APN logicJack Yu
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 0bebba7378f5281ed79860942f587b33723d596f)
2021-02-17Merge "Allow optional package names in carrier configs"Hunter Knepshield
2021-02-17Merge "[RCS UCE] Expose the OPTIONS APIs to support OPTIONS mechanism"Brad Ebinger
2021-02-17[RCS UCE] Expose the OPTIONS APIs to support OPTIONS mechanismJames.cf Lin
Expose OPTIONS portion of capability exchange APIs. Bug: 174166957 Test: atest CtsTelephonyTestCases Change-Id: I21277fce055f31400f2018b6f81102225cb7c7c8
2021-02-16Add UCS-2 support for SimPhonebookContractMarcus Hagerott
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-15Allow optional package names in carrier configsFranck Perez
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-12Merge "Add the ability to send the feature tags associated with IMS ↵Brad Ebinger
registration"