Home
last modified time | relevance | path

Searched refs:PolicyXmlException (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java461 } catch (IOException | XmlPullParserException | PolicyXmlException e) { in readPowerPolicyConfiguration()
468 void readPowerPolicyFromXml(InputStream stream) throws PolicyXmlException, in readPowerPolicyFromXml()
480 throw new PolicyXmlException("invalid XML version: " + version); in readPowerPolicyFromXml()
510 throw new PolicyXmlException("unknown tag: " + parser.getName() + " under " in readPowerPolicyFromXml()
528 throws XmlPullParserException, IOException, PolicyXmlException { in parseCustomComponents()
539 throw new PolicyXmlException( in parseCustomComponents()
545 throw new PolicyXmlException( in parseCustomComponents()
554 throws PolicyXmlException, XmlPullParserException, IOException { in parsePolicies()
562 throw new PolicyXmlException("no |" + ATTR_ID + "| attribute of |" + TAG_POLICY in parsePolicies()
566 throw new PolicyXmlException("Policy ID should not start with " in parsePolicies()
[all …]
DCarPowerManagementService.java349 throws IOException, PolicyReader.PolicyXmlException, XmlPullParserException { in readPowerPolicyFromXml()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPolicyReaderUnitTest.java427 assertThrows(PolicyReader.PolicyXmlException.class, () -> readPowerPolicyXml(id)); in assertInvalidXml()