From e8f894d02e84058a0bf5c060c85d35438958d8a0 Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Thu, 3 Jan 2019 11:52:04 +0900 Subject: [PATCH] Add permission and permission.xsd This module is for API check of java file generated from permission.xsd Bug: 80453829 Test: m -j Change-Id: Ie70693400a6c9b261c8b1ca6197206ac3d17a271 --- core/xsd/Android.bp | 6 + core/xsd/permission.xsd | 166 +++++++++++++++++++++ core/xsd/schema/README.md | 1 + core/xsd/schema/current.txt | 242 +++++++++++++++++++++++++++++++ core/xsd/schema/last_current.txt | 0 core/xsd/schema/last_removed.txt | 0 core/xsd/schema/removed.txt | 1 + 7 files changed, 416 insertions(+) create mode 100644 core/xsd/Android.bp create mode 100644 core/xsd/permission.xsd create mode 100644 core/xsd/schema/README.md create mode 100644 core/xsd/schema/current.txt create mode 100644 core/xsd/schema/last_current.txt create mode 100644 core/xsd/schema/last_removed.txt create mode 100644 core/xsd/schema/removed.txt diff --git a/core/xsd/Android.bp b/core/xsd/Android.bp new file mode 100644 index 0000000000000..81669eb290db7 --- /dev/null +++ b/core/xsd/Android.bp @@ -0,0 +1,6 @@ +xsd_config { + name: "permission", + srcs: ["permission.xsd"], + api_dir: "schema", + package_name: "com.android.xml.permission", +} diff --git a/core/xsd/permission.xsd b/core/xsd/permission.xsd new file mode 100644 index 0000000000000..d90863b2c7160 --- /dev/null +++ b/core/xsd/permission.xsd @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/xsd/schema/README.md b/core/xsd/schema/README.md new file mode 100644 index 0000000000000..f52d93d2b65ae --- /dev/null +++ b/core/xsd/schema/README.md @@ -0,0 +1 @@ +Please see the [README](https://android.googlesource.com/platform/system/tools/xsdc/+/refs/heads/master/README.md) for details regarding the Configfile as API. diff --git a/core/xsd/schema/current.txt b/core/xsd/schema/current.txt new file mode 100644 index 0000000000000..82bb0feac0895 --- /dev/null +++ b/core/xsd/schema/current.txt @@ -0,0 +1,242 @@ +// Signature format: 2.0 +package com.android.xml.permission { + + public class AllowAssociation { + ctor public AllowAssociation(); + method public String getAllowed(); + method public String getTarget(); + method public void setAllowed(String); + method public void setTarget(String); + } + + public class AllowIgnoreLocationSettings { + ctor public AllowIgnoreLocationSettings(); + method public String get_package(); + method public void set_package(String); + } + + public class AllowImplicitBroadcast { + ctor public AllowImplicitBroadcast(); + method public String getAction(); + method public void setAction(String); + } + + public class AllowInDataUsageSave { + ctor public AllowInDataUsageSave(); + method public String get_package(); + method public void set_package(String); + } + + public class AllowInPowerSave { + ctor public AllowInPowerSave(); + method public String get_package(); + method public void set_package(String); + } + + public class AllowInPowerSaveExceptIdle { + ctor public AllowInPowerSaveExceptIdle(); + method public String get_package(); + method public void set_package(String); + } + + public class AllowUnthrottledLocation { + ctor public AllowUnthrottledLocation(); + method public String get_package(); + method public void set_package(String); + } + + public class AppLink { + ctor public AppLink(); + method public String get_package(); + method public void set_package(String); + } + + public class AssignPermission { + ctor public AssignPermission(); + method public String getName(); + method public int getUid(); + method public void setName(String); + method public void setUid(int); + } + + public class BackupTransportWhitelistedService { + ctor public BackupTransportWhitelistedService(); + method public String getService(); + method public void setService(String); + } + + public class BugreportWhitelisted { + ctor public BugreportWhitelisted(); + method public String get_package(); + method public void set_package(String); + } + + public class DefaultEnabledVrApp { + ctor public DefaultEnabledVrApp(); + method public String get_class(); + method public String get_package(); + method public void set_class(String); + method public void set_package(String); + } + + public class DisabledUntilUsedPreinstalledCarrierApp { + ctor public DisabledUntilUsedPreinstalledCarrierApp(); + method public String get_package(); + method public void set_package(String); + } + + public class DisabledUntilUsedPreinstalledCarrierAssociatedApp { + ctor public DisabledUntilUsedPreinstalledCarrierAssociatedApp(); + method public String getCarrierAppPackage(); + method public String get_package(); + method public void setCarrierAppPackage(String); + method public void set_package(String); + } + + public class Feature { + ctor public Feature(); + method public String getName(); + method public String getNotLowRam(); + method public void setName(String); + method public void setNotLowRam(String); + } + + public class Group { + ctor public Group(); + method public int getGid(); + method public void setGid(int); + } + + public class HiddenApiWhitelistedApp { + ctor public HiddenApiWhitelistedApp(); + method public String get_package(); + method public void set_package(String); + } + + public class Library { + ctor public Library(); + method public String getDependency(); + method public String getFile(); + method public String getName(); + method public void setDependency(String); + method public void setFile(String); + method public void setName(String); + } + + public class OemPermissions { + ctor public OemPermissions(); + method public java.util.List getDenyPermission(); + method public java.util.List getPermission(); + method public String get_package(); + method public void set_package(String); + } + + public static class OemPermissions.DenyPermission { + ctor public OemPermissions.DenyPermission(); + method public String getName(); + method public void setName(String); + } + + public static class OemPermissions.Permission { + ctor public OemPermissions.Permission(); + method public String getName(); + method public void setName(String); + } + + public class Permission { + ctor public Permission(); + method public String getName(); + method public void setName(String); + } + + public class Permissions { + ctor public Permissions(); + method public java.util.List getAllowAssociation(); + method public java.util.List getAllowIgnoreLocationSettings(); + method public java.util.List getAllowImplicitBroadcast(); + method public java.util.List getAllowInDataUsageSave(); + method public java.util.List getAllowInPowerSave(); + method public java.util.List getAllowInPowerSaveExceptIdle(); + method public java.util.List getAllowUnthrottledLocation(); + method public java.util.List getAppLink(); + method public java.util.List getAssignPermission(); + method public java.util.List getBackupTransportWhitelistedService(); + method public java.util.List getBugreportWhitelisted(); + method public java.util.List getDefaultEnabledVrApp(); + method public java.util.List getDisabledUntilUsedPreinstalledCarrierApp(); + method public java.util.List getDisabledUntilUsedPreinstalledCarrierAssociatedApp(); + method public java.util.List getFeature(); + method public java.util.List getGroup(); + method public java.util.List getHiddenApiWhitelistedApp(); + method public java.util.List getLibrary(); + method public java.util.List getOemPermissions(); + method public java.util.List getPermission(); + method public java.util.List getPrivappPermissions(); + method public java.util.List getSplitPermission(); + method public java.util.List getSystemUserBlacklistedApp(); + method public java.util.List getSystemUserWhitelistedApp(); + method public java.util.List getUnavailableFeature(); + } + + public class PrivappPermissions { + ctor public PrivappPermissions(); + method public java.util.List getDenyPermission(); + method public java.util.List getPermission(); + method public String get_package(); + method public void set_package(String); + } + + public static class PrivappPermissions.DenyPermission { + ctor public PrivappPermissions.DenyPermission(); + method public String getName(); + method public void setName(String); + } + + public static class PrivappPermissions.Permission { + ctor public PrivappPermissions.Permission(); + method public String getName(); + method public void setName(String); + } + + public class SplitPermission { + ctor public SplitPermission(); + method public java.util.List getLibrary(); + method public String getName(); + method public int getTargetSdk(); + method public void setName(String); + method public void setTargetSdk(int); + } + + public static class SplitPermission.Library { + ctor public SplitPermission.Library(); + method public String getName(); + method public void setName(String); + } + + public class SystemUserBlacklistedApp { + ctor public SystemUserBlacklistedApp(); + method public String get_package(); + method public void set_package(String); + } + + public class SystemUserWhitelistedApp { + ctor public SystemUserWhitelistedApp(); + method public String get_package(); + method public void set_package(String); + } + + public class UnavailableFeature { + ctor public UnavailableFeature(); + method public String getName(); + method public void setName(String); + } + + public class XmlParser { + ctor public XmlParser(); + method public static com.android.xml.permission.Permissions 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/core/xsd/schema/last_current.txt b/core/xsd/schema/last_current.txt new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/core/xsd/schema/last_removed.txt b/core/xsd/schema/last_removed.txt new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/core/xsd/schema/removed.txt b/core/xsd/schema/removed.txt new file mode 100644 index 0000000000000..d802177e249b3 --- /dev/null +++ b/core/xsd/schema/removed.txt @@ -0,0 +1 @@ +// Signature format: 2.0