diff options
| author | 2019-10-10 22:36:44 +0000 | |
|---|---|---|
| committer | 2019-10-10 22:36:44 +0000 | |
| commit | d61d44da96884834519d76c044d5e8e47c4677b3 (patch) | |
| tree | 06b30abd0a524df18ecc806b91581bcd0b1c4f65 /libs/androidfw | |
| parent | 98bfc275494411c7888d806f307ae193f09c4e9e (diff) | |
| parent | 9e4f52b2e5c76791edc885397389771692c0de8a (diff) | |
Merge changes I1740dcdc,I12f965b5
* changes:
Parse <overlay> and abstract resource mapping
Improve idmap2 xml parsing
Diffstat (limited to 'libs/androidfw')
| -rw-r--r-- | libs/androidfw/ResourceTypes.cpp | 5 | ||||
| -rw-r--r-- | libs/androidfw/include/androidfw/ResourceTypes.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index 535386920265..3fe2c5b0e21a 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -1063,6 +1063,11 @@ size_t ResStringPool::bytes() const return (mError == NO_ERROR) ? mHeader->header.size : 0; } +const void* ResStringPool::data() const +{ + return mHeader; +} + bool ResStringPool::isSorted() const { return (mHeader->flags&ResStringPool_header::SORTED_FLAG)!=0; diff --git a/libs/androidfw/include/androidfw/ResourceTypes.h b/libs/androidfw/include/androidfw/ResourceTypes.h index fc635aaeb0d8..c8ace90e6515 100644 --- a/libs/androidfw/include/androidfw/ResourceTypes.h +++ b/libs/androidfw/include/androidfw/ResourceTypes.h @@ -523,6 +523,8 @@ public: size_t size() const; size_t styleCount() const; size_t bytes() const; + const void* data() const; + bool isSorted() const; bool isUTF8() const; |