platform_hardware_interfaces/automotive/remoteaccess/hal/default
Yu Shan 3a129d7a3b Implement a host side TestWakeupClientService.
Implement a host program that could be used to test the remote
access feature. The program will provides grpc service that the
remote access HAL running on device can talk to to get tasks. The
program will also use adb/aemu command to control the power of the
Android instance.

This CL also changes the GRPC service address for the default
remoteaccess HAL to 10.0.2.2 which points to the host's 127.0.0.1
from the emulator.

Test: m -j TestWakeupClientServerHost, run manually.
TestWakeupClientServerHost
>>> inject task [clientID] taskdata
verify emualtor boot up
verify emulator shutdown after task finish
>>> power on
verify emualtor boot up
>>> inject task [clientID] taskdata
verify emulator does not shutdown after task finish
>>> power off
>>> inject task [clientID] taskdata
verify emulator boot up
>>> set vehicleInUse
verify emulator does not shutdown after task finish
>>> power off
>>> genFakeTask start [clientID]
verify emulator starts up to execute remote tasks.
verify emulator shuts down after 300s.
verify emulator restarts after shutdown.
>>> genFakeTask stop
verify emulator shuts down after finishing last task.
Bug: 285205122

Change-Id: I22b660448d8b495cf3ced3378c1c1dc10051d87a
2023-08-28 17:45:08 -07:00
..
fuzzer Add remote access HAL interface and ref impl. 2022-10-26 17:16:05 -07:00
include Add inject-task-next-reboot debug command. 2023-05-08 15:42:56 -07:00
proto Add remote access HAL interface and ref impl. 2022-10-26 17:16:05 -07:00
src Implement a host side TestWakeupClientService. 2023-08-28 17:45:08 -07:00
test Add getProcessorId to support multiple processors in remote access 2023-03-16 00:49:16 -07:00
Android.bp Implement a host side TestWakeupClientService. 2023-08-28 17:45:08 -07:00
remoteaccess-default-service.rc Add remote access HAL interface and ref impl. 2022-10-26 17:16:05 -07:00
remoteaccess-default-service.xml Add remote access HAL interface and ref impl. 2022-10-26 17:16:05 -07:00
remoteaccess-tcu-test-service.rc Grant net_raw capabilities to remote access hal. 2023-03-21 20:49:53 -07:00