565992 Commits

Author SHA1 Message Date
Anton Hansson
9b2c4a650b Move framework java filegroups into subdirectories
All the java code used to build the framework jar and run metalava
was previously defined in the toplevel Android.bp files. Move these
into the subdirs where the source actually lives.

This simplifies the rules themselves (no path and needless prefix) and
declutters the top level Android.bp.

Test: m
Change-Id: I97086e309eacb879d16facb8497d9940fa5ddaf6
2021-03-30 12:26:55 +01:00
Anton Hansson
459d9506ee Partial cp of "Move Tuner resource updating from Tuner java into Tuner client"
Cherry-pick the change to the media filegroup in the root Android.bp
to avoid merge conflicts in upcoming changes.

Test: m nothing
Merged-In: I46acdd2f118d5b082aa162c680661a304b4f628b
Change-Id: Ic55df4cfeb295cfa1657c64f9747c90e30cb73a2
2021-03-30 12:21:21 +01:00
Anton Hansson
fbb283fb4d Partial cp of "Initial boilerplate for an updatable graphics jar"
Rename the filegroup for graphics was was done in the internal change
I148b54fe47560b2335e9d878ed93bf167d6c7517.

Test: m nothing
Merged-In: I148b54fe47560b2335e9d878ed93bf167d6c7517
Change-Id: I81a08c29ca99568101f31dc74f8c9d4d5d65663e
2021-03-30 12:09:53 +01:00
Treehugger Robot
06c6ff8bf0 Merge changes I3826b9ef,I91d68ca3
* changes:
  Add static for constant
  Get NetworkCapabilities from NetworkCallback
2021-03-30 08:22:41 +00:00
Lucas Lin
0b66568d6a Merge "Remove the usage of hidden API and simplify the design" 2021-03-30 08:01:27 +00:00
Junyu Lai
3757df2e7d Merge "[SP31] Expose onSetWarningAndLimit System API" 2021-03-30 08:00:45 +00:00
Frank Li
3eee37a29d Merge "[JS02]Remove hidden API usage of NetworkRequest.networkCapabilities" 2021-03-30 07:22:40 +00:00
Frank Li
46196fb05a Merge "[JS01]Remove hidden API usage of Connectivity Sevice" 2021-03-30 07:22:40 +00:00
lifr
7fa8d8f4fa [JS01]Remove hidden API usage of Connectivity Sevice
The Connectivity service will become the mainline module.
Therefore, remove the caller of using Connectivity's
hidden API outside the module and expose the required
connectivity API used in Jobscheduler.

Bug: 183456204
CTS-Coverage-Bug: 170598012
Test: atest JobStoreTest
Change-Id: Ie6bc81ff382fb242b98f35d28a96defc207c7987
Merged-In: Ie6bc81ff382fb242b98f35d28a96defc207c7987
           (cherry-picked from ag/13946348)
2021-03-30 11:41:50 +08:00
Junyu Lai
a819b9fcf5 Merge "[SP29] Send interface warning bytes to NetworkStatsProvider" 2021-03-30 02:56:25 +00:00
Charles Chen
9500cbd939 Merge "Make wm to own protolog JSON file" 2021-03-30 02:44:02 +00:00
George Chang
7b7b809587 Merge changes from topic "update_NFCC_Always_on"
* changes:
  Make NFC_UID TestApi
  Update SetAlwaysOn to SetControllerAlwaysOn
  Add new permission to set NFC always on states
2021-03-30 02:17:03 +00:00
James Lin
47dc400888 Merge "Updated the RcsCapabilityExchangeImplBase APIs" 2021-03-30 01:57:10 +00:00
Lorenzo Colitti
f2babbbd67 Merge changes If539cf5d,I9765f1c9,I6d3007a1
* changes:
  Add test coverage for NetworkAgent callbacks.
  Add a setTeardownDelayMs API to NetworkAgent.
  Address comments on onBlockedStatusChanged(Network, int) CL.
2021-03-30 00:38:47 +00:00
Treehugger Robot
c5c002ca4b Merge "Add two fields on ART metrics (apk type and isa)." 2021-03-29 22:21:21 +00:00
Steven Moreland
1f4ac9e0aa Merge "split packagemanager_aidl from libbinder_aidl" 2021-03-29 18:20:29 +00:00
Nathan Harold
f3a83b6c9c Merge changes from topic "telephony-background-cb"
* changes:
  Add a Compat Flag for Throwing For Null Telephony
  Ensure Async APIs receive callbacks
2021-03-29 17:58:41 +00:00
yawanng
5b35efd086 Add two fields on ART metrics (apk type and isa).
Bug: 177694884
Test: atest ArtStatsLogUtilsTest

Merged-In: If7a45b263c507e05801117eea85ab610f869c482
Change-Id: I0178545d85e9dab425cec9fb38512d2a692d0cbf
2021-03-29 17:28:18 +00:00
Steven Moreland
5fdf93fc9d Merge "Keystore 2.0: Update to canonical service name." 2021-03-29 17:02:31 +00:00
Sudheer Shanka
9cff99d059 Merge "Remove NetworkPolicyManager.isUidBlocked() API." 2021-03-29 15:49:15 +00:00
Junyu Lai
6b9470ffc4 Merge "[SP29.1] Simplify logic of calculating and applying data limit" 2021-03-29 12:47:08 +00:00
Sudheer Shanka
d3ba15beeb Remove NetworkPolicyManager.isUidBlocked() API.
It isn't used by ConnectivityService any more and even if
it needs such utility method in the future, we could create
one which is part of connectivity module and doesn't need
to be exposed as part of NetworkPolicyManager API surface.

Bug: 183696103
Test: atest ./tests/net/java/com/android/server/ConnectivityServiceTest.java
Change-Id: Ie3c681f88e4b2b9bb92d2224c5ea96b074f155d5
2021-03-29 12:39:12 +00:00
Lorenzo Colitti
cbcf6828d6 Add test coverage for NetworkAgent callbacks.
Tests the onNetworkCreated, onNetworkUnwanted and
onNetworkDisconnected callbacks, and the teardown delay timer.

Bug: 181941583
Test: atest --rerun-until-failure 500 ConnectivityServiceTest#testNetworkAgentCallbacks
Change-Id: If539cf5d01ba23193afab2433ed0ac4e7f0550ec
2021-03-29 21:33:11 +09:00
Lorenzo Colitti
04c2107aed Add a setTeardownDelayMs API to NetworkAgent.
This allows transports to request that when the network is
disconnected, the system should delay destroying the native
network until the specified time has passed after the network
disconnected.

Bug: 181941583
Test: next CL in the stack
Change-Id: I9765f1c9d1e55c23c6d583d6709dbe06505975b1
2021-03-29 21:33:08 +09:00
Lorenzo Colitti
2691c0d0d2 Address comments on onBlockedStatusChanged(Network, int) CL.
Test: m
Bug: 165835257
Change-Id: I6d3007a1eac54ee6650b350aee56ed398a2c950d
2021-03-29 20:12:09 +09:00
Frank Li
31e7ebdd30 Merge changes from topic "NetworkAgent02"
* changes:
  Fix cannot success verify count of the networkAgent Config items on R device
  [TL02]Remove hidden API usage of NetworkAgent
2021-03-29 11:08:24 +00:00
Junyu Lai
ac196a1e07 Merge "[SP28] Add API for set data warning" 2021-03-29 11:06:05 +00:00
lifr
2b3fcc5c57 [JS02]Remove hidden API usage of NetworkRequest.networkCapabilities
The connection service will become the mainline module.
Therefore, remove the caller of using NetworkRequest's
hidden API outside the module.

Bug: 170598012
Test: atest ConnectivityControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I263d2488472dae21e1cdca3760e0127cc0d20de2
Merged-In: I263d2488472dae21e1cdca3760e0127cc0d20de2
2021-03-29 18:03:41 +08:00
Selim Cinek
66712466b3 Merge "Updating owners of SystemUI" 2021-03-29 09:45:19 +00:00
Nicolas Geoffray
f89bea0b69 Merge "Remove obsolete config_jitzygoteBootImagePinnerServiceFiles." 2021-03-29 07:47:43 +00:00
Nicolas Geoffray
03faaa5843 Merge "When a pinned file is a jar or apk, ask the runtime for other files." 2021-03-29 07:47:43 +00:00
lifr
d5eb5cdcbc Fix cannot success verify count of the networkAgent Config items on R
device

Test: atest CtsNetTestCasesLatestSdk:android.net.NetworkAgentConfigTest
Fix: 183474500
Change-Id: Ie0fd5ba816c390bfb7bc6512d896a88482c217ec
Merged-In: Ie0fd5ba816c390bfb7bc6512d896a88482c217ec
2021-03-29 15:36:32 +08:00
lifr
0befda4964 [TL02]Remove hidden API usage of NetworkAgent
The connection service will become the mainline module.
Remove the hidden API usage of NetworkAgent.

Bug: 170598012
CTS-Coverage-Bug: 170598012
Test: atest FrameworksNetTests FrameworksTelephonyTests
      atest FrameworksWifiTests
Change-Id: I4e4040ae7f94bdf479c7df9ec2ffabafbe06331c
Merged-In: I4e4040ae7f94bdf479c7df9ec2ffabafbe06331c
2021-03-29 15:33:44 +08:00
Junyu Lai
e456a6c3f8 Merge "Support Dual ViLTE stats" 2021-03-29 06:59:19 +00:00
Remi NGUYEN VAN
4de248aecc Merge "Re-implement NetworkUtils#queryUserAccess." 2021-03-29 04:57:40 +00:00
Lorenzo Colitti
8230b03102 Re-implement NetworkUtils#queryUserAccess.
Currently, queryUserAccess talks to netd via FwmarkServer.
Doing this from the module would require exposing queryUserAccess
as an NDK API or reimplementing FwmarkClient.

Because queryUserAccess really only uses information that comes
from ConnectivityService/PermissionMonitor anyway, just use that
information without calling to net.

Test: atest HostsideVpnTests
Bug: 171540887
Merged-In: If855de1ea3e1fd2ed30f2795d9b4acfcf969a2dc

Change-Id: If855de1ea3e1fd2ed30f2795d9b4acfcf969a2dc
2021-03-29 12:11:19 +09:00
George Chang
ba34121efc Make NFC_UID TestApi
Bug: 182979907
Test: atest android.permission.cts.NfcPermissionTest
Test: atest android.net.wifi.cts.WifiManagerTest
Change-Id: Id007984bcd03b5892bd774673c8c0ab836032fc9
2021-03-28 22:28:06 +08:00
George Chang
5052189dd8 Update SetAlwaysOn to SetControllerAlwaysOn
Bug: 182979907
Test: atest NfcNciInstrumentationTests
Change-Id: I6b794259ec597e5d7f86e94705017b8fe169a102
2021-03-28 22:20:52 +08:00
George Chang
abd045e95c Add new permission to set NFC always on states
Bug: 182979907
Test: atest NfcNciInstrumentationTests
Change-Id: I9a82c37f0b6716e68dc4c2d7e0f171d892f09112
2021-03-28 22:06:34 +08:00
Colin Cross
35f70208f8 Merge "Use framework-annotation-libs for hwbinder-stubs-docs" 2021-03-26 17:44:57 +00:00
Colin Cross
037d7fb498 Use framework-annotation-libs for hwbinder-stubs-docs
hwbinder.stubs and hwbinder-stubs-docs use SystemApi annotations.
Provide an explicit definition of SystemApi to metalava by adding
framework-annotations-libs to libs so it doesn't find it on its
own without a dependency.  Replace stub-annotations with
framework-annotations-libs in hwbinder.stubs for consistency.

Bug: 153703940
Test: m hwbinder.stubs
Change-Id: I777d68e446f8c7c1064667fd7c07b1e2ee6bfb1b
2021-03-26 17:44:07 +00:00
Treehugger Robot
1ac46f932e Merge "Add network disconnected callback" 2021-03-26 05:47:33 +00:00
Lorenzo Colitti
2108a92452 Merge changes from topic "blocked-reasons-callback-tests"
* changes:
  Add unit tests for onBlockedStatusChanged(Network, int).
  Add onBlockedStatusChanged(Network, int) to NetworkCallback.
  Add MOBILE_DATA_PREFERRED_APPS setting
  Add PRIVATE_DNS_MODE setting setter
  Expose ConnectivitySettingsManager as module-lib API
2021-03-26 03:30:11 +00:00
Chiachang Wang
34a2358da0 Add network disconnected callback
Create a network callback to notify network agent after the
native network being destroyed by netd which means the network
is fully disconnected. The NetworkAgent may handle this event
after sending disconnect state to ConnectivityService to proceed
its pending works that have to be done after it.

Bug: 178725261
Test: make update-api
Change-Id: I602ff2c688909473b03b72c9407d4286608cff4c
Merged-In: I602ff2c688909473b03b72c9407d4286608cff4c
2021-03-26 02:53:29 +00:00
Steven Moreland
8bb6bc2716 split packagemanager_aidl from libbinder_aidl
This filegroup contains libbinder things plus packagemanager things.
Ideally this packagemanager dependency should only be taken by the
things that need it since libbinder is loaded by very many processes,
and it may consider to dirty memory in these processes (the vtables for
AIDL interfaces). This is a preparation CL.

Bug: 183654927
Test: N/A
Change-Id: Iba8153a50244101875fcfd1148924430c0907b37
2021-03-26 01:51:47 +00:00
Steven Moreland
7236cf6dca Merge "Binder: allow stability downgrade" 2021-03-26 01:37:14 +00:00
Roman Kiryanov
c4bc4fb144 Merge "Emulator cleanup in ClipboardService.java (send/receive)" 2021-03-26 00:42:31 +00:00
Nathan Harold
31c7d61624 Add a Compat Flag for Throwing For Null Telephony
In order to prevent a sea of random crashes as part
of migrating to throwing behavior for callback APIs that
hit null ITelephony and null IOns objects, this change
re-introduces backwards-compatible behavior for APIs that
are being "upgraded" to throwing behavior.

Bug: 182185642
Test: atest CtsTelephonyTestCases
Change-Id: I492ba6a79e74350986afbd6ab5cc5e7b05b8cd35
2021-03-25 16:45:59 -07:00
Nathan Harold
8c23380d2f Ensure Async APIs receive callbacks
There are currently a couple silent failure for
APIs that are defined as asynchronous.
-If the remote binder object is null then in some cases
 the response is dropped. It's important that the response
 be triggered on a thread other than the calling one due
 to the oddball possibility of non-reentrant locking.
-If the remote dies while awaiting a response, the RemoteException
 is generally dropped, and because the API is asynchronous there is
 no way for the caller to know, leaving a dangling async request.

This CL ensures that remote exceptions due to process death invoke
the asynchronous callbacks, delivering an error message using the
BackgroundThread to ensure that the calls are received on a thread
other than the original caller's.

Bug: 182185642
Test: atest CtsTelephonyTestCases
Change-Id: I5121734194f07c53f94fb6585da3c90e3e2c4bf7
2021-03-25 15:46:15 -07:00
John Reck
6b92593081 Merge "Add me to view/ OWNERS" 2021-03-25 18:28:00 +00:00