661194 Commits

Author SHA1 Message Date
Junyu Lai
0843c02abc Merge "Mark NetworkStatsServiceDumpProto userdebug_and_eng_only" 2022-01-25 16:40:40 +00:00
Junyu Lai
0cc43d72c6 Merge "[MS69.1] Fix TrafficStats.init crashs for supplemental process" 2022-01-25 16:26:34 +00:00
Aaron Huang
72336c74c0 Remplace NetworkIdentity.OEM_* with NetworkTemplate.OEM_MANAGED_*
Remove hidden APIs and replace the constants with SystemApi that are
exposed by NetworkTemplate.
Also fix typo and remove getElapsedRealtime() which is a hidden API
from StatsPullAtomService.

Bug: 210073043
Test: TH
Change-Id: I8b980417faf776b9b7b0fbcc4f04525b516452a0
Merged-In: I8b980417faf776b9b7b0fbcc4f04525b516452a0
2022-01-25 15:54:36 +00:00
William Escande
63c3c1f3d4 Merge changes from topics "bluetooth-localsocket-from-filedescriptor", "localsocket-from-filedescriptor"
* changes:
  Delete LocalSocket#createConnectedLocalSocket.
  Add a module-lib API for constructing a LocalSocket from an fd.
2022-01-25 15:41:08 +00:00
Junyu Lai
60230cde18 [MS71] Remove remaining dependencies in SettingsLib
Test: atest clockwork-settings-robotests
      make RunSettingsRoboTests -j40
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageControllerTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Change-Id: I1e2eaf55f247b1c1104164721d7025f457fcd9a6
2022-01-25 15:30:01 +00:00
Patty Huang
318636c210 Merge "Update the current file for the new added function and parameters in BluetoothLeAudioCodecConfig" 2022-01-25 14:44:15 +00:00
Junyu Lai
46753e9a33 [MS48.5]Remove INetworkStatsSession from SummaryForAllUidLoader
SummaryForAllUidLoader is using INetworkStatsSession hidden APIs, which
cannot be accessed after moving into the mainline module. So, replace
and remove those hidden API usages.

Test: atest clockwork-settings-robotests
      make RunSettingsRoboTests -j40
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageControllerTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Ignore-AOSP-First: Related API conflict, need master first.

  (cherry-picked from ag/16689474)

Change-Id: Iac733a5021d0d79111c0350b694e4ed0ec90e262
Merged-In: Iac733a5021d0d79111c0350b694e4ed0ec90e262
2022-01-25 22:29:33 +08:00
Junyu Lai
04f1941be6 [MS48.1] Remove INetworkStatsSession from ChartDataLoader
Replace with public APIs. Since NetworkStatsHistory is no longer
accessible, use List<Bucket> as an alternative structure for
furthur manipulating.

Test: atest clockwork-settings-robotests
      make RunSettingsRoboTests -j40
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageControllerTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Ignore-AOSP-First: Related API conflict, need master first.

  (cherry-picked from ag/16681840)

Change-Id: I5336ceef43193343d707724066e2da40f1ff0633
Merged-In: I5336ceef43193343d707724066e2da40f1ff0633
2022-01-25 22:01:43 +08:00
Etienne Ruffieux
4b1216b306 Merge "Migrating Bluetooth resources to Bluetooth module" 2022-01-25 14:00:08 +00:00
Junyu Lai
145b571178 Merge "[MS68.1] Register usage callback from NetworkPolicyManagerService" 2022-01-25 13:30:57 +00:00
Treehugger Robot
74b4d91ed5 Merge "SpatialAudio: Add API to switch buffer size" 2022-01-25 13:28:29 +00:00
Oli Lan
16c2939783 Add olilan to ClipboardService owners.
Test: N/A
Change-Id: I0881d17a7bd94eb0f696b9665eae880197258bfc
2022-01-25 13:10:29 +00:00
Frank
c7cebd80cc [DU09-0]Adding the NetworkStatsCollection Builder
The purpose is provide NetworkStatsCollection.Builder as
public API for adding the stats {@link NetworkStatsHistory}

Bug: 215862801
Test: atest NetworkStatsCollectionTest
Change-Id: I65ad589473cbb7785cbe8297f793ce9f18a55c35
2022-01-25 18:46:01 +08:00
Anton Hansson
d285e2e002 Merge "Make framework-doc-stubs use jarstub defaults" 2022-01-25 10:24:35 +00:00
Junyu Lai
154cdf1b77 [MS69.1] Fix TrafficStats.init crashs for supplemental process
Supplemental apps has limited capabilities and service discovery
is restricted. Hence, calling TrafficStats.init would result in
crash.

This change includes:
1. Print log instead of crashing process when running into
   any unexpected cases.

Test: atest SupplementalProcessManagerTests
Bug: 216062904
Change-Id: I7f827ccc485c997745779053b5936a6cb30e8219
2022-01-25 09:59:38 +00:00
Hung-ying Tyan
ef8060fcad Revert "CTS of CtsMediaTestCases#android.media.cts.DecodeAccuracyTest may fail when video is cropped."
This reverts commit b48d4d10abfd1af41d8226939f12b6af5e243dff.

Reason for revert: the original CL caused regression on many devices.

Bug: 206079174
Bug: 207083066
Bug: 192912975
Bug: 208373431
Bug: 209522191
Bug: 208140353
Bug: 208741105
Bug: 211528580
Bug: 211837929
Bug: 211566842
Change-Id: I65206c683f1f067365a4993fa8d2dbd3cffc17cb
2022-01-25 08:48:34 +00:00
Treehugger Robot
25d96f8d4d Merge "Have BatteryStatsImpl use the public NetworkStats API" 2022-01-25 07:58:21 +00:00
Chen Chen
df8015fc12 SpatialAudio: Add API to switch buffer size
Bug: 214615268
Test: Manually test signal passing from bluetooth/system to framework
Tag: #feature

Change-Id: Ib1a1b1005523ca20af18dce2396d8f6bd788c197
2022-01-25 07:41:19 +00:00
Chalard Jean
bda5db8cb8 Have BatteryStatsImpl use the public NetworkStats API
Test: BatteryStatsManagerTest
Change-Id: I0bfb4df45e373aa3907b07a382ba8edd07c73895
Merged-In: I0bfb4df45e373aa3907b07a382ba8edd07c73895
2022-01-25 06:39:29 +00:00
Aaron Huang
423e45e117 Merge "Add <staging-public-group> tags to T" 2022-01-25 05:30:15 +00:00
Patty
8722e45ede Update the current file for the new added function and parameters
in BluetoothLeAudioCodecConfig

1. Define codec parameters
2. Include the following functions
   - getCodcPriority()
   - getSampleRate()
   - getBitsPerSample()
   - getFrameDuration()
   - getOctetsPerFrame()
   - getChannelMode()
   - describeContents()
   - writeToParcel()
   - Parcelable.Creator()
3. Update builder function

Tag: #feature
Bug: 214233080
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I0edd11f1551eb2631afc61817acf587283555a5a
2022-01-25 13:09:21 +08:00
fukaipeng
905e027925 Block animation transfer after surface animation finishes.
When a surface animation finishes, SurfaceAnimator must reset its internal state and triggers callbacks.
A part of this post-animation process is executed immediately after animation finishes,but the others might be deferred.
When SurfaceAnimator is in this tentative state, we cannot transfer SurfaceAnimation anymore.

For example, we add AnimationAdapter to WindowManagerService#mAnimationTransferMap during the transfer process,
but the AnimationAdapter will never be removed from the map,
since the removal logic is triggered from an animation finish callback but the animation has already finished.

Test: go/wm-smoke
Test: SurfaceAnimatorTest
Bug: 214330806

Change-Id: I4e49c1742c0039e89f037fc98d8da3040b4ad67b
Signed-off-by: fukaipeng <fukaipeng@xiaomi.com>
2022-01-25 11:35:33 +08:00
Mark Chien
d73310c2e9 Merge "Replace some netd calls in NetworkManagementService" 2022-01-25 03:34:54 +00:00
Mark Chien
1b84b424f8 Merge "Replace INetd#trafficSwapActiveStatsMap with ConnectivityManager API" 2022-01-25 03:34:14 +00:00
Sooraj Sasindran
14074e8a2c Add device poliy manager support for profile network preference
Change-Id: If3f28dfdd731dddf2d2a7516d6479359a5454b83

Bug: 194332512
CTS-Coverage-Bug: 215722242
Test: unit test
Change-Id: Ibe680d47548e0f17979301ccbbac98a79c9031ac
2022-01-24 19:24:15 -08:00
Junyu Lai
15d18f702f Merge "Remove hidden API dependencies from StatsPullAtomService" 2022-01-25 03:02:06 +00:00
Lucas Dupin
96bc724b39 Merge "Add Jernej as a SysUI owner" 2022-01-25 02:30:27 +00:00
Junyu Lai
cea0daac70 Merge "[MS67.1] Expose registerUsageCallback with template" 2022-01-25 01:23:45 +00:00
Lorenzo Colitti
d1c5580940 Delete LocalSocket#createConnectedLocalSocket.
The only caller of this method was BluetoothSocket, and that is
being removed in this topic.

Test: m
Bug: 200200870
Change-Id: Ic211448bc805c6f74852a8813317444bfb33c9dd
2022-01-25 10:01:04 +09:00
Lucas Dupin
58fd057332 Add Jernej as a SysUI owner
Change-Id: I90265e04b6fc09e5bfcd7abc685b9bef528752d6
2022-01-25 01:00:55 +00:00
Rahul Sabnis
a8eac481f7 Update current.txt to reflect new extra EXTRA_TRANSPORT for the acl
state change broadcast events

Bug: 213956674
Test: Manual
Change-Id: I21eb3ddfa6f9214d721b1aedafd2f3458fb492bb
2022-01-24 16:48:35 -08:00
Junyu Lai
513d8dd2ac Merge "[MS61] Remove NetworkManagementSocketTagger#install dependency" 2022-01-25 00:48:23 +00:00
Hyunho
67dc9a4cd3 Add new publish trigger type
Add a new type that is registered to IMS via Internet.
Bug: b/213613736
Test: Build

Change-Id: I6d4802ff12e4b3594cc81903cd83b6f9af6b88b0
Merged-In: I6d4802ff12e4b3594cc81903cd83b6f9af6b88b0
2022-01-25 00:03:09 +00:00
Sudheer Shanka
e9f11554d6 Merge "Add OWNERS for UsageStats related classes." 2022-01-24 22:25:31 +00:00
Elliott Hughes
b46bf19b90 usb: remove duplication in descriptor reading code.
The motivation for this is Sony needing to deal with >4KiB descriptor on
a UVC device. Let's factor out the callers here and combine them with
the code in libusbhost that also needs a limit. (I've separately bumped
libusbhost to 16KiB, which was the largest of the three places we had a
limit previously.)

Also remove some inappropriate <asm/*> includes --- that's never a good
idea, and they weren't needed anyway.

(#include re-ordering was insisted upon by a presubmit hook.)

Test: treehugger
Change-Id: I552d97adc2a4ade4b89b9fe6b3262e012fdb8602
2022-01-24 13:57:58 -08:00
Sal Savage
e70578157d Merge "Make BluetoothHeadsetClient and associated functions @SystemApi" 2022-01-24 21:52:21 +00:00
Peter Collingbourne
4b799b3691 Merge "Disable pointer authentication in app processes." 2022-01-24 21:17:30 +00:00
Eric Biggers
9d2bb776ed StorageManagerService: don't ignore failures to prepare user storage
We must never leave directories unencrypted.

Bug: 164488924
(cherry picked from commit 50946dd15fd14cbf92b5c7e32ac7a0f088b8b302)
Merged-In: I9a38ab5cca1ae9c9ebff81fca04615fd83ebe4b2
Change-Id: I9a38ab5cca1ae9c9ebff81fca04615fd83ebe4b2
2022-01-24 20:15:05 +00:00
Sudheer Shanka
f1ade4643d Add OWNERS for UsageStats related classes.
Test: n/a
Change-Id: I86bfb95be2c5a8c560c6270ac876bf4eced3ab5a
2022-01-24 11:06:26 -08:00
Maciej Żenczykowski
d6ba5ab1b5 Merge "Monitor interface added and update bpf interface map" 2022-01-24 19:05:27 +00:00
Yan Yan
b85c5d7634 Merge "Improve the API doc for setVcnUnderlyingNetworkPriorities" 2022-01-24 18:37:31 +00:00
Andrew Cheng
f97b80ebd7 Merge "New @SystemApi's in BluetoothMapClient" 2022-01-24 18:11:45 +00:00
Anton Hansson
70ab0685cf Merge "Split android-non-updatable-stubs-defaults in two" 2022-01-24 17:15:15 +00:00
Etienne Ruffieux
75f26cb8fb Migrating Bluetooth resources to Bluetooth module
In order for the Bluetooth module to build as an apex
all non-public resources must be located in the same
package.
Power usage configs are made system properties to
enable android.internal.os to read them and still have
per device overlays.
All configs used only by the Bluetooth app are moved to
the Bluetooth module.
Vendor overlays will be updated once the migration is done.

Tag: #feature
Bug: 211570675
Test: build, manual
Test: make RunSettingsRoboTests
Test: Added and logged system properties in vendors
Change-Id: I2b0134b97b687d6c7e96f7700be0c196168f0601
2022-01-24 16:39:34 +00:00
Anton Hansson
87f04b8d57 Make framework-doc-stubs use jarstub defaults
These stubs used to duplicate all the properties in the defaults
we had already defined, but did not set e.g. sdk_version: "none",
which meant certain symbols were imported twice (which is error
prone / wrong as they could potentially be different).

Test: m framework-doc-stubs before & after and diff soong intermediates
Change-Id: I96dfa66a9deea3564980678fd64f2bfc6460eebd
2022-01-24 16:29:13 +00:00
Sooraj Sasindran
724e9d6a7f Merge "Make sure to udpate enterprise id" 2022-01-24 16:26:03 +00:00
Lorenzo Colitti
8093d78d1c Add a module-lib API for constructing a LocalSocket from an fd.
This allows constructing a LocalSocket from a FileDescriptor
referring to an already-connected socket. The LocalSocket can
then be used to exchange ancillary filedescriptors and fetch
peer socket credentials for the existing FD.

The fd is not dup'd or closed by the API, and the caller is
responsible for closing it. This is consistent with the
constructor of the related LocalServerSocket class, which also
takes an fd and does not manage its lifecycle.

Bug: 200200870
Test: atest CoreTests:android.net.LocalSocketTest CtsNetTestCases:android.net.cts.LocalSocketTest
Change-Id: I86448ba80475c4563194a4a2d9a0c0bbd0b76444
2022-01-25 00:56:44 +09:00
Anton Hansson
9dce832eea Split android-non-updatable-stubs-defaults in two
Put the module classpath defaults into a separate defaults module,
such that users can choose to add the module symbols in a different
way.

Update all the current users to apply both defaults.

Test: m nothing
Change-Id: I22f9518c2e205bfa8ad8d4b630ec976921786b73
2022-01-24 15:50:59 +00:00
Jerome Gaillard
64085cd5db Merge "Add more owners for LayoutlibLoader.cpp" 2022-01-24 14:44:46 +00:00
Alex Florescu
5bfe18ca55 Merge "Adding alexflo@'s team" 2022-01-24 14:19:59 +00:00