Move StringPool to libandroidfw
Test: verified affected tests pass
Bug: 232940948
Change-Id: I22089893d7e5013f759c39ce190bec07fa6435db
diff --git a/tools/aapt2/xml/XmlActionExecutor.h b/tools/aapt2/xml/XmlActionExecutor.h
index 78c4334..8cc4573 100644
--- a/tools/aapt2/xml/XmlActionExecutor.h
+++ b/tools/aapt2/xml/XmlActionExecutor.h
@@ -23,8 +23,7 @@
#include <vector>
#include "android-base/macros.h"
-
-#include "Diagnostics.h"
+#include "androidfw/IDiagnostics.h"
#include "xml/XmlDom.h"
namespace aapt {
@@ -50,8 +49,8 @@
class XmlNodeAction {
public:
using ActionFuncWithPolicyAndDiag =
- std::function<bool(Element*, XmlActionExecutorPolicy, SourcePathDiagnostics*)>;
- using ActionFuncWithDiag = std::function<bool(Element*, SourcePathDiagnostics*)>;
+ std::function<bool(Element*, XmlActionExecutorPolicy, android::SourcePathDiagnostics*)>;
+ using ActionFuncWithDiag = std::function<bool(Element*, android::SourcePathDiagnostics*)>;
using ActionFunc = std::function<bool(Element*)>;
// Find or create a child XmlNodeAction that will be performed for the child element with the
@@ -69,7 +68,7 @@
friend class XmlActionExecutor;
bool Execute(XmlActionExecutorPolicy policy, std::vector<::android::StringPiece>* bread_crumb,
- SourcePathDiagnostics* diag, Element* el) const;
+ android::SourcePathDiagnostics* diag, Element* el) const;
std::map<std::string, XmlNodeAction> map_;
std::vector<ActionFuncWithPolicyAndDiag> actions_;
@@ -88,7 +87,7 @@
// Execute the defined actions for this XmlResource.
// Returns true if all actions return true, otherwise returns false.
- bool Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, XmlResource* doc) const;
+ bool Execute(XmlActionExecutorPolicy policy, android::IDiagnostics* diag, XmlResource* doc) const;
private:
std::map<std::string, XmlNodeAction> map_;