Commit Graph

4574 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
calvinpan
c20a67c5c5 Add TelephonyShellCommand to get EAB contact
Bug: 174166728
Test: atest
Change-Id: I102f67d7747c1bdd905a23d5deca6fbbd91ad890
2021-01-29 01:41:33 +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
Tyler Gunn
b6110a2158 Add support for sending d2d messages through adb shell command.
Adding in AIDL definition for sending test messages.

Test: Verified operation of the adb shell command which lets test message
be sent.
Bug: 163085177

Change-Id: I7b1c5398e2117077482a02ea4fec6c5d773ca3f5
2021-01-22 13:39:38 -08:00
Daniel Bright
fa862bc4aa Add Radio Interface Capabilities
* Introduces a set of capabilities specific for the radio interface
that are determined by the vendor and are then surfaced through
TelephonyManager.
* There are no capabilities yet defined and will come later in S

Test: Added cts, ran cts, and telephony tests
Bug: 163085807
Merged-In: I56713e05cbd5200baa2a3bc79f7f4b0d580ad2a1
Change-Id: Icbbfa056dc5280acdf53c142742f4e4b8d60229e
2021-01-21 14:35:44 -08:00
Rambo Wang
e86cb24b57 Support new APIs in TelephonyManager to set/clear signal update request
Introduce set/clearSignalStrengthUpdateRequest in TelephonyManager
and ITelephony to support customized signal request from applications.

Bug: 164432835
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: I749376872915a91b9514884547140eaf969dba0e
2021-01-20 21:14:41 -08:00
Mathew Inwood
29bf6e8443 Merge "Derestrict some non-SDK APIs." 2021-01-13 09:38:35 +00:00
Shuo Qian
077cefb9a9 Merge "Add Setting API to set/get enriched calling with call composer user option" 2021-01-07 18:32:44 +00:00
Mathew Inwood
95709ba69f Derestrict some non-SDK APIs.
Per request from a partner, these APIs will not be restricted as they
are in use. This is conceptually a partial revert of change 5d123b6775.

NoNonSdkCheck: b/170729553

Bug: 171933273
Test: Treehugger
Change-Id: Ibb525e9a9e2fc90248b74f45f3cdcb0be7487c3a
2021-01-07 09:53:09 +00:00
Daniel Bright
f2f714a0dc Add apn throttle status notifications to QNS
* Added wiring for the apn unthrottled indication
* Added method to QNS that is notified when there is a change to
  the way an APN is throttled.

Test: Ran telephony tests
Test: Booted up device
Test: Checked for log message in
      NetworkAvailabilityProvider#onReportApnThrottleStatusChanged
Bug: 167434852
Bug: 174850845
Merged-In: Ia4dd3036f583a97e42b6054019005df1b33dc33c
Change-Id: Ia4dd3036f583a97e42b6054019005df1b33dc33c
2021-01-05 11:36:34 -08:00
Shuo Qian
631df95517 Add Setting API to set/get enriched calling with call composer user option
Test: cts
Bug: 173437870
Change-Id: Iaf2cb72864dca992249395103aedee93ff8d3ac0
Merged-In: Iaf2cb72864dca992249395103aedee93ff8d3ac0
(cherry picked from commit ccc5af201a)
2020-12-22 23:56:08 +00:00
Chiachang Wang
228306b008 Create getMobileProvisioningUrl in telephony
ConnectivityService is going to become mainline and can not
access hidden APIs. Telephony and Settings were both accessing
the hidden API ConnectivityManager#getMobileProvisioningUrl.
Moving #getMobileProvisioningUrl method into telephony means
that there is one less access to a hidden API within the
overall framework since the connectivity stack never needed
this value. Thus, add getMobileProvisioningUrl() to telephony
surface to replace the one in connectivity stack.

Bug: 175177794
Test: atest FrameworksTelephonyTests
Change-Id: Icff8bf39b168b28f972b6737e4e7be8fc86b3dee
2020-12-22 11:22:58 +08:00
Hui Wang
e92ddfef4f RCS Provisioning APIs for Single Registration
Bug: 154864150
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Merged-In: Ie9445dd450d175e0dc94b63b487dda5cde729123
Change-Id: Ie9445dd450d175e0dc94b63b487dda5cde729123
2020-12-17 17:13:24 +00:00
Thiébaud Weksteen
7e242b5bba Add constants for AllowedNetworkTypeBitmap
Bug: 163168917
Test: atest TeleServiceTests
Change-Id: Iae64e9118cb4f69f180517b7aadb9ace9b8ef98b
2020-12-15 13:48:51 +01:00
Hui Wang
4c9e7a8d0c Merge "Support Gba Api" 2020-12-10 22:40:07 +00:00
Jordan Liu
beb163c655 Merge "Add API for setting SIM power "synchronously"" 2020-12-10 21:46:30 +00:00
Hui Wang
bfc6cd7483 Support Gba Api
Added api to support generic authentication architecture.

Bug: 154865133
Test: atest cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
Test: manual by GbaTestApp
Merged-In: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2
Change-Id: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2
2020-12-10 18:02:19 +00:00
Jordan Liu
a10b782505 Add API for setting SIM power "synchronously"
Bug: 171433370
Test: manual
Change-Id: I958d6c3a46cc6e99e8addf2628361e37bc178464
Merged-In: I958d6c3a46cc6e99e8addf2628361e37bc178464
2020-12-09 13:34:58 -08:00
Jack Nudelman
d64c58744a Add ThermalMitigation API to Telephony.
go/telephony-thermal-mitigation

Test: make, cts
Bug: 158872959

Change-Id: Ib4be5edf063e4c54e9238b0403f59e1621df671e
Merged-In: Ib4be5edf063e4c54e9238b0403f59e1621df671e
2020-12-03 19:41:31 +00:00
Sarah Chin
138e2db12a Merge "Create getSystemSelectionChannel API" 2020-12-01 20:08:10 +00:00
Brad Ebinger
af18d59494 Merge "Add SIP Transport create/destroy API defs" 2020-12-01 01:20:12 +00:00
Sarah Chin
f06ca9903c Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Bug: 152813408
Change-Id: I2d80284b92414f403af977cbe193766eac08a6e0
Merged-In: I2d80284b92414f403af977cbe193766eac08a6e0
2020-11-30 14:45:27 -08:00
Brad Ebinger
082ae24fa8 Add SIP Transport create/destroy API defs
Move SIP transport APIs to @SystemApi

Bug: 154763999
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I181e84866fcdb683eb5933e54460bbe18e96851d
2020-11-25 14:59:49 -08:00
Daniel Bright
926aff5e7b Add support for pdu session id
Added startHandover and cancelHandover to DataService and DataServiceManager
so that it can be called by data connection

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 155176305
Merged-In: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
Change-Id: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
2020-11-20 12:23:43 -08:00