Commit Graph

4412 Commits

Author SHA1 Message Date
Calvin Pan
252fdc0e38 Add TelephonyShellCommand to get EAB capability
Bug: 192370112
Test: atest
Change-Id: I1bccebd44f3f820b36f199804246d148cf58cfeb
2021-07-01 12:26:48 +00: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
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
Kai Shi
e06cd0c34b Add a new constant for the NR SA MMWAVE case.
Test: manual
Test: FrameworksTelephonyTests:com.android.internal.telephony
Bug: 176814680
Change-Id: I340c3a5d48c2ed870bfeb2bd5e80f7da1915a008
2021-03-22 18:42:26 -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
Hui Wang
840afdd0bd Integrate RCS provisioning updates into SipTransport
Bug: 173828167
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Change-Id: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
2021-03-19 07:49:58 -07:00
Hongbo Zeng
c638307194 Support getSlicingConfig() API for 5G Slicing Configuration
- add getSlicingConfig() API in TelephonyManager and ITelephony
- add Parcelable implmentations for RouteSelectionDescriptor,
  SlicingConfig, and UrspRule
- remove @hide and @SystemApi for TrafficDescriptor and
  NetworkSliceInfo to make them public

Bug: 178075247
Test: .
(1) run "atest TelephonyManagerTest#testGetSlicingConfig" for CTS result
[22/121] android.telephony.cts.TelephonyManagerTest#testGetSlicingConfig: PASSED (956ms)
(2) run "atest RILTest#testGetSlicingConfig" for RILTest result
[17/111] com.android.internal.telephony.RILTest#testGetSlicingConfig: PASSED (1ms)

Change-Id: I0addc2b22c11b13759e890d88f51490993fb72e1
2021-03-19 20:03:26 +08:00
Kai Shi
1224d2650b Merge "Add the LCE system API" am: 26ba4d0d09 am: 855075a2c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1643471

Change-Id: I19a67dc2479548452f96c82e91c2a236ffbbf8ad
2021-03-18 22:46:08 +00:00
Kai Shi
26ba4d0d09 Merge "Add the LCE system API" 2021-03-18 21:23:34 +00:00
Brad Ebinger
20b244b5c3 Merge "Create new UCE shell commands for modifying PUBLISH for testing" am: 748bf34abf am: 071c6e31ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1587771

Change-Id: I768d5a673717c8e3a043ef3e28ac1f79df69ba67
2021-03-18 17:25:58 +00: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
Brad Ebinger
3dbd2a0063 Create new UCE shell commands for modifying PUBLISH for testing
Bug: 180033898
Test: Test commands using "adb shell cmd phone uce"
Merged-In: I6cda05b0540144e6d9199055fdca187f831c1479
Change-Id: I6cda05b0540144e6d9199055fdca187f831c1479
2021-03-17 21:39:40 +00:00
Brad Ebinger
a481a433d7 Merge "Create new UCE shell commands for modifying PUBLISH for testing" into sc-dev 2021-03-17 19:38:30 +00:00
Kai Shi
5d530fab23 Revert "Revert "Add the LCE system API""
This reverts commit 8d60c5ceb4.

Reason for revert: <this CL doesn't break error prone build. Will redo the CTS one which does break the build>

Change-Id: I5899acf02006a164e31f9b82aeaa7974dd6d2869
Bug: 182869926
2021-03-16 20:38:38 +00:00
Martijn Coenen
8d60c5ceb4 Revert "Add the LCE system API"
Revert "Add CTS test for onLinkCapacityEstimateChanged"

Revert "[Telephony] Notify onLinkCapacityEstimateChanged"

Revert "Remove the system API of getCarrierBandwidth()"

Revert submission 13662828-LceApi

Reason for revert: b/182869926, breaks errorprone
Reverted Changes:
I1998c7e49:Add CTS test for onLinkCapacityEstimateChanged
Id69fa8b7a:Integrate New LCE Api
I0cc020ba3:Remove the system API of getCarrierBandwidth()
Id613dc152:Add the LCE system API
If7cede0f4:[Telephony] Notify onLinkCapacityEstimateChanged

Change-Id: I30813c321509ac44fa0119b0ce905fd28b0f139c
2021-03-16 09:45:23 +00:00
Kai Shi
df3e93af96 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
Change-Id: Id613dc152e524045a89295e5dd03171b22377e16
2021-03-15 15:00:01 -07:00
Brad Ebinger
84484268e9 Create new UCE shell commands for modifying PUBLISH for testing
Bug: 180033898
Test: Test commands using "adb shell cmd phone uce"
Change-Id: I6cda05b0540144e6d9199055fdca187f831c1479
2021-03-15 12:47:48 -07:00
Grace Jia
b53cb66e5f Add D2D sharing level setting APIs.
Test: unit test, cts test
Bug: 163085177
Change-Id: I86f88d68c8629a0329dcde7b2d17928cacec37e7
Merged-In: I86f88d68c8629a0329dcde7b2d17928cacec37e7
2021-03-11 22:20:16 +00:00
SongFerng Wang
4c8d91f2c8 Merge "Rename AllowedNetworkType to AllowedNetworkTypes" am: dfbd3a4072 am: 4bf02f2282
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614991

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I952841fe940d2224b9e78dd19d295866a7f7eb54
2021-03-09 13:25:55 +00:00
SongFerng Wang
dfbd3a4072 Merge "Rename AllowedNetworkType to AllowedNetworkTypes" 2021-03-09 12:44:22 +00:00
Hui Wang
4e50cf240d Merge "Update Provisioning API name and doc per API review" am: 629a24b258 am: f622e0e38e am: c4cac7bb2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562933

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I18889597b789affb869ea0cc1a78366e681e6e70
2021-03-08 23:24:27 +00:00
Hui Wang
c4cac7bb2d Merge "Update Provisioning API name and doc per API review" am: 629a24b258 am: f622e0e38e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562933

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I91fbcc91ae746b4008c5028a4ce40d65236300cd
2021-03-08 22:59:09 +00:00
Hui Wang
629a24b258 Merge "Update Provisioning API name and doc per API review" 2021-03-08 22:02:20 +00:00
Zoey Chen
543116fc71 Merge "[Telephony] Remove the dead code setRadioCapability in ITelephony" am: d22eced34b am: 18451a325d am: 83228fef36
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1618843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0a64f7a0db225906e05821b79c3da4d592cb9ea1
2021-03-05 13:52:06 +00:00
Zoey Chen
83228fef36 Merge "[Telephony] Remove the dead code setRadioCapability in ITelephony" am: d22eced34b am: 18451a325d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1618843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I93967747b496f35815aeb0af0b3cc19ffebb92a4
2021-03-05 13:47:27 +00:00
SongFerngWang
0691445e92 Rename AllowedNetworkType to AllowedNetworkTypes
Reference the ag/q/topic:%22b_171791177%22+(status:open%20OR%20status:merged)
and ag/q/topic:"getAllowedNetworkTypeBitmap"+(status:open%20OR%20status:merged)

Bug: 161434786
Test: build pass
Change-Id: I48d36d73d016f7aa7fabec25a725abe03b1dee8d
Merged-In: I48d36d73d016f7aa7fabec25a725abe03b1dee8d
2021-03-05 13:06:04 +00:00