Commit Graph

337 Commits

Author SHA1 Message Date
ChengYou Ho
7a9e42a0c0 OemLockService: support oemlock AIDL hal
Test: atest GtsOemLockServiceTestCases
Bug: 240932137
Change-Id: I88166cba3858dffced32fb46d59880cd844af4a7
2022-11-23 07:47:04 +00:00
Ilya Matyukhin
10ae7f2e9c Propagate PointerContext for UDFPS touch events
Bug: 218388821
Test: atest FrameworksCoreTests:android.util.RotationUtilsTest
Test: atest FrameworksServicesTests:com.android.server.biometrics
Test: atest SystemUITests:com.android.systemui.biometrics
Change-Id: If41ae8d30c702c1482c0ab5617014d93a656526b
2022-11-17 23:09:56 +00:00
Matt Buckley
354cc0a140 Add support for ADPF HintSession sendHint to JNI
* Add sendHint API to HintManagerService and PerformanceHintManager
 * Plumb relevant calls through the existing implementation
 * Extend existing tests to cover new API calls
 * Update the relevant build files to use power API v4

Bug: b/243973548
Test: atest PerformanceHintNativeTestCases
Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
Test: atest HintManagerServiceTest

Change-Id: Ice7ed8f32e877bd845afad77fcc6ae16f1a1b78c
2022-11-09 01:49:41 +00:00
Treehugger Robot
3aaeb7ad3c Merge "CEC: AIDL Native Wrapper" am: d3ebddf5f3 am: c80d885785 am: 8fe25ff905
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2176463

Change-Id: Ia73dd294f61e8cce8989b2aac6b29e5e408dbc93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 07:05:09 +00:00
Venkatarama Avadhani
40e3da0cd5 CEC: AIDL Native Wrapper
Add native wrapper implementation for CEC AIDL interface.

Bug: 233026642
Test: Manual
Change-Id: I154a6dc8f51a8326c5010c58ff561f68814b68a3
2022-09-29 02:22:45 +05:30
Weilin Xu
23d8c9b501 Merge "Add AIDL HAL support for BroadcastRadioService" 2022-09-26 22:36:48 +00:00
Sorin Basca
0fe33401aa Add jdk.compiler exports to ImmutabilityAnnotationProcessor
Bug: 139342589
Test: EXPERIMENTAL_USE_OPENJDK17_TOOLCHAIN=true m
Change-Id: Ib39b89a241d366c0fb7c9ded7b70bc3373bd543a
2022-09-22 18:35:31 +01:00
Weilin Xu
67fa6636cd Add AIDL HAL support for BroadcastRadioService
Allow BroadcastRadioService using AIDL version of broadcastradio
HAL. The wrapper checks whether AIDL HAL exists. If not exists,
using HIDL HAL instead.

Bug: 230532553
Test: atest android.hardware.radio.tests.functional
Change-Id: Ia7ab0d7c3d2ee2264588a04b47ba0079dfcfe29d
2022-09-21 23:12:38 +00:00
Winson Chiu
a597df865c Add @Immutable
This annotation marks an interface as effectively immutable,
enforcing through an annotation processor that it follow these
guidelines:
 - Only exposes methods and/or static final constants
 - Every exposed type is an @Immutable interface or otherwise immutable class
 - Every method must return a type (no void methods allowed)
 - All inner classes must be @Immutable interfaces

This is in preparation of making PackageState fully immutable.
As a test case it has been marked in this change but has its
errors suppressed using @Immutable.Ignore to have the build work.

Test: atest --host ImmutabilityAnnotationProcessorUnitTests
Test: m services.core.unboosted

Change-Id: I59c615a97d5a30b83a5bcace0e2cee270ea5d1d2
2022-09-14 17:06:58 +00:00
Xin Li
14543d1ec7 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: I5705ac7586cb73b7bc2bd60bb792d0a0a951ed74
Change-Id: I59a4fd917c95c8c9e258cd743cee2d950a46d9cd
2022-06-28 21:24:28 +00:00
Neil Fuller
5d23852150 Remove TZUvA feature.
The feature was superseded by tzdata mainline module(s).

Bug: 148144561
Test: m
Test: see system/timezone
Change-Id: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
Merged-In: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
2022-06-13 11:44:35 +00:00
Neil Fuller
b9e72bab40 Remove TZUvA feature.
The feature was superseded by tzdata mainline module(s).

Bug: 148144561
Test: m
Test: see system/timezone
Change-Id: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
2022-06-06 12:12:03 +01:00
Jiakai Zhang
27d1a26025 Use ArtManagerLocal to handle ART shell commands in PackageManagerService.
Bug: 226937003
Test: adb shell pm art
Change-Id: Ideede0d3304697c122a2bd7f7d5bcbda8cdb69f5
2022-04-22 11:52:03 +01:00
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
4663b75d43 Merge "Fix static lib collision between system_server + framework" am: a6f4bbd418 am: e9c7689391 am: 8496003245 am: 2974e295ee am: e1a56179c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2050305

Change-Id: I144caad0d0e1911d240eb598b9e6f81048257089
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 01:52:42 +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
Xiao Ma
4e7bf0415f 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
Change-Id: I2209df4b6f0b4daddc640fc4126ba89601df2c2b
2022-03-28 03:24:30 +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