Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b89c0446 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Added a VTS test to validate the schema of uuid config xml" am: f2d6b0a3

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1949237

Change-Id: I45132a43ba7f71d7acba771a3588584c0d22d780
parents 3ebe8bd2 f2d6b0a3
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
//
// Copyright (C) 2022 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.
//

package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

xsd_config {
    name: "omapi_uuid_map_config",
    srcs: ["omapi_uuid_map_config.xsd"],
    api_dir: "schema",
    package_name: "omapi.uuid.map.config",
}
+40 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2022 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.
-->
<xs:schema version="2.0"
           attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ref_do">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="uuid_ref_do" maxOccurs="unbounded" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="uids">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:short" name="uid" maxOccurs="unbounded" minOccurs="0"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element type="xs:string" name="uuid"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
+30 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package omapi.uuid.map.config {

  public class RefDo {
    ctor public RefDo();
    method public java.util.List<omapi.uuid.map.config.RefDo.UuidRefDo> getUuid_ref_do();
  }

  public static class RefDo.UuidRefDo {
    ctor public RefDo.UuidRefDo();
    method public omapi.uuid.map.config.RefDo.UuidRefDo.Uids getUids();
    method public String getUuid();
    method public void setUids(omapi.uuid.map.config.RefDo.UuidRefDo.Uids);
    method public void setUuid(String);
  }

  public static class RefDo.UuidRefDo.Uids {
    ctor public RefDo.UuidRefDo.Uids();
    method public java.util.List<java.lang.Short> getUid();
  }

  public class XmlParser {
    ctor public XmlParser();
    method public static omapi.uuid.map.config.RefDo 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;
  }

}
+0 −0

Empty file added.

+0 −0

Empty file added.

Loading