Fix testComplexColorDrawableAttributeInflation

ResourcesTest#testComplexColorDrawableAttributeInflation failed on
automotive platforms due to textColorSecondary being overlaid with a
non-complex color attribute.

Bug: 153375481
Test: atest ColorStateListDrawableTest android.content.res.cts.ResourcesTest
(on gcar_emu_x86 and sdk_gphone_x86)
Change-Id: Ib14fc23fca3b89a51a49d21012bf5b73c2fbaccd
(cherry picked from commit ed87b23ad87780d2960bd4908cdabe1143345fb9)
diff --git a/tests/tests/content/res/color/testcolor_complex.xml b/tests/tests/content/res/color/testcolor_complex.xml
new file mode 100644
index 0000000..2d50e1b
--- /dev/null
+++ b/tests/tests/content/res/color/testcolor_complex.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Copyright (C) 2020 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.
+  -->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="false"
+          android:alpha="?android:attr/disabledAlpha"
+          android:color="?android:attr/colorForeground"/>
+    <item android:alpha="?android:attr/secondaryContentAlpha"
+          android:color="?android:attr/colorForeground"/>
+</selector>
\ No newline at end of file
diff --git a/tests/tests/content/res/layout/complex_color_drawable_attr_layout.xml b/tests/tests/content/res/layout/complex_color_drawable_attr_layout.xml
index 4d2042a..2ffed3e 100644
--- a/tests/tests/content/res/layout/complex_color_drawable_attr_layout.xml
+++ b/tests/tests/content/res/layout/complex_color_drawable_attr_layout.xml
@@ -19,6 +19,6 @@
               android:orientation="vertical"
               android:layout_width="match_parent"
               android:layout_height="wrap_content"
-              android:background="?android:attr/textColorSecondary">
+              android:background="@color/testcolor_complex">
 
 </LinearLayout>