Commit Graph

660742 Commits

Author SHA1 Message Date
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
Les Lee
e98b325f6d Merge "wifi data usage: Update calling API name" 2022-01-23 00:30:51 +00: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
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
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
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
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
Yushin Cho
90ae857738 enc stat: Add feauture and its keys to MediaCodec
Add feature name 'EncodingStatistics' to MediaCodecInfo and its two
keys of average_qp and picture_type to MediaFormat.

App client chooses the 'Level' of an Encoding Statistics information,
where the Level decides the scope of encoding statistics that video
encoder provide the App client with.

With Android T, there will be one level only and the expected kinds
of encoding statistics are average block QP and the picture type of
a frame.

Bug: 205793764
Bug: 203696003
Test: cts
Change-Id: Id8c61de9646ac03926f00a9d223b022bbb9a6925
2022-01-20 20:16:08 -08:00
Treehugger Robot
614c30b6b5 Merge "Update proto OWNERS for biometrics" 2022-01-21 03:35:16 +00:00
Frank Li
b1a917a791 Merge "[DU05]Remove the android.provider.Settings.Global in NetworkStatsService" 2022-01-21 03:03:51 +00:00
Chen Chen
ad4c6c9492 SpatialAudio: Provide API to allow/disallow low latency audio
Bug: 214615268
Test: Manually test signal passing from framework to bluetooth/system
Tag: #feature
CTS-Coverage-Bug: 214616659

Change-Id: I51766a0250058b01ed31ec5ebef914617ad72d9a
2022-01-20 17:01:16 -08:00
Junyu Lai
22c1481659 Merge "[MS41.1] Prepare for APIs for querying usage with template" 2022-01-21 00:30:02 +00:00
Dave McCloskey
48ae5a7790 Add permissions to the shell to allow creation of CTS tests for trust.
Test: m TrustTestCases in separate CL
Bug: 213631672

Change-Id: Ie215e988eebe4103458b8be4d00698ae1121f75d
2022-01-20 15:48:11 -08:00
Ilya Matyukhin
12509d07d5 Update proto OWNERS for biometrics
Change-Id: I35d89fc8e441823eda5eb0503a92471eb17c690f
2022-01-20 15:48:07 -08:00
Phil Burk
a4cc251eb8 Include MIDI service OWNERS for internal/midi
Change-Id: Icabeeab73b3106e87041a0a9149560ad691640f4
2022-01-20 23:34:39 +00:00
Etienne Ruffieux
06580338e6 Merge "Making Process.NFC_UID SystemApi for modules" 2022-01-20 23:19:12 +00:00
Dmitri Plotnikov
0856f76846 Fix concurrency issue with BatteryUsageStats
BatteryUsageStats is created under a BatteryStatsImpl lock.  One of
the elements of BatteryUsageStats is the battery history buffer Parcel.
Once the BatteryUsageStats object is created, the BatteryStatsImpl lock
is released and the history buffer parcel continues to be appended
by BatteryStatsImpl.  The Parcel may even be reset altogether if the
battery stats session is reset.  The BatteryUsageStats object is parceled
during the getBatteryUsageStats binder call. Any modification of the
history buffer concurrent with parceling causes a crash.

Bug: 194256984
Test: atest FrameworksCoreTests:BatteryUsageStatsTest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: I262c4608cd02943f926e8daaf3e782c6fe6eaee7
Merged-In: Ifb03a32275dfbea172cd28309a42349d6dd4bcd5
2022-01-20 23:04:22 +00:00
Etienne Ruffieux
fe195c9b7e Making Process.NFC_UID SystemApi for modules
In order for Bluetooth to be a mainline module, we need to
remove all hidden APIs calls from and to it. NFC_UID is
used inside BluetoothManagerService so we need to be able
to access it.

Tag: #feature
Test: make
Bug: 211851706
Change-Id: Ie778c4467f5db1efa1f759c405373cc3e34747ca
2022-01-20 19:09:50 +00:00
Dave McCloskey
20b5b3c157 Merge "Add OWNERS file for TrustManager et al." 2022-01-20 17:43:56 +00:00
Junyu Lai
0157866be7 [MS65.1] Add NetworkIdentity#Builder
Test: atest NetworkIdentityTest#testBuilder
Bug: 204830222

Change-Id: Ifdb6482a54fb1e6999c82647d2710cb833c78d02
2022-01-20 17:12:14 +00:00
Junyu Lai
765f583a9b [MS46] Remove INetworkStatsSession usage from NetworkCycleDataLoader
Use public API instead. Also, since the android.app.usage.NetworkStats
is not friendly for test injection, add several util methods for
test injection.

Test: make RunSettingsLibRoboTests \ ROBOTEST_FILTER=NetworkCycleDataLoaderTest
Bug: 204830222
Change-Id: I1b8328010803050b5e1f176b47654ae18e8e1a0b
2022-01-20 15:03:04 +00:00
Junyu Lai
caaa2364e9 [MS57.1] Prepare APIs for data migration utility
This includes:
1. Move PREFIX_* constants to NetworkStatsManager to expose
   in later changes.
2. Rename networkId to wifiNetworkKey.
3. Rename subType to ratType.
4. Replace SUBTYPE_COMBINED with NETWORK_TYPE_ALL
5. Fix lint errors when exposing system api.

Test: TH
Bug: 204830222
Change-Id: I2b7c34958bc59c3225c96f12abba008b83101585
2022-01-20 13:10:36 +00:00