Commit Graph

4772 Commits

Author SHA1 Message Date
Sooraj Sasindran
2dd968d7ef Add ril constant for slicing config change
Add ril constant for slicing config change

Test: build
Bug: 194332512
Change-Id: I5e81a3ba9118537e3dba1c45a2db253ff5bbdc8b
2022-01-13 17:00:34 +00:00
Grace Jia
e43f70afc7 Merge "Add new API for new feature of display name." 2022-01-06 18:59:37 +00:00
Meng Wang
692533e342 Merge "Add getPhoneNumber/setPhoneNumber API" 2022-01-05 23:04:27 +00:00
Sarah Chin
569fbec7ef Merge "Add Constants for UsageSetting" 2022-01-05 20:06:20 +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
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
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
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
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
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
Grace Jia
cc16b0403c Add new API for new feature of display name.
Bug: 181383364
Test: BlockedNumberProvider test
Change-Id: I13c0ea3451b78ce5c7352f1f3fa15a28ae9bfa1f
2021-12-01 21:34:04 +00:00
Hunsuk Choi
9725d66837 Add ImsStateCallback
registerImsStateCallback and unregisterImsStateCallback are
added to ImsMmTelManager, ImsRcsManager, and SipDelegateManager.
Those are used to receive updates about the connection state
of the underlying ImsService.

Bug: 178016400
Test: atest ImsStateCallbackTest

Change-Id: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: I3ac14cc3bcb28f5f966a1b3c215727784527e475
2021-11-16 01:55:41 +00:00
Gary Jian
fe3f6bbf04 Correct the request number
RIL_REQUEST_IS_VONR_ENABLED

Bug: 203162440
Test: make
Change-Id: I9ecdc1811e9e680cd966ab91e7e2906a71e1c6ea
2021-11-09 15:05:37 +00:00
Sooraj Sasindran
e6abedb3ad VoNR toggle
Allow user to enable or disable voice over NR.

Bug: 190668235
Test: verified using settings UI
Change-Id: I655dc93c0b213e1b85b29b9a168f99072ca82186
Merged-In: I655dc93c0b213e1b85b29b9a168f99072ca82186
2021-11-09 15:05:05 +00:00
Rambo Wang
14cc15dc37 Clear up ALWAYS_REPORTED_SIGNAL_STRENGTH_CHANGED logic
The feature is now replaced with TM#setSignalStrengthUpdateRequest
introduced in S release. The logic for the obsoleted feature is
cleared up.

The request to report system signal strength while idle is
still protected by permission to use internally.

Bug: 177924721
Test: atest TelephonyRegistryTest SignalStrengthUpdateRequestTest
Change-Id: Idad4ca59720fac50b5ec0fe50e2b6ac8e9dbb801
2021-11-03 11:39:17 -07:00
Jordan Liu
e1dd6a01de Do not strip trailing F's of test ICCID
Some OEMs use test SIMs which have ICCID=FFFFFFF... In this case we
don't strip trailing F's.

Bug: 199254579
Test: manual
Change-Id: I69b40fa75e59163e8c30be77cc38e908d6dd8cd4
2021-10-18 11:51:31 -07:00
Sarah Chin
80b8c7f128 Update constructors for IRadioData classes
Test: atest FrameworksTelephonyTests
Bug: 198331673
Change-Id: I8480df1164548dde491c6ae6251bbc2725c3eadf
Merged-In: I8480df1164548dde491c6ae6251bbc2725c3eadf
2021-10-06 10:14:30 +00:00
Jooyung Han
05820c8ff6 Merge "telephony: suppress warnings in AIDL" am: 89242df0c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796511

Change-Id: Id02daf502a31ee333ea368621f072efc07104323
2021-08-25 05:03:06 +00:00
Jooyung Han
133879b683 telephony: suppress warnings in AIDL
Warnings from using untyped List/Map. For now these List/Map can't be
migrated to typed ones because AIDL List/Map doesn't support Integer as
key/value types.

Bug: 192615532
Test: m
Change-Id: If55364b4ad4dc5660871f7eef051e12ec0399a70
2021-08-17 14:36:04 +09:00
SongFerngWang
0c13fd19ec Add getPhoneCapability function in TelephonyManager
- Add a resource for Device's Nr information.
- Expose below as systemApi
  - getDeviceNrCapabilityBitmask()
  - getMaxActiveInternetData()
  - getMaxActivePacketSwitchedVoiceCalls()
Bug: 175711587
Test: atest TelephonyManager#testGetPhoneCapability
atest PhoneCapabilityTest
atest PhoneConfigurationManagerTest
atest CellularNetworkValidatorTest
atest PhoneSwitcherTest
atest TelephonyRegistryTest
atest PhoneCapabilityTest

Change-Id: Ide25344787c15b3a57a9e6621766ad02a906f12e
Merged-In: Ide25344787c15b3a57a9e6621766ad02a906f12e
2021-07-20 23:59:19 +08:00
Calvin Pan
252fdc0e38 Add TelephonyShellCommand to get EAB capability
Bug: 192370112
Test: atest
Change-Id: I1bccebd44f3f820b36f199804246d148cf58cfeb
2021-07-01 12:26:48 +00:00
Xin Li
48e70ad8bc DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: I81c036a8484d14683db9450b55bd379c7a728d73
Change-Id: I71fe9744d88740a8d95235ddb4c8ab91881473ce
2021-06-14 22:01:46 -07:00
James.cf Lin
932bf1a357 Add API for SHELL command to set the capabilities request timeout.
Bug: 188440601
Test: atest ImsServiceTest RcsUceAdapterTest
Merged-In: I4df957c97430758c6c84a06601070c3c3e3934e1
Change-Id: I4df957c97430758c6c84a06601070c3c3e3934e1
2021-05-27 22:09:52 +08:00
James.cf Lin
d0d7f63b20 Add API for SHELL command to set the capabilities request timeout.
Bug: 188440601
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: I4df957c97430758c6c84a06601070c3c3e3934e1
2021-05-25 01:29:38 +08: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
Mengjun Leng
bbcef295df 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
2021-05-18 11:13:56 -07:00
Tyler Gunn
817e62fb6f Merge "Add telephony shell command to force D2D communications enabled." into sc-dev 2021-05-17 20:34:48 +00:00
James Lin
6bf12e128b Merge "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." am: 011be0d15a am: b776230e12 am: 50c3a90cb3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689574

Change-Id: If268eafc96cf72b9e241290952fc2d005001ea8e
2021-05-09 16:34:36 +00:00
James Lin
50c3a90cb3 Merge "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." am: 011be0d15a am: b776230e12
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689574

Change-Id: Idf731b0b9ee15a4bb85677cc368b6271ba873bf4
2021-05-09 15:41:09 +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
Grace Jia
71de23564d Merge "Add support for selected contacts device to device sharing." am: 83bc8699a1 am: a9a60d31bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694227

Change-Id: I88e4170b568b7c7fe1610800d6b6181d171a3abc
2021-05-03 22:30:55 +00:00
Tyler Gunn
e6bf310006 Add telephony shell command to force D2D communications enabled.
This command is used for CTS testing to force override D2D on.

Test: Added CTS test leveraging the new command.
Test: Manual test to verify command operation.
Bug: 183239479
Change-Id: I093ee1503182a78baa7527097731974fc9499f62
2021-05-03 14:45:26 -07: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
259fa8266a Merge changes from topics "unthrottle_apm", "unthrottle_on_tac_changes" am: e4df5d375d am: efa5a0e556
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692851

Change-Id: I55bcfc699e0891426421b56397a6a48f517b6e9f
2021-05-01 09:33:15 +00:00
Daniel Bright
70a00cb622 Unthrottle all APNs on APM am: 86c11c1e69 am: 0e1b7e11ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692852

Change-Id: I8a7175ebca60361691a702e5e23ad4008ec1dcb0
2021-05-01 09:33:09 +00:00
Daniel Bright
0e1b7e11ec Unthrottle all APNs on APM am: 86c11c1e69
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692852

Change-Id: I9646b0d1fa970a3e986f18de0baecb3d19f09a46
2021-05-01 09:13:13 +00:00
Daniel Bright
86c11c1e69 Unthrottle all APNs on APM
Test: Toggle APM and check for unthrottle with logs
Bug: 176440863
Merged-In: I8ecc7a61a181df46f7283196cfaf2d28bbddb50f
Change-Id: I8ecc7a61a181df46f7283196cfaf2d28bbddb50f
(cherry picked from commit 781d41ad21)
2021-04-30 22:49:41 -07:00
Grace Jia
5585bdb0ec Add D2D sharing level setting APIs. am: d5eb6fb0ef am: f018ea3c3e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1623183

Change-Id: Ic98c8b07df96a19472176a65109aff99cd9704a2
2021-04-29 21:08:24 +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
Nazanin Bakhshi
1d1c733350 Merge "Security fix: enforce read privilege permission to check package privileges in TelephonyManager" into sc-dev 2021-04-21 22:04:04 +00:00
Nazanin
46160dc2c6 Security fix: enforce read privilege permission to check package
privileges in TelephonyManager

Bug: 180938364
Test: cts
Change-Id: I08c346c46b9e87dceaa1faf35fa36b954d88f9b0
2021-04-20 14:27:20 -07:00
Jack Yu
c8cf1b02a3 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
Change-Id: I1a7e413015ccdff3d9358cc85605325a4bff3b33
2021-04-20 13:31:51 -07:00
Kai Shi
c9f96b6ea7 Merge "Add a new constant for the NR SA MMWAVE case." into sc-dev 2021-04-03 00:59:51 +00:00
Brad Ebinger
a8366aeae4 Enforce READ_PHONE_STATE for APIs involving call state
For API version 31+, ensure that READ_PHONE_STATE is checked on
APIs that retrieve/notify the call state of the device.

Bug: 157233955
Test: atest CtsTelecomTestCases2 CtsTelephony2TestCases
Change-Id: I9f8674a3075d3e0f75ee4f41eefce328c0fa6b91
2021-03-25 15:11:00 -07:00
Hui Wang
85badc52ca Merge "Integrate RCS provisioning updates into SipTransport" am: 11149deba4 am: 2d9c051d65
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1651543

Change-Id: Ia905a6c97f963def63902e8ff600332bae335478
2021-03-24 21:55:02 +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
Hui Wang
aa6bb33b8e Merge "Integrate RCS provisioning updates into SipTransport" into sc-dev 2021-03-23 22:45:49 +00:00
Grace Jia
2bd23cfbcc Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
Merged-In: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-03-23 15:51:24 +00:00
Jack Nudelman
74230cc4a0 Merge "Require calling package to be allowlisted for thermal mitigation." am: fdad0e26a7 am: d3b14cf1fe am: 6176649cce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1634481

Change-Id: I6a3a3d4ebd19e8a2de8fcd3ed054600210e1aa31
2021-03-23 14:10:49 +00:00
Jack Nudelman
6176649cce Merge "Require calling package to be allowlisted for thermal mitigation." am: fdad0e26a7 am: d3b14cf1fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1634481

Change-Id: I11c8750cc9c8cb4c13370f0b30ed087c84629fa5
2021-03-23 13:29:37 +00:00