Commit Graph

1982 Commits

Author SHA1 Message Date
Junyu Lai
516956cda7 Merge "[MS53] Add connectivity aidl exports to stubs" am: e616cb6779 am: f7f4c4c996 am: 5202e61448
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976230

Change-Id: If317fe89f93aefd9906c989b405fc8f1654cf1eb
2022-02-09 11:02:07 +00:00
Junyu Lai
5202e61448 Merge "[MS53] Add connectivity aidl exports to stubs" am: e616cb6779 am: f7f4c4c996
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976230

Change-Id: I2123fddf69b8ea77a7f00c35b38f08d89980127e
2022-02-09 10:41:43 +00:00
Junyu Lai
66760b299b [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
Merged-In: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
2022-02-08 10:21:53 +00:00
Vishnu Nair
ae48c8703b SurfaceControl: Add setDropInputMode api am: a84612483f am: 52873f283f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16740078

Change-Id: Ib69ba25092a09709be6d6120e724cc9966617ecc
2022-02-07 23:57:50 +00:00
Anton Hansson
b556470d56 Merge "Auto-generate list of module impl jars" am: 9a4e4e9156 am: d5da9cee26 am: 061c23eaa2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1972644

Change-Id: If422ee2663d06d334ba4638f41ecc5def38b343b
2022-02-07 12:28:39 +00:00
Anton Hansson
9a4e4e9156 Merge "Auto-generate list of module impl jars" 2022-02-07 11:51:11 +00:00
Treehugger Robot
8a8470063a Merge "Delete DhcpResults from frameworks/base." am: e8a2915699 am: e023531772 am: 025041f3f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1972384

Change-Id: I6d3161c670891339fb2206c60ba51afde9e2f4e9
2022-02-07 08:09:11 +00:00
Lorenzo Colitti
b5e914a343 Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
Merged-In: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-07 06:03:11 +00:00
Anton Hansson
95e89a8cb9 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)
Merged-In: Ia8627c6e3977cd271e389ec482388ff73661881d
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
2022-02-04 16:36:21 +00:00
Vishnu Nair
a84612483f SurfaceControl: Add setDropInputMode api
Introduces an API to drop input events on this SurfaceControl. This
policy will be inherited by its children. The caller must hold the
ACCESS_SURFACE_FLINGER permission.

Options include:
ALL: SurfaceControl and its children will not receive any
input regardless of whether it has a valid input channel.

These policies are used to enable features that allow for a less trusted
interaction model between apps. See the bug for more details.

Note: this backport doesn't include the oclude mode since its not
needed for the security fix.

Test: atest libgui_test InputDispatcherDropInputFeatureTest
Bug: 197296414


Merged-In: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
Change-Id: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
2022-02-02 16:50:46 +00:00
Rahul Sabnis
bdd60d42cb Merge "Moving over core/api/*txt files" am: d93ed0045d am: d2c48ad201 am: b5f6cf1c8d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959811

Change-Id: I9321785d49fa39c96b17a60f20b2bed42279f4ed
2022-01-27 06:19:21 +00:00
Roopa Sattiraju
86058b62d8 Moving over core/api/*txt files
Bug: 196026708
Test: Compile
Merged-In: I636f00132a13467e63b08f21d9cc9dcaab250b8a
Change-Id: I636f00132a13467e63b08f21d9cc9dcaab250b8a
2022-01-26 14:21:29 -08: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
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
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
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
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
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
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
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
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
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
6b5464ca69 Remove allowBlocking from all BluetoothProfiles
Since Bluetooth is becoming a mainline module, it can no longer call the
allowBlocking hidden api.
Instead, all interface are moved to be oneway and use a synchronous data
to handle the return value.

Bug: 200200870
Test: Build + start Bt and play something on speaker
Tag: #refactor
Merged-In: I776a6322faadca1504bce24f2b6b041e756b6448
Change-Id: I776a6322faadca1504bce24f2b6b041e756b6448
2021-12-16 19:34:35 +01:00
Treehugger Robot
4e59f54c9e Merge changes from topic "ms07-movestats" am: 942c713c9d am: 6d0a6803c9 am: f626e66561
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895044

Change-Id: I05affe3c40f5d41e5c6e0bdab8f6d0581c90209e
2021-12-10 19:35:43 +00:00
Junyu Lai
d82296cf33 [MS08] Move NetworkStats files to f/b/package/ConnectivityT
NetworkStatsService is going to be moved into ConnectivityService
module. Move all related files to packages/ConnectivityT so that
it can be easily migrate these files to connectivity module
after clearing the hidden API usages.

Bug: 197717846
Test: TH
Change-Id: Iead00832b5eb7b1dc40a92027c5a14ae8316b16c
2021-12-10 16:11:08 +00:00
Paul Hu
29bccff63b Merge "Centralize nsd associated files" am: 32942299d3 am: 9238a7c49e am: 80425b7eeb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895244

Change-Id: I034a8fb021c06e0a46b0baa55f6484624f843acd
2021-12-02 10:21:49 +00:00
paulhu
4e690dd40d Centralize nsd associated files
Move all nsd associated files include framework, service and test
to package/Nsd first. After clear all hidden API dependencies, we
can easily migrate these files into connectivity mainline module.

Bug: 206893064
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: Id26f471a10fe7882e31ccc2dbb73219461f00dbd
2021-11-29 23:08:06 +08:00
Rajesh Nyamagoud
6c690ba336 Support for OMAPI Vendor stable interface am: 4fe64fb471 am: 611e7da7ae am: c9c0e2fcc5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826552

Change-Id: I8e10c56a2a901646fa1469a3ed22d1c8d9025cd0
2021-11-23 05:41:55 +00:00
Rajesh Nyamagoud
611e7da7ae Support for OMAPI Vendor stable interface am: 4fe64fb471
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826552

Change-Id: Id6050e4686e15a0f65424069415397e6b39292c0
2021-11-23 05:13:42 +00:00
Jack Yu
f7a480d824 Merge changes from topic "OMAPI_VNTF"
* changes:
  replaced android.se.omapi-V1-ndk_platform library with android.se.omapi-V1-ndk
  VTS tests added for OMAPI Vendor stable interface
  Support for OMAPI Vendor stable interface
2021-11-23 04:54:02 +00:00
Marcus Hagerott
e143499017 Merge "Allow ContactsProvider to use compat change framework" am: 911df4f515 am: 36f5ca1920 am: fa2c7f2eb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894075

Change-Id: I5d52b1cc825246e1a3a39d8a277aa02aa5c4b00c
2021-11-17 20:18:16 +00:00
Marcus Hagerott
6c681056bb Allow ContactsProvider to use compat change framework
BUG=188347648
Test: m droid

Change-Id: Ifb6675777c76ca1c44af96ceb02a6207d28bd045
2021-11-16 13:40:41 -08:00
Mark Chien
e2e27a8063 Merge "Compile android-non-updatable with framework-tethering module-lib stub" am: 1176dd4409 am: 9a542a9799 am: e95587d1ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885796

Change-Id: I050c42b46b475e058796ea483df27f644b5ab16f
2021-11-15 14:25:12 +00:00
Mark Chien
1176dd4409 Merge "Compile android-non-updatable with framework-tethering module-lib stub" 2021-11-15 13:36:51 +00:00
markchien
cd813a30ed Compile android-non-updatable with framework-tethering module-lib stub
To resolve framework-tethering's module-lib for android-non-updatable
API, compile android-non-updatable with
sdk_module-lib_current_framework-tethering.

Bug: 205658040
Test: make update-api && make

Change-Id: Ib4bd0312f6c621ba19552a2608e47f9158b0fe25
2021-11-12 23:13:18 +08:00
Treehugger Robot
0926394011 Merge "Migrate NetworkStack modules to use modules-utils" am: 8aa04b89e0 am: 205306681d am: 6a005ce583 am: c297f2c86c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1834519

Change-Id: I5a16d23f38e726e865432e38f8b01941de5d3c8c
2021-11-11 14:58:04 +00:00
Treehugger Robot
8aa04b89e0 Merge "Migrate NetworkStack modules to use modules-utils" 2021-11-11 13:56:26 +00:00
Treehugger Robot
92e4b728c7 Merge "Fix RRO loading from inside APEXes." am: de3baffb29 am: 23cd20c926 am: 09341a5ec4 am: c1ceac41b8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1830600

Change-Id: Ie51639568f0d24c90c1e10284de0536238ab1778
2021-10-26 23:36:17 +00:00
Daniel Norman
653a1c1a28 Fix RRO loading from inside APEXes.
APEXes can already contain RRO APKs by using the 'rro' apex Soong
module field. However, these RROs were not being loaded properly by
Zygote or PackageManagerService.

For all RROs inside APEXes, the RRO uses the same overlay config that
is used for other RROs on the APEX's preinstalled partition.

For RROs targeting 'android', which are installed by Zygote
using AssetManager:
1. OverlayConfig looks for active APEXes in the apex-info-list file,
   which is already accessible to Zygote.
2. OverlayConfig passes the APEX module names to OverlayConfigParser,
   for each preinstalled-partition.
3. OverlayConfigParser uses OverlayScanner to scan the
   each /apex/<APEX>/overlay directory.

For other RROs:
1. PackageManagerService already parses and provides RROs inside APEXes
   to OverlayConfig.
2. RROs inside APEXes used to have no config rule applied because their
   path prefix (/apex/) did not match any partition rule. Now, their
   preinstalled path is used instead.

Bug: 199200417
Test: Define a static RRO targeting 'android' inside a /vendor APEX.
      Define a static RRO for settings provider inside a /vendor APEX.
      Observe APEXes are enabled by default.
Test: Make a change to an RRO inside a /vendor APEX.
      m <apex>; adb install <apex artifact>; adb reboot;
      Observe change has taken effect.
Change-Id: I2bce9bc704789329b8c6aac6d476f17ff6718e0f
Merged-In: I2bce9bc704789329b8c6aac6d476f17ff6718e0f
2021-10-25 13:04:24 -07:00
Rajesh Nyamagoud
4fe64fb471 Support for OMAPI Vendor stable interface
Changes are made to existing OMAPI inteface to make it as Vendor Stable
Interface.

Bug: b/180639372
Test: Run OMAPI CTS and VTS tests

Change-Id: Ibfd23215ad180d78af843c0d0b394b42ba8e9daa
2021-10-11 15:51:58 +00:00
Sarah Chin
bddea712b2 Merge "Update constructors for IRadioData classes" into stage-aosp-master am: 958f299826 am: 209163b6f0 am: ae220e938b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15961170

Change-Id: I11fc62932992949d16444f32dbffaff4e9efa9cf
2021-10-06 17:23:44 +00:00
Sarah Chin
80b8c7f128 Update constructors for IRadioData classes
Test: atest FrameworksTelephonyTests
Bug: 198331673
Change-Id: I8480df1164548dde491c6ae6251bbc2725c3eadf
Merged-In: I8480df1164548dde491c6ae6251bbc2725c3eadf
2021-10-06 10:14:30 +00:00