Commit Graph

2070 Commits

Author SHA1 Message Date
Leon Scroggins III
73e0689d8a getDisplayDecorationSupport: return more detailed info
Call the updated native version of getDisplayDecorationSupport (added in
I961051c0a660b596039ac04b546040764ee20d34), and convert the NDK struct
into a Java class. Depend on the graphics AIDLs, which now have Java
backends. A future CL will update SysUI to call the new API.

Add a PixelFormat for R_8 to correspond to the native version. This will
allow SysUI to use COLOR_MODE_A8 when the HAL reports R_8.

If64fd6924960f592b7a211371bc2ca6536ae34f7 demonstrates using this.

Bug: 216644902
Test: manual
Change-Id: I0e34c6d6e369fda0a96231ab38c3bd5f3bfe3e06
2022-02-09 17:30:29 -05:00
Remi NGUYEN VAN
8f497e5c43 Merge changes from topic "ms52-movenetstats"
* changes:
  Expose MATCH_PROXY as a module-lib API.
  Add setPollForce to module API
  Move networkstats JNI to connectivity module
  [MS54.1] Move NetworkStats to updatable sources
  [MS62.1] Start NetworkStatsService from the module
2022-02-07 10:27:37 +00:00
TreeHugger Robot
d44f10236a Merge changes from topic "no-dhcpresults"
* changes:
  [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
  Delete DhcpResults from frameworks/base.
2022-02-07 05:53:10 +00:00
Junyu Lai
a8f1f762eb [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-07 11:45:17 +09:00
Anton Hansson
23274eeff5 Auto-generate list of module impl jars
Eliminate another duplicated list of all modules. This one has a couple
of workarounds due to different naming of impl libs, and bluetooth not
being ready.

Bug: 169103987
Test: m framework-all and diff intermediates (no diffs)
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
2022-02-04 11:51:19 +00:00
Anton Hansson
add6d2edd7 Merge "Remove framework-appsearch.impl from framework" 2022-02-04 10:04:26 +00:00
Presubmit Automerger Backend
d316c590ab [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16781268

Change-Id: I7c98eeef9b2a92dbce1014ce51eaca19d19e40d8
2022-02-03 15:52:01 +00:00
Lorenzo Colitti
a2ea37e61e Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-04 00:51:11 +09:00
Junyu Lai
5bf2712005 [MS53] Add connectivity aidl exports to stubs
This is needed to solve the dependencies where platform
code such as ITelephony.aidl needs aidl definitions.

Test: TH
Bug: 204830222
Change-Id: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
2022-02-03 00:27:59 +00:00
Anton Hansson
a73c19efda Remove framework-appsearch.impl from framework
Was only meant to be temporary. No longer needed, I hope.

Test: m
Change-Id: I1b31eb617026d48f9ba64e07ee0b1c0ae3597437
2022-01-28 17:01:31 +00:00
Remi NGUYEN VAN
0b692d5b50 Remove nearby API surface
It is being merged into the tethering/connectivity API surface, under
the existing framework-connectivity-t API.

Bug: 189355156
Test: m
Change-Id: I5878ffc1449f0eb19abdccd34d5c8ca1f711fbc8
2022-01-28 11:25:09 +09:00
Frank Wang
07861f70d3 Revert "Revert "Add SupplementalProcess stubs and bootclasspath ..."
Revert^2 "Add bootclasspath config in Auxiliary."

ba33413304d140c02bd8d2477576fb19889af031

Change-Id: I2e8f05406c90565b517f5d7d05aae0dc6d8a4200
2022-01-27 07:52:21 +00:00
Roopa Sattiraju
8e30577d04 Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Change-Id: I636f00132a13467e63b08f21d9cc9dcaab250b8a
2022-01-25 14:46:30 -08:00
Ken Sun
fb385e8b14 Merge "Revert "Add SupplementalProcess stubs and bootclasspath fragment"" 2022-01-25 09:08:59 +00:00
Johnny Lee
d07b757a6a Revert "Add SupplementalProcess stubs and bootclasspath fragment"
Revert "Add bootclasspath config in Auxiliary."

Revert "Add framework-auxiliary to PRODUCT_APEX_BOOT_JARS"

Revert submission 16684516-auxiliary_bcp

Reason for revert: pdk build breakage
Reverted Changes:
I8c92d2ccb:Add bootclasspath config in Auxiliary.
I9ac910fa2:Add SupplementalProcess stubs and bootclasspath fr...
I7cf3b31b0:Add framework-auxiliary to PRODUCT_APEX_BOOT_JARS

Bug: 216218564
Change-Id: Ie4374fed1e4869ae194b59e2298db785e647ed4f
2022-01-25 06:58:55 +00:00
Wenhao Wang
8707290b4b Merge "Add logcat service to track logd access" 2022-01-24 23:01:38 +00:00
Frank Wang
beacc9da21 Merge "Add SupplementalProcess stubs and bootclasspath fragment" 2022-01-24 22:36:49 +00:00
Anton Hansson
9f8924f79f Merge "Split android-non-updatable-stubs-defaults in two" am: 70ab0685cf am: e55397e910 am: 8906255544 am: 7312a200ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958860

Change-Id: I7c1b3a9ebb2a8cf9dd64ec05f70450442cc83fcd
2022-01-24 18:22:22 +00:00
Anton Hansson
7312a200ec Merge "Split android-non-updatable-stubs-defaults in two" am: 70ab0685cf am: e55397e910 am: 8906255544
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958860

Change-Id: I9d7b3b14357d4a2db3d18bbc61a4b10c986a3634
2022-01-24 18:04:22 +00:00
Frank Wang
f2bb5e0c5f Add SupplementalProcess stubs and bootclasspath fragment
Test: Builds
Bug: b/210728915
Change-Id: I9ac910fa2275eb68faed05a800e990eef6a1fe90
2022-01-24 15:55:40 +00:00
Anton Hansson
9dce832eea Split android-non-updatable-stubs-defaults in two
Put the module classpath defaults into a separate defaults module,
such that users can choose to add the module symbols in a different
way.

Update all the current users to apply both defaults.

Test: m nothing
Change-Id: I22f9518c2e205bfa8ad8d4b630ec976921786b73
2022-01-24 15:50:59 +00:00
Wenhao Wang
256519a529 Add logcat service to track logd access
The LogcatManagerService monitors all privileged (in AID_LOG group)
access to logd. Only Root and System Server can read the logd data
without tracking. Whenever the logd recieve privileged read data request,
the request is forwarded to the LogcatManagerService.

The LogcatManagerService can approve or decline the request via
binder RPC on logd service. The binder call is enforced by sepolicy.
That means only LogcatManagerService can use the logd binder service.
And only logd can use the logcat binder service.

The next step will add user consent requirement for the logd access.

Bug: 197901557
Test: Reboot the device, then run "adb logcat" multiple times
both during the booting and after the booting. The control flow goes
correctly as we expected.
Ignore-AOSP-First: pending fix for logcat privacy issue

Change-Id: I5e225b65357e7bfacd5c6c9cb4fab5f309803193
2022-01-19 16:49:49 -08:00
paulhu
4f563a4ed5 Split out the nsd API surface and use framework-connectivity-tiramisu
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
  framework-connectivity-tiramisu library on p/m/Connectivity.
  Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
  ConnectivityServiceInitializer

Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Merged-In: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2022-01-19 19:03:17 +08:00
paulhu
c100db56a2 Split out the nsd API surface and use framework-connectivity-tiramisu
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
  framework-connectivity-tiramisu library on p/m/Connectivity.
  Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
  ConnectivityServiceInitializer

Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Merged-In: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2022-01-19 18:47:45 +08:00
Treehugger Robot
070f2b0502 Merge "Migrating frameworks/base BT files" 2022-01-19 00:31:25 +00:00
Colin Cross
16d4a0c7ee Merge "Fix incorrect licenses in frameworks/base" am: a9e0018834 am: 5d23271049 am: 36d1afa4bd am: c3ef1b09af
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945448

Change-Id: Ic5380afe9d9bf209ca8a14c81c28a7e51c6bc238
2022-01-19 00:21:35 +00:00
Colin Cross
c3ef1b09af Merge "Fix incorrect licenses in frameworks/base" am: a9e0018834 am: 5d23271049 am: 36d1afa4bd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945448

Change-Id: I6d0bfa342168c5d01a3e3a1edc42eb02264800cc
2022-01-19 00:10:12 +00:00
Colin Cross
a9e0018834 Merge "Fix incorrect licenses in frameworks/base" 2022-01-18 23:31:25 +00:00
Roopa Sattiraju
fbfd4e4753 Migrating frameworks/base BT files
Bug: 206121418
Test: Compile and Test

Merged-In: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
Change-Id: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
2022-01-18 14:33:16 -08:00
Anton Hansson
0a242d2442 Convert merged module lib stub to api.go am: cb00f94596 am: fc83a8623c am: b99c6d4731
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952381

Change-Id: Iad752e8be4d863706aab8e8b1ff50a72e585d112
2022-01-18 15:16:29 +00:00
Roopa Sattiraju
33a02acc17 Migrating frameworks/base BT files
Bug: 206121418
Test: Compile and Test

Merged-In: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
Change-Id: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
2022-01-17 20:48:03 -08:00
Roopa Sattiraju
1081899411 Merge "Migrating frameworks/base BT files" 2022-01-18 02:26:11 +00:00
Roopa Sattiraju
1745d75157 Migrating frameworks/base BT files
Bug: 206121418
Test: Compile
Change-Id: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
2022-01-17 11:52:07 -08:00
Anton Hansson
cb00f94596 Convert merged module lib stub to api.go
Bug: 169103987
Test: m framework-updatable-stubs-module_libs_api and diff intermediates
      folder before and after.
Merged-In: I6018791ae136bc764a6e846078c6bce59bcc123b
Change-Id: I6018791ae136bc764a6e846078c6bce59bcc123b
2022-01-17 19:07:09 +00:00
Anton Hansson
40cfea7d79 Merge "Rename framework-media-sources" am: 365a2bab75 am: 5d88388c85 am: 85986b212a am: 84043479d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1951816

Change-Id: Id60bb9b31a87b0605a33f31044f2507d1f1a21e5
2022-01-17 12:53:41 +00:00
Anton Hansson
84043479d1 Merge "Rename framework-media-sources" am: 365a2bab75 am: 5d88388c85 am: 85986b212a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1951816

Change-Id: Iecc9e9f916c92b6a05bcbed1e82ffbddfea6411e
2022-01-17 12:41:07 +00:00
Anton Hansson
365a2bab75 Merge "Rename framework-media-sources" 2022-01-17 12:01:38 +00:00
Anton Hansson
3b6477f81b Rename framework-media-sources
So that we can use this name for the sources of the module called
"framework-media". non-updatable-sources is a pattern employed by other
modules.

Test: m nothing
Change-Id: I766675d2f10aadd1dd753271e5e39f9c28372716
2022-01-17 10:17:15 +00:00
Aaron Huang
357b2c0570 Merge "Add PolicyDirection InfDef annotation to IpSecManager" am: 3498c7a5cc am: 90d6cafc8a am: b0b2e115e2 am: c3de62bb58
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928465

Change-Id: I757c9e684b9d1077573b6b705b151925a342e1cc
2022-01-15 07:13:24 +00:00
Aaron Huang
c3de62bb58 Merge "Add PolicyDirection InfDef annotation to IpSecManager" am: 3498c7a5cc am: 90d6cafc8a am: b0b2e115e2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928465

Change-Id: I7f36a7e3fd1f0293203dd06ababa8c852a1ffc8d
2022-01-15 07:01:11 +00:00
Anton Hansson
3187fca24f Merge "Fix typo in build file" 2022-01-14 09:41:52 +00:00
Anton Hansson
47ff71a902 Convert merged module lib stub to api.go
Bug: 169103987
Test: m framework-updatable-stubs-module_libs_api and diff intermediates
      folder before and after.
Change-Id: I6018791ae136bc764a6e846078c6bce59bcc123b
2022-01-13 15:07:09 +00:00
Aaron Huang
314e2b37f2 Add PolicyDirection InfDef annotation to IpSecManager
IpSec is going to be moved into Connectivity module and it needs to
use PolicyDirection annotation. Add PolicyDirection IntDef annotation
so that it can be used in the module.

Bug: 204153604
Test: FrameworksNetTests
Change-Id: Ib411d8c436d67574bfaf7f3aba43e5f31e7487e2
2022-01-13 10:43:54 +08:00
Anton Hansson
d968dc9453 Fix typo in build file
framework-all is only meant to contain impl libs, not stubs.

Bug: 208708734
Test: presubmit
Change-Id: I812a7de972ae582210e73b11eaa5d24b6dca9ea3
2022-01-12 14:55:51 +00:00
Colin Cross
c1309ecfba Fix incorrect licenses in frameworks/base
SPDX-license-identifier-GPL and SPDX-license-identifier-W3C are
false positives in the detector in binary files.

libs/usb/test/accessorytest/f_accessory.h is an original kernel
header file with GPL 2.0 license. Replace it with the file from
libs/usb/tests/AccessoryChat/accessorychat/linux/usb/f_accessory.h,
which is the same header after running it through bionic's script
to remove copyrightable information from the header.

Move CPL license into test-runner/ and test-base/ where it is
used.

Test: m checkbuild
Change-Id: I09e760d02b3712d5a8d225ce4cff6515c9f3c5e1
2022-01-11 19:23:50 -08:00
Xinyi Zhou
651507f9af Merge "Add nearby to java_library_with_nonpublic_deps" 2022-01-05 22:32:58 +00:00
Xinyi Zhou
358a2cde28 Add nearby to java_library_with_nonpublic_deps
Bug: 189954300
Test: Built
Change-Id: I2feaa1327f7d45a76ac918101bd6b33a86b3a065
2022-01-05 22:32:36 +00:00
Paul Hu
4090f0daba Merge "Split out the nsd API surface and use framework-connectivity-tiramisu" 2021-12-24 03:06:53 +00:00
Treehugger Robot
8f91c16c23 Merge "Remove allowBlocking from all BluetoothProfiles" am: a39eb360db am: df07c71769 am: 88beced30f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1927380

Change-Id: I7b19fbb89c320fd3a14d57faa9aa10065b23d708
2021-12-17 03:15:57 +00:00
William Escande
a76f95887c Merge "Remove allowBlocking from all BluetoothProfiles" 2021-12-17 00:15:40 +00:00