Commit Graph

15763 Commits

Author SHA1 Message Date
Chen Xu
e503303146 Merge "[MEP] Reverting temporarily bypassed exception" 2022-01-12 00:04:55 +00:00
Bernardo Rufino
c6ebb14b7d Merge "Migrate unsafer parcel APIs [2]" 2022-01-11 19:20:36 +00:00
sandeepjs
c5e8f49ea9 [MEP] Reverting temporarily bypassed exception
Reverting temporarily bypassed exceptions.
Bug: 202110963
Test: Build

Change-Id: Ib1a9d228a1d3d9864e03d3afa54cd85574ed8fe8
2022-01-11 15:38:19 +00:00
Sateshk Kumar Chinnappan
93ee38ecf1 Merge "Add IMS Common, Voice, Video, Supplementary services, emergency call, WFC call, RTT call related configs to CarrierConfigManager." 2022-01-10 19:20:14 +00:00
Brad Ebinger
cc24571677 Merge "Remove documentation restriction that SipMessage body is UTF-8 encoded, as it can have many mixed encodings depending on the content." 2022-01-10 19:07:24 +00:00
Jack Yu
0d5215b36a Merge "Fixed NPE when local or remote port range does not exist" 2022-01-10 17:24:20 +00:00
Sateshk Kumar Chinnappan
c53b830806 Add IMS Common, Voice, Video, Supplementary services, emergency call, WFC call, RTT call
related configs to CarrierConfigManager.

Bug: b/180150989
Test: Manually will be testing the configs using the following commands:
adb shell cmd phone cc get-value [KEY]
adb shell cmd phone cc set-value [KEY] [VALUE]

Change-Id: Iffb85aaecfa4537fc40c398d262cf2ff3af860dc
2022-01-09 22:11:00 -08:00
Jack Yu
bc1ae5c28a Fixed NPE when local or remote port range does not exist
Added null check for local and remote port range.

Bug: 213523984
Bug: 213139361
Test: atest QosBearerSessionTest
Change-Id: I749f369c0daa5c840a77d37828f65e42262d85f5
2022-01-09 20:21:19 -08:00
Brad Ebinger
8446a5beea Remove documentation restriction that SipMessage body is UTF-8 encoded, as it can have many mixed encodings depending on the content.
Bug: 213636920
Test: docs only change

Change-Id: I61986661116bef2e57ff4331e223f8bc77a0fcc0
2022-01-08 00:42:15 +00:00
Nicolò Mazzucato
239b68461f Revert "Add IMS configs to CarrierConfigManager"
Revert submission 16320675-aosp_ims_config

Reason for revert: Breaks build
Bug: 213576201
Reverted Changes:
I853fe100e:Add IMS Voice, Video, Supplementary services, emer...
I9b4e429af:Add IMS configs to CarrierConfigManager

Change-Id: I1d45b6c09524c8db96a1e708ced5426b0aefa5f4
2022-01-07 14:51:01 +00:00
Nicolò Mazzucato
1994bbcdae Revert "Add IMS Voice, Video, Supplementary services, emergency ..."
Revert submission 16320675-aosp_ims_config

Reason for revert: Breaks build
Bug: 213576201
Reverted Changes:
I853fe100e:Add IMS Voice, Video, Supplementary services, emer...
I9b4e429af:Add IMS configs to CarrierConfigManager

Change-Id: Iff64c697ab9e4e64acbfefbe24d23ac067152aec
2022-01-07 14:51:01 +00:00
Sateshk Kumar Chinnappan
fd9ab05296 Merge "Add IMS Voice, Video, Supplementary services, emergency call, WFC call, RTT call related configs to CarrierConfigManager." 2022-01-07 13:55:07 +00:00
Sateshk Kumar Chinnappan
8874566762 Merge "Add IMS configs to CarrierConfigManager" 2022-01-07 13:55:07 +00:00
Eden Su
5279dc3512 Merge "Add carrier config for EAP-AKA fast reauth feature" 2022-01-07 11:51:11 +00:00
Nina Chueh
30530053e1 Merge "Add 5 Jitter-related and 2 RTP-related parameters to call quality" 2022-01-07 02:57:06 +00:00
Lee Shombert
9a686c07ba Merge "Prepare PropertyInvalidatedCache for SystemApi" 2022-01-06 23:14:05 +00:00
Sateshk Kumar Chinnappan
939bacc951 Add IMS Voice, Video, Supplementary services, emergency call, WFC call, RTT call
related configs to CarrierConfigManager.

Bug: b/180150989
Test: Manually will be testing the configs using the following commands:
adb shell cmd phone cc get-value [KEY]
adb shell cmd phone cc set-value [KEY] [VALUE]

Change-Id: I853fe100e3c19f6c7b2e03d316d5b839e798f049
2022-01-06 21:19:42 +00:00
Grace Jia
d9bdab733f Merge "Add new API for new feature of display name." am: e43f70afc7 am: bacd6a4a11 am: 93e2d21187 am: aa6e8fff87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807961

Change-Id: I28ae3bf23808bca60b474969f4a0b90e9747e682
2022-01-06 20:23:29 +00:00
Grace Jia
aa6e8fff87 Merge "Add new API for new feature of display name." am: e43f70afc7 am: bacd6a4a11 am: 93e2d21187
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807961

Change-Id: I29c1a276e70e8d129a3741f7491557459ce35735
2022-01-06 19:55:54 +00:00
Grace Jia
e43f70afc7 Merge "Add new API for new feature of display name." 2022-01-06 18:59:37 +00:00
Bernardo Rufino
74ee11c3f4 Migrate unsafer parcel APIs [2]
Manually migrate the few cases of:
* readArray()
* readParcelableArray()

To the new parcel APIs that take the expected type as the last
parameter. This enhances security because it prevents unexpected types
*before* running unparcelling code. More details at go/safer-parcel.

Owners, please check that the type of the objects expected is always a
subtype of the type provided as the 3rd parameter. This is usually easy
to verify due to casts that happen shortly after.

These changes often allowed further transformations but I decided to
avoid them to keep this change small and targeted.

This was manual since it's tricky to get lint to infer the type in
those cases and it was only a few.

Bug: 195622897
Test: TH passes
Change-Id: I262ed7cd6d3bc15b32e9296e88a8a67fdb59e880
2022-01-06 18:35:31 +00:00
Chen Xu
855f028893 Merge "Make switchToSubscription use PendingIntent" 2022-01-06 06:18:11 +00:00
Meng Wang
bc92ff9c4e Merge "Add getPhoneNumber/setPhoneNumber API" am: 692533e342 am: 600f4d03aa am: 9be07bf54c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920741

Change-Id: I09ebf81023406f2f192f95b15101424c71a0ebf1
2022-01-06 00:02:44 +00:00
Meng Wang
692533e342 Merge "Add getPhoneNumber/setPhoneNumber API" 2022-01-05 23:04:27 +00:00
Sarah Chin
c20de31377 Merge "Add Constants for UsageSetting" am: 569fbec7ef am: 4b9ed09226 am: 8b0cf59365
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1917119

Change-Id: I4833a4a171d8c8a000df987589f8a2b4159d6d10
2022-01-05 21:05:16 +00:00
Sarah Chin
569fbec7ef Merge "Add Constants for UsageSetting" 2022-01-05 20:06:20 +00:00
Chen Xu
5789584ac8 Merge "[MEP] eSIM API refactor to support MEP" am: ed021212d6 am: 0da5093738 am: 6ed304eb77
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1935968

Change-Id: I4b3f02f35aba4a4c558074841dd7271e9e56af18
2022-01-05 19:09:00 +00:00
yawensu
5cc57b60c8 Add carrier config for cross sim calling on opportunistic data.
Flag specifying whether cross sim calling on opportunistic data is supported for carrier.
 - When {@code false} the carrier does not support cross sim calling on opportunistic data.
 - When {@code true} the carrier does support cross sim calling on opportunistic data.

Bug: 199121448
Test: Build.
Change-Id: I2c64949907a861f42f5bd67d445a10de420cd33d
2022-01-05 13:48:18 +08:00
Chen Xu
ed021212d6 Merge "[MEP] eSIM API refactor to support MEP" 2022-01-04 18:50:09 +00:00
Sarah Chin
a9587ca7a4 Merge "Update unthrottleApn calls to take in DataProfile" am: fa2dc0b7e4 am: cfa8c4b3b2 am: 9658f8d157
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1934667

Change-Id: I92bc2c744a931181540f76cc8148fd7cb009b38e
2022-01-04 18:13:54 +00:00
Lee Shombert
0cece3898b Prepare PropertyInvalidatedCache for SystemApi
Bug: 152453213
Tag: #refactor

This commit prepares PropertyInvalidatedCache to function as a system
api.  Specifically, the methods recompute() and bypass() which may be
overridden by clients are now public (instead of protected).  This
forces an update to all existing clients, to accommodate the change in
method visibility.

Two small changes have been made as cleanup:

 1. The awkwardly named debugCompareQueryResults() is now
    resultEquals(), which is more or less consistent with how other
    equality tests are named in Android.  This name change affects two
    clients.

 2. PackageManager has changed to use resultEquals() instead of
    maybeCheckConsistency().  This provides a simpler and more
    consistent use of the APIs.  maybeCheckConsistency() has been made
    private.

Test: atest PropertyInvalidatedCacheTests

Change-Id: I4110f8e887a4fd8c784141e8892557a9d1b80a94
2022-01-04 08:13:59 -08:00
sandeepjs
6afa68e472 [MEP] eSIM API refactor to support MEP
Newly added UiccPortInfo and UiccSlotMapping classes and introduced
UiccPortInfo as a port list in UiccCardInfo and UiccSlotInfo,
Deprecated some constructors and updated callers.
Test: build
Bug: 159354974
Change-Id: I71e4e1ef649b7301d126dde23d53783761de940f
Merged-In: I71e4e1ef649b7301d126dde23d53783761de940f
2022-01-03 12:12:52 +00:00
Jordan Liu
805e7d12b7 Make switchToSubscription use PendingIntent
Bug: 205504646
Test: manual
Change-Id: Ieec385ee6b054d2c6392c4a45eb501eb876cdd0a
2021-12-30 19:22:22 -08:00
Willy Hu
a7846ec90f Added the Carrier Config for DataStallRecoveryManager
- KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY
- KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY

Bug: 178670629
Test: Build pass.
      atest com.android.internal.telephony.data --iterations 100
Change-Id: I575850cca4edc8400ae020c4ffdb5088c5b11500
2021-12-30 13:44:36 +08:00
Nathan Harold
cb861c0f76 Add Constants for UsageSetting
Bug: 210023167
Test: compilation
Merged-In: Ief078770b44719e105828bb61d3768ad24e277dd
Change-Id: Ief078770b44719e105828bb61d3768ad24e277dd
(cherry picked from commit 793736cced)
2021-12-29 09:42:12 -08:00
EdenSu
9fc998a2a2 Add carrier config for EAP-AKA fast reauth feature
Add config to enable/disable EAP-AKA fast reauth.

Bug: 195961691
Test: Build
Change-Id: I8ed5b89d991ce9fac6080e5196931dea38c6ac04
2021-12-29 16:53:39 +08:00
Sarah Chin
87f76c1389 Merge "Add new fields to ApnSetting/DataProfileInfo" am: a28f3d2066 am: 1de30d0e45 am: a67c0d0b68
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1918557

Change-Id: Ic8624e7ad1c866c7342640c2765a1af64c071b7e
2021-12-29 00:01:52 +00:00
Sarah Chin
4036f73231 Update unthrottleApn calls to take in DataProfile
Test: atest FrameworksTelephonyTests
Bug: 208651109
Change-Id: I4e77e56296d6a9a8b1010167e260f4e9c1a40202
Merged-In: I4e77e56296d6a9a8b1010167e260f4e9c1a40202
2021-12-28 23:27:21 +00:00
Sarah Chin
a28f3d2066 Merge "Add new fields to ApnSetting/DataProfileInfo" 2021-12-28 23:06:10 +00:00
Muralidhar Reddy
eb2712bb2f [MEP] Do not pass portIndex to disableProfile, derive portIndex from the passing iccid. Partially revert T API change ag/15808958, disableProfile remains unchanged for Android T
Bug: 211955076
Test: manual, atest FrameworksTelephonyTests
Change-Id: I5803251e6ecaac1d8a19c7d6870fb4f8382048b1
2021-12-28 11:06:22 +00:00
ninachueh
3b601a0745 Add 5 Jitter-related and 2 RTP-related parameters to call quality
5 Jitter-related parameters
1. NumVoiceFrames
2. NumNoDataFrames
3. NumDroppedRtpPackets
4. MinPlayoutDelay
5. MaxPlayoutDelay

2 RTP-related parameters
6. NumRtpSidPacketsRx
7. NumRtpDupPackets

Bug: 201960858
CTS-Coverage-Bug: 201960858

Test: manual

Change-Id: Ia6ccb88a75fa090329b819c645cc68e9ec10bb26
2021-12-23 07:07:51 -08:00
Shuo Qian
2f8a6b415e Merge "Use Math.floor to convert RSSNR from ten db to DB" am: 457bfa1180 am: bba215b2fe am: 3e9d13a1e0 am: 2e2494f1ea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910030

Change-Id: Ibf5f52b83bfbc00874aca17d3912e91b3e25ec25
2021-12-23 06:46:55 +00:00
Shuo Qian
2e2494f1ea Merge "Use Math.floor to convert RSSNR from ten db to DB" am: 457bfa1180 am: bba215b2fe am: 3e9d13a1e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910030

Change-Id: Idab7cb7140ffe7297da288a56269d109c246f96a
2021-12-23 06:34:23 +00:00
Shuo Qian
457bfa1180 Merge "Use Math.floor to convert RSSNR from ten db to DB" 2021-12-23 05:45:35 +00:00
TreeHugger Robot
28049a6dc2 Merge "Create new DataEnabledReasons for for DataSettingsManager" 2021-12-23 01:44:13 +00:00
Sarah Chin
419e4ff03a Create new DataEnabledReasons for for DataSettingsManager
DataEnabledSettings used an internal DataEnabledChangedReason when
notifying data enabled was changed. For DataSettingsManager, sync the
reasons with TelephonyManager#DataEnabledReasons and remove the internal
reaons.

Test: atest FrameworksTelephonyTests
Bug: 204309297
Change-Id: I8d6fd13e319ce165e25f2afd93bf9884fbf22667
2021-12-22 13:32:52 -08:00
Jack Yu
24e8452878 Added IWLAN handover support
Bug: 196597630
Test: atest DataNetworkControllerTest DataRetryManagerTest DataNetworkTest
Change-Id: Iaf9cef37994ea8eb0e56c068dd39b9dee2d3ca90
2021-12-22 09:43:39 -08:00
Meng Wang
04dd910a49 Add getPhoneNumber/setPhoneNumber API
Bug: 193539271
Test: make
Change-Id: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
Merged-In: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
(cherry picked from commit 0594b4f490)
2021-12-21 22:23:33 +00:00
Jack Yu
3c3c522cfb Telephony data refactoring API changes
DataProfile is the parameters used for setup data, but DataProfile
is almost identical as ApnSetting. So move ApnSetting into
DataProfile, also add TrafficDescriptor, which is specific to
5G SA network.

Also added a new state for data handover between IWLAN and cellular.

Bug: 196597630
Test: CTS && atest FrameworksTelephonyTests
Change-Id: I3f188921b92b4a14c323819ff58ab9ae57488937
2021-12-21 08:57:59 -08:00
Martijn Coenen
c8de979930 Revert "Added a new network capability MMTEL" am: bcfe8037e2 am: 39beeb7b45 am: 7992c40489 am: 8e2325ad42
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928147

Change-Id: I80959a07d7b7a9a0e7065887da6d180f588c6cb9
2021-12-21 12:29:53 +00:00