3a129d7a3b
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 |
||
---|---|---|
.. | ||
aidl_api/android.hardware.automotive.remoteaccess | ||
android/hardware/automotive/remoteaccess | ||
bind_to_device_socket_mutator | ||
hal/default | ||
test_grpc_server | ||
Android.bp | ||
OWNERS |