overlays: Adjust black accent for light/dark themes

* Black accent on black theme causes UX issues, adjusting
  the black overlay so it is black on light themes, but
  white on dark themes fixes this.
* Also override AOSP black accent as there's no need to
  ship both of them at the same time.

Change-Id: Iab444a004bad6a8b1f72f430be07362285e8f2e1
diff --git a/accents/black/Android.mk b/accents/black/Android.mk
index d1c584b..e00c492 100644
--- a/accents/black/Android.mk
+++ b/accents/black/Android.mk
@@ -6,6 +6,7 @@
 LOCAL_CERTIFICATE := platform
 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
 LOCAL_PACKAGE_NAME := LineageBlackAccent
+LOCAL_OVERRIDES_PACKAGES := AccentColorBlackOverlay
 
 LOCAL_PRIVATE_PLATFORM_APIS := true
 
diff --git a/accents/black/res/values-night/colors_device_defaults.xml b/accents/black/res/values-night/colors_device_defaults.xml
new file mode 100644
index 0000000..6df02e1
--- /dev/null
+++ b/accents/black/res/values-night/colors_device_defaults.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/**
+ * Copyright (c) 2019, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+    <color name="accent_device_default_light">#D7DEE6</color>
+    <color name="accent_device_default_dark">#D7DEE6</color>
+</resources>
diff --git a/accents/black/res/values-night/strings.xml b/accents/black/res/values-night/strings.xml
new file mode 100644
index 0000000..ec59118
--- /dev/null
+++ b/accents/black/res/values-night/strings.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2018, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- Black accent color name application label. [CHAR LIMIT=50] -->
+    <string name="accent_color_black_overlay" translatable="false">White</string>
+</resources>
+