Commit Graph

4710 Commits

Author SHA1 Message Date
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
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
Zoey Chen
d22eced34b Merge "[Telephony] Remove the dead code setRadioCapability in ITelephony" 2021-03-05 12:35:39 +00:00
SongFerng Wang
03297aacc6 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" am: b332627a15 am: 6035378f91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614985

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia227678f0f38adc05bf6ea39eee0eea8ebfea582
2021-03-05 05:17:43 +00:00
Hui Wang
944ad68449 Update Provisioning API name and doc per API review
Bug: 178456092
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: I2a5c6c9a760479361ce66401f87316dd3c9d909d
2021-03-05 03:16:39 +00:00
SongFerng Wang
b332627a15 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" 2021-03-05 01:59:53 +00:00
Zoey Chen
02271f9d02 [Telephony] Remove the dead code setRadioCapability in ITelephony
Bug: 181156124
Test: make
Change-Id: I5b8ebcdcc60815de93420c742740032a0d21f028
2021-03-04 18:05:27 +08:00
SongFerngWang
e206456a16 Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType
- Add more reasons of allowed network type
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
- Add @systemApi for below
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_POWER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
  - setAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesBitmask API
- Add Public for below
  - CARRIER_NR_AVAILABILITY_NONE
  - CARRIER_NR_AVAILABILITY_NSA
  - CARRIER_NR_AVAILABILITY_SA
  - KEY_CARRIER_NR_AVAILABILITY_INT
- @Deprecated API
  - setPreferredNetworkTypeBitmask
  - getPreferredNetworkTypeBitmask
  - setAllowedNetworkType
  - getAllowedNetworkType
- Add a new way to notify allowedNetworkType at PhoneStateListener
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)

Change-Id: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
Merged-In: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
2021-03-04 14:58:54 +08:00
Sarah Chin
770d3084d9 Merge "APIs for 5G slicing" am: 08b9f41364 am: f898afeaf8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1593931

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1232091caedbe49009667c5f34af543bb5c5be07
2021-03-03 19:29:48 +00:00
Sarah Chin
e97855c10f APIs for 5G slicing
Create TrafficDescriptor class
Create new APN ENTERPRISE
Update setupDataCall and DataCallResponse to take TrafficDescriptor and
matchAllRuleAllowed
Move ApnTypes from Annotation to ApnSetting

Bug: 179312227
Test: atest FrameworksTelephonyTests
Change-Id: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
Merged-In: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
2021-03-03 14:16:21 +09:00
Hall Liu
4a264df43b Merge "Expose the carrier signaling broadcasts" am: b8cc532986 am: 05bc834ddc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1613539

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If0dac083de7bd88455e5090d85b3761b1952aa0c
2021-03-02 23:52:41 +00:00
Daniel Bright
781d41ad21 Unthrottle all APNs on APM
Test: Toggle APM and check for unthrottle with logs
Bug: 176440863
Change-Id: I8ecc7a61a181df46f7283196cfaf2d28bbddb50f
2021-03-02 14:30:27 -08:00
Hall Liu
39087a439e Expose the carrier signaling broadcasts
Expose broadcasts for communicating certain changes in state between
Telephony and carrier apps.

Implement a backward-compatibility layer to support carrier apps
targeting <=R that are listening to the old hidden broadcasts.

Fixes: 173050428
Test: atest CarrierSignalTest CarrierSignalAgentTest
Change-Id: I15d032ee1e31d9be847c2f084161f8555c8172c1
Merged-In: I15d032ee1e31d9be847c2f084161f8555c8172c1
2021-03-02 13:38:53 -08:00
Hui Wang
30ec6207cf Merge "Support telephoy command to set test mode for RCS single registration" am: 3727cc1834 am: aa4c7d0fe5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612065

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifcfba0585ecdf76f99946b86b6b5b96ecae82456
2021-03-02 21:30:54 +00:00
Hui Wang
a1b42da63d Support telephoy command to set test mode for RCS single registration
Bug: 181054754
Test: Manual
Merged-In: Id34c212e536b47c61bc1939ef056905fc26b4df2
Change-Id: Id34c212e536b47c61bc1939ef056905fc26b4df2
2021-03-01 21:37:01 +00:00
Hui Wang
043304fc1d Merge "Support telephoy command to set test mode for RCS single registration" into sc-dev 2021-02-27 00:04:51 +00:00
Hui Wang
f4e393fbdc Support telephoy command to set test mode for RCS single registration
Bug: 181054754
Test: Manual
Change-Id: Id34c212e536b47c61bc1939ef056905fc26b4df2
2021-02-25 21:47:25 -08:00
Shuo Qian
b201f9b1e6 Add Emergency callback mode shell command
Test: manual
Bug: 178821491
Change-Id: If6ca01283a02a4c1f762eaa0f4cd798d48781761
Merged-In: If6ca01283a02a4c1f762eaa0f4cd798d48781761
2021-02-24 23:21:55 +00:00
Shuo Qian
4fe89b2230 Merge "Add Emergency callback mode shell command" into sc-dev 2021-02-24 21:07:53 +00:00
Sarah Chin
02be60c442 Merge "APIs for 5G slicing" into sc-dev 2021-02-24 17:36:45 +00:00
Sarah Chin
3543f3c2fb APIs for 5G slicing
Create TrafficDescriptor class
Create new APN ENTERPRISE
Update setupDataCall and DataCallResponse to take TrafficDescriptor and
matchAllRuleAllowed
Move ApnTypes from Annotation to ApnSetting

Bug: 179312227
Test: atest FrameworksTelephonyTests
Change-Id: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
2021-02-22 21:58:07 -08:00
Shuo Qian
dac5b6f32d Add Emergency callback mode shell command
Test: manual
Bug: 178821491
Change-Id: If6ca01283a02a4c1f762eaa0f4cd798d48781761
2021-02-23 02:41:25 +00:00
Michele Berionne
ae77970ae1 Add new API for unattended reboot.
CTS-Coverage-Bug: 179310594
Bug: 160784387
Test: manual
Change-Id: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
Merged-In: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
(cherry picked from commit 726fa0a5f4)
2021-02-22 19:43:09 +00:00
Tyler Gunn
35b5c8c135 D2D communication improvements.
- Add logging of accepted RTP header extension types to ImsCallProfile
- Add toString for various Rtp classes to enable logging.
- Add method backing new transport override command line option.

Bug: 163085177
Test: Manual
Change-Id: I39eb77a2f9095a944f9a5b57f8c02255657c13de
2021-02-22 18:54:31 +00:00
Kai Shi
0aa410feb9 Merge "Change config_bandwidthEstimateSource to bandwidth_estimator" into sc-dev 2021-02-17 21:14:07 +00:00
Treehugger Robot
03a1e5af63 Merge "Add UCS-2 support for SimPhonebookContract" am: 9a90bb9efa am: 9758ffb187 am: ff3e2d3799
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1564508

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I760b3a9007062414123e581ee3085cfa105540ec
2021-02-17 08:54:14 +00:00
Marcus Hagerott
407164df11 Add UCS-2 support for SimPhonebookContract
This simplifies the API by eliminating the need to attempt to detect
and report unsupported characters.

Test: atest FrameworksTelephonyTests:com.android.internal.telephony.uicc.IccUtilsTest TeleServiceTests:SimPhonebookProviderTest
Bug: 154363919
Change-Id: Ica8f3a642ee50ca81c43822ba39c0a071c279705
2021-02-16 06:47:23 -08:00
Kai Shi
653d62fedd Change config_bandwidthEstimateSource to bandwidth_estimator
Change the default value of  config_bandwidthEstimateSource to
bandwidth_estimator.

Bug: 177942435
Bug: 176814680
Test: atest -c FrameworksTelephonyTests:com.android.internal.telephony
Test: manual test in 2G/3G/4G networks
Change-Id: I59c869334a6147879331c428baeb9625e0802f6e
2021-02-14 11:16:27 -08:00
Michele Berionne
726fa0a5f4 Add new API for unattended reboot.
Details of the feature are available at: go/pin-after-ota

CTS-Coverage-Bug: 179310594
Bug: 160784387
Test: manual
Change-Id: I59b7ff7afec9846a114ee8d20f14d22cf69f0680
2021-02-09 00:19:05 +00:00
Hall Liu
4edcb5272a Merge "Rename setMobileDataPolicyEnabledStatus" into sc-dev 2021-02-03 19:54:14 +00:00
Hall Liu
7da0b797ed Rename setMobileDataPolicyEnabledStatus
Rename to setMobileDataPolicyEnabled per API council comments

Fixes: 171804465
Test: atest TelephonyManagerTest
Change-Id: Idff480ce21d1591057c26e6e5474c6ff2ee5297a
2021-02-02 12:34:57 -08:00
James Lin
1658de5dba Merge "[RCS UCE] Add the APIs to access the device config of RCS User Capability Exchange enabled" am: 02bf7d1288 am: 3640adadee am: df25462ffe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1566998

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1a6ee00506a5b570adc2f4c4545af1f9f279336
2021-02-02 06:41:23 +00:00
James.cf Lin
1d44f9e09e [RCS UCE] Add the APIs to access the device config of RCS User Capability Exchange enabled
Bug: 178239287
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Change-Id: I1bd2d0e0dc88dcd72e7c2682483c8039f4aa8927
2021-02-02 06:30:49 +08:00
Calvin Pan
eee6428b80 Merge "Add TelephonyShellCommand to get EAB contact" am: d2d77dba7d am: e532d3be62 am: a0927df3f1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1559096

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If4e6ae901154e6d57117ff61095639e09bd29b7c
2021-02-01 09:19:44 +00:00
calvinpan
c20a67c5c5 Add TelephonyShellCommand to get EAB contact
Bug: 174166728
Test: atest
Change-Id: I102f67d7747c1bdd905a23d5deca6fbbd91ad890
2021-01-29 01:41:33 +00:00
James Lin
a8053430ae Merge "Expose the RCS UCE APIs for capabilities request with presence mechanism." am: 4548fab7d6 am: 795855ec7b am: 108a1933ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550598

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6be307948ed6bc4600294ec628585018be3cccde
2021-01-28 21:14:08 +00:00
James.cf Lin
daaf205e18 Expose the RCS UCE APIs for capabilities request with presence mechanism.
The contact's capabilities request APIs are exposed to be the SystemAPI and add the CTS for these APIs.

Build: 174656329
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest
Change-Id: Id8a3be587f200dfee8f7c6343ed771e7ac738568
2021-01-28 02:59:30 +08:00
SongFerng Wang
816ef2dde1 Merge "Add getPhoneCapability function in TelephonyManager" 2021-01-26 07:46:55 +00:00
SongFerng Wang
a0373dd123 Merge "Rename AllowedNetworkType to AllowedNetworkTypes" 2021-01-26 07:22:07 +00:00
SongFerngWang
13d5297155 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
2021-01-26 09:24:28 +08:00
Tyler Gunn
d66d10525c Merge "Add support for sending d2d messages through adb shell command." am: 7a58ad001b am: 0b333f92c1 am: 511997baab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1555546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I339559c8e459e644f24f041361b8798cbcbc4a7d
2021-01-26 00:22:16 +00:00