Commit Graph

13546 Commits

Author SHA1 Message Date
Franck Perez
32bd3884fc Allow optional package names in carrier configs
Bug: 149749602
Test: tested locally both the non-regression (no package names) and the new behaviour (package names) with carrier-provided test apps
Change-Id: I0b807ea1f6ae1f1663dd4362900ab61012a0aa8d
2021-02-15 10:29:43 -05:00
Hall Liu
923d7d28d0 Merge "Allow carriers to configure RTT while roaming" 2021-01-25 23:03:02 +00:00
Jordan Liu
11dff58d5e Merge "Add carrier config for carrier key" 2021-01-25 18:52:10 +00:00
Allen Su
725e04e4f1 Merge "[RCS]Add getEncodedMessage() in SipMessage.java" 2021-01-25 18:10:11 +00:00
Hall Liu
d20b2a013b Allow carriers to configure RTT while roaming
Add a carrier config key that makes RTT supported even if roaming.

Fixes: 168676696
Test: manual
Change-Id: Ied2418cdec57d2d405d4ed0f0227a251ecd626cf
2021-01-22 16:16:23 -08:00
Jordan Liu
60173db15f Add carrier config for carrier key
Give carriers the option of including a backup IMSI encryption key as a
carrier config.

Bug: 175801497
Test: manual and atest TelephonyManagerTest
Change-Id: I89d88daf2022672bf27125baae0247b75638bb6e
Merged-In: I89d88daf2022672bf27125baae0247b75638bb6e
2021-01-22 15:22:44 -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
e44156cfd6 Merge "Add Radio Interface Capabilities" 2021-01-22 19:08:21 +00:00
Daniel Bright
2cc8ead3d6 Add Qos Callback support
* Provide App Developers Qos related info associated to
  a bound socket through ConnectivityManager
* Qos sessions are generated and filtered by Network Agents
  and sent back through the Connectivity Service to the
  API consumer.
* The structure of the code within com.android.server
  is designed to support different types of filters in the
  the future.
* The first type of Qos Attributes are related to EPS
  Bearers in order support RCS.

Bug: 155176305
Test: Added to cts/NetworkAgentTest
Test: Added to ConnectivityServiceTest
Change-Id: I145dd065d9deeee449eb9695ab3f6c8556ee7c09
2021-01-21 20:14:52 -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
Sarah Chin
96bba0f57a Update TelephonyDisplayInfo docs
Explain how to get TelephonyDisplayInfo through TelephonyManager and
PhoneStateListener

Test: build
Fix: 158760752
Change-Id: Ia59efcf68c77d79be1a223f9fd6cbf3ec333478a
Merged-In: Ia59efcf68c77d79be1a223f9fd6cbf3ec333478a
2021-01-21 13:11:16 -08:00
Nathan Harold
2b79ba7f42 Merge "Revert "Revert "Fix permission on TM#isDataEnabled""" 2021-01-21 19:04:12 +00: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
Zoey Chen
e61da845fa Merge "[PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API" 2021-01-21 04:29:58 +00:00
Daniel Bright
2c8f0de95c Merge "Make TelephonyManager#setImsRegistrationState multi-sim aware" 2021-01-21 04:10:27 +00:00
Amit Mahajan
19ffdb0894 Merge "Remove dup result code descriptions" 2021-01-20 22:19:23 +00:00
Nathan Harold
cd08bb620d Revert "Revert "Fix permission on TM#isDataEnabled""
This reverts commit 8ce575b256.

Bug: 176163590
Bug: 148500541
Test: manual smoke test on low-end device and aosp_crosshatch builds.
Reason for revert: Reapplying with a fix for the exceptions.

The exceptions were caused by an undocumented behavior difference in the APIs that just blindly catch runtime exceptions. The cause of the runtime exceptions is that people are calling isDataEnabled() before telephony is running; however, until a "better" fix is available, this API will apply the existing behavior of just catching the runtime exceptions (which is terrible, but it's the plan of record in the code today).

Change-Id: I9fbe7126ee7039dfb0b383f83017458a3525db66
2021-01-20 21:30:55 +00:00
Daniel Bright
fd5dead7de Make TelephonyManager#setImsRegistrationState multi-sim aware
Test: Ims call and unit tests
Bug: 167294783
Change-Id: Idb8f5ce7fe7592e94cb6202e7df133a354746388
2021-01-20 11:24:01 -08:00
Hall Liu
942b71b485 Merge "IMS: Add new carrier config." 2021-01-19 22:36:43 +00:00
allenwtsu
227d47f9ec [RCS]Add getEncodedMessage() in SipMessage.java
Test: atest
Bug: 177889282
Change-Id: Ib4b2da5b8c8bab490f00d87b785e87a74a2f6dfc
2021-01-19 21:48:15 +08:00
Rambo Wang
14927330cd Introduce SignalStrengthUpdateRequest to customize signal update request
Privileged apps can send the request through TelephonyManager APIs
(in following CL) to monitor signal strength change with interested
RAN/SignalMeausrementType/Thresholds.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalStrengthUpdateRequestTest
Change-Id: Ifba384108b6627e4b808be34e6d828c93e8df995
2021-01-18 08:46:42 -08:00
Zoey Chen
82e3bca9dd [PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API
1. Implement new API:
    #getUpLinkFrequency
    #getDownLinkFrequency
    #getBand
    #getChannelNumberUplink
    #getChannelNumberDownlink
    #getCellBandwidthUplink
2. Have mapping tables for converting frequency range
if getFrequencyRangeGroupFromXXXBand is unknown.
   NR-ARFCN, E-UTRA, UTRA and Geran
3. Get the frequency from the band
    #getFrequencyRangeGroupFromXXXBand

Bug: 162300897
Test: manual
Change-Id: I44101653659d2b5d593a2b06be6567e0d0ef433f
Merged-In: I44101653659d2b5d593a2b06be6567e0d0ef433f
2021-01-18 13:00:30 +00:00
Rambo Wang
a40d0d19f1 Merge "Expose SignalThresholdInfo as public class" 2021-01-16 01:53:15 +00:00
Zoey Chen
3521a14be4 Merge "[Telephony] PhoneStateListener redesign for new event" 2021-01-16 00:56:51 +00:00
Sonalika Paul
efa0fa985d IMS: Add new carrier config.
Add new carrier config to determine
default RTT mode.

Bug: 130010750
Change-Id: Id8de3749a336144ce053151a74c42a113b925369
2021-01-15 18:13:10 +05:30
Treehugger Robot
6423b430a7 Merge "Improve RCS single registration logging" 2021-01-15 06:36:41 +00:00
Brad Ebinger
4b4e2a6fd2 Improve RCS single registration logging
Test: manual - verify logs with CTS tests
Change-Id: I14c5a38ef00bc9858945e979d081ae15ac46051c
2021-01-15 01:45:02 +00:00
Rambo Wang
ddf5bc0160 Expose SignalThresholdInfo as public class
Expose the fields and methods for application to specify
the customized signal update request.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalThresholdInfoTest
Change-Id: I879efb2e6b4366e96059973cf4264e4192c1cf29
2021-01-14 16:51:45 -08:00
James Lin
2a24bb672f Merge "Remove the hidden API "onRemoteCapabilityRequest" from the exposed interface CapabilityExchangeEventListener" 2021-01-15 00:39:17 +00:00
Grace Jia
096b7d4a25 Merge "Add new phone number match method." 2021-01-14 21:51:55 +00:00
Brad Ebinger
ee0220039e Merge "Parse SIP Messages for Transaction ID in SIP transport" 2021-01-14 21:20:44 +00:00
Shuo Qian
f1273df6cc Merge "Support call composer status that disabled the picture sending" 2021-01-14 20:49:43 +00:00
James.cf Lin
f327972498 Remove the hidden API "onRemoteCapabilityRequest" from the exposed interface CapabilityExchangeEventListener
The interface CapabilityExchangeEventListener is exposed.
However the API "onRemoteCapabilityRequest" is hidden and it will cause it cannot be implemented.
Remove this api for now and add it back when the api is ready to exposed.

Bug: 177451691
Test: atest CtsSystemApiSignatureTestCases:android.signature.cts.api.system.SignatureTest#testSignature
Change-Id: I9ac1b8a5654fe16b9ae862d6e65aec9319cb6be5
2021-01-15 04:39:13 +08:00
Rambo Wang
e630298ff1 Merge "Preparation to expose SignalThresholdInfo as public class" 2021-01-14 14:50:49 +00:00
Zoey Chen
041679fa9a [Telephony] PhoneStateListener redesign for new event
1. Add int EVENT_* and expose these as @SystemApi
 2. Add listener interface
 3. Deprecated LISTEN_*
 4. un/registerPhoneStateListener
 5. get event from event listener
 6. Add event to list

Test: manual and
atest TelephonyManagerTest#testRegisterPhoneStateListener
atest TelephonyManagerPermissionTest
atest CtsTelephonyTestCases:PhoneStateListenerTest
atest TelephonyRegistryManagerTest
atest CtsTelecomTestCases:android.telecom.cts.IncomingCallTest
atest CtsTelecomTestCases:android.telecom.cts.OutgoingCallTest

Bug: 167684594
Change-Id: Id89a541745fb8700e1ebd2cc162ee55cd1055661
Merged-In: Id89a541745fb8700e1ebd2cc162ee55cd1055661
2021-01-14 16:58:33 +08:00
Taesu Lee
60c671c366 Remove dup result code descriptions
Test: Not required.

Change-Id: I14e574f9a29105985b4e467162002c9e590130de
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2021-01-14 10:08:30 +09:00
Grace Jia
6194382d75 Add new phone number match method.
Test: atest CtsTelephonyTestCases
Bug: 174028667
Change-Id: I7b9d8f6dca6af37007a577796b4c46f010c2b23c
2021-01-13 16:01:24 -08:00
Rambo Wang
2436cff521 Preparation to expose SignalThresholdInfo as public class
Introduce RAN to better associate it with thresholds. Later CL
should be able to further simplify APIs which ask for both RAN and
SignalThresholdInfo.

Validate threshold values during constructing.

Deliberately hide all the public fields and methods, so the following
CL will only need to expose designed properties. Make it easy
for API review.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalThresholdInfoTest
Change-Id: Ib0600c43b90ab0231b29f989976cb090f4b37bf8
2021-01-13 14:14:19 -08:00
Shuo Qian
5321bad867 Support call composer status that disabled the picture sending
Test: cts
Bug: 173437870
Change-Id: Ib6ea41b56797d871cf38e7386428f84ce8438803
2021-01-13 20:13:17 +00:00
Mathew Inwood
29bf6e8443 Merge "Derestrict some non-SDK APIs." 2021-01-13 09:38:35 +00:00
James Lin
5b51530d0d Merge "[RCS UCE] Expose the RCS UCE publishing device's capabilities APIs" 2021-01-13 00:33:57 +00:00
Brad Ebinger
5a9d8c495a Parse SIP Messages for Transaction ID in SIP transport
In cases where the framework/ImsService is not available,
locally extract the transaction ID from the SipMessage in order
to call the appropriate error method back to the caller.

Bug: 173828358
Test: atest FrameworksTelephonyTests:SipMessageParsingUtilsTest
Change-Id: I4ff5ed9ad4492e817c4a687e90d3a294e5514d8b
2021-01-12 22:13:47 +00:00
James.cf Lin
50c18c12c6 [RCS UCE] Expose the RCS UCE publishing device's capabilities APIs
The RCS publishing device's capabilities APIs are exposed to be the SystemAPI and add the CTS for these APIs.

bug: 174187744
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: I731dbe64614b91efa0002ffccb638b4a10f7c5f4
2021-01-12 10:56:41 +08:00
Shuo Qian
45a397a84a Merge "Add Call Composer Tuple in RcsContactPresenceTuple class" 2021-01-08 02:21:34 +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
Shuo Qian
d70514cf01 Add Call Composer Tuple in RcsContactPresenceTuple class
Test: Treehugger
Bug: 173437870
Change-Id: Id1c3eaf11d85ec5df3c253443bafdb18fd31ccce
Merged-In: Id1c3eaf11d85ec5df3c253443bafdb18fd31ccce
(cherry picked from commit 111e80214e)
2021-01-07 03:13:04 +00:00
Shuo Qian
bfd05221a3 Merge "Add CAPABILITY_TYPE_CALL_COMPOSER in MmTelFeature" 2021-01-06 00:48:00 +00:00
Shuo Qian
4260bc4f95 Merge "Add Call Composer Carrier Config keys" 2021-01-06 00:48:00 +00:00
Shuo Qian
a4524a936a Merge "Add call composer Extras for enriched calling" 2021-01-06 00:48:00 +00:00