Commit Graph

9181 Commits

Author SHA1 Message Date
Collin Fijalkovich
cffe947079 Merge "Cache getDefaultSubscriptionId Binder calls" into rvc-dev 2020-04-24 20:54:04 +00:00
Collin Fijalkovich
4ffdedfd4b Cache getDefaultSubscriptionId Binder calls
Use PropertyInvalidatedCache to avoid redundant
calls to SubscriptionController.getDefaultSubscriptionId
Bug: 151953109
Test: Flashed build and verified that the phone booted
and executed the cache

Merged-In: I69b178b42a49b1eda6c2e72ce21d93906ff9d281
Change-Id: I69b178b42a49b1eda6c2e72ce21d93906ff9d281
2020-04-24 10:45:54 -07:00
Nathan Harold
741d281c60 Make CellIdentity#getPlmn() Publicly Accessible
Add support for telephony to access getPlmn().

Bug: 148111627
Test: compilation (trivial)
Change-Id: I5a79e5339a7e4e1351582f199559801069df0c76
2020-04-21 18:45:30 -07:00
Brad Ebinger
c05ba6325d Merge "Using RegistrationManager was causing unintended public APIs" into rvc-dev 2020-04-21 22:33:37 +00:00
Jack Yu
3fc3559385 Merge "Debug message fix" into rvc-dev 2020-04-18 03:28:15 +00:00
Jack Yu
06d85c3da9 Debug message fix
Fixed the toString and made overrideNetworkTypeToString
public for debugging purposes.

Fix: 154229268
Test: Manual
Change-Id: I5c886de22543188032df172810b987cff964577b
2020-04-17 16:05:53 -07:00
Mingming Cai
3f9e9edb8e Make MNC length hidden public
Make CellIdentity.MNC_MIN_LENGTH and CellIdentity.MNC_MAX_LENGTH
hidden public to support IccRecords changes.

Bug: 152518548
Test: make
Change-Id: Ic253a6bbbf07e4ce62a7ea25ca67dff54e2c67c8
2020-04-17 03:17:46 -07:00
TreeHugger Robot
bd9f62a4d1 Merge "Set legacy MTU field for backward compatibility" into rvc-dev 2020-04-16 05:35:16 +00:00
Jack Yu
8d41fd3a92 Set legacy MTU field for backward compatibility
For IWLAN, MTU is not negotiated as part of the RA. The interface
MTU is still necessary here to ensure full backward compatibility.
To workaround this, we set legacy mtu field with the larger value
of mtu v4 and mtu v6.

Fix: 153470573
Test: FrameworkTelephonyTests
Change-Id: I0671618817a295cc4e9c75df17501de338dbe155
2020-04-15 16:15:23 -07:00
TreeHugger Robot
f3b2dc9b03 Merge "[5G settings UI] Add config for the 5G limited VoLTE alert dialog" into rvc-dev 2020-04-15 08:47:04 +00:00
Sarah Chin
dc310318e9 Add carrier config for roaming meteredness
Test: atest DcTrackerTest, DataConnectionTest
Bug: 152541872
Change-Id: I07e9fd2cf42de8c6f924cda5e16aa6820baef4cd
2020-04-14 17:25:40 -07:00
Brad Ebinger
db3e8ee013 Using RegistrationManager was causing unintended public APIs
Remove the dependency on this interface until it is intended
to be public.

Fixes: 153908410
Test: atest CtsTelephonyTestCases
Change-Id: Iad82b7d06738468861bd49164fbb4b4dafb8c014
2020-04-14 15:17:46 -07:00
Xiangyu/Malcolm Chen
e9dc36d551 Merge "Add a @hide API to indicate 5G and DSDS conflict." into rvc-dev 2020-04-14 22:17:28 +00:00
Malcolm Chen
e92ce14eb7 Add a @hide API to indicate 5G and DSDS conflict.
Bug: 152786064
Test: build and manual
Change-Id: I79a8fda5b70a31acc365ebcbb03b73b20d2443fd
2020-04-14 11:19:48 -07:00
SongFerngWang
27b6a58a41 [5G settings UI] Add config for the 5G limited VoLTE alert dialog
Flag specifying whether to show an alert dialog for 5G disable
when the user disables VoLTE.

Bug: 151313654
Test: build pass. manual test: UI show alert dialog.
Change-Id: I5a5ab9e47722ad2ba28038233c5d2fc5fbe7e667
2020-04-14 04:25:22 +00:00
SongFerngWang
68c58a57b0 For NR (non-standalone), use LTE signal strength as primary rule
There are two signal strengths, NR and LTE signal strength,
during NR (non-standalone). A lot of carriers' requirement define
UE show LTE signal strength on status bar during
NR (non-standalone).
Add a carrier config whether to use LTE signal strength as
primary during NR (non-standalone)

Bug: 152864241
Test: make pass.
Change-Id: Ib13d73719dace2d80aee5669181f4f934316ffd1
2020-04-14 11:16:47 +08:00
Daniel Bright
2a639e9786 Merge "Add CarrierConfig key to customize apn priority" into rvc-dev 2020-04-11 04:56:25 +00:00
Daniel Bright
14ad84249a Add CarrierConfig key to customize apn priority
Test: atest on com.android.internal.telephony.dataconnection
Test: Make phone call
Test: Send text message
Test: Hit websites on chrome
Test: Override pririties using carrier config using broadcast
Bug: 152324921
Change-Id: Ib2139a93768999c2a867e40fea8d86c0ce730130
Merged-In: I259071334c135709fc98c989a9b7c8c35f449578
2020-04-10 23:53:21 +00:00
Sarah Chin
31354ac59f Merge "Add carrier configs for NR SA unmetered" into rvc-dev 2020-04-10 23:38:37 +00:00
Jordan Liu
daeb3d4b5e Merge "Implement #equals in Geometries subclasses" into rvc-dev 2020-04-09 18:15:39 +00:00
Sarah Chin
5956f3080c Add carrier configs for NR SA unmetered
Test: atest DcTrackerTest
Bug: 153117651
Change-Id: I1543a7943d8bcd536ece5cb673b419e740086111
2020-04-09 10:33:39 -07:00
Nathan Harold
ae87a963b8 Merge "Add warning about TelephonyManager Reliability" into rvc-dev 2020-04-09 16:38:41 +00:00
Jordan Liu
1486437ad2 Implement #equals in Geometries subclasses
Bug: 148482334
Test: atest CbGeoUtilsTest
Change-Id: Ifc9aeaf378ac3221fc25690ed6ce33108cf2f56f
2020-04-08 14:42:02 -07:00
Nathan Harold
9ec1a993c6 Add warning about TelephonyManager Reliability
Add a warning that TelephonyManager methods may not behave
in a consistent way on devices that do not implement
FEATURE_TELEPHONY.

Methods may succeed, may fail loudly, may silently fail, depending
on underlying device support and manufacturer-specific decisions.
When FEATURE_TELEPHONY is not declared, CTS does not enforce any
particular behavior.

Bug: 150006590
Test: compilation (docstring-only change)
Change-Id: I80f5031a43ccc8e5af97d341cf00e48afb80f63a
2020-04-08 14:37:16 -07:00
Tyler Gunn
9b82cceb59 Merge "Add carrier config to support local disconnect of empty IMS conference." into rvc-dev 2020-04-08 20:15:32 +00:00
Tyler Gunn
edb826c298 Merge "Add carrier config to indicate if cep is supported on peer." into rvc-dev 2020-04-08 15:02:11 +00:00
Tyler Gunn
4eb1891b56 Add carrier config to support local disconnect of empty IMS conference.
Adding carrier config key to support ability to locally disconnect an
empty IMS conference.  The network normally does this, but there             are some
carriers which rely on the device to do it.

Test: Add unit test to verify local disconnect when participant count is
zero.
Test: Use conference event package test cmd/intents to inject test CEP to
simulate a conference dropped to 0 participants.  Verify IMS conference is
disconnected.
Fixes: 151707520

Change-Id: Id7238bc668e6d6d2d7a04a8696263b260d6b6fd8
2020-04-07 19:01:15 -07:00
Tyler Gunn
60e5f7ca9c Add carrier config to indicate if cep is supported on peer.
Adding new carrier config option to indicate if conference event package
data is supported on the conference peer.  We already have an option for
the conference host.  This new option is used to indicate when the peer
can or cannot support the CEP data.  When not supported, even if the
network provides CEP data, it is ignored by the device.

Test: Manual testing using test intents.
Test: Added unit tests for these cases.
Fixes: 150860282
Change-Id: Ib8d8f171699f21f45b0ce2eec2dbe75d7466b76a
2020-04-06 15:07:48 -07:00
Nathan Harold
4af4402121 Merge "Check HIDL Discriminator for CSG Info" into rvc-dev 2020-04-03 18:56:45 +00:00
Sarah Chin
d58849abe2 Merge "Add rebroadcast extra to CARRIER_CONFIG_CHANGED" into rvc-dev 2020-04-03 17:06:22 +00:00
Tyler Gunn
ffcfaa7476 Merge "Update EmergencyNumber API docs to indicate they can throw." into rvc-dev 2020-04-03 17:02:24 +00:00
Xiangyu/Malcolm Chen
e025fcef40 Merge "multiSimAllowed should be consistent with max active modem property." into rvc-dev 2020-04-03 00:43:30 +00:00
Automerger Merge Worker
031f56f2bc Update EmergencyNumber API docs to indicate they can throw.
Adding @throws tags for EmergencyNumber APIs so that callers are aware
that they can throw.
Test: Build; docs only change.
Bug: 134100020
Fixes: 152231444

Merged-In: Ic6bcd32ab93a97a8d075e720acb5fc17612a3984
Change-Id: Ic6bcd32ab93a97a8d075e720acb5fc17612a3984
(cherry picked from commit 5fe27428f0)
2020-04-02 18:24:50 +00:00
Malcolm Chen
ba874c6827 multiSimAllowed should be consistent with max active modem property.
Bug: 153023231
Test: manual - using test app
Change-Id: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
2020-04-02 10:54:50 -07:00
Sarah Chin
53ae60d0de Add rebroadcast extra to CARRIER_CONFIG_CHANGED
Test: manual verify broadcast sent with/without extra
Bug: 152149072
Change-Id: Ib5d9c6f645f1b9b8deb9f896ecd67c68cb29dc17
2020-04-01 16:38:13 -07:00
Cody Kesting
64d3ed6006 Merge "Make UiccAccessRule certificate utils accessible." into rvc-dev 2020-03-31 17:59:09 +00:00
James Lin
f5e5a8791c Merge "Fix Telephony crash in the method ImsCallProfile#toString" into rvc-dev 2020-03-30 23:51:21 +00:00
TreeHugger Robot
da50240343 Merge "Remove replaced PreciseDataConnectionState methods from SDK." into rvc-dev 2020-03-30 22:24:30 +00:00
Michael Wright
eec778ccdd Remove replaced PreciseDataConnectionState methods from SDK.
Prior to finalization, we need to remove all methods which were
replaced but kept around for short-term compatibility purposes.
PreciseDataConnectionState had a couple methods that fell into this
category that had yet to be removed.

Bug: 152787887
Test: builds
Change-Id: Ib175b2530791cec7e31684a1d3f318c95e27f707
2020-03-30 20:39:27 +00:00
Mingming Cai
dc087115c8 Merge "Add global cell ID to all technologies" into rvc-dev 2020-03-30 15:33:10 +00:00
James.cf Lin
8fb76731ee Fix Telephony crash in the method ImsCallProfile#toString
According to the crash stack, the Telephony crash in the method ImsCallProfile#toString. Add the null check before assessing the class instance.

Bug: 148746493
Test: manual
Change-Id: I156c8ac9f8cd05e678cc38397e84e10f14ce7403
2020-03-30 13:59:17 +08:00
Hall Liu
952697b886 Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev
* changes:
  Add gating, logging for PhoneStateListener's limit
  Institute limit on PhoneStateListener
2020-03-28 06:48:56 +00:00
Hall Liu
ed6d6e69a8 Add gating, logging for PhoneStateListener's limit
Add gating via PlatformCompat and DeviceConfig and logging via
PlatformCompat to the limit instituted on per-process listeners

Fixes: 152074216
Test: atest CtsTelephonyHostCases
Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2
2020-03-27 19:21:51 -07:00
TreeHugger Robot
ddcf560b4e Merge "Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult" into rvc-dev 2020-03-28 00:03:49 +00:00
Rambo Wang
2939486f37 Merge "NR is lower priority than all other signal strengths" into rvc-dev 2020-03-27 23:38:16 +00:00
Daniel Bright
ef5836157f Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult
Fully rolled back comments and signature to original state before change

Test: bootup phone
Bug: 147854704
Change-Id: I5fcd71e1569e6b0e16cff5392239b89259ee1790
2020-03-27 15:01:16 -07:00
Shuo Qian
8d1791efc7 Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY
Test: Treehugger; atest
Bug: 152246523
Change-Id: Id77b81e18b293d8d8c8e7b3127826fbd577d6117
2020-03-27 02:45:47 +00:00
Sarah Chin
5b2f94a0aa Merge "Update Bands API" into rvc-dev 2020-03-27 00:33:05 +00:00
Nathan Harold
f85a2e9220 Check HIDL Discriminator for CSG Info
ART throws an exception if an unpopulated safe union element
is accessed at runtime, so instead we have to check the
hidl_discriminator to see whether the element is populated
before trying to access it (and thus we skip the null check).

Bug: 152486447
Test: atest testCellIdentityLte_1_5_CsgInfo \
        testCellIdentityWcdma_1_5_CsgInfo \
        testCellIdentityTdscdma_1_5_CsgInfo
Change-Id: I08dc0d2050a9f4d4b574178e1c68a23d015768e4
2020-03-26 16:53:42 -07:00
Sarah Chin
854fc2ca64 Update Bands API
Test: build
Bug: 151842542
Change-Id: Ib033758d469b9b485eb7cce6c026b5a649e6a6fa
2020-03-26 15:02:29 -07:00