15696 Commits

Author SHA1 Message Date
Chen Xu
ed021212d6 Merge "[MEP] eSIM API refactor to support MEP" 2022-01-04 18:50:09 +00: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
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
Shuo Qian
457bfa1180 Merge "Use Math.floor to convert RSSNR from ten db to DB" 2021-12-23 05:45:35 +00:00
Etienne Ruffieux
4ec097baa6 Merge "SQLiteWrapper cleanup, removed unused checks." 2021-12-21 20:07:31 +00:00
Etienne Ruffieux
a8530fe5b5 SQLiteWrapper cleanup, removed unused checks.
Removed requery as it was unused, removed out-of-date
memory checks. All functionalities stay the same.
This change was initially made to prevent hidden APIs
usage in the library.

Tag: #feature
Bug: 190441152
Test: atest android.telephony.cts.MmsTest
NoNonSdkCheck: API usage is inside the class and removed with CL
Change-Id: I7498b0cd9e9955158094348acc2c94e0b2552b0d
2021-12-21 14:32:55 +00:00
Martijn Coenen
c7dc6dc0da Merge changes from topic "revert-1927643-mmtel_capability-TQUGHHKONR"
* changes:
  Revert "Added setup/tear down data support"
  Revert "Added a new network capability MMTEL"
2021-12-21 11:27:16 +00:00
Martijn Coenen
4a4b55fca3 Revert "Added setup/tear down data support"
Revert "Added a new network capability MMTEL"

Revert submission 1927643-mmtel_capability

Reason for revert: b/211586152
Reverted Changes:
Ifea8b1e40:Added a new network capability MMTEL
I38655bef2:Added a new network capability MMTEL
I837606d9e:Added setup/tear down data support
I2c7b291fe:Added a new network capability MMTEL

Change-Id: If4ab6dd27a995edcca037099ed3f68de917641cf
2021-12-21 11:24:01 +00:00
Martijn Coenen
bcfe8037e2 Revert "Added a new network capability MMTEL"
Revert "Added a new network capability MMTEL"

Revert submission 1927643-mmtel_capability

Reason for revert: b/211586152
Reverted Changes:
Ifea8b1e40:Added a new network capability MMTEL
I38655bef2:Added a new network capability MMTEL
I837606d9e:Added setup/tear down data support
I2c7b291fe:Added a new network capability MMTEL

Change-Id: Ifd818ba06bc8c6a10bf0393243443d049e5d7503
2021-12-21 11:24:01 +00:00
Treehugger Robot
4b07c1b401 Merge changes from topic "mmtel_capability"
* changes:
  Added a new network capability MMTEL
  Added setup/tear down data support
2021-12-21 10:42:37 +00:00
Xin Li
4932b0137f Merge SP1A.211205.008
Bug: 205056467
Merged-In: Id5cd4123f1bb7bdd85e564fc6997dfbc50652a5f
Change-Id: I2b614d13e18b8a03aaab041c058c1b2f0a21fcab
2021-12-20 14:13:38 -08:00
Hyunho Shin
db0515696f Merge "API description changed." 2021-12-17 03:28:43 +00:00
Hyunho
83d8141905 API description changed.
the api description changed to reflect what is expected to be done by the caller
Bug: b/210738734
Test: Build

Change-Id: I85cddad952cfb9f657b15c5c5e75bb0adc52188f
Merged-In: I85cddad952cfb9f657b15c5c5e75bb0adc52188f
2021-12-17 01:13:50 +00:00
Jack Yu
f705cb8db6 Added a new network capability MMTEL
Added NET_CAPABILITY_MMTEL to indicate a network
support MMTEL (Multimedia telephony). This is for
IMS service to request an IMS network that supports
voice or PS (VoPS for 4G, VoNR for 5G).

Bug: 210774375
Test: atest ConnectivityServiceTest
Change-Id: I2c7b291fee3450f588a282f7a252c183c374becf
(cherry picked from commit 1e6438b43a13c27d0f939ec417dc0a84597fe935)
2021-12-16 22:55:52 +00:00
Jack Yu
09c6189ae4 Added setup/tear down data support
1. Added setup data network support.
2. Hook validation status down to data stall recovery manager.
3. Prelimanary changes before removing TransportManager.
4. Added tear down network support.
5. Added initial attach APN support.
6. Added set data profiles at modem support.

Bug: 196597630
Test: atest DataNetworkControllerTest DataProfileManagerTest DataProfileTest DataNetworkTest
Merged-In: I837606d9e91339c66f2e2cff1a3a76d1029750c6
Change-Id: I837606d9e91339c66f2e2cff1a3a76d1029750c6
(cherry picked from commit 69af77931e347c73ce2975e0ee54c5150a41203f)
2021-12-16 14:47:05 -08:00
Treehugger Robot
a7ab25609e Merge "Add mock modem service operations in Telephony" 2021-12-16 20:20:09 +00:00
Hunter Knepshield
d54e1126ab Merge "Create CarrierPrivilegesListener callback." 2021-12-16 19:00:24 +00:00
jimsun
6fb25dc35a Add mock modem service operations in Telephony
Bug: 205101043
Bug: 203241555
Test: manual
Change-Id: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
Merged-In: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
2021-12-16 17:02:34 +08:00
Rambo Wang
33acead6f6 Merge "Support subscription for CarrierService#onLoadConfig" 2021-12-16 04:10:31 +00:00
Hunter Knepshield
18d9d9feb1 Merge "Create a convenience method to get the CarrierService package." 2021-12-16 00:50:44 +00:00
Rambo Wang
bbec7b6a5f Support subscription for CarrierService#onLoadConfig
CarrierService#onLoadConfig is called from platform to carrier service
to load carrier-specific configuration values.

In case when the multiple subscriptions are supported for the same
carrier (e.g. Fi on pSIM + Fi on eSIM case), the current API is not
able to distinguish on which subscription the carrier config should
be loaded. The subscription parameter introduced in the API can
resolve the problem.

If carrier app has no need to distinguish configs by subscriptions,
it can simply ignore overriding the new version of the API.

Bug: 131697791
Test: atest CarrierServiceTest
CTS-Coverage-Bug: 210143342
Change-Id: Id7cd75c24f01119749cb5bf31d4335c638547aaf
2021-12-16 00:02:35 +00:00
Treehugger Robot
325b64ce57 Merge "Add carrier configuration for list of opportunistic carrier-ids associated with CBRS pSIM" 2021-12-15 23:54:48 +00:00
Rambo Wang
eaa2a701cd Merge "Support CarrierService#notifyCarrierNetworkChange with subscription" 2021-12-15 23:17:30 +00:00
Rambo Wang
1b85e74899 Make get/setSystemThresholdReportingRequestedWhileIdle @SystemApi
SignalStrengthUpdateRequest#setSystemThresholdReportingRequestedWhileIdle
is built to replace the deprecated feature
PhoneStateListener#LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH.

The only client (Bluetooth) does not allow hidden API call.
@SystemApi is the next option while the API is not intended
to be public yet.

The javadoc is also updated to be more precise on when the
permission is required.

Bug: 205544105
Test: atest TelephonyManagerTest
CTS-Coverage-Bug: 205602896
Change-Id: Ia72cc1c77cf5b97458f8f6191a24bfa77a861234
2021-12-15 22:34:48 +00:00
Avinash Malipatil
f63c1fddb3 Add carrier configuration for list of opportunistic carrier-ids
associated with CBRS pSIM

Bug: 209555162
Test: build

Change-Id: I4429a0bada9632dff0935fabafdd23785837f184
2021-12-15 18:58:09 +00:00
Rambo Wang
241b1fa964 Support CarrierService#notifyCarrierNetworkChange with subscription
Current APIs does not include subId or phoneId to locate which
carrier network reported the change. A patch based on carrier
privilege were deployed in Q to temprarily fix the issue.

However, multiple subscriptions which all have the carrier
privileges will all get notified, even only one of them
has the real change.

To throughly resolve the issue, the subscription is introduced
in the API to distinguish which network actually has the change.

Bug: 131697791
Test: atest TelephonyRegistryManagerTest CarrierServiceTest
Change-Id: Ie7ee25f53da605c15e1a9228482cc8c4e7406d2a
2021-12-15 17:35:52 +00:00
Hyunho Shin
a706df510f Merge "IMS RCS UCE API Improvement" 2021-12-15 10:59:35 +00:00
Treehugger Robot
373b687d96 Merge "Allow renounce location permission" 2021-12-15 00:35:20 +00:00
Joonhun Shin
6de3c4c12e Merge "Support RCS master switch" 2021-12-14 23:16:23 +00:00
Sooraj Sasindran
5d02dbb7bf Allow renounce location permission
Allow renounce location permission

Bug: 198533763
Test: CTS
Merged-In: I10872f34603441da2cf80f1f2976f3f3ca0ff6c2
Change-Id: I10872f34603441da2cf80f1f2976f3f3ca0ff6c2
2021-12-14 13:25:04 -08:00
Xin Li
72996f0670 Merge Android 12 QPR1
Bug: 210511427
Merged-In: Ibcfed4617dcaea3b81e5d3a3eb68e6494488c7f7
Change-Id: I43f94bca1c8db649bec91e0de1bd41c89ba8f1f7
2021-12-14 08:39:06 -08:00
Meng Wang
ea1adfc0e5 ImsServiceEntitlement default values missing
ImsServiceEntitlement.* configs and their default values
were added in S at
commit e600a8e4e8615410f2f45a4c35f2250d6b1b32b1.

Somehow the default values are missing now. Add back.

Bug: 210485357
Change-Id: I98d943394ed308956c5271b8efaa5094d15dc8ca
Merged-In: I98d943394ed308956c5271b8efaa5094d15dc8ca
(cherry picked from commit 33c6221c5bf0bf966cd6f2da956c1b566be54ce4)
2021-12-13 23:35:41 +00:00
Hyunho
ebc8bf6daa IMS RCS UCE API Improvement
Changed API to receive uid as parameter when registering PublishStateCallback

Bug: b/203406296
Test: atest UceControllerManagerTest
Change-Id: I6f204b8875e0ae8cd4312cf9938ea9d673b31016
Merged-In: I6f204b8875e0ae8cd4312cf9938ea9d673b31016
2021-12-11 05:43:54 +00:00
joonhunshin
8aa17355a3 Support RCS master switch
Add flag which indicate RCS enable or disable by user in
RcsClientConfiguration class

BUG: b/202892135
Test: cts CtsTelephonyTestCases:RcsClientConfigurationTest
Change-Id: Ic4397cb167f38602883ba939b75e109edccfb028
Merged-In: Ic4397cb167f38602883ba939b75e109edccfb028
2021-12-11 03:54:13 +00:00
Sarah Chin
5a5f5556a7 Add new fields to ApnSetting/DataProfileInfo
Add fields for lingering bearer bitmask and is always on
Update values for MTU V4 and MTU V6

Test: atest DataProfileTest
Bug: 198822816
Change-Id: Ia007f22a5c976fa139e61d981779a65b5e3ffd3e
Merged-In: Ia007f22a5c976fa139e61d981779a65b5e3ffd3e
2021-12-10 06:20:15 -08:00
Hunter Knepshield
866d3a4d03 Create CarrierPrivilegesListener callback.
This callback will allow privileged components to listen to changes
around carrier privileged apps in a way that is aware and accounts for
SIM profile switches. This callback will be backed by
CarrierPrivilegesTracker as a follow-up change.

Bug: 205736323
Test: atest android.telephony.cts.TelephonyRegistryManagerTest
Change-Id: I432ed00be16c68303bf5c8e074fb9d6cf83e82c9
2021-12-08 15:53:33 -08:00
Sooraj Sasindran
fffe4f6865 Merge "Provide last known cell id for emergency call" am: 761ad6eaf8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870513

Change-Id: I4891c23dc6b5dd78618913d365c858f1c4b270bf
2021-12-08 22:52:32 +00:00
Sooraj Sasindran
761ad6eaf8 Merge "Provide last known cell id for emergency call" 2021-12-08 19:19:54 +00:00
Brad Ebinger
b1e1f7b730 Merge changes from topics "delegate_regi_new_state_losing_pdn", "ims_rcs_api_improvement_delegate_regi_state" am: 5fd9a457ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911013

Change-Id: Id4b43dee68b4ebb126dd979415b30097df87fbee
2021-12-07 20:37:01 +00:00
Jinyoung Jeong
90cd156539 IMS RCS API Improvements-DelegateRegistrationState am: b6518929e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899030

Change-Id: I8ec9ec5dfc048226090746984e11059a7358fb8c
2021-12-07 20:36:58 +00:00
Sooraj Sasindran
81be082283 Provide last known cell id for emergency call
Provide last known cell id to connection service
for emergency calls.

Bug: 198533763
Test: unit test
Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd
2021-12-06 12:52:31 -08:00
Jinyoung Jeong
0b1a783da6 DelegateRegistrationState Improvement
adding new states for DelegateRegistrationState:
 - DEREGISTERING_REASON_LOSING_PDN
 - DEREGISTERING_REASON_UNSPECIFIED

Bug: b/201522903, b/206557578
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I3675c10a6dba55a49174509796c53b07b929c14f
Merged-In: I3675c10a6dba55a49174509796c53b07b929c14f
2021-12-06 03:55:54 +00:00
Jinyoung Jeong
b6518929e6 IMS RCS API Improvements-DelegateRegistrationState
Bug: b/197892699, b/202202874, b/203405794
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
Merged-In: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
2021-12-06 02:33:30 +00:00
Hunter Knepshield
29745b36f1 Create a convenience method to get the CarrierService package.
Currently, this just redirects to the existing Intent resolution APIs to
find the first carrier privileged package that declares a CarrierService
implementation for the specified SIM.

Follow-up work will make this a proper API that reaches all the way down
to CarrierPrivilegesTracker, which is slated to become the source of
truth for all carrier privilege related checks. Doing so will also
provide a free caching layer for this API, which should result in
appreciable performance increases.

Bug: 205736323
Test: make
CTS-Coverage-Bug: 205995169
Change-Id: I949de81f2c5b284b14c56b5d8d3ed0b60cb97847
2021-12-03 18:21:11 -08:00
Rambo Wang
dbc29cd5d2 Merge "Un-deprecate TelephonyManager SIM access APIs" am: 11f136cc06
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885962

Change-Id: I80959987bd2e851df3746ccd85291b26b89fd47a
2021-12-03 23:05:55 +00:00
Rambo Wang
11f136cc06 Merge "Un-deprecate TelephonyManager SIM access APIs" 2021-12-03 22:40:50 +00:00
Sooraj Sasindran
efd83737ab Merge "Add non dangerous read phone state permission" am: 12c048e406
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1882949

Change-Id: Iaa70cefb0e3b66ff28082c6dcfc983b397dcba44
2021-12-03 19:16:50 +00:00
Ting Yu
1963708d36 Use Math.floor to convert RSSNR from ten db to DB
To keep the same pictogram level with Modem, use Math.floor
to convert RSSNR for LTE.

Bug: 196280737
Test: atest SignalStrengthControllerTest
Change-Id: I40797ba39ccd8d7bd802e912f8005ee9f580977d
2021-12-03 07:24:56 +01:00
Sooraj Sasindran
4219d77a4d Add non dangerous read phone state permission
Add non dangerous read phone state permission

Bug: 198535473
Test: CTS.
Change-Id: Ic6cbaf7113e09d618eb54e9f40fa033d803421c9
2021-12-02 17:06:47 -08:00