hwc: add additional FLAGS from soong build when coverage enabled

Sometimes we still could not generate the coverage profraw files for
some devices. By adding these additional flags, it could make the
profraw files generation to be successful more often. These flags are
copied from build/soong/cc/coverage.go which looks like for handling
the android native code coverage on Android.bp modules.

This will also make the default mode to regular mode. Continuous mode
will only be enabled if CLANG_COVERAGE_CONTINUOUS_MODE=true is defined.

If regular mode is used, we need to use `kill -37` to flush the coverage
data to the profraw files. The signal handler to write the coverage data
to disk is installed from static library libprofile-clang-extras_ndk.

Bug: 295827160
Test: build with coverage enabled
Change-Id: I543fac1c6d617ce8c2cdf78e3e35c83a4360e7cc
3 files changed