10 Commits

Author SHA1 Message Date
atrost
23886e7b2c Add descriptions to compat changes.
Capture the comment above a definition of a compat change and make it
the description.
Next: make sure existing changes use supported format (only /**
comments, only above the annotations), and use in developer UI.

Bug: 144927670
Test: atest com.android.server.compat.CompatConfigTest
Change-Id: Ib23f341baa171599654c351693e4b0ddf4b2515c
2019-12-04 17:17:16 +00:00
Anna Trostanetski
4565dd5de3 Merge "Add a platform compat config schema API."
am: 64e01268ce

Change-Id: Ida126bab43b5b68608440f750462ed6904d898b6
2019-07-25 08:57:16 -07:00
atrost
5769c403f4 Add a platform compat config schema API.
As decribed in go/xsdc-for-partners.
This defines the schema of the XML file generated by @ChangeId
annotation processor.
The schema requires unique ids.

Test: Used https://www.freeformatter.com/xml-validator-xsd.html to
      validate an example config.
Bug: 138222363

Change-Id: Iaf37e049ddd483c4fd7d512475614476ac6606a5
2019-07-25 11:09:01 +01:00
Sundong Ahn
28403928b3 Fix the vts error
On some devices, default-permissions.xml file is on the product
partition. Modify the test case so that VTS passes even if
default-permissions.xml doesn't exist.
According to the parser code, the xml file can exist in an odm
partition. So add the odm partition to the location.

Bug: 132048214
Test: m -j vts
Test: vts-tradefed run vts -m VtsValidateDefaultPermissions
Change-Id: Ia518a51129b8acb2de68ee2cd537b57ef6378b32
2019-05-08 10:21:44 +09:00
Sundong Ahn
75dec5cd75 Add Vts test for xsd_config
The vts_permission_validate_test and
vts_defaultPermissions_validate_test are added for checking xsd schema
validation.

Bug: 127435354
Test: vts-tradefed run vts -m VtsValidatePermission
Test: vts-tradefed run vts -m VtsValidateDefaultPermissions

Merged-In: Ib73dcbe4f9c20e0a957be4325d5cfc2b27c64b67
Change-Id: Ib73dcbe4f9c20e0a957be4325d5cfc2b27c64b67
(cherry picked from commit dc15dc8cc0bbaa10f31b3b8118594a559edd0296)
2019-04-10 11:00:41 +09:00
Treehugger Robot
fd7bbebeaa Merge "Add Vts test for xsd_config" 2019-04-05 06:50:43 +00:00
Sundong Ahn
ea07526597 Change the package name
The "configfile" is added to package name to distinguish classes defined
in java code from classes auto-generated.

Bug: 127435354
Test: make -j && make -j checkapi
Change-Id: I8d6e5c80a3e6eb103ebf1fe7b55a2a13d1629a37
2019-03-27 06:46:28 +00:00
Sundong Ahn
bd42bf3942 Add maxOccurs
The maxOccurs is added to permission element, because the maximum number
of thimes this element can occurs is unbounded

Bug: 127435354
Test: m -j && make -j checkapi

Change-Id: I979f8020634c14c2dcb0e785713da74ce19f0245
2019-03-27 06:46:16 +00:00
Sundong Ahn
dc15dc8cc0 Add Vts test for xsd_config
The vts_permission_validate_test and
vts_defaultPermissions_validate_test are added for checking xsd schema
validation.

Bug: 127435354
Test: vts-tradefed run vts -m VtsValidatePermission
Test: vts-tradefed run vts -m VtsValidateDefaultPermissions

Change-Id: Ib73dcbe4f9c20e0a957be4325d5cfc2b27c64b67
2019-03-27 06:41:54 +00:00
Sundong Ahn
8fbb952718 Add default-permissions
This module is for API check of java file generated from
default-permissions.xsd

Bug: 80453829
Test: m -j
Change-Id: Ic2d6b9a64ceb19711ce6f3fb2da0f1f01d17ebc5
2019-03-06 14:14:33 +09:00