From aa5bf3a32643328a361c82b60a8c295982051b7d Mon Sep 17 00:00:00 2001 From: Michal Olech Date: Wed, 24 Feb 2021 16:17:08 +0100 Subject: [PATCH] [CEC Configuration] Remove cec-config XSD and the main cec_config.xml Bug: 180316277 Bug: 166430550 Test: build; flash; run Change-Id: I898324ee8c8339c95f72b7839bc68296830606e1 --- Android.bp | 3 +- services/core/Android.bp | 7 - .../com/android/server/hdmi/cec_config.xml | 133 ------------------ services/core/xsd/Android.bp | 7 - services/core/xsd/cec-config/cec-config.xsd | 29 ---- .../core/xsd/cec-config/schema/current.txt | 44 ------ .../xsd/cec-config/schema/last_current.txt | 0 .../xsd/cec-config/schema/last_removed.txt | 0 .../core/xsd/cec-config/schema/removed.txt | 1 - 9 files changed, 1 insertion(+), 223 deletions(-) delete mode 100644 services/core/java/com/android/server/hdmi/cec_config.xml delete mode 100644 services/core/xsd/cec-config/cec-config.xsd delete mode 100644 services/core/xsd/cec-config/schema/current.txt delete mode 100644 services/core/xsd/cec-config/schema/last_current.txt delete mode 100644 services/core/xsd/cec-config/schema/last_removed.txt delete mode 100644 services/core/xsd/cec-config/schema/removed.txt diff --git a/Android.bp b/Android.bp index c5980b911b179..2215609e50ff8 100644 --- a/Android.bp +++ b/Android.bp @@ -665,9 +665,8 @@ java_defaults { ], required: [ "framework-platform-compat-config", - // TODO: remove gps_debug, cec_config.xml and protolog.conf.json when the build system propagates "required" properly. + // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly. "gps_debug.conf", - "cec_config.xml", "icu4j-platform-compat-config", "libcore-platform-compat-config", "protolog.conf.json.gz", diff --git a/services/core/Android.bp b/services/core/Android.bp index 8ccfad6fe0618..67e3a67df9c62 100644 --- a/services/core/Android.bp +++ b/services/core/Android.bp @@ -98,7 +98,6 @@ java_library_static { ":platform-compat-overrides", ":display-device-config", ":display-layout-config", - ":cec-config", ":device-state-config", "java/com/android/server/EventLogTags.logtags", "java/com/android/server/am/EventLogTags.logtags", @@ -119,7 +118,6 @@ java_library_static { ], required: [ - "cec_config.xml", "gps_debug.conf", "protolog.conf.json.gz", ], @@ -184,11 +182,6 @@ java_library_host { srcs: ["java/com/android/server/notification/SmallHash.java"] } -prebuilt_etc { - name: "cec_config.xml", - src: "java/com/android/server/hdmi/cec_config.xml", -} - prebuilt_etc { name: "gps_debug.conf", src: "java/com/android/server/location/gnss/gps_debug.conf", diff --git a/services/core/java/com/android/server/hdmi/cec_config.xml b/services/core/java/com/android/server/hdmi/cec_config.xml deleted file mode 100644 index 191e725181ca1..0000000000000 --- a/services/core/java/com/android/server/hdmi/cec_config.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/services/core/xsd/Android.bp b/services/core/xsd/Android.bp index 6a8f6d4197860..d43cf3f59170d 100644 --- a/services/core/xsd/Android.bp +++ b/services/core/xsd/Android.bp @@ -44,13 +44,6 @@ xsd_config { package_name: "com.android.server.display.config.layout", } -xsd_config { - name: "cec-config", - srcs: ["cec-config/cec-config.xsd"], - api_dir: "cec-config/schema", - package_name: "com.android.server.hdmi.cec.config", -} - xsd_config { name: "device-state-config", srcs: ["device-state-config/device-state-config.xsd"], diff --git a/services/core/xsd/cec-config/cec-config.xsd b/services/core/xsd/cec-config/cec-config.xsd deleted file mode 100644 index b59c93cce332f..0000000000000 --- a/services/core/xsd/cec-config/cec-config.xsd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/services/core/xsd/cec-config/schema/current.txt b/services/core/xsd/cec-config/schema/current.txt deleted file mode 100644 index 75872d4fb8a7e..0000000000000 --- a/services/core/xsd/cec-config/schema/current.txt +++ /dev/null @@ -1,44 +0,0 @@ -// Signature format: 2.0 -package com.android.server.hdmi.cec.config { - - public class CecSettings { - ctor public CecSettings(); - method public java.util.List getSetting(); - } - - public class Setting { - ctor public Setting(); - method public com.android.server.hdmi.cec.config.ValueList getAllowedValues(); - method public com.android.server.hdmi.cec.config.Value getDefaultValue(); - method public String getName(); - method public boolean getUserConfigurable(); - method public String getValueType(); - method public void setAllowedValues(com.android.server.hdmi.cec.config.ValueList); - method public void setDefaultValue(com.android.server.hdmi.cec.config.Value); - method public void setName(String); - method public void setUserConfigurable(boolean); - method public void setValueType(String); - } - - public class Value { - ctor public Value(); - method public String getIntValue(); - method public String getStringValue(); - method public void setIntValue(String); - method public void setStringValue(String); - } - - public class ValueList { - ctor public ValueList(); - method public java.util.List getValue(); - } - - public class XmlParser { - ctor public XmlParser(); - method public static com.android.server.hdmi.cec.config.CecSettings read(java.io.InputStream) throws javax.xml.datatype.DatatypeConfigurationException, java.io.IOException, org.xmlpull.v1.XmlPullParserException; - method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; - method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; - } - -} - diff --git a/services/core/xsd/cec-config/schema/last_current.txt b/services/core/xsd/cec-config/schema/last_current.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/services/core/xsd/cec-config/schema/last_removed.txt b/services/core/xsd/cec-config/schema/last_removed.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/services/core/xsd/cec-config/schema/removed.txt b/services/core/xsd/cec-config/schema/removed.txt deleted file mode 100644 index d802177e249b3..0000000000000 --- a/services/core/xsd/cec-config/schema/removed.txt +++ /dev/null @@ -1 +0,0 @@ -// Signature format: 2.0