661159 Commits

Author SHA1 Message Date
Mark Chien
c84a601379 Merge "Update UidCounterSetMap directly from NetworkStatsService" 2022-01-27 10:02:35 +00:00
Chiachang Wang
377dd020fe Merge "Expose local route exclusion APIs" 2022-01-27 09:52:26 +00:00
Jean Chalard
b083799699 Merge "Support building Ikev2VpnProfile from an IkeTunnelConnectionParams" 2022-01-27 09:45:24 +00:00
Treehugger Robot
e7dd66d7db Merge "Updates to Dolby Vision Levels" 2022-01-27 09:34:53 +00:00
Junyu Lai
c428b10a74 Merge "[MS59.1] Add NetworkStatsDataMigrationUtils" 2022-01-27 09:20:10 +00:00
Frank Li
8f5f7a2230 Merge "[DU10]Fix the NetworkCycleDataForUidLoaderTest error" 2022-01-27 09:01:57 +00:00
Frank Li
2c1d4eec79 Merge "[MS48.5]Remove INetworkStatsSession from SummaryForAllUidLoader" 2022-01-27 08:47:55 +00:00
Frank Li
9be1e260e8 Merge "[MS48.1] Remove INetworkStatsSession from ChartDataLoader" 2022-01-27 08:47:55 +00:00
Aaron Huang
e48ca58c47 Merge "Move the implement of getAllCollapsedRatTypes to StatsPullAtomService" 2022-01-27 08:37:00 +00:00
Aaron Huang
75ed57cd6a Merge "Move NETWORK_TYPE_5G_NSA from NetworkTemplate to NetworkStatsManager" 2022-01-27 08:36:23 +00:00
Aaron Huang
3f9910630b Merge "Remove NetworkStats hidden API dependencies from StatsPullAtomService" 2022-01-27 08:35:03 +00:00
Treehugger Robot
fbc849e9d8 Merge "Revert "CTS of CtsMediaTestCases#android.media.cts.DecodeAccuracyTest may fail when video is cropped."" 2022-01-27 08:25:30 +00:00
Rahul Sabnis
d93ed0045d Merge "Moving over core/api/*txt files" 2022-01-27 05:42:18 +00:00
Frank Li
dc23434bd5 Merge "[DU11]Remove NetworkStats hiddden API dependencies" 2022-01-27 04:27:41 +00:00
Aaron Huang
c9be32e9f1 Move the implement of getAllCollapsedRatTypes to StatsPullAtomService
To make data usage as a mainline module, move getAllCollapsedRatTypes
to StatsPullAtomService since currently it is the only user. Also, the
method needs to call getCollapsedRatType, thus move getCollapsedRatType
to NetworkStatsManager and expose it as module API.

Bug: 210073043
Test: builds, FrameworksNetTests
Change-Id: Ibe41b50f173464694c21dd22841552bdb69a6a14
2022-01-27 12:27:20 +08:00
Aaron Huang
de58e7cea5 Move NETWORK_TYPE_5G_NSA from NetworkTemplate to NetworkStatsManager
Move NETWORK_TYPE_5G_NSA to NetworkStatsManager. Also expose it as
module API so that it can be used out of module.

Bug: 210073043
Test: builds, FrameworksNetTests
Change-Id: I670c7e1405107bbe30b92fe1a8d81652c46de6d9
2022-01-27 12:23:56 +08:00
Aaron Huang
60586e6493 Remove NetworkStats hidden API dependencies from StatsPullAtomService
This patch removes the following dependencies,
- Reimplement removeEmptyEntries.
- Remove NetworkStats.Entry() constructor.
- Remove size() and use hasNext() to check if the stats contains any
  entry.

Bug: 210073043
Test: BytesTransferredTest
Change-Id: Ib2a4b38e4412cbeb6b18e5ed50bc6a7c1ca79b00
2022-01-27 12:13:28 +08:00
Chiachang Wang
7e15818350 Expose local route exclusion APIs
Bug: 184750836
Test: make update-api
Test: atest FrameworksNetTests
Change-Id: I70470ab3a945570a23607e39d18f9825d9e1d7aa
CTS-Coverage-Bug: 184750836
2022-01-27 03:35:36 +00:00
Chris Li
4e54b2f3f9 Merge "Block animation transfer after surface animation finishes." 2022-01-27 03:17:35 +00:00
Treehugger Robot
35ac7e34ce Merge "Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED" 2022-01-27 01:49:59 +00:00
Baoli Yan
cd7a2e2c05 Updates to Dolby Vision Levels
Added Uhd120,8k30, 8k60

Change-Id: I609e45b6f496debf320292358dbe894b439dc124
2022-01-26 17:08:47 -08:00
Dave McCloskey
e0b7e861cd Add TRUST_LISTENER to the shell for use in CTS tests
Bug: 213631677
Test: m

Change-Id: I66eced84399147c4f182d250cd64598794b9c93b
2022-01-27 00:48:14 +00:00
Haoyu Zhang
40eca12b93 Update OWNERS file
Bug: N/A
Test: N/A
Change-Id: I89ffc45c5e88260eb7f72406fbbe88f1f91a5e4c
2022-01-26 16:24:43 -08:00
Hans Boehm
63e3c2c709 Merge "Prefer WeakReference.refersTo() to get()" 2022-01-27 00:22:02 +00:00
Roopa Sattiraju
86058b62d8 Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Merged-In: I636f00132a13467e63b08f21d9cc9dcaab250b8a
Change-Id: I636f00132a13467e63b08f21d9cc9dcaab250b8a
2022-01-26 14:21:29 -08:00
Nathan Harold
5887444f2d Merge "Expose Constructor for ModemActivityInfoException" 2022-01-26 22:00:07 +00:00
Nate(Qiang) Jiang
dbe634a784 Merge "Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS" 2022-01-26 20:30:20 +00:00
Eric Biggers
39d90b7a2d Merge "UserDataPreparer: reboot to recovery if preparing user storage fails" 2022-01-26 19:44:31 +00:00
Elliott Hughes
b612fc8f4f Merge "usb: remove duplication in descriptor reading code." 2022-01-26 19:14:11 +00:00
Lajos Molnar
5cb80afc4e Merge "media: MediaCodec: add RGBA_1010102 and RGBA_F16 format support" 2022-01-26 18:19:36 +00:00
Junyu Lai
679c6dbedb Merge "[MS77] Remove hidden api dependencies from MultipathPolicyTracker" 2022-01-26 17:16:58 +00:00
Junyu Lai
44f61309c9 [MS59.1] Add NetworkStatsDataMigrationUtils
Once the data usage part moves into the module, the OEM would
lose the ability to modify the code, thus we need a mechanism
to prevent data loss during migration. Hence, provide a
helper class to read old version of persistent network
statistics, the implementation is intended to be modified
by OEM partners to accommodate their custom changes.

This interface will be invoked by NetworkStatsService during
the boot up phase in the migration process which will be
introduced in follow-up changes.

Test: atest NetworkStatsDataMigrationUtilsTest
Bug: 204830222
Change-Id: I4a9c8a04761b530ce0b31869f0d7fc191b00438f
2022-01-26 16:58:55 +00:00
Aaron Huang
c110082aef Merge "Use public resouce in android.R package" 2022-01-26 15:01:32 +00:00
markchien
8ef01816c2 Update UidCounterSetMap directly from NetworkStatsService
Currently NetworkStatsService call
NetworkManagementSocketTagger#setKernelCounterSet which would call into
netd to update UidCounterSet bpf map. This change let
NetworkStatsService get UidCounterSetMap and update it directly. After
this change, NetworkManagementSocketTagger#setKernelCounterSet could be
removed because NetworkStatsService is the only caller.

Test: dump UidCounterSetMap to ensure it still have value after removing
netd code.

Change-Id: I7ae14106ded4fa55122e93e76c3057052a2fa33e
2022-01-26 22:50:27 +08:00
Junyu Lai
dbaa056d90 [MS77] Remove hidden api dependencies from MultipathPolicyTracker
Test: atest MultipathPolicyTrackerTest
Bug: 204830222
Change-Id: Ife7c06279ca0a5f08873196e353b33b98929e64c
2022-01-26 14:47:48 +00:00
Frank
c784d02594 [DU11]Remove NetworkStats hiddden API dependencies
Remove the implementation of NetdTetheringStatsProvider#getTetherStats
and getNetworkStatsTethering since all callers are migrated to use
INetd#tetherGetStats directly.

Bug: 209738761
Test: run TrafficStatsTest NetworkUsageStatsTest
Change-Id: I69ac951704548c981d1c6ce8238c1d913d96ef62
2022-01-26 22:15:32 +08:00
Aaron Huang
16c6cfd630 Merge "Make ipsec resource as SystemApi" 2022-01-26 13:47:14 +00:00
Adrian Roos
20bf0159c6 Revert "Changing readParcelable and readSerializable's method signatures."
This reverts commit 9c4045f7c9c265a3a7026d381ff7f502b810256c.

Reason for revert: API council feedback

Bug: 210800751
Change-Id: I2ebcc0a94aad393e75a6aaf2addc333eb7fa437f
2022-01-26 12:18:23 +00:00
Treehugger Robot
05e7864df4 Merge "[MS74] Expose NetworkTemplate#matches" 2022-01-26 11:33:29 +00:00
Nate Jiang
a6e72cf3e2 Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS
Bug: 216433840
Test: build
Change-Id: I18500abe0e98030bd291aca536f6a70b0f6acafd
2022-01-26 03:00:50 -08:00
Oli Lan
3864f5fdf7 Merge "Add olilan to ClipboardService owners." 2022-01-26 10:45:47 +00:00
Treehugger Robot
e73b1c2270 Merge "[MS78.1] Fix NetworkIdentity#Builder crashing on 5G NSA networks" 2022-01-26 10:32:38 +00:00
Junyu Lai
8935abc14a [MS78.1] Fix NetworkIdentity#Builder crashing on 5G NSA networks
Test: atest NetworkIdentityTest
Fix: 216193400
Change-Id: Iaeae0c66f222ae8730439c5aedf5d5818855875d
2022-01-26 07:35:47 +00:00
Chiachang Wang
3981eb6376 Support building Ikev2VpnProfile from an IkeTunnelConnectionParams
Add a new builder constructor in Ikev2VpnProfile.Builder to allow
building Ikev2VpnProfile from a IkeTunnelConnectionParams object.

Bug: 184750836
Test: atest FrameworksNetTests
Change-Id: I586e7b24c35a777d39402148036d25606a733e85
CTS-Coverage-Bug: 184750836
2022-01-26 06:54:36 +00:00
Frank
0813c469bc [DU10]Fix the NetworkCycleDataForUidLoaderTest error
Test: make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
Bug: 204830222
Change-Id: Ic8a5e09196a9c2613731f74783f85361132bfd57
2022-01-26 14:49:15 +08:00
Treehugger Robot
6f39fc9ee7 Merge "Remplace NetworkIdentity.OEM_* with NetworkTemplate.OEM_MANAGED_*" 2022-01-26 05:04:54 +00:00
Treehugger Robot
709add03c2 Merge "[Settings] Add more code reviewers" 2022-01-26 04:47:10 +00:00
Lajos Molnar
32c80f0b44 Merge "media: MediaCodecInfo: Unhide COLOR_FormatYUVP010" 2022-01-26 04:46:20 +00:00
Treehugger Robot
018ba8116f Merge "[MS71] Remove remaining dependencies in SettingsLib" 2022-01-26 03:11:40 +00:00
Junyu Lai
03740ec6c2 Merge "[MS75] Replace TrafficStats data units with DataUnit class" 2022-01-26 03:01:10 +00:00