Commit Graph

10438 Commits

Author SHA1 Message Date
Jack Yu
b0baf7254d Added the missing constant to intdef
Fix: 169660451
Test: Manual
Merged-In: I705b56e158dd66cb8084b1efa5f1e7f2195295a2
Change-Id: I705b56e158dd66cb8084b1efa5f1e7f2195295a2
(cherry picked from commit 79593b16c8)
2021-04-02 11:09:32 -07:00
Jack Yu
ffb09e11c1 Merge "Moved getId API from system to public" 2021-03-31 21:56:53 +00:00
Hall Liu
4406bc8575 Add carrier config keys for GBA
Add keys for values that are expected by carriers when requesting keys

Bug: 182425585
Test: manual
Change-Id: I03487dca483cd91ddcafe9487f211eb3069caf5f
Merged-In: I03487dca483cd91ddcafe9487f211eb3069caf5f
2021-03-30 22:22:41 +08:00
James Lin
47dc400888 Merge "Updated the RcsCapabilityExchangeImplBase APIs" 2021-03-30 01:57:10 +00:00
Nathan Harold
f3a83b6c9c Merge changes from topic "telephony-background-cb"
* changes:
  Add a Compat Flag for Throwing For Null Telephony
  Ensure Async APIs receive callbacks
2021-03-29 17:58:41 +00:00
Nathan Harold
31c7d61624 Add a Compat Flag for Throwing For Null Telephony
In order to prevent a sea of random crashes as part
of migrating to throwing behavior for callback APIs that
hit null ITelephony and null IOns objects, this change
re-introduces backwards-compatible behavior for APIs that
are being "upgraded" to throwing behavior.

Bug: 182185642
Test: atest CtsTelephonyTestCases
Change-Id: I492ba6a79e74350986afbd6ab5cc5e7b05b8cd35
2021-03-25 16:45:59 -07:00
Nathan Harold
8c23380d2f Ensure Async APIs receive callbacks
There are currently a couple silent failure for
APIs that are defined as asynchronous.
-If the remote binder object is null then in some cases
 the response is dropped. It's important that the response
 be triggered on a thread other than the calling one due
 to the oddball possibility of non-reentrant locking.
-If the remote dies while awaiting a response, the RemoteException
 is generally dropped, and because the API is asynchronous there is
 no way for the caller to know, leaving a dangling async request.

This CL ensures that remote exceptions due to process death invoke
the asynchronous callbacks, delivering an error message using the
BackgroundThread to ensure that the calls are received on a thread
other than the original caller's.

Bug: 182185642
Test: atest CtsTelephonyTestCases
Change-Id: I5121734194f07c53f94fb6585da3c90e3e2c4bf7
2021-03-25 15:46:15 -07:00
Jayachandran C
eb1bdda971 Fix QOS API review comments
Bug: 155176305
Bug: 182317794
Test: atest ConnectivityServiceTest
      atest QosCallbackTrackerTest
Change-Id: I234318d6f32179ef3b79b3a480faf52b620fe58e
2021-03-25 04:42:35 +00:00
Rambo Wang
92f92c7ce0 Merge "Redact location info from PhysicalChannelConfig" 2021-03-25 00:43:25 +00:00
Hui Wang
11149deba4 Merge "Integrate RCS provisioning updates into SipTransport" 2021-03-24 21:05:46 +00:00
Rambo Wang
8a11bfc999 Redact location info from PhysicalChannelConfig
If the registrant process is neither phone nor system,
the location info (e.g. physical cell id) will be redacted
before sending the PhysicalChannelConfig change to registrant.

Bug: 182605476
Test: atest com.android.internal.telephony.TelephonyRegistryTest
Change-Id: I05015d06f3f7301bdebfc22d1a9b32fd8bbbfe69
2021-03-24 11:09:54 -07:00
Jayachandran Chinnakkannu
bd3a33ed9f Merge "Add 5G/NR QOS support" 2021-03-24 17:44:48 +00:00
James.cf Lin
69297723f4 Updated the RcsCapabilityExchangeImplBase APIs
1. Remove the executor from the constructor of the class RcsCapabilityExchangeImplBase
2. Rename the API name from removeCapabilityExchangeImpl to destroyCapabilityExchangeImpl

Bug: 180616706
Test: atest RcsUceAdapterTest ImsServiceTest
Change-Id: I9c11e384992345886d9c4a744dd4d734884a303f
2021-03-24 16:16:45 +00:00
Jayachandran C
af09816c25 Add 5G/NR QOS support
Bug: 155176305
Bug: 182317794
Test: atest ConnectivityServiceTest
      atest QosCallbackTrackerTest

Change-Id: Idf6d8a7c3b80bc50a2c1244ceaefea9381d40c2f
2021-03-23 19:14:21 -07:00
Rambo Wang
c289c9b0a2 Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode"
* changes:
  Export ServiceState#DataRegState into telephony provider
  Public ServiceState#duplexMode in telephony provider
2021-03-24 01:22:51 +00:00
Hui Wang
3f7fe40e49 Integrate RCS provisioning updates into SipTransport
Bug: 173828167
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Merged-In: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
Change-Id: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
2021-03-24 00:21:28 +00:00
James Lin
fe4b99ee22 Merge "UCE OPTIONS APIs updated" 2021-03-23 18:47:44 +00:00
Zongheng Wang
ab2c1e5777 Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" 2021-03-23 18:47:36 +00:00
Rambo Wang
cff9760e07 Export ServiceState#DataRegState into telephony provider
Keep ServiceState#getDataRegState hide. Apps can get the same
info from telephony provider without loation permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I1ba72a5b767761d2f7bd1b52459a0c9d101061a2
2021-03-23 09:33:21 -07:00
Zongheng Wang
7b8f79b641 Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu
Test: atest bluetooth_test_common
Test: atest CtsTelephonyTestCases
Bug: 183051612
Change-Id: If15d31eb699e2c5d3e371628dba8adbaa9bbebfa
2021-03-22 21:31:58 -07:00
Jack Nudelman
a963612854 Require calling package to be allowlisted for thermal mitigation.
Test: make, manual verification
Bug: 180015298
Change-Id: I1884facf5d37e4caa82697dab7e2a30d735f214e
2021-03-22 16:33:56 -07:00
James.cf Lin
7eb2671ae1 UCE OPTIONS APIs updated
1. Expose OPTIONS APIs in the RcsContactUceCapability.
2. Update the feature tags type from List to Set.

Bug: 181175307
Test: atest RcsUceAdapterTest ImsServiceTest RcsContactUceCapabilityTest
Merged-In: Id4499d7f9f6eb2b572902d76129f9ad388354d9f
Change-Id: Id4499d7f9f6eb2b572902d76129f9ad388354d9f
2021-03-23 03:13:45 +08:00
SongFerng Wang
b24ba9d52f Merge "KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY change type as IntArray" 2021-03-22 19:06:48 +00:00
Treehugger Robot
965d021bf5 Merge "Make isDataCapable a public API" 2021-03-22 12:00:20 +00:00
Jack Nudelman
1cc1558ea6 Merge "Add capability for thermal mitigation." 2021-03-22 11:38:10 +00:00
SongFerngWang
98edbb0bbc KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY change type as IntArray
Bug: 179814490
Test: build pass
Change-Id: Ica29b8aee243168bb7719f01972075d54ff763e9
Merged-In: Ica29b8aee243168bb7719f01972075d54ff763e9
2021-03-22 07:16:59 +00:00
SongFerng Wang
cfa02cd687 Merge "The phone didn't reload the allowed Network Type" 2021-03-21 16:45:59 +00:00
Hui Wang
98763306a2 Merge "Add VoPS support info for NR" 2021-03-21 04:12:52 +00:00
Treehugger Robot
258ecb55a5 Merge "Return 0 instead of throwing RuntimeException from getSmsCapacityOnIcc" 2021-03-20 00:28:35 +00:00
Jack Yu
6a33ee19a7 Moved getId API from system to public
Fix: 169641293
Test: Build
Change-Id: I5e766c8d30bbaf9010bc4a1bc621b0db6f988cc8
2021-03-19 20:33:40 +00:00
SongFerngWang
84bced4979 The phone didn't reload the allowed Network Type
Reload the allowed Network after device insert SIM card.
Change the behavior of notifyAllowedNetworkTypesChanged.
Log print String representation of the allowed network types.
Bug: 180903931
Bug: 179814490
Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason_moreReason
atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason
atest android.telephony.cts.TelephonyCallbackTest

Change-Id: Icfffea3c74ecf6938455d841da9d6175f6aa07de
Merged-In: Icfffea3c74ecf6938455d841da9d6175f6aa07de
2021-03-19 21:56:17 +08:00
SongFerng Wang
3ccc2738e2 Merge "Implementation of "Enable 2G" for Settings." 2021-03-19 13:09:55 +00:00
Zoey Chen
a805d39229 Merge "[Telephony] Return if context is null when register TelephonyCallback" 2021-03-19 09:28:41 +00:00
Hui Wang
eb0ef951d4 Add VoPS support info for NR
Bug: 167991878
Test: atest FrameworksTelephonyTests:CellularNetworkServiceTest
Test: atest FrameworksTelephonyTests:ServiceStateTrackerTest
Test: atest CtsTelephonyTestCases:VopsSupportInfoTest
Change-Id: Ib7ee266d2fb2bbfc16b33c9c79f2ef2a576a8e81
2021-03-18 23:33:54 +00:00
Kai Shi
26ba4d0d09 Merge "Add the LCE system API" 2021-03-18 21:23:34 +00:00
Zoey Chen
8eac3a3ff1 [Telephony] Return if context is null when register TelephonyCallback
Bug: 183064691
Test: make
Change-Id: Ic77a6085f05c942dcd7514bc78b7bfa46938ec38
2021-03-18 11:05:12 +08:00
Kai Shi
857391f361 Add the LCE system API
Add the link capacity estimate system API.
Remove the system API of getCarrierBandwidth() and CarrierBandwidth as
they are replaced by the new LCE system API in PhoneStateListener.

Bug: 180434672
Bug: 176814680
Test: manual test of the new LCE system API in LinkBandwidthEstimator
Test: atest -c PhoneStateListenerTest

Merged-In: I5899acf02006a164e31f9b82aeaa7974dd6d2869
Change-Id: I5899acf02006a164e31f9b82aeaa7974dd6d2869
2021-03-17 18:56:11 -07:00
Remi NGUYEN VAN
a3648a387c Make isDataCapable a public API
There is no definitive API to determine whether a device supports mobile
data; this API fills the gap.

Bug: 146206136
Test: m
Change-Id: I5daa302063ee4e9c27dd9ba1a09d65af80ed9d99
2021-03-18 10:47:19 +09:00
Amit Mahajan
c2f06b0e63 Return 0 instead of throwing RuntimeException from getSmsCapacityOnIcc
Test: none
Bug: 170704921
Change-Id: I7d6985ab1aaf830c4560195189d01a661d478dbe
2021-03-17 15:43:57 -07:00
Amit Mahajan
51937be778 Clarifying documentation for SliceInfo per API council feedback.
Test: none; documentation only change
Bug: 180125761
Change-Id: Ic26598802d0648e7a12ed0ec78c01afc1a72598f
2021-03-17 11:06:59 -07:00
Yomna Nasser
1de59a9c59 Implementation of "Enable 2G" for Settings.
(1) Adds KEY_HIDE_ENABLE_2G_BOOL to CarrierConfigManager, and
(2) Adds new reason ALLOWED_NETWORK_TYPES_REASON_ENABLE_2G.

Test: manual & atest -c Enable2gPreferenceControllerTest
Bug: b/163168917
Change-Id: I81052549f8dde491697c35365320145fd24c3842
Merged-In: I81052549f8dde491697c35365320145fd24c3842
2021-03-17 20:21:21 +08:00
Hall Liu
2ab1cc0fac Merge "Add carrier config keys for RTT-VT compat" 2021-03-16 23:21:34 +00:00
Michele Berionne
11773facb7 Merge "Clarification for PREPARE_UNATTENDED_REBOOT_ERROR" 2021-03-16 14:55:58 +00:00
Hall Liu
f4eae0f0e3 Add carrier config keys for RTT-VT compat
Some carriers don't allow downgraded RTT calls to be upgraded to VT or
vice versa. Add carrier config keys to capture this behavior.

Bug: 175659924
Test: NA
Change-Id: I03916e1fab9abe58733c06f351b6846ddc29f337
2021-03-15 16:06:48 -07:00
Michele Berionne
46af911ec8 Clarification for PREPARE_UNATTENDED_REBOOT_ERROR
Bug: 181036567
Test: make
Change-Id: I1822930d9ce05d2efdd05568e9df52a4e7ad0572
2021-03-15 22:49:54 +00:00
Jack Nudelman
a33f939ef4 Add capability for thermal mitigation.
Test: make
Bug: 173806949
Change-Id: I108f05662a4dd65f64c6462d5493809e2444b8ad
2021-03-15 12:01:09 -07:00
Sooraj Sasindran
58489d1d48 Merge "Allow REQUEST_NOT_SUPPORTED for nr dual connectivity config" 2021-03-15 04:38:24 +00:00
James Lin
29c9a7a937 Merge "UCE API change: Remove the unused RCS UCE APIs" 2021-03-12 23:10:44 +00:00
Sooraj Sasindran
d3b3e00a05 Allow REQUEST_NOT_SUPPORTED for nr dual connectivity config
Allow REQUEST_NOT_SUPPORTED for nr dual connectivity configuration
and query

Bug: 181648176
Test: CTS with presubmit
Change-Id: Ib10dcc083d9aae7b905aa008dff05d2975865c71
2021-03-12 13:43:21 -08:00
Brad Ebinger
3db11be5d7 Merge "Add a new Config to map PIDF service-description to IMS Feature Tags" 2021-03-12 19:30:30 +00:00