Lines Matching refs:Error
52 using ::android::base::Error;
104 return Error() << "Must specify value for the tag '" << tag << "'"; in readExactlyOneElement()
107 return Error() << "Must specify only one entry for the tag '" << tag << "'"; in readExactlyOneElement()
117 return Error() << "Failed to read tag '" << kTagComponentType << "': " << result.error(); in readComponentType()
121 return Error() << "Must specify non-empty component type"; in readComponentType()
123 return Error() << "Must specify non-empty component type"; in readComponentType()
138 return Error() << "Must specify valid component type. Received " << componentTypeStr; in readComponentType()
151 return Error() << "Must specify non-empty safe-to-kill package name"; in readSafeToKillPackages()
153 return Error() << "Must specify non-empty safe-to-kill package name"; in readSafeToKillPackages()
171 return Error() << "Must specify non-empty vendor package prefix"; in readVendorPackagePrefixes()
173 return Error() << "Must specify non-empty vendor package prefix"; in readVendorPackagePrefixes()
206 return Error() << "Failed to read '" << kAttrType << "' attribute in '" in readPackageToAppCategoryTypes()
212 return Error() << "Must specify valid app category type. Received " << type; in readPackageToAppCategoryTypes()
215 return Error() << "Must specify non-empty package name"; in readPackageToAppCategoryTypes()
217 return Error() << "Must specify non-empty package name"; in readPackageToAppCategoryTypes()
232 return Error() << "Failed to read '" << kAttrId << "' attribute in '" << kTagState in readPerStateBytes()
236 return Error() << "Duplicate threshold specified for state '" << state << "'"; in readPerStateBytes()
240 return Error() << "Must specify non-empty threshold for state '" << state << "'"; in readPerStateBytes()
243 return Error() << "Failed to parse threshold for the state '" << state in readPerStateBytes()
256 return Error() << "Invalid state '" << state << "' in per-state bytes"; in readPerStateBytes()
260 return Error() << "Thresholds not specified for all states. Specified only for [" in readPerStateBytes()
273 return Error() << "Failed to read tag '" << kTagComponentLevelThresholds in readComponentLevelThresholds()
281 return Error() << "Failed to read component level thresholds for component '" in readComponentLevelThresholds()
296 return Error() << "Failed to read '" << kAttrId << "' attribute"; in readPerStateThresholds()
298 return Error() << "Must provide non-empty value in '" << kAttrId << "' attribute"; in readPerStateThresholds()
303 return Error() << "Failed to read thresholds for id '" << threshold.name in readPerStateThresholds()
321 return Error() << "Failed to read package specific thresholds from tag'" in readPackageSpecificThresholds()
338 return Error() << "Failed to read app category specific thresholds from tag'" in readAppCategorySpecificThresholds()
352 return Error() << "Failed to read '" << kAttrId << "' attribute in '" << kTagParam in readIoOveruseAlertThreshold()
356 return Error() << "Duplicate threshold specified for param '" << param << "'"; in readIoOveruseAlertThreshold()
360 return Error() << "Must specify non-empty threshold for param '" << param << "'"; in readIoOveruseAlertThreshold()
362 return Error() << "Failed to parse threshold for the param '" << param in readIoOveruseAlertThreshold()
372 return Error() << "Invalid param '" << param << "' in I/O overuse alert thresholds"; in readIoOveruseAlertThreshold()
376 return Error() << "Thresholds not specified for all params. Specified only for [" in readIoOveruseAlertThreshold()
393 return Error() << "Failed to system wide thresholds from tag '" in readSystemWideThresholds()
409 return Error() << "Failed to read tag '" << kTagIoOveruseConfiguration in readIoOveruseConfiguration()
417 return Error() << "Failed to read component-level thresholds: " << result.error(); in readIoOveruseConfiguration()
422 return Error() << "Failed to read package specific thresholds: " << result.error(); in readIoOveruseConfiguration()
427 return Error() << "Failed to read category specific thresholds: " << result.error(); in readIoOveruseConfiguration()
432 return Error() << "Failed to read system-wide thresholds: " << result.error(); in readIoOveruseConfiguration()
440 return Error() << "Failed to insert new child element with tag '" << kTagComponentType in writeComponentType()
454 return Error() << "Failed to insert new child element with tag '" << kTagSafeToKillPackages in writeSafeToKillPackages()
460 return Error() << "Failed to insert new child element with tag '" << kTagPackage << "'"; in writeSafeToKillPackages()
474 return Error() << "Failed to insert new child element with tag '" in writeVendorPackagePrefixes()
480 return Error() << "Failed to insert new child element with tag '" << kTagPackagePrefix in writeVendorPackagePrefixes()
495 return Error() << "Failed to insert new child element with tag '" in writePackageToAppCategoryTypes()
501 return Error() << "Failed to insert new child element with tag '" in writePackageToAppCategoryTypes()
514 return Error() << "Failed to insert new child element with tag '" << kTagState << "'"; in writePerStateBytes()
523 return Error() << "Failed to write bytes for state '" << kStateIdForegroundMode in writePerStateBytes()
529 return Error() << "Failed to write bytes for state '" << kStateIdBackgroundMode in writePerStateBytes()
535 return Error() << "Failed to write bytes for state '" << kStateIdGarageMode in writePerStateBytes()
545 return Error() << "Failed to insert new child element with tag '" in writeComponentLevelThresholds()
550 return Error() << "Failed to write per-state bytes: " << result.error(); in writeComponentLevelThresholds()
559 return Error() << "Failed to insert new child element with tag '" << kTagPerStateThreshold in writePerStateThresholds()
565 return Error() << "Failed to write per-state bytes: " << result.error(); in writePerStateThresholds()
574 return Error() << "Failed to insert new child element with tag '" in writePackageSpecificThresholds()
579 return Error() << "Failed to write per-state thresholds for '" << threshold.name in writePackageSpecificThresholds()
591 return Error() << "Failed to insert new child element with tag '" in writeAppCategorySpecificThresholds()
596 return Error() << "Failed to write per-state thresholds for '" << threshold.name in writeAppCategorySpecificThresholds()
607 return Error() << "Failed to insert new child element with tag '" << kTagAlertThreshold in writeAlertThresholds()
613 return Error() << "Failed to insert new child element with tag '" << kTagParam << "'"; in writeAlertThresholds()
622 return Error() << "Failed to write duration for param '" << kParamIdDurationSeconds in writeAlertThresholds()
628 return Error() << "Failed to write bps for param '" << kParamIdWrittenBytesPerSecond in writeAlertThresholds()
638 return Error() << "Failed to insert new child element with tag '" in writeSystemWideThresholds()
643 return Error() << "Failed to write I/O overuse alert thresholds:" << result.error(); in writeSystemWideThresholds()
653 return Error() << "Failed to insert new child element with tag '" in writeIoOveruseConfiguration()
659 return Error() << "Failed to write component-wide thresholds: " << result.error(); in writeIoOveruseConfiguration()
664 return Error() << "Failed to write package specific thresholds: " << result.error(); in writeIoOveruseConfiguration()
670 return Error() << "Failed to write app category specific thresholds: " << result.error(); in writeIoOveruseConfiguration()
675 return Error() << "Failed to write system-wide thresholds: " << result.error(); in writeIoOveruseConfiguration()
687 return Error() << "Failed to read and/or parse '" << filePath << "'"; in parseXmlFile()
692 return Error() << "XML file doesn't have the root element '" in parseXmlFile()
698 return Error() << "Failed to read component type: " << result.error(); in parseXmlFile()
703 return Error() << "Failed to read safe-to-kill packages: " << result.error(); in parseXmlFile()
708 return Error() << "Failed to read vendor package prefixes: " << result.error(); in parseXmlFile()
713 return Error() << "Failed to read package to app category types: " << result.error(); in parseXmlFile()
720 return Error() << "Failed to read I/O overuse configuration: " << result.error(); in parseXmlFile()
731 return Error() << "Failed to create new xml declaration"; in writeXmlFile()
735 return Error() << "Failed to create new xml element for tag '" in writeXmlFile()
742 return Error() << "Failed to write component type: " << result.error(); in writeXmlFile()
746 return Error() << "Failed to write safe-to-kill packages: " << result.error(); in writeXmlFile()
751 return Error() << "Failed to write vendor package prefixes: " << result.error(); in writeXmlFile()
756 return Error() << "Failed to write package to app category types: " << result.error(); in writeXmlFile()
761 return Error() << "Must provide exactly one I/O overuse configuration"; in writeXmlFile()
768 return Error() << "Failed to write I/O overuse configuration: " << result.error(); in writeXmlFile()
771 return Error() << "Failed to write XML configuration to file '" << filePath in writeXmlFile()