Commit Graph

9766 Commits

Author SHA1 Message Date
Calvin Pan
58f63aee4b Merge "Update getSimCarrierId() document" into rvc-dev am: 4bf8746b40
Change-Id: Id1101bb990e3f308f0743daeb665ca76404a9710
2020-05-15 15:42:51 +00:00
Calvin Pan
4bf8746b40 Merge "Update getSimCarrierId() document" into rvc-dev 2020-05-14 01:59:25 +00:00
calvinpan
18d70ab7b0 Update getSimCarrierId() document
Carrier_list.pb move to latest_carrierid/ folder, so update the
description.

Bug: 155254987
Test: Build pass
Change-Id: Iacf1bfe68fa86194e8b75cbfce9aa37c0abfbca3
2020-05-13 12:11:33 +08:00
Brad Ebinger
ce1220b912 Merge "Do not throw RemoteException for notifyUserActivity" into rvc-dev am: 3e79d2dcf9
Change-Id: I65055dd607613c5cddb3300552c89e86ef13bb20
2020-05-11 20:38:51 +00:00
Shuo Qian
39ba45aee1 Merge "Modify the default values to avoid 2 DB hysteresis DB limitation" into rvc-dev am: 95ff60f2fd
Change-Id: I5f8595cfd67dc60ab78faffafc19fa0a3976a472
2020-05-11 20:37:25 +00:00
Brad Ebinger
3e79d2dcf9 Merge "Do not throw RemoteException for notifyUserActivity" into rvc-dev 2020-05-11 20:35:00 +00:00
Shuo Qian
95ff60f2fd Merge "Modify the default values to avoid 2 DB hysteresis DB limitation" into rvc-dev 2020-05-11 20:22:13 +00:00
Brad Ebinger
c02f414712 Do not throw RemoteException for notifyUserActivity
PowerManager does not rely on TelephonyManager#notifyUserActivity
to complete successfully since it is a oneway notification. If it
fails, due to telephony not being alive, do not throw a
RemoteException.

Bug: 156203930
Test: manual
Change-Id: I4c788fef5a887c45dbc3a20b7c8af40beed8d00a
2020-05-11 11:12:36 -07:00
Rambo Wang
8e13cb99fa Merge "LTE+ indicator not shown when attached to CA network" into rvc-dev am: e6e7cdf1af
Change-Id: I1e3f1b74f7e3d5021a720ac226e4832704277c8d
2020-05-11 16:40:43 +00:00
Rambo Wang
8a41bbf466 LTE+ indicator not shown when attached to CA network
NetworkTypeController (or DcTracker in aosp/master) will set lte
display type to LTE_CA when current ServiceState fulfills one of the
following conditions:
- getDataNetworkType return NETWORK_TYPE_LTE_CA
- isUsingCarrierAggregation return true

NetworkRegistrationInfo#getAccessNetworkTechnology() always returns LTE
when data rat is LTE CA. So the first condition will never get
fulfilled.

isUsingCarrierAggregation flag will only get updated when
ServiceStateTracker calls RatRatcheter.ratchet without location change.
This makes isUsingCarrierAggregation flag not always reliable to
determine if carrier aggregation is on.

The CL fix the issue by changing ServiceState#isUsingCarrierAggregation
to return true when ServiceState#getCellBandwidths return more than one.
The same condition is already used by RatRatcheter when set
isUsingCarrierAggregation flag in RatRatcheter#ratchet.

Bug: 154060784
Test: atest com.android.internal.telephony.ServiceStateTest
Test: atest android.telephony.cts.ServiceStateTest
Change-Id: Ie6c07cb58d2a40eeb10e8f0131c98212ba463517
2020-05-09 00:32:30 +00:00
Hall Liu
9fdfd90729 Merge "Add the addServiceAnnouncement API for EMBMS" am: 1ba0bc20b9 am: 7ffc3b9f58
Change-Id: I1d3b203a8782500ed26cc3df8b6dbabb1b4a5d02
2020-05-05 21:05:46 +00:00
Hall Liu
7ffc3b9f58 Merge "Add the addServiceAnnouncement API for EMBMS" am: 1ba0bc20b9
Change-Id: I81dae708fe3eb0b7c2bd3184a89fabde98bf4a74
2020-05-05 20:52:13 +00:00
Hall Liu
1ba0bc20b9 Merge "Add the addServiceAnnouncement API for EMBMS" 2020-05-05 20:42:31 +00:00
Collin Fijalkovich
5a017d5b58 Merge changes from topic "rvc-telephony-caching" into rvc-dev am: a131a0c64f
Change-Id: Id3ea8e7f53b6746512b2c971c457983493f26431
2020-05-05 16:46:39 +00:00
Hall Liu
92f928b250 Refactor SubscriptionManager caching code am: 29b1874ffc
Change-Id: I9b3eeade5d5b7ddc91ede9c340ab1381cb4e9278
2020-05-05 16:46:32 +00:00
Collin Fijalkovich
7652df0661 Cache getDefaultSmsSubscriptionId Binder calls am: 02e5c590c3
Change-Id: Ifb34aea7011b0115ae2486a765905a27b20d8ee8
2020-05-05 16:46:26 +00:00
Collin Fijalkovich
ec2f9e4167 Cache getActiveDataSubscriptionId Binder calls am: 7d7ce5135c
Change-Id: I4f9f9c777a03415ee4b9dcc32b352c874cb71e84
2020-05-05 16:46:22 +00:00
Collin Fijalkovich
a131a0c64f Merge changes from topic "rvc-telephony-caching" into rvc-dev
* changes:
  Cache getPhoneId and getSlotIndex binder calls.
  Refactor SubscriptionManager caching code
  Cache getDefaultSmsSubscriptionId Binder calls
  Cache getActiveDataSubscriptionId Binder calls
2020-05-05 16:30:39 +00:00
Hall Liu
4343998de3 Add the addServiceAnnouncement API for EMBMS
Add addServiceAnnouncement to MbmsDownloadSession, allowing apps to add
service announcements from group call servers and receive information
about available files via the MbmsDownloadSession API surface.

Fixes: 144368478
Test: CTS
Change-Id: I760400f56219879fe71d0115042a3be2f83cef90
Merged-In: I760400f56219879fe71d0115042a3be2f83cef90
2020-05-05 01:58:57 +00:00
Brad Ebinger
31ab32969c Merge "Fix wrong log" am: 8bf7a8487c am: 862a80faa0
Change-Id: Id9d67656e7554ea7121c09d0e2dd9899b9457bcc
2020-05-04 19:45:44 +00:00
Brad Ebinger
862a80faa0 Merge "Fix wrong log" am: 8bf7a8487c
Change-Id: If347dc6bead70e4513cf5dfcd7cc015a0730fa62
2020-05-04 19:27:32 +00:00
Brad Ebinger
8bf7a8487c Merge "Fix wrong log" 2020-05-04 19:08:01 +00:00
Nathan Harold
4b4becfd2a Merge changes from topic "pick-sst-location-iwlan" am: 19e83aca9d
Change-Id: I9793f00bd2d8a45bef7d1c1ea67ca046b133aba4
2020-05-04 16:21:32 +00:00
Nathan Harold
c0c8558a87 Make CellIdentity#getPlmn() Publicly Accessible am: e69e5b0c9c
Change-Id: I9b18806d5e22e2e14f10f917a4c85f7792dd96d0
2020-05-04 16:21:27 +00:00
Nathan Harold
19e83aca9d Merge changes from topic "pick-sst-location-iwlan"
* changes:
  Update GlobalCellId during Un-parceling
  Make CellIdentity#getPlmn() Publicly Accessible
2020-05-04 16:11:28 +00:00
Taesu Lee
50e1ecc4ab Fix wrong log
Test: none

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I3c80c20e36cbe32d5941547bda095cded42d78c7
2020-05-04 12:25:05 +09:00
Svet Ganov
d459a8da1e Revert an API breaking changes
bug:150281259

Test: N/A

Exempt-From-Owner-Approval: porting upstream

Change-Id: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
Merged-In: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
2020-05-03 05:38:43 +00:00
Andrew Sapperstein
f181c2f44b Fix broken @see tags in public documentation. am: 8fe35e5f21
Change-Id: Ic95104f61b736d05f18c7465e77951771f39fcbf
2020-05-02 00:36:07 +00:00
Andrew Sapperstein
8fe35e5f21 Fix broken @see tags in public documentation.
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.

To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
 - worked around by fully qualifying the constructor

Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
(cherry picked from commit e0624c7a40)
2020-05-01 18:25:32 +00:00
Shuo Qian
66c51cda97 Modify the default values to avoid 2 DB hysteresis DB limitation
Test: Treehugger
Bug: 155026280
Change-Id: Ic1af774b28629c7ab0e105f6ce198bfce8d160a8
2020-05-01 07:47:51 +00:00
Nathan Harold
9ced05a8b0 Update GlobalCellId during Un-parceling
The Global Cell-ID is constructed from other
fields in each CellIdentity.

Currently, it is not stored during parceling.
Thus, after a CellId is parceled and unparceled
this value is being lost.

Do a quick fix to update the global Cell ID during
unparceling. A longer-term fix is to resolve the
layering violations that create the situation where
the global Cell ID is defined in the base class
but manipulated in the derived classes.

Fixes a broken unit test.

Bug: 154955167
Test: atest ServiceStateTrackerTest#testRatRatchet
Merged-In: I5c58322ebcec8886405e25e09754c7f154187efe
Change-Id: I5c58322ebcec8886405e25e09754c7f154187efe
(cherry picked from commit 3f7dfb8239)
2020-04-30 16:26:47 -07:00
Sarah Chin
c7f7243030 Merge "Add legacy state to 5g timer configs" into rvc-dev am: 6be7d4c5fb
Change-Id: Id7649cc425d46b5409ac00358c1a6fb6770d79ab
2020-04-29 22:23:42 +00:00
Sarah Chin
6be7d4c5fb Merge "Add legacy state to 5g timer configs" into rvc-dev 2020-04-29 22:18:04 +00:00
Xiangyu/Malcolm Chen
9d3d7bd000 Merge "Add two ServiceState APIs back to @Unsupported list." into rvc-dev am: af242fb7e0
Change-Id: I60e055fae6228e139abb9100c01e95836548fdcd
2020-04-29 19:47:31 +00:00
Sarah Chin
4ab6a9e9e1 Add legacy state to 5g timer configs
Test: manual testing
Bug: 154186364
Change-Id: Iaf89f4ef9dfcea244033237f74818ab67e104b92
2020-04-29 11:23:05 -07:00
Brad Ebinger
c940169f68 Merge "Using RegistrationManager was causing unintended public APIs" am: 12df9e3d69
Change-Id: I893733b8376db997892ad5f4f0a0f9fca22fdf01
2020-04-29 17:36:46 +00:00
Brad Ebinger
12df9e3d69 Merge "Using RegistrationManager was causing unintended public APIs" 2020-04-29 17:07:04 +00:00
Collin Fijalkovich
41f94629c9 Cache getPhoneId and getSlotIndex binder calls.
Use PropertyInvalidatedCache to avoid redundant calls to
SubscriptionController getSlotIndex and getPhoneId.
Bug: 151953109
Test: Verified cache operated correctly when phone process is killed.
Test: atest SubscriptionControllerTest
Test: atest android.telephony.cts.SubscriptionManagerTest

Change-Id: I70552537af44f3e05b156cd190ebb28f0d940bf6
2020-04-28 16:30:40 -07:00
Hall Liu
29b1874ffc Refactor SubscriptionManager caching code
Create a genericized class to use for SubscriptionManager caching calls
in order to avoid duplicating logic that fetches values from ISub.

Bug: 151953109
Test: atest android.telephony.cts.SubscriptionManagerTest

Merged-In: I6682ded8aec8cb3e50521584c177df6d5dae8c49
Change-Id: I6682ded8aec8cb3e50521584c177df6d5dae8c49
2020-04-28 16:22:48 -07:00
Collin Fijalkovich
02e5c590c3 Cache getDefaultSmsSubscriptionId Binder calls
Use PropertyInvalidatedCache to avoid redundant
calls to SubscriptionController.getDefaultSmsSubscriptionId.
Bug: 151953109
Test: Verified cache operated correctly when phone process is killed.
Test: atest SubscriptionControllerTest
Test: atest android.telephony.cts.SubscriptionManagerTest

Merged-In: Iadb6a42b256013021903f75ed72bb5f046bfa2cc
Change-Id: Iadb6a42b256013021903f75ed72bb5f046bfa2cc
2020-04-28 16:22:28 -07:00
Malcolm Chen
9993fd6bff Add two ServiceState APIs back to @Unsupported list.
It was removed from boot-image-profile when we tried to expose them
for mainlining. Now it's @hide again, so we should add it back
into boot-image-profile otherwise it will break appss.

Bug: 153825725
Test: build
Change-Id: I7dcce69d3d2b3b2601f98817a4ee4467f7efb47a
2020-04-28 16:14:01 -07:00
Collin Fijalkovich
7d7ce5135c Cache getActiveDataSubscriptionId Binder calls
Use PropertyInvalidatedCache to avoid redundant
calls to SubscriptionController.getActiveDataSubscriptionId.
Bug: 151953109
Test: Verified cache operated correctly when phone process is killed.
Test: atest SubscriptionControllerTest
Test: atest android.telephony.cts.SubscriptionManagerTest

Merged-In: I45d1abf15e4b105c966d4a786a4dc33aa67b20aa
Change-Id: I45d1abf15e4b105c966d4a786a4dc33aa67b20aa
2020-04-28 16:03:59 -07:00
Sarah Chin
f7cda20342 Merge "Add carrier config for roaming meteredness" am: 1d7a6d3cc1
Change-Id: I890063a376285b3d23e4c5eafc71dfb7fe2016b7
2020-04-28 20:53:58 +00:00
Sarah Chin
a96be921a1 Merge "Add carrier configs for NR SA unmetered" am: df6e608fca
Change-Id: I086aef3228ff3c3a051889e5fe9bcc5a49351faa
2020-04-28 19:36:32 +00:00
Sarah Chin
86ef2bf419 Add carrier config for roaming meteredness
Test: atest DcTrackerTest, DataConnectionTest
Bug: 152541872
Change-Id: I07e9fd2cf42de8c6f924cda5e16aa6820baef4cd
Merged-In: I07e9fd2cf42de8c6f924cda5e16aa6820baef4cd
2020-04-28 12:29:25 -07:00
Sarah Chin
df6e608fca Merge "Add carrier configs for NR SA unmetered" 2020-04-28 19:23:47 +00:00
Automerger Merge Worker
2e91adae49 Merge "Merge "Unhide and update documentation for DisconnectCause" am: 61a728aebf am: d4e270a8ef" into rvc-dev-plus-aosp 2020-04-28 18:19:35 +00:00
Xiangyu/Malcolm Chen
835bf10d2a Merge "Add a @hide API to indicate 5G and DSDS conflict." am: 88fed59cc7
Change-Id: Ib4424d99e0447ab47133ce6f8f2da845d2dca1d8
2020-04-28 18:18:55 +00:00
Hall Liu
ecced7ad86 Merge "Unhide and update documentation for DisconnectCause" am: 61a728aebf am: d4e270a8ef
Change-Id: I63b1ed212848529fac75f072c3b6337e46ab527b
2020-04-28 18:18:22 +00:00
Brad Ebinger
190b52c6a0 Merge "Fix possible deadlock in incoming call" into rvc-dev am: 3faad57604
Change-Id: I09f67e66e971cb45159f719cd0e96192013eb1a1
2020-04-28 18:18:11 +00:00