Searched refs:ResTable (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
H A DTheme_test.cpp40 ResTable table;
44 ResTable::Theme theme1(table);
54 ResTable table2;
58 ResTable::Theme theme2(table2);
H A DAppAsLib_test.cpp32 ResTable table;
44 ResTable table;
57 ResTable table;
H A DSplit_test.cpp66 ResTable table;
74 ResTable table;
99 ResTable table;
120 ResTable table;
125 ResTable::resource_name baseName;
130 ResTable::resource_name frName;
150 ResTable table;
175 ResTable table;
197 ResTable table;
213 ResTable tabl
[all...]
H A DResTable_test.cpp57 ResTable table;
62 ResTable table;
69 ResTable table;
82 ResTable table;
85 ResTable::Theme theme(table);
102 ResTable table;
105 ResTable::Theme theme(table);
122 ResTable table;
125 ResTable::Theme theme(table);
142 ResTable tabl
[all...]
H A DIdmap_test.cpp61 ResTable mTargetTable;
62 ResTable mOverlayTable;
103 ResTable::resource_name resName;
H A DTestHelpers.cpp25 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* expectedStr) {
H A DTestHelpers.h31 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* expectedStr);
/frameworks/base/tools/aapt/
H A DAaptXml.h87 * The integer may be a resource in the supplied ResTable.
89 int32_t getResolvedIntegerAttribute(const android::ResTable& resTable,
96 * The integer may be a resource in the supplied ResTable.
98 inline int32_t getResolvedIntegerAttribute(const android::ResTable& resTable,
107 * The string may be a resource in the supplied ResTable.
109 android::String8 getResolvedAttribute(const android::ResTable& resTable,
115 * The resource may be a resource in the supplied ResTable.
117 void getResolvedResourceAttribute(const android::ResTable& resTable,
H A DCommand.cpp223 const ResTable& res = assets.getResources(false);
250 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree,
262 ResTable::normalizeForOutput(result.string()).string());
370 printf("uses-permission: name='%s'", ResTable::normalizeForOutput(name.string()).string());
378 ResTable::normalizeForOutput(name.string()).string());
389 printf("name='%s'", ResTable::normalizeForOutput(name.string()).string());
398 ResTable::normalizeForOutput(name.string()).string(),
399 ResTable::normalizeForOutput(reason.string()).string());
565 ResTable::normalizeForOutput(featureName.string()).string());
583 String8 printableFeatureName(ResTable
[all...]
H A DAaptXml.cpp96 String8 getResolvedAttribute(const ResTable& resTable, const ResXMLTree& tree,
141 int32_t getResolvedIntegerAttribute(const ResTable& resTable, const ResXMLTree& tree,
163 void getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree,
H A Dpseudolocalize.cpp235 * processed by ResTable::collectString in the normal way.
H A DXMLNode.cpp282 if (!ResTable::collectString(outString, curString.string(),
317 if (!ResTable::collectString(outString, curString.string(),
386 if (!ResTable::collectString(outString, curString.string(),
485 ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i,
492 printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).string()).
547 ResTable::normalizeForOutput(String8(block->getText(&len)).string()).string());
H A DResourceTable.cpp374 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) {
392 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) {
500 if (!attr.hasErrors && !ResTable::stringToInt(value.string(), value.size(), NULL)) {
958 if (!ResTable::stringToInt(identStr, len, &identValue)) {
1030 if (!ResTable::stringToInt(startStr, len, &startValue)) {
1050 if (!ResTable::stringToInt(endStr, len, &endValue)) {
1786 static uint32_t findLargestTypeIdForPackage(const ResTable& table, const String16& packageName) {
1815 const ResTable& featureTable = featureAssetManager.getResources(false);
2046 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name,
2245 if (!ResTable
[all...]
/frameworks/base/include/androidfw/
H A DAssetManager.h54 class ResTable;
209 const ResTable& getResources(bool required = true) const;
284 const ResTable* getResTable(bool required = true) const;
292 ResTable* sharedRes, size_t offset) const;
303 ResTable* getResourceTable();
304 ResTable* setResourceTable(ResTable* res);
323 ResTable* mResourceTable;
352 ResTable* getZipResourceTable(const String8& path);
353 ResTable* setZipResourceTabl
[all...]
H A DResourceTypes.h1564 * Convenience class for accessing data in a ResTable resource.
1566 class ResTable class in namespace:android
1569 ResTable();
1570 ResTable(const void* data, size_t size, const int32_t cookie,
1572 ~ResTable();
1582 status_t add(ResTable* src, bool isSystemAsset=false);
1673 Theme(const ResTable& table);
1676 inline const ResTable& getResTable() const { return mTable; }
1704 * This is like ResTable::resolveReference(), but also takes
1742 const ResTable
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp109 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
113 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
664 const ResTable& res(am->getResources());
777 ResTable::resource_name name;
820 ResTable::resource_name name;
840 ResTable::resource_name name;
864 ResTable::resource_name name;
894 const ResTable& res(am->getResources());
931 const ResTable& res(am->getResources());
939 const ResTable
[all...]
/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp143 static std::unique_ptr<SymbolTable::Symbol> lookupAttributeInTable(const android::ResTable& table,
146 const android::ResTable::bag_entry* entry;
181 android::ResTable::resource_name entryName;
210 const android::ResTable& table = mAssets.getResources(false);
236 static Maybe<ResourceName> getResourceName(const android::ResTable& table, ResourceId id) {
237 android::ResTable::resource_name resName = {};
275 const android::ResTable& table = mAssets.getResources(false);
/frameworks/base/tools/aapt2/flatten/
H A DTableFlattener_test.cpp39 ::testing::AssertionResult flatten(ResourceTable* table, ResTable* outTable) {
48 return ::testing::AssertionFailure() << "flattened ResTable is corrupt";
63 return ::testing::AssertionFailure() << "flattened ResTable is corrupt";
68 ::testing::AssertionResult exists(ResTable* table,
106 ResTable::resource_name actualName;
160 ResTable resTable;
200 ResTable resTable;
/frameworks/base/cmds/idmap/
H A Dcreate.cpp77 static const size_t N = ResTable::IDMAP_HEADER_SIZE_BYTES;
109 if (!ResTable::getIdmapInfo(buf, N, NULL, &cached_target_crc, &cached_overlay_crc,
H A Dinspect.cpp149 const ResTable& rt = am.getResources();
150 struct ResTable::resource_name data;
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp250 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(),
299 ResTable tables[2];
383 ResTable* res = mResources;
602 ResTable* sharedRes = NULL;
640 sharedRes = new ResTable();
688 const ResTable* AssetManager::getResTable(bool required) const
690 ResTable* rt = mResources;
711 mResources = new ResTable();
733 ResTable* res = mResources;
763 const String8& targetPackagePath, ResTable* sharedRe
[all...]
H A DResourceTypes.cpp236 if (size < ResTable::IDMAP_HEADER_SIZE_BYTES) {
359 size -= ResTable::IDMAP_HEADER_SIZE_BYTES;
366 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES);
3117 struct ResTable::Header
3119 Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL),
3127 const ResTable* const owner;
3140 struct ResTable::Entry {
3151 struct ResTable::Type
3165 struct ResTable::Package
3167 Package(ResTable* _owne
3633 ResTable::ResTable() function in class:android::ResTable
3643 ResTable::ResTable(const void* data, size_t size, const int32_t cookie, bool copyData) function in class:android::ResTable
[all...]
/frameworks/base/tools/aapt2/
H A DResourceUtils.cpp423 if (!android::ResTable::stringToInt(str.data(), str.size(), &value)) {
431 if (!android::ResTable::stringToFloat(str.data(), str.size(), &value)) {
H A DResourceParser.cpp594 bool result = android::ResTable::stringToInt(maybeId.value().data(),
637 bool result = android::ResTable::stringToInt(maybeId.value().data(),
770 if (android::ResTable::stringToInt(minStr.data(), minStr.size(), &value)) {
786 if (android::ResTable::stringToInt(maxStr.data(), maxStr.size(), &value)) {
915 if (!android::ResTable::stringToInt(maybeValue.value().data(),
/frameworks/base/tools/split-select/
H A DMain.cpp213 const ResTable& res = assetManager.getResources(false);

Completed in 1385 milliseconds

12