Commit Graph

4560 Commits

Author SHA1 Message Date
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
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
Kai Shi
26ba4d0d09 Merge "Add the LCE system API" 2021-03-18 21:23:34 +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
dfbd3a4072 Merge "Rename AllowedNetworkType to AllowedNetworkTypes" 2021-03-09 12:44:22 +00:00
Hui Wang
629a24b258 Merge "Update Provisioning API name and doc per API review" 2021-03-08 22:02:20 +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
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
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
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
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
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
Sarah Chin
c315bf8c7d Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API
Test: atest TelephonyManagerTest
Fix: 171884158
Fix: 171883908
Change-Id: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
Merged-In: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
2020-11-19 14:37:35 -08:00
Sooraj Sasindran
a63c16f36a Provide API to retrive dual connected bandwidth
Provide API to retrive bandwidth per primary carrier
and secondary carrier

Bug: 162373679
Test: New CTS test, unit test, build

Merged-In: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
Change-Id: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
2020-11-11 22:17:32 -08:00
Mathew Inwood
f8abe13db4 Merge "Add maxTargetSdk restriction to unused APIs." 2020-11-09 14:41:20 +00:00
Daniel Bright
bc99f76305 Merge "Allows APN to be unthrottled through an indication" 2020-11-06 05:04:14 +00:00
Tyler Gunn
49612b38d8 Merge "Add support for DTMF and RTP header extension communications." 2020-11-05 17:57:40 +00:00
Tyler Gunn
08ddbc2b6d Add support for DTMF and RTP header extension communications.
Add support for:
- reporting of incoming DTMF tones from IMS stack.
- incoming/outgoing RTP header extension data.

Test: Added unit tests where possible.
Test: Added test intents to inject test data into framework for platform
testing.
Bug: 163085177
Change-Id: If34faeba0461c677a1381c82ead4a79c607bcf13
2020-11-05 00:19:52 +00:00
Sooraj Sasindran
11a66cb266 Ability to configure NR dual connectivity
Provide ability to configure EUTRANR dual
connectivity

Bug: 162373679
Test: build
Change-Id: I48f5ef0a5f84157de9feffa8c5aa85d226163068
2020-11-04 10:28:10 -08:00
Mathew Inwood
5d123b6775 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-04 09:45:53 +00:00