Commit graph

2682 commits

Author SHA1 Message Date
Treehugger Robot
2a60fca9a6 Merge "Added supportedEnums logic description to enum files" into main 2024-06-12 18:21:53 +00:00
Yu Shan
4f45ed5f75 Merge "Revert^2 "Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property."" into main 2024-06-11 23:52:21 +00:00
Yu Shan
14404f2444 Revert^2 "Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property."
This reverts commit 439e897d10.

Reason for revert: Seahawk now uses v3 lib, which should not be affected

Change-Id: Ia04c9a2c28829778c4d9d24b4a1138b615ac9377
2024-06-11 00:11:22 +00:00
Treehugger Robot
13ec8ec416 Merge "Add a front camera instance" into main 2024-06-06 20:44:34 +00:00
Elliott Hughes
89e0a196e9 Merge "Remove android.hardware.automotive@libc++fs." into main am: c3f1297610 am: df08b5f5f9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3116464

Change-Id: I535304fadbf4c6f32de77f5fea246de3f390b7bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 19:17:15 +00:00
Elliott Hughes
df08b5f5f9 Merge "Remove android.hardware.automotive@libc++fs." into main am: c3f1297610
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3116464

Change-Id: Ia02e248cea3f42221ed2525db74f56f51fd34eff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 19:06:36 +00:00
Elliott Hughes
c3f1297610 Merge "Remove android.hardware.automotive@libc++fs." into main 2024-06-06 18:52:50 +00:00
Yi Kong
6aad84d933 Merge "Add missing include of <mutex>" into main am: 1612fe7f8e am: efc4698376
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3115159

Change-Id: I72e02e6067a2ef15063b83cffea284766c3c1eaf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 17:24:23 +00:00
Yi Kong
efc4698376 Merge "Add missing include of <mutex>" into main am: 1612fe7f8e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3115159

Change-Id: I0cc9717a758177a4e90c2971e58485891ca35a27
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 16:46:22 +00:00
Yi Kong
1612fe7f8e Merge "Add missing include of <mutex>" into main 2024-06-05 16:20:38 +00:00
Elliott Hughes
6516ae706f Merge "libc++fs is part of libc++ now." into main am: a22a7ccba5 am: 7754532eae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3113941

Change-Id: I205ae13d682626179d6720ab967306a5ea1aa107
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 13:48:42 +00:00
Elliott Hughes
7754532eae Merge "libc++fs is part of libc++ now." into main am: a22a7ccba5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3113941

Change-Id: I2f9688cd5575051ea5f9e61ebe9b634d8c80f2f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 13:23:46 +00:00
Elliott Hughes
dccd8f3c2a Remove android.hardware.automotive@libc++fs.
It's no longer used (now libc++fs is part of libc++), and it's
dangerously opting out of the global cpp_std default.

Bug: http://b/344590580
Change-Id: I17648b573600ff2ee1ab45383c7fda7d5bcfc7a2
2024-06-05 13:09:01 +00:00
Pirama Arumuga Nainar
1212902aa2 Add missing include of <mutex>
This fixes build failure with clang-r522817

Bug: 322868540
Change-Id: Ie5db4a32bebd137d1ba11213e0d642d85f1f7d1d
Test: m out/soong/.intermediates/hardware/interfaces/automotive/can/1.0/default/tests/fuzzer/automotiveCanV1.0_fuzzer/android_vendor_arm64_armv8-2a_cortex-a55_fuzzer/e560d7b19ebf7276b3e850d3d346dec8/obj/hardware/interfaces/automotive/can/1.0/default/CanBus.o
2024-06-04 23:10:12 +00:00
shrikar
9d24f979a9 Added supportedEnums logic description to enum files
Bug: 332324441
Test: presubmit
Change-Id: Ifd7ddacf53cf0b0b1dbbc9a6fad8e8ade578c280
2024-06-04 14:06:06 -07:00
Elliott Hughes
98eb91c3cb libc++fs is part of libc++ now.
Change-Id: I55a7c77ec09b21375bd3e3187a12383dde7414b0
2024-06-04 17:25:02 +00:00
Treehugger Robot
db2431f976 Merge "Fix build on clang-r522817" into main am: c63722a30c am: b6cb602d2a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3110841

Change-Id: Iae86025807a5cfad3aa4d5f68a05dbadb3eb6cb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-01 20:53:38 +00:00
Treehugger Robot
b6cb602d2a Merge "Fix build on clang-r522817" into main am: c63722a30c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3110841

Change-Id: Ifccb6c0ba78e3578127a3d67c2bb18b2902de2b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-01 20:47:38 +00:00
Yi Kong
9053d1a6fc Fix build on clang-r522817
hardware/interfaces/automotive/can/1.0/tools/libprotocan/MessageInjector.cpp:44:8: error: no member named 'lock_guard' in namespace 'std'
   44 |   std::lock_guard<std::mutex> lock(mMessagesGuard);
      |   ~~~~~^

Bug: 322868540
Test: presubmit
Change-Id: I45cd6a8420e508a37e2b6da456933c036493e15e
2024-06-02 04:29:38 +09:00
Treehugger Robot
99e0190a79 Merge "Allow using property name in debug command." into main 2024-05-28 22:04:41 +00:00
Treehugger Robot
3a117fe692 Merge "Improve FakeVehicleHardware dump." into main 2024-05-28 20:54:44 +00:00
Treehugger Robot
71fa5c0d03 Merge "Patched <1 resolution bug in reference VHAL" into main 2024-05-28 19:43:08 +00:00
Treehugger Robot
54ef29249f Merge "Added documentation for code explainability in SubscriptionManager VHAL" into main 2024-05-28 19:33:00 +00:00
shrikar
a498939170 Patched <1 resolution bug in reference VHAL
Bug: 341142440
Test: atest DefaultVehicleHalTest
Change-Id: Iced15350a53580a726df5eca87de9409b155c0ca
2024-05-28 18:47:38 +00:00
Pechetty Sravani
d5cf62ae99 Merge "Revert "Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property."" into main 2024-05-27 03:30:41 +00:00
Pechetty Sravani
439e897d10 Revert "Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property."
This reverts commit 57e19cdcd8.

Reason for revert: Droidmonitor triggered revert due to build breakage in b/342708614. Will be verifying through ABTD before submission.

Change-Id: I289ed2a3158e81b7b1da86df939d59970f65b0a5
2024-05-27 01:57:14 +00:00
Changyeon Jo
ef17819c03 Add a front camera instance
This change updates a configuration for the default EVS HAL
implementation with an additional camera element that represents the
front-view camera.

Bug: 342834307
Test: atest CarEvsManagerTest
Change-Id: I8d01a9f9b6decf981e54c498fdf0e595b861e12f
2024-05-26 04:59:11 +00:00
Treehugger Robot
8258ec1758 Merge "Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property." into main 2024-05-25 02:27:11 +00:00
Yu Shan
77f21c8016 Allow using property name in debug command.
Add stringToPropertyId to VehicleUtils and use that in
FakeVehicleHardware to support commands like "--set PERF_VEHICLE_SPEED".

Test: atest VehicleUtilsTest FakeVehicleHardwareTest
Bug: 342260344
Change-Id: If317929376eb18bb0c28f87c4d7a3321c58d72b1
2024-05-24 17:03:18 -07:00
Yu Shan
a97e8abba7 Improve FakeVehicleHardware dump.
Add supported area IDs to "--list" dump.

Test: dumpsys android.hardware.automotive.vehicle.IVehicle/default
--list
Bug: 342260344

Change-Id: I889fa0a5b8a97d36a3b8ddf1620160e7d4d3e308
2024-05-24 17:03:17 -07:00
Yu Shan
7502bc52b8 Merge changes I35f4860e,I4f02885b into main am: e2e4e54a0a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3096235

Change-Id: Ie659c0ee8001e931e45744b5edbd6cf9a647a526
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 23:18:52 +00:00
Yu Shan
89ab8c7623 Add subscribe to VHAL proto. am: 5c846f7cc9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3096234

Change-Id: I69fa802d59a0b5ac45bb8a5e541a9ef7a8d43fc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 23:18:45 +00:00
Xin Li
64e598ce2b Merge Android 24Q2 Release (ab/11526283) to aosp-main-future
Bug: 337098550
Merged-In: I53a278f1317f5307441103dc42dc5be6f20d7075
Change-Id: I3a53ebf7339cdb886d3c1b733b8eee1847f8832a
2024-05-24 08:28:04 -07:00
Yu Shan
5c846f7cc9 Add subscribe to VHAL proto.
The latest IVehicleHardware adds Subscribe/Unsubscribe function
to replace the existing updateSampleRate. This CL adds the
Subscribe function to protobuf definition and implements it.

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I4f02885b77f21a215a8b282be583f76118e400ba
(cherry-picked from commit: f1a869055f)

Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
2024-05-23 15:51:25 -07:00
Yu Shan
2c37c11a82 Implement Unsubscribe in vhal proxy.
Implement the unsubscribe function in IVehicleHardware. This will
stop the server from generating property update events for the
specified [propId, areaId].

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I35f4860eead0c8ec9b192657fe51cc0ff4319383
(cherry-picked from commit: cb00b1f816)

Change-Id: I35f4860eead0c8ec9b192657fe51cc0ff4319383
2024-05-23 15:51:25 -07:00
Yu Shan
b0a66d9747 Lazy init property configs.
This is the first step towards supporting delayed property config
discovery. Right now this does not bring too much benefit since
essential system service such as carwatchdog is still querying
property conifg early in the boot process. In the future once
we separate essential properties with non-essential properties,
we can improve more.

Test: atest DefaultVehicleHalTest
Bug: 342470570
Change-Id: Ie85aa163fa9128aa061dd5b3221954c7acac050c
2024-05-23 15:44:22 -07:00
Yu Shan
e56e2981cd Add host prebuilt for fake VHAL config.
Test: Local build
Bug: 328316981
Flag: EXEMPT build rule
Merged-In: I965e704e29e62cd05540f46ef37d0bfa2a5568db
(cherry-picked from commit: 1c670114fd)

Change-Id: I965e704e29e62cd05540f46ef37d0bfa2a5568db
2024-05-21 13:52:23 -07:00
Yu Shan
02e4d07563 Add require_root to FakeVehicleHardwareTest.
According to b/329690075, vendor tests need root to use vendor
lib, otherwise atest will cause link error.

Test: atest FakeVehicleHardwareTest on cf_auto
Flag: EXEMPT bug
Bug: 341762230
Merged-In: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
(cherry-picked from commit: f01c7aec0d)

Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
2024-05-21 13:52:23 -07:00
Yu Shan
0c447863ef Add host_supported to VHAL libs.
We need to build a FakeVehicleHardware impl on host, thus we need
to add the host_supported option.

Test: Local build on host.
Bug: 328316981
Flag: EXEMPT hal change
Merged-In: Ia21d26640c465846423cab1a0ff8a283c798b92a
(cherry-picked from commit: 9d3513882a)

Change-Id: Ia21d26640c465846423cab1a0ff8a283c798b92a
2024-05-21 13:51:39 -07:00
Yu Shan
cb00b1f816 Implement Unsubscribe in vhal proxy.
Implement the unsubscribe function in IVehicleHardware. This will
stop the server from generating property update events for the
specified [propId, areaId].

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Change-Id: I35f4860eead0c8ec9b192657fe51cc0ff4319383
2024-05-20 17:28:54 -07:00
Yu Shan
1c670114fd Add host prebuilt for fake VHAL config.
Test: Local build
Bug: 328316981
Flag: EXEMPT build rule
Change-Id: I965e704e29e62cd05540f46ef37d0bfa2a5568db
2024-05-20 16:48:19 -07:00
Yu Shan
f01c7aec0d Add require_root to FakeVehicleHardwareTest.
According to b/329690075, vendor tests need root to use vendor
lib, otherwise atest will cause link error.

Test: atest FakeVehicleHardwareTest on cf_auto
Flag: EXEMPT bug
Bug: 341762230
Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
2024-05-20 16:48:19 -07:00
Yu Shan
5ddb4185f2 Merge "Add subscribe to VHAL proto." into main 2024-05-20 22:13:24 +00:00
Yu Shan
57e19cdcd8 Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property.
Test: m -j android.hardware.automotive.vehicle.property-update-api
Bug: 336831738
Change-Id: I16b874a0bad9ab446c4e000b1c3680363548849a
2024-05-20 14:49:30 -07:00
Yu Shan
8a844ae840 Merge "Add host_supported to VHAL libs." into main 2024-05-20 20:33:29 +00:00
Treehugger Robot
8385c2a980 Merge "Update documentation for display brightness." into main 2024-05-20 19:28:29 +00:00
Yu Shan
f1a869055f Add subscribe to VHAL proto.
The latest IVehicleHardware adds Subscribe/Unsubscribe function
to replace the existing updateSampleRate. This CL adds the
Subscribe function to protobuf definition and implements it.

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
2024-05-20 12:16:17 -07:00
Yu Shan
9d3513882a Add host_supported to VHAL libs.
We need to build a FakeVehicleHardware impl on host, thus we need
to add the host_supported option.

Test: Local build on host.
Bug: 328316981
Change-Id: Ia21d26640c465846423cab1a0ff8a283c798b92a
2024-05-20 12:14:44 -07:00
Yu Shan
fe49375ba9 Initialize mAddExtraTestVendorConfigs to false.
If we do not init, the initial value is undefined.

Test: Local run
Bug: 340947823
Flag: EXEMPT bugfix
Change-Id: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
Merged-In: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
2024-05-17 18:01:29 -07:00
Yu Shan
2c83e2a799 Initialize mAddExtraTestVendorConfigs to false.
If we do not init, the initial value is undefined.

Test: Local run
Bug: 340947823
Flag: EXEMPT bugfix
Change-Id: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
2024-05-15 23:49:48 +00:00