Commit Graph

529675 Commits

Author SHA1 Message Date
Baligh Uddin
cb00db1b88 Merge "Migrate frameworks/base/cmds/statsd to packages/modules/StatsD/bin" 2020-12-04 02:23:25 +00:00
Treehugger Robot
c20770fee5 Merge "Remove NATT keepalive from IpSecTransform" 2020-12-04 02:07:56 +00:00
Remi NGUYEN VAN
75304108e7 Merge "Use IPV6_MIN_MTU from NetworkConstants in Ikev2Vpn" 2020-12-04 02:05:01 +00:00
Remi NGUYEN VAN
1ded24221e Merge "Set NetworkIdentity subscriberId on all networks" 2020-12-04 02:03:29 +00:00
Baligh Uddin
3eab1b0983 Migrate frameworks/base/cmds/statsd to packages/modules/StatsD/bin
Add statsd protos to platform_protos rule

BUG: 167962588
TEST: TH
TEST: Local build [ m com.android.os.statsd ]
Merged-In: I053f2a211ea28c2f181937af3d58ad16b235d096
Change-Id: I637a1af27d572924e88b1f8a930fc45d0794fa20
2020-12-04 00:40:07 +00:00
Brad Ebinger
ad55c3468b Merge "Fix incorrect cache checking of string config values" 2020-12-03 20:35:14 +00:00
Mingming Cai
8dd47fcfc5 Merge "Add CQI and table index to LTE and NR CellSignalStrength" 2020-12-03 19:13:21 +00:00
Treehugger Robot
a9f7570de6 Merge "BluetoothClass: Use mask to get MajorDeviceClass" 2020-12-03 19:00:23 +00:00
Treehugger Robot
b8fca94cfe Merge "Remove dependency on ModuleTestUtils" 2020-12-03 14:58:46 +00:00
Treehugger Robot
f5d8e97da6 Merge "Add ART optimization dimension to reportFullyDrawn" 2020-12-03 11:55:52 +00:00
Patrick Rohr
176ba02184 Merge changes from topic "restricted-networking-mode"
* changes:
  Add Restricted Mode Firewall Chain
  Clean Up NetworkManagementService Tests
2020-12-03 10:50:25 +00:00
Aaron Huang
3de9a7240f Merge "Migrate Slog to Log used in connectivity service module" 2020-12-03 10:17:45 +00:00
Myles Watson
89bf39528f BluetoothClass: Use mask to get MajorDeviceClass
Bug: 174650196
Test: compiles
Change-Id: I6042a02fa329c5291aa7b9719907485e748582bf
2020-12-02 20:48:08 -08:00
Remi NGUYEN VAN
179419f810 Merge "Remove hidden API usage in metrics toString" 2020-12-03 03:21:42 +00:00
Remi NGUYEN VAN
692a8748a5 Merge "Do not query CS in NetworkProvider constructor" 2020-12-03 01:48:01 +00:00
Mingming Cai
f4753f6373 Add CQI and table index to LTE and NR CellSignalStrength
Bug: 170771377
Test: make
Change-Id: I4c9281d5a606d3371d53020af3470e6f0f04524f
2020-12-02 17:20:15 -08:00
Treehugger Robot
deb1024b75 Merge "SystemServer: fix an infinite loop in TvInputManagerService [1/1]" 2020-12-02 22:00:27 +00:00
Mohammad Samiul Islam
3a2612c9d2 Remove dependency on ModuleTestUtils
Bug: 160296318
Test: atest StagedInstallInternalTest
Change-Id: Ic311aeaf4801c3b7c0dc5cd7a222cc304bba1335
Merged-In: Ic311aeaf4801c3b7c0dc5cd7a222cc304bba1335
2020-12-02 19:49:49 +00:00
Brad Ebinger
32fd8e5692 Fix incorrect cache checking of string config values
Bug: 174541711
Test: atest CtsTelephonyTestCases:ImsServiceTest
Change-Id: Idca646dc7cbd562b357092967245cd7aa48a7c86
2020-12-02 11:48:38 -08:00
Treehugger Robot
f86411654e Merge "Make auto time source suggestions prioritisation configurable." 2020-12-02 19:04:09 +00:00
Treehugger Robot
240fe52811 Merge "Turn vibrator off explicitly on waveforms when amplitude is zero" 2020-12-02 17:59:09 +00:00
Almaz Mingaleev
a80891bebe Make auto time source suggestions prioritisation configurable.
Also get prefix is removed from Callback.getAutoOriginPriorities
to make it consistent with the rest of the interface.
Extra information added to TimeDetectorStrategyImpl dump.

Bug: 172230856
Test: atest
frameworks/base/services/tests/servicestests/src/com/android/server/timedetector

Change-Id: I2a67414d4f2b9d972507052c7c2c817d59be59ba
Merged-In: I2a67414d4f2b9d972507052c7c2c817d59be59ba
2020-12-02 17:27:16 +00:00
James Lin
7a964f2199 Merge "[RCS UCE] Modify the data type of parameter retryAfter from String to long" 2020-12-02 15:15:26 +00:00
Treehugger Robot
777d7d838a Merge "Update comment for new proto directory" 2020-12-02 13:08:47 +00:00
Remi NGUYEN VAN
e8f300c360 Merge "Remove CaptivePortal deps on @hide MetricEvents" 2020-12-02 11:12:56 +00:00
an.xi
24d32f5a98 SystemServer: fix an infinite loop in TvInputManagerService [1/1]
PD#SWPL-6385
Bug:174639896

Problem:
There could be an infinite loop when TvInputManagerService processes
a DeathRecipient's callback and fails to remove its session

Solution:
Do the clear work to make sure the related session is removed finally

Verify:
verify it on Marconi

Change-Id: I9bd79fbc49b8283691870f1e745b324d1322b292
Signed-off-by: an.xi <an.xi@amlogic.com>
2020-12-02 19:10:37 +08:00
Remi NGUYEN VAN
71cd774f68 Merge "Add ConnectivityManager.TYPE_PROXY to SystemApi" 2020-12-02 09:23:27 +00:00
Remi NGUYEN VAN
79664cbf54 Set NetworkIdentity subscriberId on all networks
Instead of setting NetworkIdentity.subscriberId only on telephony
networks, set it when provided on any network. At the moment only
telephony is expected to have a subscriberId in its NetworkState anyway,
and while there are plans for other network agents (wifi) to have a
subscriberId, it should also be set in that case.

This allows NetworkIdentity to stop depending on hidden network type
APIs to determine if the network is mobile.

Bug: 174436414
Test: atest FrameworksNetTests
Change-Id: I4f09987f8737d1801342eb5d6d7c2b9968b466b0
2020-12-02 18:11:16 +09:00
Remi NGUYEN VAN
c755617364 Remove hidden API usage in metrics toString
Remove usage of hidden NetworkType, transport APIs in toString()
implementations of metrics and data usage classes.

The toString implementations can log the transports or network type as
hex or raw indices. While slightly less readable, the metrics classes
and network type APIs are deprecated.

Bug: 174436414
Test: m
Change-Id: I79239a540b66dadd3bbe0a997960530878331358
2020-12-02 18:10:59 +09:00
Jakub Pawlowski
dfe8d9caed Merge "Add Bluetooth LE Audio Profile (3/3)" 2020-12-02 08:14:59 +00:00
Lorenzo Colitti
8ca385688d Merge changes Ic5a3e169,I76daa3ab
* changes:
  Refactor applyUnderlyingCapabilities and its test.
  Move applyUnderlyingCapabilities to ConnectivityService.
2020-12-02 04:55:12 +00:00
Remi NGUYEN VAN
1b06ca6e89 Remove CaptivePortal deps on @hide MetricEvents
The legacy metrics are deprecated, and CaptivePortal is planned to move
to a connectivity-specific jar which cannot reference MetricsEvents.

Bug: 171540887
Test: m
Change-Id: I409375de3844a7fedef707cf9e19a106d82a8e3a
2020-12-02 13:17:09 +09:00
Lucas Lin
0903bf5de7 Merge "Use public API of NetworkAgent in TestNetworkService" 2020-12-02 03:30:59 +00:00
Brad Ebinger
88f8c04dc3 Merge "Add new carrier config option for enabling SIP PUBLISH of RCS caps" 2020-12-02 00:53:37 +00:00
Treehugger Robot
1d59ab8486 Merge "HDMICEC: Override hashCode in HdmiDeviceInfo" 2020-12-02 00:11:21 +00:00
Treehugger Robot
406e3a063d Merge "Revert "Revert "Restore preferred activity filter if it not inside""" 2020-12-02 00:06:01 +00:00
Jin Seok Park
4216ae60ac Merge "Add context to customization class constructors" 2020-12-01 23:39:12 +00:00
Brad Ebinger
21f6792a14 Add new carrier config option for enabling SIP PUBLISH of RCS caps
Adds a new carrier config option that will bring up/down the service
connection to the vendor IMS stack. When down, we should not
see the vendor IMS stack generate SIP PUBLISH requests to the network.

This is so that we do not generate SIP PUBLISH requests on networks
that do not support this functionality.

Bug: 173115560
Test: atest CarrierConfigTests
Merged-In: If9ab9836261afc2d6cebb959690d8b44b06a3dfe
Change-Id: If9ab9836261afc2d6cebb959690d8b44b06a3dfe
2020-12-01 23:08:54 +00:00
Baligh Uddin
5913866804 Merge "Temporary apply OWNERS block for migration" 2020-12-01 23:01:40 +00:00
Grzegorz Kołodziejczyk
f08f986a9b Add Bluetooth LE Audio Profile (3/3)
This is boilerplate code for Bluetooth LE Audio profile

Bug: 150670922
Test: compilation
Tag: #feature
Change-Id: Iadc3af12fd8b2808db2f4e933a1906a819824ade
2020-12-01 23:30:49 +01:00
Sarah Chin
138e2db12a Merge "Create getSystemSelectionChannel API" 2020-12-01 20:08:10 +00:00
Treehugger Robot
89e7e85f06 Merge "Fix TV didn't initiate ARC sometimes." 2020-12-01 18:44:53 +00:00
Nicolas Geoffray
5f2ee40ea3 Merge "Revert "Disable BootImageProfileTest"" 2020-12-01 17:56:22 +00:00
Treehugger Robot
bcc75f0be4 Merge "Convert mask types from uint32_t to enum type" 2020-12-01 17:06:51 +00:00
Philip Junker
76a9e41247 Merge "Send shutdown callback only during animation destruction" 2020-12-01 17:01:00 +00:00
Treehugger Robot
c0b44fca8b Merge "Deprecated UserManager.getUsers(excludeDying) / added getAliveUsers()" 2020-12-01 16:52:45 +00:00
Lorenzo Colitti
fa24282505 Refactor applyUnderlyingCapabilities and its test.
This reduces verbose assertions and makes the test more compact.
I'm not sure whether it's actually more valuable, since the
current code, while more verbose, is probably more
straightforward to understand.

Also add a test for passing in a null underlying network (i.e.,
follow default network). This requires a minor refactoring in
ConnectivityService because the applyUnderlyingCapabilities does
not currently treat null specially.

Bug: 173331190
Test: test-only change
Change-Id: Ic5a3e16969ea9e1a529706850f148cb0d5fd8e09
2020-12-02 00:45:57 +09:00
Philip Junker
f1291ba703 Send shutdown callback only during animation destruction
The shutdown callback is currently used only by audioplay.cpp to destroy the audio player.
Sending shutdown when the animation is destructed makes sure the audio
player is not being destroyed before its boot animation part is being displayed.

Test: Modified bootanimation, sound in second last part of bootanimation
plays
Bug: 157407957
Bug: 127254055
Merged-In: I47f57643791e73e4a4fa1597309dccb1f52f2316

Change-Id: I47f57643791e73e4a4fa1597309dccb1f52f2316
2020-12-01 16:45:52 +01:00
lucaslin
a75e5b6039 Use public API of NetworkAgent in TestNetworkService
- Create NetworkAgent by using the public API of NetworkAgent.
- Remove the usage of NetworkInfo.

Bug: 172183305
Test: Build pass.
Test: atest FrameworksNetTests
Test: atest CtsNetTestCasesLatestSdk
Test: atest NetworkStackIntegrationTests
Test: atest TetheringIntegrationTests
Change-Id: Icba59295861201c221587caa9df02275c4087fb8
2020-12-01 23:03:02 +08:00
Lorenzo Colitti
430a95f07c Move applyUnderlyingCapabilities to ConnectivityService.
This is essentially a straighforward move of code from Vpn to
ConnectivityService, and from VpnTest to ConnectivityServiceTest.

Bug: 173331190
Test: passes existing tests, moved tests pass
Change-Id: I76daa3abcc777e9c3ba57efb750de0e2e2f3bb74
2020-12-01 23:23:47 +09:00