Merge "Use isFoo instead of getFoo style for display-layout-config.xsd generated methods" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e2d1f53333
@@ -111,8 +111,8 @@ class DeviceStateToLayoutMap {
|
||||
for (com.android.server.display.config.layout.Display d: l.getDisplay()) {
|
||||
layout.createDisplayLocked(
|
||||
DisplayAddress.fromPhysicalDisplayId(d.getAddress().longValue()),
|
||||
d.getIsDefault(),
|
||||
d.getEnabled());
|
||||
d.isDefaultDisplay(),
|
||||
d.isEnabled());
|
||||
}
|
||||
}
|
||||
} catch (IOException | DatatypeConfigurationException | XmlPullParserException e) {
|
||||
|
||||
@@ -14,7 +14,6 @@ xsd_config {
|
||||
package_name: "com.android.server.pm.permission.configfile",
|
||||
}
|
||||
|
||||
|
||||
xsd_config {
|
||||
name: "platform-compat-config",
|
||||
srcs: ["platform-compat/config/platform-compat-config.xsd"],
|
||||
@@ -42,6 +41,7 @@ xsd_config {
|
||||
srcs: ["display-layout-config/display-layout-config.xsd"],
|
||||
api_dir: "display-layout-config/schema",
|
||||
package_name: "com.android.server.display.config.layout",
|
||||
boolean_getter: true,
|
||||
}
|
||||
|
||||
xsd_config {
|
||||
|
||||
@@ -52,6 +52,6 @@
|
||||
<xs:element name="address" type="xs:nonNegativeInteger"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="enabled" type="xs:boolean" use="optional" />
|
||||
<xs:attribute name="isDefault" type="xs:boolean" use="optional" />
|
||||
<xs:attribute name="defaultDisplay" type="xs:boolean" use="optional" />
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
|
||||
@@ -4,11 +4,11 @@ package com.android.server.display.config.layout {
|
||||
public class Display {
|
||||
ctor public Display();
|
||||
method public java.math.BigInteger getAddress();
|
||||
method public boolean getEnabled();
|
||||
method public boolean getIsDefault();
|
||||
method public boolean isDefaultDisplay();
|
||||
method public boolean isEnabled();
|
||||
method public void setAddress(java.math.BigInteger);
|
||||
method public void setDefaultDisplay(boolean);
|
||||
method public void setEnabled(boolean);
|
||||
method public void setIsDefault(boolean);
|
||||
}
|
||||
|
||||
public class Layout {
|
||||
|
||||
Reference in New Issue
Block a user