drm_hwcomposer: Merge remote-tracking branch 'aosp/upstream-main' into HEAD

This pulls in upstream-main branch for drm_hwcomposer.

Particularly important in this update are fixes that resolve
regressions seen on HiKey and HiKey960 that I merged before the
holiday break, causing some minor havoc.

Tons of credit to Roman Stratiienko for quickly resolving the
issues I missed. Also credit to Yongqin Liu for catching and
reporting these issues.

* aosp/upstream-main:
  drm_hwcomposer: Use DPMS property to configure display pipeline
  drm_hwcomposer: Move HwcDisplayConfigs out of HwcDisplay class
  drm_hwcomposer: Move DrmHwcTwo.{cpp|h} to hwc2_device/ directory
  drm_hwcomposer: Move HwcDisplay out of DrmHwcTwo class
  drm_hwcomposer: Move HwcLayer out of DrmHwcTwo class
  drm_hwcomposer: Move hw_module related code out of DrmHwcTwo.* files
  drm_hwcomposer: CI: Remove -readability-use-anyofallof from COARSE list
  drm_hwcomposer: CI: Remove duplicate tidy checks
  drm_hwcomposer: CI: Move tidy FINE checklist to Makefile
  drm_hwcomposer: Raise clang-tidy level of some files to NORMAL
  drm_hwcomposer: Fix float to 16.16 fixed point conversion
  drm_hwcomposer: CI: Find all source files instead of hardcoding them.
  drm_hwcomposer: Make Planner class fully static
  drm_hwcomposer: CI: Set clang-tidy level to NORMAL for some files
  drm_hwcomposer: CI: Raise clang-tidy level from NONE to COARSE for *.h
  drm_hwcomposer: CI: Process every file with clang-tidy.
  drm_hwcomposer: CI: Fix Makefile dependencies
  drm_hwcomposer: Update readability-identifier-naming rules
  drm_hwcomposer: Free resources in HookDevClose()
  drm_hwcomposer: Send crtc.active and crtc.mode together with the frame
  drm_hwcomposer: Remove supported()/unsupported() functions
  drm_hwcomposer: Modify source_layers_ to be integer instead of array
  drm_hwcomposer: Cleanup Planner class
  drm_hwcomposer: Handle unused planes by DrmDisplayCompositor
  drm_hwcomposer: Rework KMS state tracking
  drm_hwcomposer: CI: Replace shell scripts with Makefile
  drm_hwcomposer: CI: Tune clang-tidy coarse checks
  drm_hwcomposer: Tidy-up the CI scripts
  drm_hwcomposer: support more connector types

Validated on db845c, hikey960 and hikey

Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: If4a17a763c758c8b05e6057cb0a81146603ab31a
diff --git a/Android.bp b/Android.bp
index 8e99056..a856594 100644
--- a/Android.bp
+++ b/Android.bp
@@ -15,6 +15,23 @@
 // =====================
 // libdrmhwc_utils.a
 // =====================
+package {
+    default_applicable_licenses: ["external_drm_hwcomposer_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "external_drm_hwcomposer_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Apache-2.0",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
 cc_library_static {
     name: "libdrmhwc_utils",
 
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..d97975c
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,3 @@
+third_party {
+  license_type: NOTICE
+}
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..75e29ae
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,5 @@
+adelva@google.com
+john.stultz@linaro.org
+marcheu@google.com
+seanpaul@google.com
+zachr@google.com
diff --git a/tests/Android.bp b/tests/Android.bp
index 56f8c4f..20b87a8 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -19,6 +19,15 @@
     ],
 }
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_drm_hwcomposer_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["external_drm_hwcomposer_license"],
+}
+
 cc_test {
     name: "hwc-drm-tests",