Squashed commit of the following:

commit 647e138178efab48c95dc28942cdc4db6711a271
Merge: 8e42072 f398664
Author: Enrico Granata <egranata@google.com>
Date:   Mon Aug 10 18:01:20 2020 +0000

    Merge changes I4950ab70,I995939a9 into rvc-qpr-dev

    * changes:
      Edit Vehicle HAL to remove non-inclusive lingo
      Edit Audio HAL to remove non-inclusive lingo

commit 8e420728d5d937523646ec807d8b7a57ac6650e1
Merge: 4485942 d915bc0
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Sat Aug 8 02:04:59 2020 +0000

    Merge "Remove trout-kernel modules bundling" into rvc-dev am: d915bc0264

    Original change: undetermined

    Change-Id: Idf7aa42c2d9120e032108fe5c0e2823a8fd2a418

commit d915bc02647bd4295fb82c7177c8ab189e8fa7f0
Merge: 4485942 adc851b
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Sat Aug 8 01:46:46 2020 +0000

    Merge "Remove trout-kernel modules bundling" into rvc-dev

commit adc851b7bc0c24b9c69087309dd55e7de50d0e5d
Author: Enrico Granata <egranata@google.com>
Date:   Fri Aug 7 11:23:42 2020 -0600

    Remove trout-kernel modules bundling

    trout-kernel is not part of the AOSP build and should not be
    used as no kernel objects here are actually needed

    Bug: 162954271
    Test: build
    Change-Id: I7232db5aee968177a69009587d88efd762bae2cd

commit f398664e8c5be0052517c564115494ef273cde68
Author: Enrico Granata <egranata@google.com>
Date:   Thu Aug 6 13:13:49 2020 -0600

    Edit Vehicle HAL to remove non-inclusive lingo

    Android has guidelines at
    https://source.android.com/setup/contribute/respectful-code
    on how to write code that abides by the project's values of
    equal dignity and inclusion for all.

    Some of the terms in Vehicle HAL run counter to this goal.
    Where feasible, use more appropriate terms.

    Bug: 162964571
    Test: build; Ctrl+F
    Change-Id: I4950ab704e76eeb6228a1018d511f45900b41e91

commit 77d96804d31d629f60f7d00c3e5c7738a6f5b5ac
Author: Enrico Granata <egranata@google.com>
Date:   Thu Aug 6 13:10:42 2020 -0600

    Edit Audio HAL to remove non-inclusive lingo

    Android has guidelines at
    https://source.android.com/setup/contribute/respectful-code
    on how to write code that abides by the project's values of
    equal dignity and inclusion for all.

    Some of the terms in Audio HAL run counter to this goal.
    Where feasible, use more appropriate terms.

    Please note that some instances are API in tinyalsa and
    others that we depend on and as such we can't change them
    without breaking the API contract at this time.

    Bug: 162964571
    Test: build; Ctrl+F
    Change-Id: I995939a9dd11e3bbcb5cbdf8f63ed4a876a6da20

commit 4485942f505f50462e3c4982efe69ffce09bcee6
Author: Eric Jeong <ericjeong@google.com>
Date:   Tue Aug 4 20:08:00 2020 -0700

    Exclude computepipe from trout

    - It's not possible to land a CL only for main.
    - Computepipe has different directory structure in rvc-dev and main.
    - For the time being, computepipe is excluded from trout, and will be
    included once trout points to main.

    Bug: 162896513
    Test: build okay
    Change-Id: I89e1c6752e7f546d158d775d835b6fcd0c6dc01d

commit 9fe54c39cdc15dd2722df0985872f37e10b52d49
Author: Eric Jeong <ericjeong@google.com>
Date:   Tue Aug 4 18:17:08 2020 -0700

    Move non-Java projects into packages/services/Car/cpp

    - Non-java projects focusing on native app/service are relocated to
    packages/services/Car/cpp
    - Relevant configs are changed accordingly

    Bug: 162625217
    Bug: 162896513
    Test: Build okay
    Change-Id: Ied7cf51c0f109279b96a28463c5c8636e21c98ea

commit 7e90be6ddab3b6cb8d42465822605b820aa018ad
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Jul 29 18:56:50 2020 -0700

    Copy the audio HAL implementation from emulator to trout

    Bug: 161929141
    Test: Build and boot
    Change-Id: I55febeff74df7849fab943b4f61c0a548ca3e73a

commit 7b4cf301840a883da3f3cc7acb6afcb4b85e9439
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Jul 23 23:11:21 2020 -0700

    Add E2E tests for Trout dumpstate device

    Resubmit pa/1735052. Rename the test because of b/162435077

    Bug: 162046610
    Test: atest on 8155 board; m lint-check locally
    Change-Id: I9ee10885a2cdbd63cbc61dd38c88ab23cbbfc2b1

commit 5320eb20287ceca0ea8ffaa491a6efad3220ed57
Author: Dybert Wang <dybertwang@google.com>
Date:   Mon Jul 27 03:15:28 2020 +0000

    Revert "Add E2E tests for Trout dumpstate device"

    This reverts commit 46cef8770bca0247e29ade1b2c6c5bd9abf659da.

    Reason for revert: <Build break on errorprone of git_master>

    Change-Id: I5941a47a3c587155cf7cd9accb800b396ba6582d

commit 530e32152c32a8fdafd54a3d13f2e583fd8ae64c
Merge: 767f124 97168c1
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Sat Jul 25 03:58:45 2020 +0000

    Merge "Set dumpstate pool to 2 threads" into rvc-dev

commit 767f1242efa5eb77d3dd9505a8511d109be2c027
Merge: 3804833 46cef87
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Sat Jul 25 02:22:45 2020 +0000

    Merge "Add E2E tests for Trout dumpstate device" into rvc-dev

commit 46cef8770bca0247e29ade1b2c6c5bd9abf659da
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Jul 23 23:11:21 2020 -0700

    Add E2E tests for Trout dumpstate device

    Bug: 162046610
    Test: atest on 8155 board
    Change-Id: I37fccc4f467a72b44a1707aca32c97f6c9882def

commit 3804833acf4ec38e0b9bc0d3feb345ef7d565a0f
Merge: 22d05b8 d2de8ab
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jul 24 21:17:29 2020 +0000

    Merge "Fix virtio-input binding while allowing hotplugging" into rvc-dev

commit 97168c1b197f435763f8b01998cdea4d88a0a51e
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jul 24 13:33:19 2020 -0600

    Set dumpstate pool to 2 threads

    A thread pool of 1 thread is not sufficient to handle both
    the automotive watchdog and the HIDL message stream, and it
    ends up locking up

    Add a second thread so that both watchdog and HIDL can run
    concurrently

    Bug: 162030599
    Test: lshal debug can connect to service
    Change-Id: I8be0bef3008b33a8c92ce30678c2b67d10f8cca7

commit 22d05b8e1794d231e19a97b39c8aa353a9b57437
Merge: 6f17ad8 71d51f5
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Fri Jul 10 22:37:33 2020 +0000

    Merge "Build ComputePipe for trout" into rvc-dev

commit 6f17ad8093482367623e0cfc2c59e19a1d0f727b
Merge: fbd3b4c 0b3850e
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri Jul 10 18:58:42 2020 +0000

    Merge changes I413dc581,I33e46f37,Ic3006104 into rvc-dev

    * changes:
      SELinux Policy for Audio Control Vsock Server
      Launch Audio Control Server along with Audio Control HAL Service
      Audio Control Server on Android Side Receiving Focus Requests

commit 71d51f5a878c5db3cceca9311eb6d75968d60f38
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jul 10 15:26:33 2020 +0000

    Build ComputePipe for trout

    Bug: None
    Test: build
    Change-Id: I0433861f3f96a62ea4c08cbceccc7ae1b775629c

commit 0b3850e2302c7abc4fd7ef16423053a5362f69a2
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Jul 6 15:48:38 2020 -0700

    SELinux Policy for Audio Control Vsock Server

    Test: build and run
    Bug: 141473213

    Change-Id: I413dc5819811072653731ebb3178bbb8f659779b

commit 1d46454d0d76e9e2b095557aaeaf133f0d394b05
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Jul 1 17:57:23 2020 -0700

    Launch Audio Control Server along with Audio Control HAL Service

    Test: build, see pa/1722027
    Bug: 141473213
    Change-Id: I33e46f37aca07010490f7b570bf0702bf53470c9

commit 4a3edafb5591a1899b029edd9919acb28a0e2339
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Tue Jun 30 21:36:21 2020 -0700

    Audio Control Server on Android Side Receiving Focus Requests

    Test: Build; see pa/1722029
    Bug: 141473213
    Change-Id: Ic30061041da8fae5ab16d83ea10413c9ccb61de9

commit fbd3b4c150a882639889bf980fb9fd8cc69aa160
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Jul 8 17:02:14 2020 -0700

    Fix Spammy Error Message

    When power state marker file does not exists or has wrong permission,
    the error message shuold be printed only once

    Bug: 160029823
    Test: launch_cvd and check the launcher's log
    Change-Id: Id86a50b42e04203b8e0637b4a766a6298434d321

commit d2de8ab6e222f36dd8e630893ca9b50b2a90b13d
Author: Enrico Granata <egranata@google.com>
Date:   Mon Jun 29 09:46:31 2020 -0700

    Fix virtio-input binding while allowing hotplugging

    Allow virtio-input to hotplug, while also binding the touchscreen
    to the main Android UI, regardless of eventual virtioN allocation

    This change requires a corresponding modification in the hypervisor
    configuration to allow configuration of the vendor/product IDs for
    the virtio-input device (0xfff assumed for both in this CL)

    Bug: 158131006
    Test: getevent -i, getevent -tld
          observe UI respond to touch events
    Change-Id: I3eaa5fcc6c6562b5496fef325e22e6243b4aaa27

commit 66d53b741fbce15bbc539d86e1c94667fb269b8d
Merge: 6f6e309 d00f0df
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Jul 8 01:59:37 2020 +0000

    Merge "Common mk file for both arm64 and x86 targets" into rvc-dev

commit 6f6e309749e6dd7f5d5a2f1871b7407612349800
Merge: 7880970 ea04839
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Tue Jul 7 05:07:56 2020 +0000

    Merge "Adding selinux policy for sensor hal" into rvc-dev

commit d00f0df421f9488fcd31f53c3cdade3f43ac3a30
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri Jun 19 18:16:02 2020 -0700

    Common mk file for both arm64 and x86 targets

    Test: build and run on both cvd and osprey
    Change-Id: I5f040eeb7ea9e5f12dc379b20995ff1eab03dea2

commit ea04839825e2c42859078f49a12f783e7659a5f4
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Mon Jul 6 09:37:57 2020 -0700

    Adding selinux policy for sensor hal

    Bug: 159964102
    Test: Build,test that there is no "avc: denied" message for
          hal_sensors_default in logcat
    Change-Id: I89174ba4da59ba30cf7b31b60b1e13166775827b

commit 788097060dbb9063bfe7840bdd063ac60f7c8538
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Jun 25 13:50:45 2020 -0700

    Add audio controller lib to AGL build script

    Bug: 141473213
    Test: Build for AGL locally

    Change-Id: I198cd64b802c315af3676363d286009e4c2d8f5b

commit 49481e786ab0a3909fe2f953bd33d7e8614aa2cc
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Jun 3 12:39:04 2020 -0700

    AGL side audio controller lib

    Test: build; e2e test is TBD
    Bug: 141473213

    Change-Id: I7a1c6b8c67c635538881be332c9b9917e396b084

commit 5f2ab14f794232cf04a4264dc988acf67996131d
Merge: e5cb3a1 864b3ac
Author: Enrico Granata <egranata@google.com>
Date:   Tue Jun 23 16:17:43 2020 +0000

    Merge "Set a custom android-info.txt for trout" into rvc-dev

commit 864b3acf1ac68776154bb5c198f54ce52146d7d7
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jun 19 17:24:34 2020 -0700

    Set a custom android-info.txt for trout

    The default version of this file is generated in the core build system
    by setting board= ro.product.board

    For trout, this setting is inherited from Cuttlefish, which means we
    don't have a way to distinguish trout from any other CF variant in
    android-info

    In turn, this can render it impossible to detect a trout image
    from a vanilla CF, from a device downstream of trout from
    a generated Android out/ tree

    Setting a custom board info file overrides the default behavior
    of the build system, and allows us to record what flavor of
    virtual device is being built, here and - optionally -
    in devices downstream of trout.

    Bug: None
    Test: build; cat android-info.txt
    Change-Id: I0e4ee3c131cc9dc7e93dd5ce9bd33c20467c4dd0

commit e5cb3a1849d8f9395c5951934b4fdedf54f3c416
Merge: 6466171 f25b430
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Fri Jun 19 21:22:28 2020 +0000

    Merge "Revert "WORKAROUND: Revert vbmeta changes in trout fstab"" into rvc-dev

commit 6466171aa6c588330dcb345b7504043919e1949c
Merge: 79ff540 9630964
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Thu Jun 18 23:22:28 2020 +0000

    Merge "Configure trout HALs with ?=" into rvc-dev

commit 79ff540e633130419521fce79eabb983271cc32d
Merge: 07dd05c 4685df7
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Jun 18 22:06:39 2020 +0000

    Merge "Build VHAL server for host" into rvc-dev

commit 96309648eb58cc5299668d5e5f9ecb1630a60ad9
Author: Enrico Granata <egranata@google.com>
Date:   Thu Jun 18 12:59:27 2020 -0700

    Configure trout HALs with ?=

    ?= allows a downstream device to override the default trout HALs
    without needing to modify trout's .mk files

    Since trout is meant as both a reference and a baseline, it should
    be as easy as possible to derive downstream devices from it

    Bug: 149054714
    Test: build, boot, lshal still shows the right components running
    Change-Id: I114f3e5d4fd16b189506743a02365002f863c98e

commit 07dd05cad42d4dc3d5ba70ffcf7250afe119e9c5
Merge: aa4817d fb290bc
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Jun 18 04:58:26 2020 +0000

    Merge "Fix AGL build after vsockinfo library" into rvc-dev

commit 4685df709fe594f5004595ed828930cf38f591aa
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Jun 3 18:28:34 2020 -0700

    Build VHAL server for host

    Bug: 157603385
    Test: build and create Acloud local instance
    Change-Id: I44fa8bb67df6751b1967a7c39ab3673478a5bef9

commit fb290bc84ff553d7704ff85a6f223eaae098655f
Author: Enrico Granata <egranata@google.com>
Date:   Tue Jun 16 15:20:39 2020 -0700

    Fix AGL build after vsockinfo library

    On AGL, all we need is a (cid,port) pair and there is no support for
    generating a vsockinfo object from ro property store or command-line
    centralized yet

    This is the simplest fix that gets both AGL and Android building;
    a proper longer-term solution would involve having a vsockinfo
    library on AGL as well

    Bug: 159152775
    Test: build.sh for AGL; m -j for Android
    Change-Id: Ibc2177fcd2aebac7bc58e20749207e7e0718eb29

commit aa4817d80a05912ae2084c86ee706a497c25bfb2
Author: Enrico Granata <egranata@google.com>
Date:   Tue Jun 16 13:32:33 2020 -0700

    Add watchdog support to Dumpstate HAL

    Bug: 154262220
    Test: boot device, logcat
    Change-Id: Ia9950138a12c23670d90012d56fd6c383b8b0887

commit f25b43053b8e00c4dd77e5feceb3d7b85e09e6f9
Author: Nikolay Martyanov <nikolay.martyanov@opensynergy.com>
Date:   Tue Jun 16 18:25:44 2020 +0200

    Revert "WORKAROUND: Revert vbmeta changes in trout fstab"

    This reverts commit 21bf6d555a17e2a355fe81e4332c3ba621e4c452.
    Test: build, boot
    Bug: 157778185

    Change-Id: I9efd035fe8e1d9f5b8a938eafcf7434704990ded

commit e2f392587d910c7149a95f4f79ab2207f7741aff
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Fri Jun 12 13:54:16 2020 -0700

    Adding support for reading sensor max range from scmi iio driver

    Bug: 155129166
    Test: Build, and test with KitchenSink
    Change-Id: I7ac8343b13d214ecc0e761f28ff5ba2972c814fb

commit 166c8c47fdc85048fa43742273a88c1db8707fc5
Merge: 1310946 2e10486
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Fri Jun 12 19:45:56 2020 +0000

    Merge "Factor common code to read/write IIO attributes" into rvc-dev

commit 2e10486a1f43584edbc2792295d27fc4b9b44ddd
Author: Enrico Granata <egranata@google.com>
Date:   Wed Jun 10 15:24:14 2020 -0700

    Factor common code to read/write IIO attributes

    A lot of the code to do with reading and writing IIO attributes is shared
    across different data types, and can be templated away.

    This still does not make for an entirely type-safe API as the format string
    also needs to be derived from the value type, but this can be done in a
    follow-up CL, as it's not a regression from the original code.

    Bug: None
    Test: flash and boot; KitchenSink
    Change-Id: I7573f36a7ef52cec36385d9869b6c83941ed08e4

commit 1310946596cf3920cf2222c8e6b3b164d28ae8a4
Author: Enrico Granata <egranata@google.com>
Date:   Wed Jun 10 14:08:27 2020 -0700

    Centralize the logic to discover CID/port pairs for HAL servers

    Multiple components need to be able to fetch their CID/port pair
    to establish a vsock connection. This commit provides a centralized
    library to handle the discovery of these values from the Android
    property store

    Bug: 156018302
    Bug: 157244827

    Test: boot
    Change-Id: I80105b802d7850f2c2bfc92a37d46412b8a6f2ba

commit e87349157cd348e17bd2456e59fe7e36aabc2e75
Merge: a6fc4bb adbfaf9
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed Jun 10 18:48:25 2020 +0000

    Merge "Register Vehicle HAL with automotive watchdog" into rvc-dev

commit a6fc4bb2a375f90da829218e3cc0c0dfd9b707af
Merge: f6d4bd5 a517e7b
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed Jun 10 01:34:25 2020 +0000

    Merge "Remove VHAL boot parameters from device makefile" into rvc-dev

commit adbfaf9c5d45af062270e5342defd4a41f707e5e
Author: Enrico Granata <egranata@google.com>
Date:   Tue Jun 9 13:47:10 2020 -0700

    Register Vehicle HAL with automotive watchdog

    Bug: 154262220
    Test: build and boot
    Change-Id: Ibbe2e8bd042ec5e252b6e666d2299e9d9b42b9dd

commit f6d4bd54fe24541cbbd2c4a15037c309e096b21a
Merge: af0ea9f e4dd4ea
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Tue Jun 9 15:56:02 2020 +0000

    Merge "Changing sampling frequency from int to double in sensor HAL" into rvc-dev

commit af0ea9f28692346da921ab29a43ef90ff55c4c6c
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jun 5 10:47:19 2020 -0700

    Tool to write power management commands to the garage mode socket

    This tool can be used for mock and testing of garage mode support
    by manually injecting a power state into the AGL server, and observing
    the interaction with the Android layer

    Bug: 157670971
    Test: garage_mode_helper socket shutdown
    Change-Id: I5058ead29c6e35a9210de62f677ba9405a22d099

commit a517e7befeef2ce6beded460739f280da77692f1
Author: Enrico Granata <egranata@google.com>
Date:   Wed Jun 3 18:36:07 2020 -0700

    Remove VHAL boot parameters from device makefile

    These are now passed as part of the hypervisor kernel configuration
    which allows for dynamic discovery across different hypervisors

    Bug: 157244827
    Test: boot; lshal finds vehicle hal
    Change-Id: I6043d3b1e05875d74c3de9e6be65179b4cfcaca1

commit 21bf6d555a17e2a355fe81e4332c3ba621e4c452
Author: Enrico Granata <egranata@google.com>
Date:   Tue Jun 2 13:41:41 2020 -0700

    WORKAROUND: Revert vbmeta changes in trout fstab

    Cuttlefish has recently changed its fstab layout to support
    new VBMeta flags (see commits af8ad6218e554f00db8e109775a25815656d340c
    and 7915595d24dac7c65cd5db2ea6e17d0c4ba1aa1c)

    This does not work under COQOS, and prevents Android boot from
    completing

    Work around the issue - pending vendor fixup - by reverting
    trout to an older fstab that can boot successfully

    This CL relies on https://floral.opensynergy.com/E0808/proj-e0808/prj-sa8155-hwvirt-linux-android/-/merge_requests/2/diffs
    to actually have any effect

    Bug: 157778185
    Test: flash and boot
    Change-Id: I82d7ee69267170d617e9e2c08653a0be984c98e1

commit 3430a1b425ae7df56b3bbe63c869de6fbba0f125
Author: Enrico Granata <egranata@google.com>
Date:   Mon Jun 1 12:55:50 2020 -0700

    Setup SELinux policy for Vehicle HAL

    VHAL needs a few permissions to run in a non-permissive environment. This commit
    sets those up to enable watchdog synchronization as well as open up vsock
    communication between VMs.

    Bug: 157244827
    Bug: 156018302
    Test: build
    Change-Id: I9ffee977ebe05b14c0985a99ceca327a92280251

commit 49734d68ec32449d589c1dee1994302c96f1340b
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri May 29 12:54:06 2020 -0700

    If failed to create GRPC server, log the failure and exit

    Test: build
    Bug: 157603385
    Change-Id: Ic2126cf09d82e119d696e9110fb87f10fc33b726

commit 7403245514dae999ca36e4248455a0aa0d901be9
Merge: 760b7e6 5221fb0
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Thu May 28 19:43:37 2020 +0000

    Merge "Use SHUTDOWN_POSTPONE signal as the heartbeat" into rvc-dev

commit e4dd4eaca5531f4d41f2573013dc02121c24aa25
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Thu May 28 10:28:05 2020 -0700

    Changing sampling frequency from int to double in sensor HAL

    This commit changes the sampling freq of sensor from int to double when
    writing to iio driver sysfs file so that freq with decimal such as
    12.5Hz or freq less than 0 can be accomodated and the UHz part of
    the frequency is not ignored

    Bug: 157244874
    Test: Build,test using kitchen sink
    Change-Id: I538c5dfbbbc4fd3f6c6b6776338e75c2f755501f

commit 5221fb00c19ecba59c4f6862947a4e89fe4ebe96
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed May 27 17:11:37 2020 -0700

    Use SHUTDOWN_POSTPONE signal as the heartbeat

    Since the car power management service will keep sending
    SHUTDOWN_POSTPONE, we can use this as the heartbeat

    Test: flash and run the client and server; schedule the garage mode
    jobs; and run `socat - UNIX-CONNECT:/tmp/power_state_socket` then `shutdown`
    on AGL to enter the garage mode; `journalctl -t vehicle_hal_grpc_server
    --no-pager` to see logs of the vhal server, and there will not be
    heartbeat timeout until exit of garage mode.

    Bug: 141626390

    Change-Id: I9115f6063c3e8f61bf89f26f998284ed4436e281

commit 760b7e651b17c4905695e5d0e66b42194986c90e
Author: Enrico Granata <egranata@google.com>
Date:   Wed May 20 15:05:46 2020 -0700

    Move AudioControl watchdog to a common helper type

    This factors out the logic of the automotive watchdog into a helper
    library, and moves AudioControl to use the base type and only add
    the minimal logic specific to that HAL

    Bug: 154262220
    Test: build
    Change-Id: If3e0f403ab7076ec9f78ec32b3ee2db24d897e13

commit ac849345861de823ae268eb123b7d87b1ae23554
Merge: 7d3ebcc 870566d
Author: Enrico Granata <egranata@google.com>
Date:   Wed May 27 15:57:11 2020 +0000

    Merge "Enable androidboot fetching of Vehicle HAL vsock address" into rvc-dev

commit 870566d6223f644ca79e0e8ab47b2a644d3f4506
Author: Enrico Granata <egranata@google.com>
Date:   Thu May 21 14:10:41 2020 -0700

    Enable androidboot fetching of Vehicle HAL vsock address

    Add support for getting the CID/port of the VHAL server agent via
    androidboot. properties that can be passed via kernel command-line.

    This should allow easier per-hypervisor customization compared to
    setting them as part of the lunch target's build properties.

    Bug: 157244827
    Bug: 156018302
    Test: configure hypervisor, reboot
    Change-Id: I8fa45859e5b31e966105a5f7f5a9ae7a459da485

commit 7d3ebcc31afe28e44aabf2ac3b3c86a84ff21aa8
Merge: dcb983b 82b3e43
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Thu May 21 20:54:50 2020 +0000

    Merge "Modifying Sensor HAL to get sensor power from IIO sysfs attr" into rvc-dev

commit 82b3e43a66fcace6ac50d64bc056eea258411f63
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Wed May 20 15:28:50 2020 -0700

    Modifying Sensor HAL to get sensor power from IIO sysfs attr

    Bug: 155128793
    Test: Build,test using kitchen sink
    Change-Id: I82210abc0b2ea93b550c877b7a00a1a37d6f461b

commit dcb983b0277b4bf6f16a9139543a77fae5df89b4
Merge: bd58176 242e46e
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed May 20 16:17:43 2020 +0000

    Merge "Add the watchdog test service to the AGL build targets" into rvc-dev

commit bd581763f4fa1c297ebea59be70f4daae13d590e
Author: Enrico Granata <egranata@google.com>
Date:   Mon May 18 18:46:10 2020 -0700

    Add a helper script to create an AGL build repo

    AGL server build requires checking out a few Android and open source
    components via repo. Doing this from a local checkout of Android is
    possible, but not trivial.

    Add a script to automate those steps.

    Bug: 155491613
    Test: ./newrepo.sh ~/test_repo
    Change-Id: I602fd2048bc979836c494abb64d6f5c24326bc99

commit 242e46e69d367b5c8da6272bb02fdadb73b1fd16
Author: Enrico Granata <egranata@google.com>
Date:   Mon May 18 18:52:41 2020 -0700

    Add the watchdog test service to the AGL build targets

    Bug: 155491613
    Bug: 154262220
    Test: build.sh
    Change-Id: Idd73f06627f38fe177b6c0be03a608f6aedf0ba2

commit 8942aebe3cf6852a751359ef3495bbd99f891ee0
Merge: b7b7a1b 23f09ef
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Tue May 19 00:08:42 2020 +0000

    Merge "Log when GRPC Value Stream Started" into rvc-dev

commit b7b7a1b30957987887e65c3a41c963543ca56d5f
Merge: 0da050b 2f8b0e0
Author: Enrico Granata <egranata@google.com>
Date:   Mon May 18 21:39:43 2020 +0000

    Merge "systemd watchdog helper class" into rvc-dev

commit 23f09efb7f631051800f34215cb396ac07bf79f6
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon May 18 13:55:03 2020 -0700

    Log when GRPC Value Stream Started

    Bug: 148555181
    Test: build and run on board
    Change-Id: Iccf5f4732c91d778072f63637cc6e27901943181

commit 2f8b0e0ffa25f3b44355b07a7da7dcd1f2933fe7
Author: Enrico Granata <egranata@google.com>
Date:   Thu May 14 14:39:34 2020 -0700

    systemd watchdog helper class

    systemd includes a watchdog facility for services, documented at
    https://www.freedesktop.org/software/systemd/man/sd_notify.html
    and related webpages

    This facility allows a service to communicate to systemd its health
    status, and ask to be killed and respawned either by timeout or by
    actively signaling "this service instance is broken", in a manner
    similar to what the automotive watchdog does on the Android side

    Introduce a simple helper class that can be used to implement the
    systemd watchdog by trout HALs and daemons, and bundle a test tool
    with it.

    Bug: 154262220
    Test: run watchdog_test service and observe it exit
    Change-Id: I86ec20110987107143f6ac6b1c101e2ab35914ae

commit 0da050bceb7291658c5a7d7ef20bee04064a645f
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu May 14 22:22:38 2020 -0700

    Bugfix: default trout_HOST_PROGRAM_PATH

    The cmake rules look for prebuilt protoc and grpc_cpp_plugin if we build
    without Android developing environment, but the default search path is
    wrong.

    Test: build without lunch, but use floral Clang instead
    Bug: 155491613
    Change-Id: I51acce7456ac682313c25c510bf5f0f9eca21823

commit b0bf803739670c1c68b47429062f339514ad404f
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu May 14 15:48:13 2020 -0700

    Share the cmake files of dependencies and utils among AGL services

    Test: build
    Bug: 155491613
    Change-Id: I2f38536ab06b40bbefcfd0b9c8676dfc1ff1fc28

commit 88eb131b702148087ed308ca5ad2d0cef9ba11d9
Author: Enrico Granata <egranata@google.com>
Date:   Thu May 14 13:19:33 2020 -0700

    Allow using floral as well as Android clang

    floral clang does not seem to like the -Wno-c99-designator flag
    but this is needed for android clang. Make it not an error to use
    an invalid -W.. flag, so that both toolchains can be used

    Bug: None
    Test: ./build.sh
    Change-Id: I6856dcafd1f4a393032ba38f85df557acf997194

commit 3396215e6059f1f9c58e787b5dab72bb53f4d86b
Merge: 716101d 37682cd
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Thu May 14 18:40:39 2020 +0000

    Merge "Collecting AGL logs via GRPC" into rvc-dev

commit 716101d203feed14c4dd23fbac3490158dccf722
Merge: 16df032 a199bee
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed May 13 23:27:26 2020 +0000

    Merge "Build scripts for AGL services" into rvc-dev

commit 16df03272335f5f84e36de40dab620687081cc3a
Merge: 928204a 34f70bb
Author: Enrico Granata <egranata@google.com>
Date:   Wed May 13 21:56:42 2020 +0000

    Merge "Register AudioControl HAL with automotive watchdog" into rvc-dev

commit 34f70bb87256a8439c2c25b82a643659e00f9f88
Author: Enrico Granata <egranata@google.com>
Date:   Wed May 13 11:31:33 2020 -0700

    Register AudioControl HAL with automotive watchdog

    For now, this is a dummy implementation that registers the service
    but always returns `true` for health status. We can augment it as
    we create the gRPC server and figure out a heartbeat message or
    equivalent facility on the AGL side, incl. systemd liveness monitoring.

    Bug: 154262220
    Test: flash, boot,
          observe logcat
          trout.audiocontrol@2.0-watchdog: Successfully registered the client to car watchdog server
    Change-Id: I5ed1d261ec25d0bc3c5641f8c07c7e8f66a6dcf4

commit 928204afd3b470e126fd62e3077abb9363f94b85
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Tue May 12 18:30:40 2020 -0700

    SCMI Sensor Name Change for Sensor 2.0 SubHal

    This change modifies the supported sensor names in HAL based on the
    sensors exposed by the SCMI layer

    Bug: 155128197
    Test: Build,test using kitchen sink
    Change-Id: If2bb65f5c29f615d05e813adc5e3d009b88b6155

commit a199beec234489a88bee14291b64214ce56680ae
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon May 4 15:20:59 2020 -0700

    Build scripts for AGL services

    Bug: 155491613
    Test: use repo_manifest.xml to initialize the repo; lunch and set COQOS_HV_PATH; build by ./build.sh
    Change-Id: Iaf51d1cbaffb71b76a43b822f13171517b7436cd

commit 37682cd9da629a8c7e9a8f68f10187f9d53cb403
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Tue Apr 28 11:59:46 2020 -0700

    Collecting AGL logs via GRPC

    Bug: 143787037
    Test: create symlink hal/dumpstate/1.1/third_party/{grpc,protobuf}; build and run on board; adb bugreport

    rename dumpstate_board.bin in the bug report zip package to a tar file,
    it contains the kernel log and several journalctl logs of AGL.

    Change-Id: If10af991fab8059425c71cd524d0562ccb912ddc

commit 992682f3a0f4a08b67d9c4ac8ac45982be020755
Merge: 3f53485 cfdeb35
Author: Enrico Granata <egranata@google.com>
Date:   Mon May 4 23:40:35 2020 +0000

    Merge "Move dumpstate HAL to vintf_fragments" into rvc-dev

commit 3f53485d2b79a4f01c37bc264ccaa7397c32cbd1
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon May 4 13:27:02 2020 -0700

    Allow the setting of dependency source code path

    Test: build
    Bug: 155491613
    Change-Id: Ida07a09c4b901ee6ff3e87e433592dd2914694a7

commit cfdeb35542758683508dd1659742763789432b8b
Author: Enrico Granata <egranata@google.com>
Date:   Tue Apr 28 16:19:24 2020 -0700

    Move dumpstate HAL to vintf_fragments

    Bug: 143787037
    Test: build
    Change-Id: Ib9587c8d6b5efbf345d45a0d02253d38e5096bcb

commit 841a189edff1070dd022c3753a0fd74e95d6ff5e
Merge: 91cd46f 756aeee
Author: Enrico Granata <egranata@google.com>
Date:   Thu Apr 30 16:36:51 2020 +0000

    Merge "Enable audio control HAL via LOCAL_ variable" into rvc-dev

commit 91cd46ff4e7b60ac82b3af6ae7c0c726de0bd41b
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Tue Apr 28 16:50:29 2020 -0700

    Fix the build of VHAL AGL server

    Test: create the symlink under hal/vehicle/2.0/agl_build/third_party and
    build; run on board
    Bug: 148877226
    Bug: 150409377

    Change-Id: I966d73aabdf302c3d7c4b41bdeb12014005872e9

commit 756aeee56c61c77e2e5caf36cd7a3b396e366b37
Author: Enrico Granata <egranata@google.com>
Date:   Tue Apr 28 15:24:54 2020 -0700

    Enable audio control HAL via LOCAL_ variable

    Once ag/11295582 gets merged in, AudioControl HAL can be brought into trout
    by menas of LOCAL_AUDIOCONTROL_HAL_PRODUCT_PACKAGE

    Additionally, stop using the device manifest for it and being using
    vintf_fragments for this

    Bug: 155199117
    Test: build

    Change-Id: I5360e9071c6753782f332c90290dea7e3fd12196

commit dab349584c80a97f99581e6b22949447c6453496
Author: Enrico Granata <egranata@google.com>
Date:   Fri Apr 24 13:10:54 2020 -0700

    Add IVehicle into trout manifest

    I10197045c181696d13acd0cdeacde62acfbd0f01 broke trout by removing
    IVehicle from the Cuttlefish auto manifest, making it impossible for
    the VHAL Android component to register itself as the IVehicle service
    provider for Android GVM.

    Add IVehicle back to the trout manifest, as trout uses its own
    implementation of VHAL separate from the default one, and it wouldn't
    pick up the vintf fragment defined at aosp/1291035 anyway.

    Bug: 154940121
    Test: build and boot

    Change-Id: I95ba4b01b6ed0e28c4b03dcc6d485d521166d0c0

commit c61123df12a749c22b2bb46cb414eeecd23ecd2d
Merge: 9fa4b8f 613a5c3
Author: Enrico Granata <egranata@google.com>
Date:   Wed Apr 22 23:46:17 2020 +0000

    Merge "Revert "Disable std::filesystem from dumpstate HAL in trout"" into rvc-dev

commit 9fa4b8f09fe939f6dba804f9c76733b84130d444
Merge: 955aadf 2438e35
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed Apr 22 16:31:00 2020 +0000

    Merge "AGL-side Power State Listener" into rvc-dev

commit 2438e35d1505ca3e62a1c7b6e478fd125a5f6f45
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Apr 13 17:22:57 2020 -0700

    AGL-side Power State Listener

    Listening to the unix socket, receive the power state message from the
    hypervisor and update the power state marker file accordingly.

    Test: run on AGL, then

    `socat - UNIX-CONNECT:/tmp/power_state_socket`

    to send message to the vhal server

    Bug: 141626390
    Change-Id: I40adee72266fc64daafc2caf22927471740630df

commit 613a5c39c1e2cf102823b4a8e11fc6b016a0fbee
Author: Enrico Granata <egranata@google.com>
Date:   Tue Apr 21 14:23:22 2020 -0700

    Revert "Disable std::filesystem from dumpstate HAL in trout"

    This reverts commit d8b492de171207de825b578364111b5e3ccc7147.

    It should now be possible to use automotive/filesystem for this purpose

    Bug: 152067309
    Test: build

    Change-Id: Ida614e50492239ea5352c46d4cda91e484009d8d

commit 955aadf9ca457f4096195bd45ec404fa495b5ba0
Author: Enrico Granata <egranata@google.com>
Date:   Mon Apr 20 15:10:08 2020 -0700

    Use std::bind instead of a static method to pass this to the sensor run

    Bug: 144696799
    Test: build
    Change-Id: I1235853bbf1ad3a0f6ff9a8503212302344f9ee9

commit 0fde9314d21c1e7af22036ec338a5222d05f8dc9
Merge: 7d1720f c478b91
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Mon Apr 20 21:32:03 2020 +0000

    Merge "Add a python tool to produce a diff of two logcat files" into rvc-dev

commit 7d1720fcba5d876b9d303915754b8e8641523db8
Merge: 537c47f d8b492d
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Fri Apr 17 03:02:00 2020 +0000

    Merge "Disable std::filesystem from dumpstate HAL in trout" into rvc-dev

commit d8b492de171207de825b578364111b5e3ccc7147
Author: Enrico Granata <egranata@google.com>
Date:   Thu Apr 16 16:39:34 2020 -0700

    Disable std::filesystem from dumpstate HAL in trout

    We are trying to get a non-std:: copy of filesystem working, and
    trout depending on it is currently causing the Gerrit presubmit
    to fail

    Workaround this by disabling the std::filesystem dependency out of trout,
    and be ready to enable it back in its new home outside of std::

    Bug: 152067309
    Test: build
    Change-Id: Id3de1a4c0e23b3df3e0e649f8784e1a98efe81e4

commit c478b9159b128ba840ffe07732694879e10c58a9
Author: Enrico Granata <egranata@google.com>
Date:   Fri Apr 10 16:40:26 2020 -0700

    Add a python tool to produce a diff of two logcat files

    This can be used to narrow down differences between two runs of Android
    and help triage issues

    The tool strips most information from logs, reducing it to the component name
    and the message string, it then processes the output of this through
    diff (and colordiff for ease of reading)

    Bug: None
    Test: logcat_diff.py log1 log2
          and observe desired output
    Change-Id: I70ac765e4ed3f52a84fe136c080f5cf543737748

commit 537c47f7d42098c121321bc62c20976a53f9a15a
Author: Enrico Granata <egranata@google.com>
Date:   Wed Apr 15 17:46:42 2020 -0700

    Use std::unique_ptr to automatically close FILE* and DIR* instances

    RAII is a nice C++ trick that can simplify code flow and ensure
    that resources are cleaned up across all code paths

    Bug: 144696799
    Test: build
    Change-Id: Ie7689a4a9a5c027c49ac7a694e1d47052c6eba85

commit d904e0fa7010ccc071b9926c449ac86279ce5581
Merge: c9fb8bd 83be9bb
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed Apr 15 23:49:53 2020 +0000

    Merge "Move Sensor HAL to hal/sensors/2.0" into rvc-dev

commit c9fb8bd318f05aed3682e0b8514ea9effedb3412
Merge: 31d1382 f39a687
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed Apr 15 23:21:53 2020 +0000

    Merge "Better error message when missing options" into rvc-dev

commit 83be9bbbcdd68f069a29a0312c923959f6f582d4
Author: Enrico Granata <egranata@google.com>
Date:   Wed Apr 15 13:04:58 2020 -0700

    Move Sensor HAL to hal/sensors/2.0

    All other trout HALs live in
      hal/
        name/
          version/

    Move this HAL around to the same pattern

    Bug: 144696799
    Test: build
    Change-Id: I87dac7f18d7a837c81e900bfe320c160e16b743a

commit f39a687111a7713ec50ea96b76f347f99bb1bff0
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Apr 13 20:11:22 2020 -0700

    Better error message when missing options

    Test: build and test on 8155
    Bug: 141626390
    Change-Id: I3b1d1ba96834df20aa5e6ecec75286d444746afb

commit 31d13822d3b5d4dbd67ac72059538e1a7c3490f3
Author: Enrico Granata <egranata@google.com>
Date:   Wed Apr 15 12:11:02 2020 -0700

    Stub out AudioControl HAL implementation

    This is a hollow implementation of the AudioControl 2.0 HAL for trout,
    based on the default HAL implementation.

    Bug: 141473213
    Test: lshal shows AudioControl HAL running
    Change-Id: Ie1c0647cdb3d159f0fb0e32830d02a7565de70fc

commit 6b51b4e27e684dff656f23df8b92205e8512bcc3
Merge: e97a3a8 45d54a6
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Wed Apr 15 05:16:10 2020 +0000

    Merge "Add helpers to simplify filesystem iteration in iio_utils" into rvc-dev

commit 45d54a67deb4bbe0fd6b18d2c0643b259b419c0e
Author: Enrico Granata <egranata@google.com>
Date:   Tue Apr 14 16:31:50 2020 -0700

    Add helpers to simplify filesystem iteration in iio_utils

    Bug: 144696799
    Test: build, boot, observe sensor events in KitchenSink

    Change-Id: I2e8db55115bdd6d95542e3b49e304604a6ba5b93

commit e97a3a851eed72e5aedf44bf197a8730b357a596
Author: Enrico Granata <egranata@google.com>
Date:   Fri Apr 10 16:42:06 2020 -0700

    Add virtio1 as a source of touchscreen input

    A recent hypervisor configuration change moved the touchscreen
    from virtio0 to virtio1. Configure the input port associations
    correctly to reflect this reality

    Bug: 153751864
    Test: touch UI, watch it respond
    Change-Id: Ic1479c75953e7454a507ba27f291df31fbf2a237

commit ec23424e6188f8dfc6ee4b7f5be2e3b92f803625
Merge: e1d6909 54d4126
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Fri Apr 10 21:37:07 2020 +0000

    Merge "Sending heartbeat signals from VHAL client to server during garage mode" into rvc-dev

commit 54d412656b49c82e11b30d0c3c5e3c04465ad223
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Apr 9 19:30:20 2020 -0700

    Sending heartbeat signals from VHAL client to server during garage mode

    Test: change the receiver side log level to "INFO", during the garage
    mode, see "received heartbeat from the client" in journalctl
    Bug: 141626390

    Change-Id: I8df775cb31c9f3e68574cf835026201571efdb16

commit e1d690956206f9d1eaedc32620c54de66dabda22
Author: Enrico Granata <egranata@google.com>
Date:   Thu Apr 9 12:53:48 2020 -0700

    Configure Sensor HAL to build with -Wall and friends

    Other HALs for trout already build with these flags by means of
    picking them up from defaults elsewhere in the tree

    Since Sensor HAL is being brought up from scratch, configure it manually

    Bug: 144696799
    Test: build
    Change-Id: I42da6f2fcc9ffb7f9d3ee36daa9629e351eb1f27

commit 0f8702f7f6f44e6e0a5c8d443b2990352cdcc4b8
Merge: 2c44c6a cd20638
Author: Enrico Granata <egranata@google.com>
Date:   Thu Apr 9 19:32:12 2020 +0000

    Merge "Sensors 2.0 SubHAL  Reference implementation" into rvc-dev

commit 2c44c6a62b3289b486b9993b7e5ba71b59e141e0
Merge: 04b70d6 4ee2e4d
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Thu Apr 9 01:39:06 2020 +0000

    Merge "Move virtualization-specific proto definition to /device/google/trout" into rvc-dev

commit 04b70d6aa2ad88fdb8825d6a01884e7eda5375c4
Merge: 7b32e72 fe3651b
Author: Enrico Granata <egranata@google.com>
Date:   Thu Apr 9 00:02:04 2020 +0000

    Merge "Enable computepipe for Trout x86" into rvc-dev

commit cd20638bfe69defce14f791b16a8ee80f64ae746
Author: Jyoti Bhayana <jbhayana@google.com>
Date:   Wed Mar 4 09:37:52 2020 -0800

    Sensors 2.0 SubHAL  Reference implementation

    Adding sensors HAL reference implementation to be used in Auto Embedded
    using IIO driver for the sensors Accel and Gyro

    Bug: 144696799
    Test: Tested manually using KitchenSink. Unit tests need to be added
    Change-Id: I806508947d7f30e4796b68ef656cd54320ce4481

commit 4ee2e4d138b0ba14b597d28088481ade56036b84
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Apr 6 15:57:32 2020 -0700

    Move virtualization-specific proto definition to /device/google/trout

    resubmit with different build rule names to prevent build breakage

    Test: Build
    Bug: 148816426
    Change-Id: Ibc23ea3aa3314ab2d6610a043cf8efc13ced0382

commit 7b32e72882edf9065e6e643a24260591bf0e29b3
Merge: 2d59dcd 802194b
Author: Enrico Granata <egranata@google.com>
Date:   Wed Apr 8 00:57:14 2020 +0000

    Merge "Add prebuilt kernel modules support to trout device." into rvc-dev

commit 2d59dcd096b24d84145fec780d55c3ee95eadc05
Author: Sarah Chin <sarahchin@google.com>
Date:   Tue Apr 7 21:40:56 2020 +0000

    Revert "Move virtualization-specific proto definition to /device/google/trout"

    This reverts commit 1e60f7e1070f76a8304bb064db063c3d59ee669f.
    Bug: 153479300
    Reason for revert: Build breakage

    Change-Id: I716e02df14ee618ff4d52e69d2b0c77044c84be1

commit 1e60f7e1070f76a8304bb064db063c3d59ee669f
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Apr 6 15:57:32 2020 -0700

    Move virtualization-specific proto definition to /device/google/trout

    Test: Build
    Bug: 148816426
    Change-Id: I8874c8c157c9b142274e5096ce00eceeb1d3b895

commit fe3651b2939ddb07b80971fa77b58fc720498089
Author: Hanumant Singh <hanumantsingh@google.com>
Date:   Sat Mar 21 22:08:34 2020 -0700

    Enable computepipe for Trout x86

    Build computepipe for Trout
    Add the computepipe interface to device manifest.

    Bug: 152134211
    Test: lunch trout_arm64, m -j
          lunch trout_x86, m -j
    Change-Id: Ied9208a1f599bdb513787806f08f16c4ccdb5ead

commit 802194b5e72754f0413e4da8a0b2ad173f27efb8
Author: Pavlo Kandrin <pavlo.kandrin@opensynergy.com>
Date:   Wed Apr 1 10:22:22 2020 +0200

    Add prebuilt kernel modules support to trout device.

    For time being only one additional module included: virtio-snd.ko

    bug: 152637822
    Test: Local build and boot. `lsmod` shows that module is included.
    Change-Id: Ia36129fc2484b48c5c1972273fcc51482a93290f

commit 933c031bd4efb65731ecdabf9a65eb3fce789776
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Mar 30 15:49:46 2020 -0700

    VHAL server sends the garage mode controlling signals to the client

    The server listens on the power state marker file (which will be created
    by another process), and send power state request values to the client

    Bug: 141626390
    Test: change to value of "/tmp/power_state_marker" to "shutdown" or
    "on", will see entering and exiting garage mode on AAOS

    Change-Id: Ie4cb7217d220291261e8a72a3425a5a1e5a846db

commit 22ba4d47bc70f4f60ccc5a2900a870d0773a0f3b
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Tue Mar 24 10:46:20 2020 -0700

    A thread for sending heartbeat signals to server in garage mode

    Bug: 141626390
    Test: add /path/to/floral/tools/android-adb/usr/bin to $PATH; verify it
    by `which adb`, then:

    ```
    $ cd packages/services/Car/tools/emulator/
    $ python
    > import vhal_consts_2_0 as c
    > from vhal_emulator import Vhal
    > v = Vhal(c.vhal_types_2_0, device="<aaos vm serial>")
    > v.setProperty(0x11410A00, 0, [1,2])
    ```

    We will see "start sending garage mode heartbeats" and "hb" (to simulate
    the heartbeat signal for now). After exiting the garage mode, we will
    see "stop sending garage mode hearbeats" and "hb" will stop appearing

    Change-Id: I1aa6b61d5755a36e286c6f0a8bda6ed5420c83d3

commit 3cc842761e1f38ecc31e375412ffd197aca84e03
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Wed Mar 25 22:01:33 2020 -0700

    VHAL Client GarageMode Handler

    It will sends the heartbeat signals to the server during garage mode

    Bug: 141626390
    Test: build; see following CLs
    Change-Id: I573c054cd49f89ad890d1f557025b6c3f171f714

commit dd5a4b689530f539869aa5a1287b59cd4bd6764a
Merge: 509136b 4ae23b3
Author: Enrico Granata <egranata@google.com>
Date:   Thu Apr 2 17:46:59 2020 +0000

    Merge "Disable header guard cpp lint support" into rvc-dev

commit 509136b022bc1702b93e54d007dff563cbeb9d9c
Merge: 9258ebf 5f65c33
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Tue Mar 31 18:20:15 2020 +0000

    Merge "Implement Dumpstate Board HAL for Trout" into rvc-dev

commit 4ae23b3a0f43077868846a1881df16c17921cfc3
Author: Enrico Granata <egranata@google.com>
Date:   Thu Mar 26 16:42:48 2020 -0700

    Disable header guard cpp lint support

    Android code uses #pragma once, which is not supported by the linter

    Disable this particular check while keeping the rest of the linter

    Bug: 152344529
    Test: commit code with #pragma once
    Change-Id: I9f2bdfb23a685451c296b14bdc783c9fe866a35e

commit 9258ebfa4616335c7b02e74540ad45a756580c52
Author: Enrico Granata <egranata@google.com>
Date:   Fri Mar 27 13:56:56 2020 -0700

    Disable Vulkan for trout

    trout is not planning to ship Android R with Vulkan enabled
    and leaving the feature flag turned on breaks CTS support and
    can be misleading to applications

    Using the support added in ag/10873357, turn the feature off

    Bug: 151627100
    Test: build, flash, see flag turned off
          run CTS tests and observe them not failing
    Change-Id: I3bbbfaa0794b1740ca29216ee2c52f69d2b676e0

commit 5f65c33c7a2a2a9168500f32ff19055b12f0b89d
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Mar 23 13:51:54 2020 -0700

    Implement Dumpstate Board HAL for Trout

    This HAL is for dumping the logs from PVM. It will dump the PVM logs into a
    tar file and name it to "dumpstate_board.bin" under the bugreport zip
    file.

    Bug: 143787037
    Test: build; create the directory /data/bugreport_test manually, and put
    some files under it; `adb bugreport <zip_filename>` to generate the
    report; rename the `dumpstate_board.bin` file to a tar file, the contents of the test
    directory are packed here.

    Change-Id: I82eab771c735c856291a5a3715aabf5b5085ab27

commit 500b6ee7cba757d701a5040c9372d50af734956c
Merge: 89cf8f4 8c9506e
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Thu Mar 26 20:01:19 2020 +0000

    Merge "Revert "Implement Dumpstate Board HAL for Trout"" into rvc-dev

commit 8c9506e26c74d924bde035cf90703dd4cad7de90
Author: Kelly Rossmoyer <krossmo@google.com>
Date:   Thu Mar 26 19:58:54 2020 +0000

    Revert "Implement Dumpstate Board HAL for Trout"

    This reverts commit 7a4c7ca36121f2bf838f352c7cfa6ff09145745e.

    Reason for revert: Breaks rvc-dev build (b/152537657)

    Change-Id: I6cf8ce5b6dad1430342b10ba2040ec68aca72951

commit 89cf8f4302c9fcd25f04f3fd7483e75bb8aa4620
Merge: bdd2164 7a4c7ca
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Mar 26 18:34:39 2020 +0000

    Merge "Implement Dumpstate Board HAL for Trout" into rvc-dev

commit bdd2164f6c5904b05d431359e0b9b0d62195a2df
Author: Enrico Granata <egranata@google.com>
Date:   Tue Mar 24 15:05:29 2020 -0700

    Enable automatic C++ styling for trout

    Bug: 152344529
    Test: create a test CL with badly formatted code
          Observe the server complaining about the code style at repo upload time
          Install tools/install_format_hook.sh
          Attempt to git commit --amend
          Observe the code automatically reformatted
    Change-Id: Ia5f6080b21281f52d01006303ec32311c8b953ae

commit 7a4c7ca36121f2bf838f352c7cfa6ff09145745e
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Mar 23 13:51:54 2020 -0700

    Implement Dumpstate Board HAL for Trout

    This HAL is for dumping the logs from PVM. It will dump the PVM logs into a
    tar file and name it to "dumpstate_board.bin" under the bugreport zip
    file.

    Bug: 143787037
    Test: test with ag/10812717; build; create the directory /data/bugreport_test manually, and put
    some files under it; `adb bugreport <zip_filename>` to generate the
    report; rename the `dumpstate_board.bin` file to a tar file, the contents of the test
    directory are packed here.

    Change-Id: I8136ec1214cc378985f24cc3473829ad990822c9

commit e7ce498a1872082cffd8bf8a2f8fc327b0b160aa
Merge: c6cd7e6 03557a2
Author: TreeHugger Robot <treehugger-gerrit@google.com>
Date:   Tue Mar 24 02:57:52 2020 +0000

    Merge "Add clang format file to this project" into rvc-dev

commit 03557a2a68c20dbe37928c63ec428c37bce4d316
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Mar 23 14:25:40 2020 -0700

    Add clang format file to this project

    Test: run clang-format
    Bug: none

    Change-Id: I514e300dacc7c6cf8b31e8cef906eee2e6234ab6

commit c6cd7e6c8916cdac09d465abf89c148a592aa000
Author: Enrico Granata <egranata@google.com>
Date:   Fri Mar 20 14:00:52 2020 -0700

    Add aosp_trout_x86 target

    This is currently targeting crosvm and can be used for
    local testing and feature development

    It is not a deliverable for the virtualization team and
    lacks several key features specific to automotive

    Bug: 152076925
    Test: build, then run
          acloud create --local-image --local-instance --hw-property resolution:1920x1024,dpi:160
          If this is the first time one runs this command, follow the steps and then reboot
          the machine and run the acloud command again
          Android Automotive should come up in a VNC window after a while

    Change-Id: I3ceffc50d05a1a5a70b97e32fa60b2b9fddcd9c3

commit 990feb12add3e3103374f5d4964f2e97ee8e3e9e
Author: Enrico Granata <egranata@google.com>
Date:   Wed Mar 18 15:15:31 2020 -0700

    trout is an automotive device, mark it so

    Bug: 151861858
    Test: flash and boot
    Change-Id: I985dc526ea1bf4da703b7930f62f2fa15713c147

commit 387d8c8fa21cdefe3b90738ba28e43d66e0bc83e
Author: Enrico Granata <egranata@google.com>
Date:   Fri Mar 13 17:01:09 2020 -0700

    Organize PRODUCT_COPY_FILES a bit better

    This moves all files that need to be copied to the
    target device in one location, and organizes them in
    paths matching the paths on the destination

    Bug: None
    Test: build
    Change-Id: I2371e16fcbbbd560ddbc5c9b993a14ad4dab2c7f

commit 5c1724fb9c1114fe7800a39c53331766b31b378a
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Mar 12 22:42:36 2020 -0700

    Label the VHAL client properly

    Test: build and run it on coqos/agl
    Change-Id: I6aa46ede86a07d819f4612c77a2eac49c58468c1

commit 013416d0c3926e6e52a045233d46f721e51a8a3f
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Mon Mar 9 16:40:39 2020 -0700

    Toolchain file for building AGL programs

    Test:

    ```
    $ export TROUT_TOOLCHAIN_PATH=/path/to/floral/tools/toolchains
    $ cd /path_to_android_root/device/google/trout/hal/vehicle/2.0/agl_build/build && cd $_
    $ cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=/path_to_android_root/device/google/trout/toolchain/agl_toolchain.cmake ..
    $ ninja vehicle_hal_grpc_server
    ```

    Bug: 148877226
    Change-Id: I04a1327c4bd2fc27a49ed46491b2f555ca36fa69

commit f5ed4bff3734f64dea0e07778639b91fc40b9027
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Mar 5 15:08:15 2020 -0800

    Prebuilt types.h

    It defines the data types that may used by VHAL server. It is generated
    from /hardware/interfaces/automotive/vehicle/2.0/types.hal, the
    generated file is at `out/soong/.intermediates/hardware/interfaces/automotive/vehicle/2.0/android.hardware.automotive.vehicle@2.0_genc++_headers/gen/android/hardware/automotive/vehicle/2.0/types.h`.

    The following changes are made on the original generated file:

     - remove hidl headers
     - add <vector> <string> and <sstream>
     - add `using`s to define `hidl_` data types
     - copy `XXToString` implementations from system/libhidl/base/include/hidl/HidlSupport.h
     - remove `static_asserts`. Since `hidl_` types are only aliases, the offset asserts are no longer true.
     - remove `hidl_enum_values` specializations

    Test: build

    Bug: 148877226
    Change-Id: I1df2e2cef06afc48aca403b010e59de22ddaa121

commit 51571170ad176adfc91cb81874c06e238ee531cf
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Mar 5 15:03:21 2020 -0800

    Move the generated pb c++ files out of vhal server target

    GRPC generated code may need more compiler flags to mute the warnings,
    but this should not affect other code

    Test: build

    Bug: 148877226
    Change-Id: I83d489bd30b32693bf057701b79bf5c1b035f661

commit b9704b86e9d66a6fcff0429952bc3c4b0b1ef426
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Thu Mar 5 15:00:04 2020 -0800

    Bugfix: Android dependency path

    Bug: 148877226

    Test: build
    Change-Id: Id9e7814d05d9871026b32ea8e7a21239c8e588ea

commit 09cbcd6b7b259a7e5572928fbfd5acfb90d3a139
Author: Enrico Granata <egranata@google.com>
Date:   Tue Mar 3 11:05:13 2020 -0800

    Integrate input routing for virtio-input

    Currently input virtio-input is routed to the most recent display. In
    cases when Android is used with more than 1 display, touch will not work
    correctly on the most recent display. Associate virtio0/input0 with
    display 0 to prevent this issue.

    Bug: 148394016
    Test: boot
    Change-Id: I0f2c595352dc7a3de6b4f5d85babc63c4f5e8f7f

commit 2a43cd4a42e2929e8ab82d22a6dc5a00aa769b1d
Author: Enrico Granata <egranata@google.com>
Date:   Fri Feb 14 10:37:57 2020 -0800

    Store sensor ueventd rules in ODM partition on trout

    Sensor access requires us to set several permissions on sysfs and devfs
    entry points, in order for Sensor HAL to be able to use the IIO entry
    points it needs

    Do this by providing a trout-specific ueventd.rc file in the ODM partition

    Bug: 142190844
    Test: build and boot
          ueventd.rc file is present

    Change-Id: I0e5ee1480e73c32289183ba9638a14d2594a5ad6

commit 40efd71c45e5b2751d7cedc764048260bc0b9615
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri Feb 21 14:16:11 2020 -0800

    Systemd service file for the vhal server

    Bug: 148877226

    Test: tested on AGL
    Change-Id: Ia994e8437ec5d4153cc14d3424ea7b5afcf354a1

commit b1a261609d8ef92a7e8e526cac6c349e90d2fa7e
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri Feb 14 16:03:35 2020 -0800

    Cmake rules for building VHAL server code for AGL

    Bug: 148877226

    Test: create 'prebuilt/' 'third_party/', put dependencies into them, build by the crosscompiler provided by OpSy

    Change-Id: I1b48283ce8ef542e253928a438d51bda6a8fd3e8

commit e6e7e20a5da9ad8a18bc5b2f7748a273c96faf04
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri Feb 14 16:07:17 2020 -0800

    Fix the build for VHAL client and server

    Bug: 148877226

    Test: build both client and server
    Change-Id: If67040665ec195f1b71e66f21d85bdec03c5af2b

commit 3b9757bd77d963de17b059a2bc878063a5b375ec
Author: Hao Chen <chenhaosjtuacm@google.com>
Date:   Fri Feb 14 16:06:01 2020 -0800

    Change the CID of the VHAL server in the config file

    Bug: 148877226

    Test: by reading cid from AGL
    Change-Id: I04129ffb5cd62c5ba1b436017d7b146598cc5615

commit 2fbe1183c994f3d40e2b6248dffcaaf308f250c8
Author: Enrico Granata <egranata@google.com>
Date:   Mon Feb 10 17:43:58 2020 -0800

    Move the virtualized vehicle hal code into the trout tree

    AAOS virtualization work is happening under the trout tree, and
    we should be building reference HAL implementations for the
    virtualized deployment under that tree

    Bug: 148816426
    Test: build
    Change-Id: Ie5cf5ef91b7b45424ceb00b071472556c8d1462e

commit 54daba3deee1334bdebfa8b61c75f0c8e8d6524f
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jan 31 14:32:21 2020 -0800

    Select initial OWNERS for the automotive trout project

    Bug: 148393911
    Test: visual inspection of file
    Change-Id: I18d8086ad22431a859b3627b23a3565031229aea

commit 5c2b8dab584e0024c972b9c74334622754f8ba83
Author: Enrico Granata <egranata@google.com>
Date:   Fri Jan 31 14:29:34 2020 -0800

    Add a lunch target for the AAOS virtualization project

    This target is derived from cuttlefish arm64 auto, but includes
    different/additional HAL implementations, drivers, and configuration
    parameters as the AAOS virtualization team works towards enabling
    new virtio devices and related virtualization technologies.

    Bug: 148393911
    Test: build and boot
    Change-Id: I50512b01f8e1efd256c07d3ee88f11d86f73d945

Change-Id: I4d38d3b44f76b99a0978acc44331dc918c4196f6
129 files changed