660973 Commits

Author SHA1 Message Date
Junyu Lai
6629435836 [MS58] Expose Apis which will be used by data migration utility
This includes:
1. NetworkIdentity
2. NetworkIdentitySet
3. NetworkStatsHistory

NetworkStatsCollection Apis will be exposed in a separate CL.

Test: TH
Bug: 204830222
Change-Id: I47b2d3ac3b86cb4e6879afaae34326ca3c050ffa
2022-01-24 15:44:27 +08:00
Junyu Lai
54bc16fc64 Merge changes from topics "ms56-historybuilder", "ms65.3"
* changes:
  [MS56.1] Add NetworkStatsHistory#Builder
  [MS65.3] Address comments at aosp/1954383
2022-01-24 05:41:10 +00:00
Xiao Ma
824840d16d Move Ethernet related files to f/b/packages/ConnectivityT.
ethernet-service is going to be moved into Connectivity mainline module.
Notice that below sources are also only used in the ethernet framework
during compiling the filegroup: framework-connectivity-ethernet-sources.
Move them from f/b to f/b/packages/ConnectivityT as well.

Ethernet framework only related files:
    - IInternalNetworkManagementListener.aidl
    - InternalNetworkManagementException.java
    - InternalNetworkManagementException.aidl
    - InternalNetworkUpdateRequest.java
    - InternalNetworkUpdateRequest.aidl

Ethernet service only related files:
    - DelayedDiskWrite.java(IpConfigStore imports this class)

Bug: 210586283
Test: build pass
      atest FrameworksNetTests
      atest EthernetServiceTests
Change-Id: I1ec2d1d182c04f3f2acc9b757d5061ca749a4a3c
2022-01-24 04:15:14 +00:00
Ken Chen
e0b5cb4c91 Merge "Delete libnetdbpf from linked libs used by libandroid_runtime" 2022-01-24 03:49:23 +00:00
Ken Chen
6b1e78332a Use libnetworkstats instead of libnetdbpf
The libnetdbpf is renamed to libnetworkstats.

Bug: 202086915
Test: m
Change-Id: I09a073b14dc74511ba9dc09a89ae6e89dff51f4d
2022-01-23 21:11:07 +08:00
Ken Chen
f6ec5cb588 Delete libnetdbpf from linked libs used by libandroid_runtime
libandroid_runtime does not depend on libnetdbpf

Bug: 202086915
Test: m
Change-Id: I4aab43851b1b3e4faada147d9e70f39777d74648
2022-01-23 17:26:07 +08:00
Junyu Lai
504c37630d [MS56.1] Add NetworkStatsHistory#Builder
NetworkStatsHistory will need to be exposed and constructed
from the data migration tool in the follow-up changes.
Add a Builder class to prevent from exposing internal array
structures.

Test: atest NetworkStatsHistoryTest#testBuilder
Bug: 204830222
Change-Id: I5f8ea1c825d601de0aac8623034ef896999fc1a0
2022-01-23 16:47:44 +08:00
Junyu Lai
8de23851a0 [MS65.3] Address comments at aosp/1954383
This change also remove dependencies from
NetworkPolicyManagerService.

Test: atest NetworkIdentityTest#testBuilder \
      NetworkPolicyManagerServiceTest
Bug: 204830222
Change-Id: Ib1ec1968746d88165cbf5421d4ba30a00f4b678f
2022-01-23 16:47:36 +08:00
Les Lee
e98b325f6d Merge "wifi data usage: Update calling API name" 2022-01-23 00:30:51 +00:00
Sooraj Sasindran
969f2370e1 Make sure to udpate enterprise id
Bug: 194332512
Test: unit test
Change-Id: I0aee67ce286d164f49f54b7da38dd17fdef60bae
2022-01-22 10:12:11 -08:00
Les Lee
79a583ae3d wifi data usage: Update calling API name
Bug: 213387087
Test: atest -c FrameworksWifiApiTests
Test: atest -c NetworkPolicyManagerServiceTest
Merged-In: I02d7f57de1acfd7b03be0a3e1c957ec1e1c5b4d4
Change-Id: I02d7f57de1acfd7b03be0a3e1c957ec1e1c5b4d4
2022-01-23 00:06:00 +08:00
Andrew Cheng
04943e160f Merge "Make BluetoothPbapClient and select methods @SystemApi" 2022-01-22 14:37:39 +00:00
Dmitri Plotnikov
2f7508a404 Merge "Include saved battery history chunks into BatteryUsageStats parcel" 2022-01-22 06:16:40 +00:00
Junyu Lai
5262c0eb82 [MS61] Remove NetworkManagementSocketTagger#install dependency
Expose TrafficStats#attachSocketTagger and use it instead.

Test: atest TrafficStatsTest
Bug: 204830222
CTS-Coverage-Bug: 214979748
Change-Id: I1748d349b499053ad08bd62202325fa759ad8da5
2022-01-22 13:51:55 +08:00
Eden Su
55d337b11b Merge "Add carrier config for EAP-AKA fast reauth feature" 2022-01-22 03:09:42 +00:00
Junyu Lai
a411d32226 Merge "[MS66] Initialize TrafficStats with context" 2022-01-22 00:06:17 +00:00
Sharon Su
3166def10f Merge "Create directories for wallpaper effects generation api and and owners files. Bug: 213238425 Test: meta file change" 2022-01-22 00:05:24 +00:00
Dmitri Plotnikov
c4b9de7d95 Include saved battery history chunks into BatteryUsageStats parcel
Bug: 209297031
Test: Test: atest FrameworksCoreTests:BatteryUsageStatsTest FrameworksCoreTests:BatteryUsageStatsProviderTest
Merged-In: I369d863b6f6fd488030aa031cc465bef6ce99ab8
Change-Id: Ifc70a49b731b5510e7bcd049e0c12d9ac7f68f44
2022-01-21 22:44:46 +00:00
Dmitri Plotnikov
587eef25c9 Merge "Fix concurrency issue with BatteryUsageStats" 2022-01-21 22:44:28 +00:00
Pirama Arumuga Nainar
bf3cc242fc Fix Wbitwise-instead-of-logical introduced by clang-r445002
Bug: http://b/215753485

frameworks/base/cmds/incidentd/src/WorkDirectory.cpp:283:38: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
            report->set_all_sections(report->all_sections() | args.all());
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                            ||
frameworks/base/cmds/incidentd/src/WorkDirectory.cpp:283:38: note: cast
one or both operands to int to silence this warning

Test: Build with new clang
Change-Id: I8dc614e274c95f8941bf390cb68c60d0328bb31b
2022-01-21 14:16:03 -08:00
Treehugger Robot
af4fc5fb39 Merge "Clarify number format expectations for get/setPhoneNumber" 2022-01-21 21:06:51 +00:00
Treehugger Robot
3275b328fd Merge "Update current.txt file for getConnectedGroupLeadDevice" 2022-01-21 21:02:54 +00:00
Treehugger Robot
72f1c5693d Merge "Update current.txt for Broadcast feature supported API" 2022-01-21 19:56:21 +00:00
Treehugger Robot
01e0977975 Merge "Update the system-current file for getAudioLocation API" 2022-01-21 19:51:57 +00:00
EdenSu
8192e6ab08 Add carrier config for EAP-AKA fast reauth feature
Add config to enable/disable EAP-AKA fast reauth.

Bug: 195961691
Test: Fast reauth function was verified with lab testing
Change-Id: I62940050823b2306262a878a52c20895d1b552dc
2022-01-22 03:06:09 +08:00
Yushin Cho
93f84575c3 Merge "enc stat: Add feauture and its keys to MediaCodec" 2022-01-21 18:36:05 +00:00
Jack He
d370e1ec4d Merge "hap: Add constants for the Hearing Access Profile" 2022-01-21 18:20:19 +00:00
Chen Chen
c96c1e8469 Merge "SpatialAudio: Provide API to allow/disallow low latency audio" 2022-01-21 18:17:06 +00:00
Junyu Lai
de9cf3392d [MS66] Initialize TrafficStats with context
TrafficStats has static methods created in API level 8 that need
access to NetworkStatsManager but doesn't take a context.
Previously this was achieved by using ServiceManager, but
with TrafficStats moving to the connectivity module, this
is no longer possible.

Instead, make sure TrafficStats has an appropriate context by
the time any client code can call the relevant methods.
• In app code, this achieved by passing the application
  context from ActivityThread#handleBindApplication, before any
  app code can run.
• In the system server, this is achieved by passing the context
  right after creating service.

Test: atest TrafficStatsTest CtsWebkitTestCases
Bug: 204830222

Change-Id: I251bb8a4431ad12ff61929879ef1363cf06b9244
2022-01-22 01:01:49 +08:00
Hao Ke
d5b3a5c4a9 Merge "Changing readParcelable and readSerializable's method signatures." 2022-01-21 17:01:04 +00:00
markchien
eaca9e9ac4 Monitor interface added and update bpf interface map
Have BpfInterfaceMapUpdater to update bpf interface map: adding
the interface and index mapping to bpf interface map when interface
added.

Bug: 215095957
Test: atest FrameworkNetTests

Change-Id: I2189a50c4869cfc0c33fc6f0228f40ee9f3ac1d4
2022-01-21 23:34:57 +08:00
Alex Florescu
6f43804185 Adding alexflo@'s team
Bug: n/a
Test: n/a
Change-Id: I10d9c44268c65281f0a9d241c9663505ea1fc38e
2022-01-21 15:17:35 +00:00
Treehugger Robot
9e8cfbac2c Merge "Create owner test files for subpackages" 2022-01-21 15:11:19 +00:00
Phil Burk
f5bf153f13 Merge "Include MIDI service OWNERS for internal/midi" 2022-01-21 14:58:34 +00:00
Treehugger Robot
4d7383001f Merge "audio: Fix possible NullPointerException when DEBUG is true" 2022-01-21 14:58:19 +00:00
Justin McClain
4939f35ba3 Merge "Add OWNERS files for AttestationVerification in frameworks/base/core/java/android/service/." 2022-01-21 14:40:18 +00:00
Treehugger Robot
139e007dc5 Merge "Add permissions to the shell to allow creation of CTS tests for trust." 2022-01-21 13:17:35 +00:00
Siim Sammul
42e84a4cc4 Move binder latency data logging to a background thread to improve performance of the main thread.
Bug: 213435093
Test: existing tests apply
Change-Id: Ic7a3a413d8e23c0405b4dd16f0b8c919a214eb32
2022-01-21 11:30:26 +00:00
markchien
8b99e0bdf9 Replace INetd#trafficSwapActiveStatsMap with ConnectivityManager API
INetd#trafficSwapActiveStatsMap is deprecated and the implementaion is
moved into tethering (connectivity) mainline module. A new
ConnectivityManager API swapActiveStatsMap is temprary exposed for
NetworkStatsFactory. Once NetworkStatsFactory move into tethering
module, swapActiveStatsMap API would be removed and NetworkStatsFactory
should could call the implemeneted inside the module directly. This
should happen before T sdk finalization.

Bug: 209935649
Test: atest NetworkStatsFactoryTest
Change-Id: I6685fe513511e7af9fa6521601891c66d1297da0
2022-01-21 19:24:08 +08:00
markchien
86b957648b Replace some netd calls in NetworkManagementService
Some netd binder calls which used in NetworkManagementService are
deprecated, replace them with new ConnectivityManager APIs. The only
caller for those replaced functions are NetworkPolicyManagementService.

Although NetworkPolicyManagerService starts before ConnectivityService,
it is fine for replacement because the order in SystemServer is
create ConnectivivtyService -> NPMS#bindConnectivityManager ->
NPMS#systemReady. NPMS#initService is called under NPMS#systemReady, it
guarantees that ConnectivityManager will always be initialized when it
is called.

Bug: 209935649
Test: m
Change-Id: I2142f997ae1086d1cc3f71d5b2f5c9cfe0466a76
2022-01-21 17:51:20 +08:00
Junyu Lai
3e389629aa Merge changes from topic "ms65-identity"
* changes:
  [MS65.1] Add NetworkIdentity#Builder
  [MS46] Remove INetworkStatsSession usage from NetworkCycleDataLoader
2022-01-21 09:36:08 +00:00
Frank Li
a078c73c47 Merge "[DU07]Remove BatteryStatsImpl NetworkStats.subtract dependences" 2022-01-21 09:19:34 +00:00
Mark Chien
e44282f897 Merge "Added callback from Tethering to PanService" 2022-01-21 08:43:53 +00:00
Treehugger Robot
be70a4353a Merge "[MS29] Remove Trace hidden API dependencies" 2022-01-21 08:29:29 +00:00
Frank Li
acd0aef603 Merge "[DU03-1]Remove INetworkStatsService from BatteryStatsImpl" 2022-01-21 08:15:25 +00:00
Junyu Lai
c048d53e60 [MS29] Remove Trace hidden API dependencies
Since data usage related code is going to move to mainline module,
hidden classes and methods can no longer be accessed. Thus,
expose the needed system apis since there is no alternative.

Test: TH
Fix: 215152167
Bug: 204830222
Change-Id: I41046f90b9ff8f1755304e5d289584d39599fd13
2022-01-21 06:34:55 +00:00
Treehugger Robot
fef33579a6 Merge "Disable eject button for StubVolumes" 2022-01-21 06:27:37 +00:00
lifr
20689682e5 [DU03-1]Remove INetworkStatsService from BatteryStatsImpl
Expose systemapi NetworkStats.getDetailedUidStats for use by
BatteryStats.

BatteryStatsImpl is using INetworkStatsService APIs, which
cannot be accessed after moving into the mainline module. So, replace
and remove those hidden API usages.

Bug: 210066922
Test: atest BatteryStatsImplTest WifiPowerCalculatorTest
            MobileRadioPowerCalculatorTest NetworkStatsServiceTest
CTS-Coverage-Bug: 213437796
Change-Id: I40d713923278f4654d67bb4d12155cea85c10447
2022-01-21 13:52:41 +08:00
Sharon Su
d1dfefffec Merge "Add new MANAGE_WALLPAPER_EFFECTS_GENERATION permission for the cts test" 2022-01-21 04:33:53 +00:00
Junyu Lai
159be51df6 Merge changes from topic "ms57-migrationapi"
* changes:
  [MS57.1] Prepare APIs for data migration utility
  [MS45] Expose SystemApis to query summary and history with template
2022-01-21 04:26:57 +00:00