Commit Graph

322 Commits

Author SHA1 Message Date
Treehugger Robot
36b1820a69 Merge "Remove unused empty filegroups from frameworks/base." am: 5ee9c55130 am: 76e9b955c5 am: 735d0192f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2026205

Change-Id: I044909e335b0b1786f8248c3d8d865eda75e6705
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-06 03:45:34 +00:00
Treehugger Robot
5ee9c55130 Merge "Remove unused empty filegroups from frameworks/base." 2022-04-06 02:27:54 +00:00
Jared Duke
2974e295ee Merge "Fix static lib collision between system_server + framework" am: a6f4bbd418 am: e9c7689391 am: 8496003245
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2050305

Change-Id: I71a150e55528d1e5834cc9ec0ff97bf2cde9d11d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 23:41:33 +00:00
Xiao Ma
892ba98a72 Remove unused empty filegroups from frameworks/base.
connectivity-tiramisu-sources filegroup in the framework-t and service
folder is useless after moving all source files to updatable-sources
filegroup, delete them from f/b.

Bug: 210586283
Test: m
Merged-In: I2209df4b6f0b4daddc640fc4126ba89601df2c2b
Change-Id: If304e989c668cd816483647a9291968f2f15435d
2022-03-31 02:44:48 +00:00
Jared Duke
b1e859d9c0 Fix static lib collision between system_server + framework
Exclude the static library `android.hardware.contexthub-V1.0-java` from
system_server, as it's already included in the framework. This avoids a
collision between SYSTEMSERVERCLASSPATH and BOOTCLASSPATH.

Bug: 215530220
Bug: 222468116
Change-Id: I7b23bfaba58676702b78e74e95911e03e88eb456
Test: m + atest StrictJavaPackagesTest
2022-03-30 22:26:43 +00:00
Prabir Pradhan
20cb75a45b Remove input AIDL classes from system_server classpath
They are already included in the boot classpath in the framework jar.

Bug: 222257322
Test: atest StrictJavaPackagesTest
Change-Id: I7e1b74d806cbee1160439bf8d9a044cbc4696de1
2022-03-02 15:51:03 +00:00
Nikita Ioffe
c04cf3c4b9 Merge "Rename supplementalprocess->sdksandbox jars" into tm-dev 2022-03-01 17:08:45 +00:00
Nikita Ioffe
59029ad151 Rename supplementalprocess->sdksandbox jars
Bug: 220320098
Test: m
Test: presubmit
Test: flashed device, checked BCP and SSCP
Change-Id: Ie1d2aac422f9ffe332f9622b168e908dee874c9e
2022-02-28 18:32:17 +00:00
Roopa Sattiraju
293ed88b2f Enabling Apex in BT
Bug: 217736913
Test: Compile, bringup and test user journeys
Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
2022-02-24 20:42:33 +00:00
Nikita Ioffe
05b17e193f Teach PackageManagerService about supplemental process
Each app will have it's own supplemental process with a different uid
that uniquely maps to the uid of the application that this supplemental
process corresponds to.

This will impact some of the PackageManager and PermissionManager APIs
(e.g. PackageManager.getPackagesForUid, or
PermissionManager.checkPermission). In order to make it possible for
PackageManager to correctly treat supplemental process uids, we first
need to teach it about the supplemental process APK itself, hence this
change.

Bug: 215241564
Test: atest PackageManagerShellCommandTest
Change-Id: I28f4a382900f276170c51e8c92d8fcde8419ddb1
2022-02-01 16:59:17 +00:00
Maciej Żenczykowski
3a79de0568 Merge "Monitor interface added and update bpf interface map" am: d6ba5ab1b5 am: 0e5a1b21cf am: 402c615d7a am: 4be38b0eac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1954391

Change-Id: Ie21cd49b0b58dbe8c40f6964c427ec8f2b996408
2022-01-24 19:59:44 +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
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
1745d75157 Migrating frameworks/base BT files
Bug: 206121418
Test: Compile
Change-Id: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
2022-01-17 11:52:07 -08:00
Joe Bolinger
7de78b4332 Add new methods to TestHal.
Bug: 204585936
Bug: 204584403
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I972582cd2711001e4f1dc5beb5a80885e3fbb0c9
2022-01-12 16:24:36 -08:00
Devin Moore
04ed1281c9 Merge "Use new AIDL IR interface for ConsumerIr service" am: a188a10262 am: 26af7dd375 am: 8522a80d4c am: 75b58f4d71
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1887097

Change-Id: I8f9abc63affe76f6438bff0d2c7fbb3d402ba76a
2021-12-22 22:52:57 +00:00
Devin Moore
bba4af8447 Use new AIDL IR interface for ConsumerIr service
Continue using the HIDL service if it is registered, otherwise use the
AIDL service.

Test: atest ConsumerIrTest VtsHalIrTargetTest hal_implementation_test
Bug: 205000342
Change-Id: I648aa765d14c4f5d4c862523a1bb69b2e7bc5cc1
2021-12-16 00:25:59 +00:00
Jim Blackler
4e59b1968c Merge "Game Loading Time improvement by boosting CPU via ADPF" 2021-12-15 16:07:37 +00:00
Treehugger Robot
79779fcb69 Merge changes from topic "ms07-movestats" am: 942c713c9d am: 6d0a6803c9 am: f626e66561 am: 4e59f54c9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895044

Change-Id: Ie8b9eefca78493204ae2d83c1e051f4c2788b5c5
2021-12-10 19:43:44 +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
0ebac1f535 Merge "Centralize nsd associated files" am: 32942299d3 am: 9238a7c49e am: 80425b7eeb am: 29bccff63b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895244

Change-Id: Ic43cd5dc4ab9f0b98af3750d610cc48dd8860423
2021-12-02 18:48:56 +00:00
Jim Blackler
620c5cccd1 Game Loading Time improvement by boosting CPU via ADPF
Adds the concept of Game State (supplied by the application) to the
GameManager API. This allows the setting of various modes to describe
the current high-level runtime state of the game, as well as the loading
state. In Performance Mode, during loading a hint is sent to the device
PowerHAL via the PowerManager.

Bug: 201769701
Test: atest android.gamemanager.cts.GameManagerTest
Ignore-AOSP-First: Mentions a confidential API
Change-Id: I695e45b12f9a30c1824df210bfefbd5a9b4bd935
2021-11-30 17:59:43 +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
Marin Shalamanov
1104725732 Add default display config for television
Fixes: 207331094
Ignore-AOSP-First: Owners file aded for a new folder
    which doesn't exist on AOSP
Test: adb shell dumpsys display | grep DensityMap
Change-Id: Ia46004fa8e41bb24b16a660f12873c9f9a93b6a4
2021-11-24 14:17:51 +01:00
Vishnu Nair
cbb12e2e76 WM: Handle primary display orientation when calculating the transform hint
Query the surface flinger property
ro.surface_flinger.primary_display_orientation to determine the
primary display's install orientation. If the window is on the
primary display, then update the transform hint passed on to the
client.

Bug: 196167822
Test: check initial buffer transforms on displays with a different
install orientation

Change-Id: Idf010cd6be73172ba708820f87046c3ba3cf8001
Merged-In: Idf010cd6be73172ba708820f87046c3ba3cf8001
2021-11-11 03:14:21 +00:00
Yifan Hong
f7ac179734 Merge "health package: switch to aidl HealthInfo" am: acda40633a am: e25ab8bef5 am: 8f88d08240 am: d6c436b89f am: 6036fd4670
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883548

Change-Id: I25aa8bae275d0aae1591be5380428cb252cebbc8
2021-11-10 23:02:13 +00:00
Yifan Hong
6036fd4670 Merge "health package: switch to aidl HealthInfo" am: acda40633a am: e25ab8bef5 am: 8f88d08240 am: d6c436b89f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1883548

Change-Id: Idfd29826c95431ef9ed80550def3853c722dab5f
2021-11-10 22:44:57 +00:00
Yifan Hong
8838bc3d62 health package: switch to aidl HealthInfo
This is the first step of switching to AIDL health HAL. All
usages of HIDL HealthInfo is replaced with AIDL HealthInfo.

Because there's only one definition of HealthInfo in AIDL, all
3 versions of HIDL HealthInfo (1.0, 2.0, 2.1) are converted into
this AIDL HealthInfo.

A new function, Utils.copyV1Battery, is introduced in place of
Utils.copy, to denote that only battery fields in the V1 AIDL
HealthInfo are copied. When we add more battery fields to
HealthInfo in the future, the name V1 suggests that only V1
fields are copied. So we'll only need to change it to copyV2Battery
if we are going to use V2 fields in BatteryService.

Test: boots
Bug: 177269435

Change-Id: I38294bcff7cab72b8a7360a172ad70b22a1fcfe2
2021-11-09 22:30:25 +00:00
Yu-Han Yang
9a40f76b84 Merge "Add GnssBatching AIDL HAL (frameworks/base)" 2021-11-04 23:22:43 +00:00
Joe Bolinger
49f9cdc27b Merge "Update fingerprint AIDL with additional display id field." 2021-11-03 01:30:57 +00:00
Arthur Ishiguro
989cd1c168 Add support for CHRE metrics in core framework
Bug: 194287570
Test: Compile
Change-Id: Ib15d4d9e71493182d2837f9b6c8e3be0ecd76010
2021-10-27 15:52:24 +00:00
Joe Bolinger
1988b3825b Update fingerprint AIDL with additional display id field.
This enables the HAL to use stable display ids (i.e. config_displayUniqueIdArray).

Bug: 174868353
Test: builds
Change-Id: Ia6b4e15ec22a431d88825af4e38605c9369d0a0b
2021-10-25 20:48:32 +00:00
Yu-Han Yang
4acbea15cf Add GnssBatching AIDL HAL (frameworks/base)
Bug: 201253590
Test: atest VtsHalGnssTargetTest
Change-Id: I9f20e570aa39663e47b5f7c802fc0d8cf5dd5643
2021-09-28 18:30:40 -07:00
Vishnu Nair
ecd114ee1c Merge "WM: Handle primary display orientation when calculating the transform hint" into sc-v2-dev am: e84c7c6393 am: 5619ebfa14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15838995

Change-Id: I54e16ca4058f3f90bf6e73a10ce8e6fd57e9d733
2021-09-23 19:42:25 +00:00
Vishnu Nair
e84c7c6393 Merge "WM: Handle primary display orientation when calculating the transform hint" into sc-v2-dev 2021-09-23 19:14:57 +00:00
Vishnu Nair
d6f2c5882f WM: Handle primary display orientation when calculating the transform hint
Query the surface flinger property
ro.surface_flinger.primary_display_orientation to determine the
primary display's install orientation. If the window is on the
primary display, then update the transform hint passed on to the
client.

Bug: 196167822
Test: check initial buffer transforms on displays with a different
install orientation

Change-Id: Idf010cd6be73172ba708820f87046c3ba3cf8001
2021-09-22 17:06:10 +00:00
Vishnu Nair
e2b63cb1f9 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.
OBSCURED: SurfaceControl and its children will not
receive any input if the layer is obscured, cropped by its parent or
translucent.

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

Test: atest libgui_test InputDispatcherDropInputFeatureTest
Bug:197364677

Merged-In: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
Change-Id: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
2021-09-20 17:37:34 +00:00
Vishnu Nair
d100067fd6 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.
OBSCURED: SurfaceControl and its children will not
receive any input if the layer is obscured, cropped by its parent or
translucent.

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

Test: atest libgui_test InputDispatcherDropInputFeatureTest
Bug:197364677

Change-Id: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
2021-09-17 12:14:47 -07:00
Forrest Dunlap
5ecbf52e31 Remove DeviceConfigInterface from Services & refactor FakeDeviceConfigInterface to use android.provider.DeviceConfigInterface
Test: manual atest
Bug: 142727848

Change-Id: I6bf41df5b30a52887f0f9755c1332c244f19c791
2021-08-31 21:17:59 +00:00
Ytai Ben-Tsvi
6f1c5a78a1 Remove STHAL 2.4
This version was only created as an intermediate version for
development and was never intended for release. STHAL 3 (AIDL) has
feature-parity with this one and is intended for release.

Bug: 181996624
Test: Manual verification of soundtrigger use-cases.
Test: atest FrameworksServicesTests:SoundTriggerMiddlewareImplTest FrameworksServicesTests:SoundHw2CompatTest
Change-Id: Ie7babd2aa37b1cb2830656808cce540a0e143a09
2021-08-25 14:01:31 -07:00
Hongguang
956e635430 Use tuner AIDL HAL in Java codes.
This CL also updates the values of some tuner System API constants.
Those values generated by the HIDL HAL were duplicated, and should be
fixed.

Bug: 191825295
Bug: 194426536
Fix: 194426536
Test: atest android.media.tv.tuner.cts
Change-Id: Ife35bd0000b3aa864d6d0a7842536cad07f5ab9c
2021-08-02 12:02:25 -07:00
chaviw
b6b00b3393 Renamed and moved InputWindow and related files
In preparation for the hierarchy listener interface, moved the
InputWindow structs into libgui and have libinput dependant on libgui.
Also renamed InputWindow to exclude Input since it will be used for more
generic purposes.

Test: Builds and flashes
Bug: 188792659
Change-Id: Ib0a32c9920dc8110ceee4d6617ac030eb5cc0d99
Merged-In: Ib0a32c9920dc8110ceee4d6617ac030eb5cc0d99
2021-06-28 18:27:34 -05:00
chaviw
9d438f974a Renamed and moved InputWindow and related files
In preparation for the hierarchy listener interface, moved the
InputWindow structs into libgui and have libinput dependant on libgui.
Also renamed InputWindow to exclude Input since it will be used for more
generic purposes.

Test: Builds and flashes
Bug: 188792659
Change-Id: Ib0a32c9920dc8110ceee4d6617ac030eb5cc0d99
2021-06-25 15:15:34 -05:00
Ilya Matyukhin
0bc9e56556 Merge "bpfmt -w Android.bp" into sc-dev am: faf3969c2c am: 531145adc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14625694

Change-Id: I5e6b4cf955a9df7344219eb4d66a0a6552203807
2021-05-20 00:19:59 +00:00
Ilya Matyukhin
6e146aa9ae bpfmt -w Android.bp
"repo upload" complains about the formatting in Android.bp for all new
changes because the file on ToT is not properly formatted.

Bug: 188193467
Test: build
Change-Id: Ic63f580d9449dfbb1b2725c2687b62e4db7a1c46
2021-05-18 20:06:20 +00:00
Remi NGUYEN VAN
f46a245807 Merge "Move connectivity sources to packages/Connectivity" into sc-dev am: 92e25f7743
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14516148

Change-Id: I6019a833425dcf2a4c6a356eb26ed0e724ae4802
2021-05-13 15:36:43 +00:00
Remi NGUYEN VAN
9bf30999cc Move connectivity sources to packages/Connectivity
The service-connectivity sources should be in
packages/modules/Connectivity. Move them to
frameworks/base/packages/Connectivity, so that the whole directory can
be moved to the dedicated packages/modules/Connectivity git project.

Bug: 186628461
Test: m
Change-Id: I26d1a274058fa38763ad4f605549d880865b4d76
2021-05-13 12:44:09 +00:00
Anton Hansson
e9e2b2de87 Merge "Don't include protolog-lib in services" into sc-dev am: 0b8ee9ae50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161625

Change-Id: I35f1d0ccc026f5f0f6541b9836efe3ffe34b3b76
2021-04-19 12:31:58 +00:00
Anton Hansson
50ef8bc004 Don't include protolog-lib in services
It's in framework.jar already, we needn't duplicate this code.

Bug: 155379391
Test: m
Test: atest StrictJavaPackagesTest
Change-Id: I8767b4f06d5646989da3b914e33cce22355e751e
2021-04-16 14:59:26 +00:00
Lucas Lin
2521c97639 Merge "Remove the dependency of dnsresolver_aidl_interface-java" into sc-dev am: 311173cccc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14031645

Change-Id: If5174ded8664096ff5820c77925c6662890fdb73
2021-04-07 05:24:37 +00:00