Commit Graph

13576 Commits

Author SHA1 Message Date
Daniel Bright
50d149ecc6 Merge "Add S-NSSAI" am: d7d4b0ca85 am: 97f11a3ab2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1560540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia91f2b4ad353e8bab68e01a857d3387e4b5a4c00
2021-01-27 21:54:13 +00:00
Daniel Bright
d7d4b0ca85 Merge "Add S-NSSAI" 2021-01-27 18:48:54 +00:00
Hall Liu
bd4e78b072 Merge "Correct name of roaming RTT config" am: b6622aeeb6 am: a083efc121
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1560151

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5565934a33c55dfaec1e2cf2f1192ae41f97ddb5
2021-01-26 23:11:09 +00:00
Hall Liu
7f159d477f Merge "Allow carriers to configure RTT while roaming" am: 923d7d28d0 am: 36e819d95f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1558908

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I43ecce89c03cb33969f489c082684d3c5c0e56a3
2021-01-26 23:03:30 +00:00
Hall Liu
b6622aeeb6 Merge "Correct name of roaming RTT config" 2021-01-26 22:26:56 +00:00
Daniel Bright
dd7a9031eb Add S-NSSAI
* Added support for S-NSSAI
* Created SliceInfo that represents a S-NSSAI as defined in
  3GPP TS 24.501.
* Added slice info to setupDataCall and DataCallResponse within
  DataService related classes

Bug: 169960538
Test: made ims phone call
Change-Id: I8f136937f127ff14fedd790526544d5775010da8
Merged-In: I8f136937f127ff14fedd790526544d5775010da8
2021-01-26 13:53:58 -08:00
Hall Liu
7a18070979 Correct name of roaming RTT config
Add _bool to the end

Bug: 168676696
Test: manual
Change-Id: Ifa14d742d40a585ecc1e041088f49aa5d13df07b
2021-01-26 10:51:11 -08:00
Jordan Liu
b5dab85753 Merge "Add carrier config for carrier key" am: 11dff58d5e am: b24ba046ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556751

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8508d94fe93bca5034259926a7c60a05d6bc2990
2021-01-26 00:05:48 +00:00
Allen Su
3d996ba7b5 Merge "[RCS]Add getEncodedMessage() in SipMessage.java" am: 725e04e4f1 am: d5253e5321
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554295

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic6272bf2debe4430ac9cde2e2a7a85f7f943ee62
2021-01-26 00:04:54 +00:00
Tyler Gunn
511997baab Merge "Add support for sending d2d messages through adb shell command." am: 7a58ad001b am: 0b333f92c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1555546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia2aad0e5f2830690cc09d234da8c5b40b1f30b6f
2021-01-26 00:03:52 +00: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
fa78c56da8 Merge "Add Radio Interface Capabilities" am: e44156cfd6 am: c24ad90810
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1522306

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I18cccffb56b7c6fd1c056075c914634235457722
2021-01-22 20:58:28 +00:00
Daniel Bright
e44156cfd6 Merge "Add Radio Interface Capabilities" 2021-01-22 19:08:21 +00:00
Chalard Jean
cc08384548 Merge "Add Qos Callback support" am: 8e39c04b56 am: d52695827d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1386623

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d07d8e5bd5e0a40df7d7fa276bf0c1fed500ed1
2021-01-22 14:17:50 +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
Sarah Chin
871566afab Merge "Update TelephonyDisplayInfo docs" am: a906fd5e14 am: 90b6c9def0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1557000

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie9e12f5e374fd29601182e8b99250a91933a2556
2021-01-21 23:34:25 +00: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
66a873b567 Merge "Revert "Revert "Fix permission on TM#isDataEnabled""" am: 2b79ba7f42 am: 47e1305bd6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5fb6ff5923d029b367c754759f7b7deca7a63dfe
2021-01-21 19:31:21 +00:00
Rambo Wang
52c1eb1ace Merge "Support new APIs in TelephonyManager to set/clear signal update request" am: 32c30af109 am: da259eccfa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532512

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2f47ec228c940bcf91ed93e078da137a713ee8c0
2021-01-21 19:31:00 +00:00
Jack Yu
880c028103 Merge "Enabled TEMP_NOT_METERED support for carriers" into rvc-qpr-dev-plus-aosp 2021-01-21 19:12:54 +00:00
Nathan Harold
2b79ba7f42 Merge "Revert "Revert "Fix permission on TM#isDataEnabled""" 2021-01-21 19:04:12 +00:00
TreeHugger Robot
617e4570cb Merge "Add a new reason code for IMS call failed due to network congestion" into rvc-qpr-dev am: 572c7f769c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13351221

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7977e10af0c615b69b34a0e32c8652a349a7d1a8
2021-01-21 18:56:27 +00:00
TreeHugger Robot
572c7f769c Merge "Add a new reason code for IMS call failed due to network congestion" into rvc-qpr-dev 2021-01-21 17:57:22 +00:00
Jack Yu
ea53b4ef65 Enabled TEMP_NOT_METERED support for carriers
Enabled TEMP_NOT_METERED support for carriers by default.

Bug: 176119724
Test: Manual
Change-Id: Ie0323a354c89abf1a0effa0b65cde3b4d010115e
2021-01-21 00:46:14 -08:00
Zoey Chen
db3611e6ec Merge "[PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API" am: e61da845fa am: 388fa199cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553957

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I627f91a65c853537bc4ddd4f01c34e8ef59a9aa6
2021-01-21 06:04:40 +00:00
Daniel Bright
f95800d6ba Merge "Make TelephonyManager#setImsRegistrationState multi-sim aware" am: 2c8f0de95c am: 7c2815e531
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550421

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1ab384c510fba999d503a96ca2cc65e6760fad28
2021-01-21 06:02:54 +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
4ed77d37f9 Merge "Remove dup result code descriptions" am: 19ffdb0894 am: 649dcf3e0b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1163685

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd1c4cab0ad8ece17e732e78b8cd83d2780ad0ee
2021-01-21 00:59:54 +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
6ef67bbd6c resolve merge conflicts of 869fe2b548 to rvc-qpr-dev-plus-aosp
Change-Id: Ie60e988df7d0dc1a48bb85e8f5cdfccd549ff319
2021-01-20 01:10:40 +00: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
Jack Yu
1f610b73f3 Temporary fix to prevent TEMPORARILY_NOT_METERED leak
Currently we are seeing TEMPORARILY_NOT_METERED occurs on non-5G
devices. This fix adds more checks to prevent incorrect
TEMPORARILY_NOT_METERED being set. Before we root cause the issue,
we only allow this bit when all of the following conditions met.

1. Devices should support 5G.
2. Carriers should support 5G unmetered data.
3. Device should camp on 5G network.

This temporary fix should be removed after we root cause the issue.

Bug: 176119724
Test: Manual
Merged-In: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
Change-Id: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
2021-01-19 07:48:56 +00: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
jimsun
20a39b541c Add a new reason code for IMS call failed due to network congestion
Bug: 175370724
Test: Simulate call end reason from vendor code and check IMS call
      end reason is correctly mapped.
Change-Id: Iea0a5115548530350c5a2645cdf5487870943f72
2021-01-18 15:20:02 +08: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
Jack Yu
5d0e3a3404 Temporary fix to prevent TEMPORARILY_NOT_METERED leak
Currently we are seeing TEMPORARILY_NOT_METERED occurs on non-5G
devices. This fix adds more checks to prevent incorrect
TEMPORARILY_NOT_METERED being set. Before we root cause the issue,
we only allow this bit when all of the following conditions met.

1. Devices should support 5G.
2. Carriers should support 5G unmetered data.
3. Device should camp on 5G network.

This temporary fix should be removed after we root cause the issue.

Bug: 176119724
Test: Manual
Merged-In: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
Change-Id: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
2021-01-15 11:47:55 -08: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