Commit Graph

10508 Commits

Author SHA1 Message Date
Treehugger Robot
df7fddd96e Merge "Should not try IMS or EMERGENCY APN for initial-attach." 2021-05-25 02:48:51 +00:00
James.cf Lin
3a2c53106a Add another OptionsBuilder constructor with the source type as one of its parameter.
Bug: 187620915
Test: atest RcsUceAdapterTest ImsServiceTest
Merged-In: I74c69800125f8c4a243e80ed47c5134eda8d5a78
Change-Id: I74c69800125f8c4a243e80ed47c5134eda8d5a78
2021-05-21 20:32:44 +08:00
Sarah Chin
d4a99869a8 Merge "Optimize SIM phonebook feature with new APIs" 2021-05-21 04:21:15 +00:00
Brad Ebinger
bd5ef43130 Merge "Clarify some UCE API docs" 2021-05-19 17:08:42 +00:00
Brad Ebinger
7fc88ee1c5 Clarify some UCE API docs
Adds some clarifications for how UCE operates
in Android 12.

Bug: 188580687
Test: docs only change
Merged-In: I139455c286378ccfac876014656f8d3177bdba9d
Change-Id: I139455c286378ccfac876014656f8d3177bdba9d
2021-05-18 23:01:27 +00:00
Mengjun Leng
25eb471790 Optimize SIM phonebook feature with new APIs
1. Declare the constant events for loading and updating SIM contacts.
2. Introduce radio HAL capability to control the SIM phonebook feature.

Bug: 23044962
Change-Id: Ice0cc1cddc832b5ae0f272348503e28842fccbb6
Merged-In: Ice0cc1cddc832b5ae0f272348503e28842fccbb6
2021-05-18 21:28:58 +00:00
Meng Wang
f9a9696242 Should not try IMS or EMERGENCY APN for initial-attach.
This helps to avoid the problem where the auto-generated
IMS or EMERGENCY APN being used for initial-attach due to
racing conditions.

Some carriers may require IMS APN for initial-attach. That case,
the IA type should have been added to the APN explicitly to prevent
the DEFAULT APN from being used.

Bug: 186120396
Test: manual
Change-Id: Ic5e449e514a996f90b815e56fe136ac1f453496e
Merged-In: Ic5e449e514a996f90b815e56fe136ac1f453496e
2021-05-17 19:55:06 +00:00
Hui Wang
fb0990fa0a Merge "Update the format of RCS provisioning config XML" 2021-05-11 20:18:26 +00:00
Brad Ebinger
0ad0a88143 Merge "Add the REGISTRATION_TECH_NR Tech type" 2021-05-10 21:02:25 +00:00
James.cf Lin
cf451204eb Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status.
Bug: 186131340
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: Id3a97fc975764754d6b610478c17a501f65aa229
2021-05-08 07:33:03 +08:00
Brad Ebinger
500397d3e8 Add the REGISTRATION_TECH_NR Tech type
Adds the new NR registration technology for devices
that support IMS over NR so that the APIs can report
this technology.

Bug: 179724463
Test: atest CtsTelephonyTestCases
Merged-In: I4b0f9882dcf36e2ff7151778cbadb8e83513df5a
Change-Id: I4b0f9882dcf36e2ff7151778cbadb8e83513df5a
2021-05-07 19:08:37 +00:00
James.cf Lin
1cad8f9faf Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl
Bug: 184602965
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: Iec5fffecb9a2b8e1fb9ec47608e8316ae844037a
2021-05-04 23:40:18 +08:00
Hui Wang
0f7df5baf9 Update the format of RCS provisioning config XML
Bug: 184275686
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Merged-In: I7df3c660326c6bee3db4a4d3a032ce8f1941b15b
Change-Id: I7df3c660326c6bee3db4a4d3a032ce8f1941b15b
2021-05-04 00:42:20 +00:00
Grace Jia
e2099469d2 Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
Merged-In: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-05-03 12:19:27 -07:00
Jack Yu
e4df5d375d Merge changes from topics "unthrottle_apm", "unthrottle_on_tac_changes"
* changes:
  Unthrottle data retry in some conditions
  Unthrottle all APNs on APM
2021-05-01 08:53:11 +00:00
Jack Yu
e740257a4a Unthrottle data retry in some conditions
1. Moved the APM unthrottle logic to DataThrottler.
2. Added conditional unthrottle when TAC changes.

Fix: 169648447
Test: Manual
Merged-In: I1a7e413015ccdff3d9358cc85605325a4bff3b33
Change-Id: I1a7e413015ccdff3d9358cc85605325a4bff3b33
(cherry picked from commit c8cf1b02a3)
2021-04-30 22:51:50 -07:00
Brad Ebinger
95fe9715bc Merge "Clarify DelegateManagerCallback based on API review" 2021-04-30 22:52:15 +00:00
Brad Ebinger
71a05ba2b4 Merge "Add the ability to get Accept-Contact header params" 2021-04-30 19:12:11 +00:00
Nathan Harold
ee37ef15d4 Fix Typo in CellIdentityNr
s/fomrat/format/

Bug: 176222981
Test: compilation (docstring only change)
Change-Id: I9c488d468f3e9f207922b13c16dccbaa96c0df7f
2021-04-29 15:30:54 -07:00
Jack Nudelman
f99f7fce5d Merge changes from topics "VOIMS_OPT_IN", "d2d"
* changes:
  Add new provisioning flag for VOIMS opt-in
  Add D2D sharing level setting APIs.
2021-04-29 18:31:39 +00:00
Brad Ebinger
a2fc362eb9 Merge "Do not throw NPE if GRUU uri is not populated" 2021-04-29 16:28:40 +00:00
Jayachandran Chinnakkannu
1fe2aa14c4 Add new provisioning flag for VOIMS opt-in
Bug: 177009570
Test: By Manual
1. Call setProvisioningIntValue() and getProvisioningIntValue()

2. Enable/disable the value and dial a VoLTE call
2-1. Set value to 1
2-2. Dial a call
2-3. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
 registered and device is trying IMS PS call
2-4. Set value to 0
2-5. Dial a call
2-6. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
unregistered and device is trying (non-IMS) CS call

3. atest

Change-Id: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
Merged-In: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
2021-04-29 08:25:21 +00:00
Grace Jia
d5eb6fb0ef Add D2D sharing level setting APIs.
Test: unit test, cts test
Bug: 163085177
Change-Id: I86f88d68c8629a0329dcde7b2d17928cacec37e7
Merged-In: I86f88d68c8629a0329dcde7b2d17928cacec37e7
2021-04-29 15:27:42 +08:00
Treehugger Robot
cadc1f6086 Merge "[Telephony] Remove getChannelNumber from SDK" 2021-04-29 01:20:15 +00:00
Brad Ebinger
ebcd7d968b Clarify DelegateManagerCallback based on API review
Bug: 181764809
Test: docs only change
Change-Id: I98475f675f10ebd888c64fedf7a48a987d31883c
2021-04-29 00:00:29 +00:00
Brad Ebinger
37a3528f56 Do not throw NPE if GRUU uri is not populated
Instead of GRUU URI parsing cause NPE if the string is empty,
check to make sure the string is populated before trying to parse.

Test: atest CtsTelephonyTestCases
Change-Id: I194ed8cc0e7df359ff9cf826e233f29e80ad71ff
2021-04-28 22:46:27 +00:00
Brad Ebinger
7f4e2af723 Add the ability to get Accept-Contact header params
- Add the ability to get tag param from from and to headers
- Add the ability to parse Accept-Contact header feature
tags that start with "+" for session tracking.

Test: CtsTelephonyTestCase:SipDelegateManagerTest TeleServiceTests
Bug: 173828358
Change-Id: I29aca0911a6600b99bc462ea816bdd283751ea00
2021-04-28 22:27:16 +00:00
Treehugger Robot
c2c84d169a Merge "Expose carrier privilege rules certificates as @TestApi." 2021-04-28 22:13:50 +00:00
Zoey Chen
4f6640c559 [Telephony] Remove getChannelNumber from SDK
getChannelNumber is replaced with getDownlinkChannelNumber

Bug: 186475843
Test: make
Change-Id: Ibb5a3d7ca1abd412e7c5a6c24baeb0ad71fcfe9b
2021-04-28 11:49:24 +08:00
Brad Ebinger
3cccf87d80 Expose parsing util methods for telephony validation
Bug: 173828358
Test: atest TeleServiceTests
Change-Id: I271a36bcecb332c30f04e7fb22c45098384bc634
2021-04-26 19:33:05 +00:00
Brad Ebinger
67a02c82dc Add String Map for Message Failure causes
Bug: 173828358
Test: manual - check logs during testing
Change-Id: Ic2ca8235e11e4bbc920e105033c4473c2ac665f3
2021-04-26 19:32:49 +00:00
Jack Nudelman
1f9d1566c2 Merge "Call TelephonyProvider apis for backup/restore per-sim settings." 2021-04-23 20:31:47 +00:00
Jack Nudelman
fa17e7789c Call TelephonyProvider apis for backup/restore per-sim settings.
Bug: 172244913
Test: make, atest TelephonyProviderTest

Change-Id: I1652172f003e2fd5ab08dfdbf63dadc64e034406
Merged-In: I1652172f003e2fd5ab08dfdbf63dadc64e034406
2021-04-22 23:16:39 +00:00
James Lin
86cb5eeb1c Merge "Remove unnecessary UCE APIs because some of UCE APIs change." 2021-04-22 20:25:39 +00:00
Brad Ebinger
0305ec6109 Merge "Use a typesafe pattern for SIP Delegate configurations" 2021-04-22 15:57:15 +00:00
James.cf Lin
088f6cda78 Remove unnecessary UCE APIs because some of UCE APIs change.
Bug: 184602965
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: I269973e9eb1bf746c4ada558df0de99069f7f309
2021-04-22 18:38:17 +08:00
Hunter Knepshield
ee192b7412 Expose carrier privilege rules certificates as @TestApi.
With the updated CTS UICC spec added this year, some SIM-dependent CTS
tests will need to do runtime inspection of the certificates available
to determine which SIM the test is running with. This information may be
used to e.g. selectively enable tests only for newer SIMs if they
require the updated hardware.

Test: make
Test: atest CtsCarrierApiTestCases
Bug: 178419755
Change-Id: I34fa7392d58585e9559fef886671c759ed2d66b4
Merged-In: I942d4c0c7c786d7c8b561e5e65773367cefffb31
(cherry picked from commit 5bf8a8436f)
2021-04-21 21:04:03 -07:00
Brad Ebinger
06f96d3733 Use a typesafe pattern for SIP Delegate configurations
Moves SipDelegateImsConfiguration -> SipDelegate configuration
in order to not break existing impls and defines the new typesafe
alternative for sip configurations instead of bundles.

Bug: 181764849
Test: atest  CtsTelephonyTestCases
Change-Id: I5040f30575f7b774d6ec1e28183f6812b420087f
2021-04-22 00:26:13 +00:00
Rambo Wang
5619ee97bf Merge "Change Nci to CellInfo.UNAVAILABLE_LONG" 2021-04-21 22:53:57 +00:00
Brad Ebinger
5733e616fb Merge "Throw NPE instead of IllegalArgumentException in SipDelegateManager" 2021-04-21 16:59:26 +00:00
Zoey Chen
aa3c222643 [ANAPIC Review] Change the type of List by ANAPIC review
- Use List<Byte> since using uint8_t in radio

Bug: 183738486
Test: make
Change-Id: I5a52bc20ebd9c5ce000abd8588f2969d84c6bcd0
Merged-In: I5a52bc20ebd9c5ce000abd8588f2969d84c6bcd0
2021-04-21 05:12:28 +00:00
Brad Ebinger
8d44a5df52 Throw NPE instead of IllegalArgumentException in SipDelegateManager
Bug: 184151053
Test: atest CtsTelephonyTestCases
Change-Id: I0f672b048bb3c97e4e96241412315aabdb60fdfc
2021-04-20 21:32:44 +00:00
Sarah Chin
958f9efba5 Merge "Update carrier privilege check in enforceSubscriptionPlanAccess" 2021-04-19 20:29:09 +00:00
Treehugger Robot
f7cde977db Merge "Hide RCS PUBLISH mapping due to complicated structure" 2021-04-19 19:09:22 +00:00
Treehugger Robot
ca53d40161 Merge "Clarify SipDelegateImsConfiguration getVersion Documentation" 2021-04-19 19:08:51 +00:00
Brad Ebinger
844b7dee2a Hide RCS PUBLISH mapping due to complicated structure
Hide until we can encode complicated structures like this
in something like a parcelable.

Bug: 182370110
Test: manual
Change-Id: I1797da52bfd447f198b48bd163b1bd0944aadb58
2021-04-17 21:07:45 +00:00
Brad Ebinger
e09fc1cd18 Clarify SipDelegateImsConfiguration getVersion Documentation
Bug: 181764870
Test: docs only change
Change-Id: I5ced81d33d80ecc90f704d910c08d0625396d163
2021-04-17 20:40:43 +00:00
Mengjie Xie
9108194963 Change Nci to CellInfo.UNAVAILABLE_LONG
Problem:
CellInfoTest#testCellInfo fail
Root cause:
In CellIdentityNr.sanitizeLocationInfo, Nci is set to CellInfo.UNAVAILABLE
But in test case, CellInfo.UNAVAILABLE_LONG is expected
Solution:
Change Nci to CellInfo.UNAVAILABLE_LONG in CellIdentityNr.sanitizeLocationInfo

Bug: 185446912
Test: CellInfoTest#testCellInfo can pass
Change-Id: Idd2566c51ab388c22d76b6d6f795faba4af60d05
2021-04-15 07:13:36 +00:00
Zoey Chen
7ffe1efa71 Merge "[PhysicalChannelConfig] Add more useful logs when calculate actual frequency" 2021-04-14 16:32:35 +00:00
Zoey Chen
8e6497f7c7 [PhysicalChannelConfig] Add more useful logs when calculate actual frequency
Bug: 185102722
Test: make
Change-Id: I832e6240866ec95f407608dc67bcd4e95b78acee
2021-04-13 14:50:25 +08:00