660973 Commits

Author SHA1 Message Date
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
Bonian Chen
87076fb2bb [Settings] Add more code reviewers
Add more code reviwers to help.

Bug: 0
Test: build pass
Change-Id: I4bcb44a1bff8a381d3ff79a8eedffcab6848b62f
2022-01-26 10:52:23 +08:00
Lajos Molnar
79ad8fe8a7 media: MediaCodec: add RGBA_1010102 and RGBA_F16 format support
Due to existing naming conventions these become
COLOR_Format32bitABGR2101010 and COLOR_Format64bitABGRFloat.

Bug: 197651595
Test: build
Change-Id: I9ce6177ec9d2a73ab9faa67c1d7c7d42fc9a35f7
2022-01-25 16:41:06 -08:00
Gopalakrishnan Nallasamy
721eaa785c media: MediaCodecInfo: Unhide COLOR_FormatYUVP010
Bug: 206456921
Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: I73ce2b459b59a8b8713889cf00739c9e9d28cd03
2022-01-25 16:40:27 -08:00
Maciej Żenczykowski
5e9d341c13 Merge "Use libnetworkstats instead of libnetdbpf" 2022-01-25 23:52:06 +00:00
Hyunho Shin
8bf02e51dc Merge "Add new publish trigger type" 2022-01-25 23:00:15 +00:00
Nathan Harold
10fc628397 Expose Constructor for ModemActivityInfoException
ModemActivityInfoException is a SystemApi but the constructor
is not. There's a longstanding need to expose it for testing.

Bug: 186152174
Test: make update-api && make offline-sdk-docs
Change-Id: I609b4a893e2f4fad54d29e09234da08a45efac78
2022-01-25 12:51:11 -08:00
Eric Biggers
5256365e65 UserDataPreparer: reboot to recovery if preparing user storage fails
StorageManager.prepareUserStorage() can throw an exception if a
directory cannot be encrypted, for example due to already being
nonempty.  In this case, usage of the directory must not be allowed to
proceed.  UserDataPreparer currently handles this by deleting the user's
directories, but the error is still ultimately suppressed and starting
the user is still allowed to proceed.

The correct behavior in this case is to reboot into recovery to ask the
user to factory reset the device.  This is already what happens when
'init' fails to encrypt a directory with the system DE policy.  However,
this was overlooked for the user directories.  Start doing this.

Bug: 164488924
Change-Id: Ib5e91d2510b25780d7a161b91b5cee2f6f7a2e54
2022-01-25 19:06:36 +00:00
Eric Biggers
362f5eaf81 Merge "StorageManagerService: don't ignore failures to prepare user storage" 2022-01-25 18:47:44 +00:00
Jooyung Han
94e177c73e Add Parcel APIs for fixed-size array
* createFixedArray()
* readFixedArray()
* writeFixedArray()

Bug: 207087196
Test: android.os.cts.ParcelTest
Change-Id: Ie1b742dccba26b9c473d46f8d6b9edfda3ee5eeb
2022-01-26 03:47:43 +09:00
Anton Hansson
5aa5933732 Dedupe default definitions slightly
We only need one defaults for doc-stubs. Add the module-classpath
defaults and api-db generation to the modules that need it instead.

Test: m framework-doc-stubs before & after and diff soong intermediates
Change-Id: I26066d1a8bb3ef190c89d840b52884d2b71ee977
2022-01-25 18:27:00 +00:00
Rahul Sabnis
685ef65d9a Merge "Update current.txt to reflect new extra EXTRA_TRANSPORT for the acl state change broadcast events" 2022-01-25 18:03:15 +00:00
junyulai
2e57bf87bc [MS74] Expose NetworkTemplate#matches
This is used by NetworkPolicyManagerService to find
relevant networks of a given NetworkPolicy.

Test: TH
Bug: 204830222
Change-Id: I7176ab727bf208e0fd05ecb9c2bcb00cd3438031
2022-01-26 01:38:44 +08:00
junyulai
67c2aafe12 [MS75] Replace TrafficStats data units with DataUnit class
Test: TH
Bug: 204830222
Change-Id: I1549f5ac9a5b58cb9afc644c4ae55c0c297c256c
2022-01-26 01:38:44 +08:00
Sooraj Sasindran
416fd5f440 Merge "Add device poliy manager support for profile network preference" 2022-01-25 17:23:19 +00:00
Junyu Lai
c49afb4094 Merge "[DU09-0]Adding the NetworkStatsCollection Builder" 2022-01-25 16:44:16 +00:00
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