15984 Commits

Author SHA1 Message Date
Ling Ma
da11a0da69 Update handover rule java doc
Change-Id: I784ac4b58ea64baf90ec7faf7a25dda5cd1c31cc
Merged-In: I784ac4b58ea64baf90ec7faf7a25dda5cd1c31cc
Test: atest
Bug: 222018690
2022-03-30 10:17:55 -07:00
Allen Xu
4797e99e5f Merge "Support PersistableBundle type config values in getConfigByComponentForSubId" 2022-03-29 18:33:04 +00:00
Muralidhar Reddy
2c59155cf6 [MEP] EuiccManager API modifications to support carrier apps
Remove deprecated tag from switchToSubscription API. Partially reverts the changes to switchToSubscription API with ag/16232869

Bug: 214055002
Test: manual, atest FrameworksTelephonyTests
Change-Id: I6a802ea0c85ff749b09745f629bc1a80f30ed3b9
Merged-In: I6a802ea0c85ff749b09745f629bc1a80f30ed3b9
2022-03-28 10:24:01 -07:00
Muralidhar Reddy
286db29cf7 [MEP] Add port index in SubscriptionInfo database
Bug: 199559346
Test: build, manual
Change-Id: Ia74d5e8714fc961f2d22c104683d3e8722deaa3d
Merged-In: Ia74d5e8714fc961f2d22c104683d3e8722deaa3d
2022-03-28 10:23:34 -07:00
Sarah Chin
49f7901033 Merge changes from topic "pendingIntent-switchToSub"
* changes:
  Make switchToSubscription use PendingIntent
  Do not use portIndex API until implemented
2022-03-28 04:58:54 +00:00
Allen Xu
d91981bfef Support PersistableBundle type config values in getConfigByComponentForSubId
PersistableBundle support is required to enable better handling of more
complex carrier configurations.

Bug: 223443016
Test: make, atest CarrierConfigManagerTest
Merged-In: Idb564cf44d7d321b95cccb18798992e718f30da4
Change-Id: I94f581acc4cc7a7de39958e598e845831f81aab9
2022-03-25 22:32:38 +00:00
Jordan Liu
611c9e39d5 Make switchToSubscription use PendingIntent
Bug: 205504646
Test: manual
Change-Id: Ieec385ee6b054d2c6392c4a45eb501eb876cdd0a
Merged-In: Ieec385ee6b054d2c6392c4a45eb501eb876cdd0a
2022-03-24 13:01:56 -07:00
Jordan Liu
b4fb360929 Do not use portIndex API until implemented
Bug: 207384656
Bug: 207392528
Test: manual
Change-Id: Ief7a17a40abfc91447f5fdc669a263cd2c198ad7
Merged-In: Ief7a17a40abfc91447f5fdc669a263cd2c198ad7
2022-03-24 13:01:28 -07:00
Rambo Wang
d25623ae62 Merge "Clear up CarrierPrivilegesListener APIs" 2022-03-24 19:48:30 +00:00
Chen Xu
d9e8a4f5ff Merge "Add portIndex for switch subscription API" 2022-03-23 22:51:40 +00:00
Rambo Wang
e72e4ca85b Merge "[MEP] adding portindex to sim access APIs" 2022-03-23 21:42:56 +00:00
Rambo Wang
0aff5099d5 Clear up CarrierPrivilegesListener APIs
CarrierPrivilegesListener has been replaced with
CarrierPrivilegesCallback. With all clients has been migrated, it is
time to remove the obsoleted APIs

Bug: 216549778
Test: atest CarrierPrivilegesTrackerTest CarrierServiceTest
Test: atest WifiCarrierInfoManagerTest TelephonyRegistryManagerTest
Test: atest TelephonySubscriptionTrackerTest
Change-Id: I89df21764d3b9945219d810d0dd9bfe3cf5fbea4
Merged-In: I89df21764d3b9945219d810d0dd9bfe3cf5fbea4
(cherry picked from commit 5a4bcc0a9c1f656bd87e2830e56dea37197fdd2b)
2022-03-23 14:30:43 -07:00
Rambo Wang
476574dfc8 Optimize TM#getCarrierServicePackageName[ForLogicalSlot]
Instead of querying package manager every time which is
quite expensive, the new implementation will improve
the performance by query the cache in CarrierPrivilegesTracker.

Bug: 217442920
Test: atest CarrierPrivilegesTrackerTest
Change-Id: I29df8599bdfc84cab330fa7056a228997a4bac0f
Merged-In: I29df8599bdfc84cab330fa7056a228997a4bac0f
(cherry picked from commit 28b2ee8ec0314c1f77d92017de24c0d3df003aff)
2022-03-23 08:11:30 -07:00
Rambo Wang
cabb6b9362 Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" 2022-03-23 13:44:09 +00:00
Virkumar Karavate
14087b39d1 Merge "(Re-Introduce locking)[TEMP] Re-Introduce synchronization locking" 2022-03-23 11:58:56 +00:00
Rambo Wang
aa1e3b0a67 Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener
Add new interface in CarrierPrivilegesCallback to notify the registrants
that carrier service for current user has changed.

Reshape the parameters of onCarrierPrivilegesChanged callback with
both Set instead of List/Array.

CarrierPrivilegesListener is deprecated. Once all clients have migrated
to CarrierPrivilegesCallback, it will be throughly cleaned up.

Bug: 216549778
Test: atest CarrierPrivilegesTrackerTest CarrierServiceTest
Test: atest WifiCarrierInfoManagerTest TelephonyRegistryManagerTest
Test: atest TelephonySubscriptionTrackerTest

Change-Id: I18e443d91f1db951f1461511821c0f5f673da3a3
Merged-In: I38d03e3921112c313f3c1d204ed04f6e1756ff39
(cherry picked from commit b66e3e3aa87395069833307716334ff577b778a7)
2022-03-22 20:45:05 -07:00
sandeepjs
f9935cec48 [MEP] adding portindex to sim access APIs
Updated sim access API's with portIndex.
Test: atest TelephonyManagerTest#testIccOpenLogicalChannelBySlotAndPort
Test: atest TelephonyManagerTest#testIccCloseLogicalChannelBySlotAndPort
Test: atest
TelephonyManagerTest#testIccTransmitApduLogicalChannelBySlotAndPort
Test: atest
TelephonyManagerTest#testIccTransmitApduBasicChannelBySlotAndPort
Bug: 208739934

Change-Id: I32fc94f2fe98c46d8bb0120fff49e5b72df27ddf
Merged-In: I32fc94f2fe98c46d8bb0120fff49e5b72df27ddf
2022-03-23 02:56:15 +00:00
Jordan Liu
abedec1601 Add portIndex for switch subscription API
Bug: 205504646
Test: manual (builds, will not be functional until LPA implementation)
Change-Id: Ic289538f5df17c03b2f8da7f4966c583d4557586
Merged-in: Ic289538f5df17c03b2f8da7f4966c583d4557586
2022-03-22 19:26:58 -07:00
Rambo Wang
749cd1b187 Introduce mutable parcelable request to open/close logical channel
With a simple parcelable defines in aidl file, ITelephony can
unify all the ways on how to open/close ICC logical channels.
This leaves a stable ITelephony interface and extendable space
in request parcelable to introduce new features.

The request parcelable can also serve as the data wrapper when all
request info need to pass to the handler of PhoneInterfaceManager,
or out side of phone process (e.g. TelephonyRegistry) to resist
phone process crash.

Bug: 197658986
Test: atest IccOpenLogicalChannelRequestTest
Change-Id: I866ec481a8c801762ac1803343d11fce9e8b1e60
Merged-In: I15f920024d3ca3e630d16900e341ff41ee13d7d9
(cherry picked from commit 2ebfca0f618e835033c14bc2f9c7d3b9043a7e03)
2022-03-22 11:54:35 -07:00
Muralidhar Reddy
e1165d55ed [MEP] Add port index to icc logical channel open, close and trasmit APIs.
Modified logic to retrieve phoneId based on the slot index and port index as well.

Test: build
Bug: 199559346
Change-Id: I98036645023bd7ba12475d4a06ce64287401471b
Merged-In: I98036645023bd7ba12475d4a06ce64287401471b
2022-03-22 15:14:14 +00:00
virkumar
d9ad120d95 (Re-Introduce locking)[TEMP] Re-Introduce synchronization locking
Re-Introduce synchronization locking for ImsFeature to handle
broadcast at the same time from multiple threads and syncronize only
mListener in ImsSmsImplBase

Test: atest CtsTelephonyTestCases:ImsCallingTest
Bug: 181342331
Merged-In: I5050eb2cbb15bc1245c91efb72e3d4a417f435e5
Change-Id: I5050eb2cbb15bc1245c91efb72e3d4a417f435e5
2022-03-22 08:38:12 +00:00
Treehugger Robot
88e08cbb06 Merge "Support data profile merging" 2022-03-22 03:24:59 +00:00
Jack Yu
c40071734b Supported network capability MMTEL
Allowed IMS service to request an IMS network
that supports VoPS by sending a network request
with IMS and MMTEL capability. When network reports
VoPS is not supported, the existing IMS network will
be torn down. This does not affect the network
request that only has IMS capability.

Also support delay IMS tear down until voice call ends.
This can be configured through carrier config.

Test: atest DataNetworkControllerTest
Fix: 219110278
Change-Id: I845029fb68ce013d252fa6ffd59c868c9157ef92
Merged-In: I845029fb68ce013d252fa6ffd59c868c9157ef92
2022-03-21 16:15:43 -07:00
Jack Yu
93f518fff6 Support data profile merging
Added merging two data profiles that have same APN name,
but APN types are mutually exlusive and other fields are
minor different.

Fix: 216203549
Test: atest DataProfileManagerTest

Change-Id: I6f398321cc972be0b5fb4c550f7a110049d896f6
Merged-In: I6f398321cc972be0b5fb4c550f7a110049d896f6
2022-03-21 16:12:46 -07:00
Treehugger Robot
372b449bbb Merge "Fixed service state changed event" 2022-03-21 23:03:26 +00:00
Treehugger Robot
6ddc05484d Merge changes from topics "td_based_caps", "urllc_embb"
* changes:
  Supported URLLC, EMBB, and CBS slicing
  Supported traffic descriptor based network capability
2022-03-21 23:01:51 +00:00
Sungcheol Ahn
841bcc5b03 Merge "[Telephony] remove the RuntimeException thrown" 2022-03-21 22:41:48 +00:00
Jack Yu
725f8298b2 Fixed service state changed event
Added a new registrant for service state changed event.
Also added service state non-legacy mode initialization
support.

Fix: 217985293
Test: Manual
Change-Id: Ifd988943a3f6e22ec563417eea6f173c02a866e2
Merged-In: Ifd988943a3f6e22ec563417eea6f173c02a866e2
2022-03-21 14:48:11 -07:00
Sarah Chin
90ee4528a3 Merge "Fixed several data issues" 2022-03-21 20:50:00 +00:00
Rambo Wang
a77a04e330 Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" 2022-03-21 20:10:55 +00:00
Jayachandran C
c2e89bd300 Merge "Added carrier_id support to the carrier_key table in CarrierInformation DB" 2022-03-21 17:05:19 +00:00
Jack Yu
2c44ed9350 Supported URLLC, EMBB, and CBS slicing
Supported URLLC (Ultra Reliable Low Latency Communications),
eMBB (enhanced Mobile Broadband), and carrier specific service
for 5G slicing.

Test: atest DataNetworkTest DataProfileManagerTest TelephonyNetworkRequestTest
      TrafficDescriptorTest & CTS
Fix: 215232817
Change-Id: Ia6d79d10f39f998cfc35ab56ec625c6ec7e4b990
Merged-In: Ia6d79d10f39f998cfc35ab56ec625c6ec7e4b990
2022-03-21 09:43:15 -07:00
Jack Yu
a0a59e4c33 Supported traffic descriptor based network capability
Added traffic descriptor based network capability support.
Allowed multiple network requests having same TD based
capability, but with different differentiators.

Fix: 214399881
Test: atest FrameworksTelephonyTests
Change-Id: Ibf47aec9f99cf7437c9e03e10f9db83714aca5de
Merged-In: Ibf47aec9f99cf7437c9e03e10f9db83714aca5de
2022-03-21 09:03:33 -07:00
Jack Yu
66c34077c9 Fixed several data issues
1. Added workaround for changing immutable capabilities
   until connectivity service supports it.
2. Fixed that logging tag suffix after transport changed.
3. Port VCN code from old data stack.
4. Fixed some cases that we need to tear down the underlying
   networks, but also inform data network controller of
   data setup fails, for example, no live network request
   or VCN requested tear down before creating the agent.
5. Fixed the incorrect link status report.
6. Attach/Detach network requests after network capabilities
   changed.
7. Support the legacy permanent fail cause carrier config.

Fix: 215901070
Test: atest DataNetworkControllerTest
Change-Id: Icd3b43cb897b09af3dc5a9bc90ac104457e34190
2022-03-21 08:57:09 -07:00
Sarah Chin
0bf5d39174 Merge "Ensure SubscriptionPlans can be removed" 2022-03-21 15:55:45 +00:00
Sarah Chin
b96f60f5c3 Merge "Adding getSimApplicationState & getSimSlotMapping" 2022-03-21 15:51:00 +00:00
arunvoddu
b838a75287 Added carrier_id support to the carrier_key table in CarrierInformation DB
Bug: b/191919168
Test: Buid, aTest verification Passed
Change-Id: Ib51d6eb5231ceb65fffa8e83706c47ce17afd640
Merged-In: Ib51d6eb5231ceb65fffa8e83706c47ce17afd640
2022-03-21 06:18:51 +00:00
donaldahn
b347e47aa6 [Telephony] remove the RuntimeException thrown
Bug: 196880723
Test: ATP apct/device_boot_health_check_extra
      TMUS-Repeated test to unregistermmtel after registration.
          Volte dials/disconnects, airplane mode on/off,
          Sim removed, power on/off

Merged-In: I050d4affd403604bdae21ef3bc7f9ddf93ffa9e4
Change-Id: I16ebfe7edb13e950afd835d64691d740b11cbcdc
2022-03-21 00:20:03 +00:00
sandeepjs
3f33aa226f Adding getSimApplicationState & getSimSlotMapping
Adding getSimApplicationState & getSimSlotMapping API in TelphonyManager
Test: atest TelephonyManagerTest#getSimSlotMappingTestReadPermission
Test: atest TelephonyManagerTest#getSimCardStateTest
Test: atest TelephonyManagerTest#getSimSlotMappingTest
Bug: 206718882

Change-Id: I40ec6c8083d9e8718a300b119ceb089648b8dea4
Merged-In: I40ec6c8083d9e8718a300b119ceb089648b8dea4
2022-03-20 14:55:11 -07:00
Jack Yu
42e59bf31a Supported the legacy allowed initial attach APN types config
Some carriers requires user-added APNs to be used for initial
attach, but IA was automatically removed by the APN editor on
purpose. So the compromised solution was supporting the old
allowed IA APN types carrier config in the new data stack.

Fix: 216867081
Test: Manual
Change-Id: If3acbe92ed25d254c61947c4535e2bdc2613d7b7
Merged-In: If3acbe92ed25d254c61947c4535e2bdc2613d7b7
2022-03-20 14:42:41 -07:00
Jack Yu
05fb389198 Moved 5G+ PCO related code to data modules
Moved the 5G+ PCO logic from NetworkTypeController
to DataNetworkController. Also forward the PCO data to carrier
signal agent.

Fix: 214728781
Test: atest DataNetworkControllerTest DataNetworkTest
Change-Id: I45e453b0cc497d69b85a77855d8c62b52b2e5441
Merged-In: I45e453b0cc497d69b85a77855d8c62b52b2e5441
2022-03-18 15:50:58 -07:00
Sarah Chin
1ef011e510 Ensure SubscriptionPlans can be removed
Add a duration that the plans last and don't read to/write from disk
for plans. Make non-duration setSubscriptionPlans API deprecated.

Test: atest SubscriptionManagerTest, NetworkPolicyManagerServiceTest
Bug: 210696427
Change-Id: I93aece78eda324c333fbf9f1adbedcf46e4864f0
Merged-In: I93aece78eda324c333fbf9f1adbedcf46e4864f0
2022-03-18 15:27:57 -07:00
Sarah Chin
4f0fbcea4b PhysicalChannelConfig.Builder change IAE to error logs
Test: atest PhysicalChannelConfigTest
Bug: 219586992
Change-Id: I4e777e31b005b30876a72c1e2efe57b86a1ffc9b
Merged-In: I4e777e31b005b30876a72c1e2efe57b86a1ffc9b
2022-03-18 13:17:10 -07:00
Rambo Wang
4b2cdfece1 Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener
Add new interface in CarrierPrivilegesCallback to notify the registrants
that carrier service for current user has changed.

Reshape the parameters of onCarrierPrivilegesChanged callback with
both Set instead of List/Array.

CarrierPrivilegesListener is deprecated. Once all clients have migrated
to CarrierPrivilegesCallback, it will be throughly cleaned up.

This CL only cherry-picks the CarrierPrivilegesCallback interface and
provides stub implementation to remove the dependency of NetworkStack
modul which is aosp-first. The implementation will be cherry-pick later.

Bug: 216549778
Test: make

Merged-In: I195a99ec6508c7fe3398908bfca632d8446ab29c
Change-Id: I195a99ec6508c7fe3398908bfca632d8446ab29c
(cherry picked from commit b66e3e3aa87395069833307716334ff577b778a7)
2022-03-16 21:06:52 -07:00
Ling Ma
012ace16da Merge "Unhide API isPersistent and getProfileId" 2022-03-16 23:50:28 +00:00
Ling Ma
5a093a0132 Unhide API isPersistent and getProfileId
Test: cts ApnSettingTest
Bug: 223599330
Change-Id: I1aaf0903e2b27b3a3c919e5c08c509a60053e74e
Merged-In: I1aaf0903e2b27b3a3c919e5c08c509a60053e74e
2022-03-16 19:31:02 +00:00
Sewook Seo
634b3fec76 Merge "API review: Additional comment for QosApi." 2022-03-16 03:20:55 +00:00
Sewook Seo
04c1004ef4 Merge "API review: Additional documentation & annotation" 2022-03-16 01:01:34 +00:00
sewookseo
81db932f12 API review: Additional comment for QosApi.
Adding comment to EpsBearerQosSessionAttribute javadoc.

Bug: 216368595
Test: build
Change-Id: Ie7b8722abb082743bb67f77797de900913cf2871
2022-03-16 00:09:42 +00:00
sewookseo
10f49a1072 API review: Additional documentation & annotation
Add annotation @RadioAccessNetwork for setupDataCall parameter.
Add comment to API documentation for start/cancelHandover.

Bug: 215240597
Test: build
Change-Id: Ibb4abfeea68d710815f59bce4c6edb2e832cc8bd
2022-03-15 22:32:12 +00:00