Home
last modified time | relevance | path

Searched refs:ResTable (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp41 ResTable table; in TEST()
46 ResTable table; in TEST()
53 ResTable table; in TEST()
66 ResTable table; in TEST()
69 ResTable::Theme theme(table); in TEST()
86 ResTable table; in TEST()
89 ResTable::Theme theme(table); in TEST()
106 ResTable table; in TEST()
109 ResTable::Theme theme(table); in TEST()
121 ResTable table; in TEST()
[all …]
DSplit_test.cpp66 ResTable table; in TEST()
74 ResTable table; in TEST()
99 ResTable table; in TEST()
120 ResTable table; in TEST()
125 ResTable::resource_name baseName; in TEST()
130 ResTable::resource_name frName; in TEST()
150 ResTable table; in TEST()
175 ResTable table; in TEST()
197 ResTable table; in TEST()
213 ResTable table; in TEST()
[all …]
DTheme_test.cpp40 ResTable table; in TEST()
44 ResTable::Theme theme1(table); in TEST()
54 ResTable table2; in TEST()
58 ResTable::Theme theme2(table2); in TEST()
DIdmap_test.cpp61 ResTable mTargetTable;
62 ResTable mOverlayTable;
103 ResTable::resource_name resName; in TEST_F()
DTestHelpers.cpp25 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* ex… in IsStringEqual()
DTestHelpers.h31 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* ex…
/frameworks/base/include/androidfw/
DAssetManager.h54 class ResTable; variable
207 const ResTable& getResources(bool required = true) const;
278 const ResTable* getResTable(bool required = true) const;
286 ResTable* sharedRes, size_t offset) const;
297 ResTable* getResourceTable();
298 ResTable* setResourceTable(ResTable* res);
317 ResTable* mResourceTable;
346 ResTable* getZipResourceTable(const String8& path);
347 ResTable* setZipResourceTable(const String8& path, ResTable* res);
374 mutable ResTable* mResources;
DResourceTypes.h1508 class ResTable
1511 ResTable();
1512 ResTable(const void* data, size_t size, const int32_t cookie,
1514 ~ResTable();
1523 status_t add(ResTable* src);
1614 Theme(const ResTable& table);
1617 inline const ResTable& getResTable() const { return mTable; } in getResTable()
1676 const ResTable& mTable;
1791 status_t createIdmap(const ResTable& overlay,
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp98 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
102 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue()
684 ResTable::resource_name name; in android_content_AssetManager_getResourceName()
727 ResTable::resource_name name; in android_content_AssetManager_getResourcePackageName()
747 ResTable::resource_name name; in android_content_AssetManager_getResourceTypeName()
771 ResTable::resource_name name; in android_content_AssetManager_getResourceEntryName()
801 const ResTable& res(am->getResources()); in android_content_AssetManager_loadResourceValue()
838 const ResTable& res(am->getResources()); in android_content_AssetManager_loadResourceBagValue()
846 const ResTable::bag_entry* entry = NULL; in android_content_AssetManager_loadResourceBagValue()
923 const ResTable& res = am->getResources(); in android_content_AssetManager_getAssignedPackageIdentifiers()
[all …]
/frameworks/base/tools/aapt/
DAaptXml.h89 int32_t getResolvedIntegerAttribute(const android::ResTable& resTable,
98 inline int32_t getResolvedIntegerAttribute(const android::ResTable& resTable, in getResolvedIntegerAttribute()
109 android::String8 getResolvedAttribute(const android::ResTable& resTable,
117 void getResolvedResourceAttribute(const android::ResTable& resTable,
DCommand.cpp218 const ResTable& res = assets.getResources(false); in doList()
249 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute()
261 ResTable::normalizeForOutput(result.string()).string()); in printResolvedResourceAttribute()
369 printf("uses-permission: name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission()
377 ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission()
387 ResTable::normalizeForOutput(name.string()).string(), in printUsesImpliedPermission()
388 ResTable::normalizeForOutput(reason.string()).string()); in printUsesImpliedPermission()
523 ResTable::normalizeForOutput(featureName.string()).string()); in printFeatureGroup()
536 String8 printableFeatureName(ResTable::normalizeForOutput( in printFeatureGroup()
622 const ResTable& res = assets.getResources(false); in doDump()
[all …]
DAaptXml.cpp96 String8 getResolvedAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedAttribute()
141 int32_t getResolvedIntegerAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedIntegerAttribute()
163 void getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedResourceAttribute()
Dprintapk.cpp99 ResTable res(resfile, size, resfile); in main()
DXMLNode.cpp269 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
304 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
390 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
489 ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i, in printXMLBlock()
496 printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).string()). in printXMLBlock()
543 ResTable::normalizeForOutput(String8(block->getText(&len)).string()).string()); in printXMLBlock()
DResourceTable.cpp369 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) { in compileAttribute()
387 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) { in compileAttribute()
495 if (!attr.hasErrors && !ResTable::stringToInt(value.string(), value.size(), NULL)) { in compileAttribute()
948 if (!ResTable::stringToInt(identStr, len, &identValue)) { in compileResourceFile()
1020 if (!ResTable::stringToInt(startStr, len, &startValue)) { in compileResourceFile()
1040 if (!ResTable::stringToInt(endStr, len, &endValue)) { in compileResourceFile()
1758 static uint32_t findLargestTypeIdForPackage(const ResTable& table, const String16& packageName) { in findLargestTypeIdForPackage()
1787 const ResTable& featureTable = featureAssetManager.getResources(false); in addIncludedResources()
2018 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name, in hasBagOrEntry()
2162 if (!ResTable::expandResourceRef( in getResId()
[all …]
DAaptAssets.cpp1588 const ResTable& res = getIncludedResources(); in addIncludedResources()
1590 return const_cast<ResTable&>(res).add(file->getData(), file->getSize()); in addIncludedResources()
1593 const ResTable& AaptAssets::getIncludedResources() const in getIncludedResources()
DAaptAssets.h566 const ResTable& getIncludedResources() const;
DResource.cpp455 static int validateAttr(const String8& path, const ResTable& table, in validateAttr()
926 const ResTable& table = assets.getResources(true); in getPlatformAssetCookie()
931 const ResTable::bag_entry* entry; in getPlatformAssetCookie()
1571 ResTable finalResTable; in buildResources()
1611 ResTable resTable; in buildResources()
DResourceTable.h90 class ResourceTable : public ResTable::Accessor
/frameworks/base/libs/androidfw/
DResourceTypes.cpp231 if (size < ResTable::IDMAP_HEADER_SIZE_BYTES) { in assertIdmapHeader()
354 size -= ResTable::IDMAP_HEADER_SIZE_BYTES; in parseIdmap()
361 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES); in parseIdmap()
2835 struct ResTable::Header
2837 Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), in Header()
2845 const ResTable* const owner;
2858 struct ResTable::Entry {
2869 struct ResTable::Type
2883 struct ResTable::Package
2885 Package(ResTable* _owner, const Header* _header, const ResTable_package* _package) in Package()
[all …]
DAssetManager.cpp262 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(), in addOverlayPath()
307 ResTable tables[2]; in createIdmap()
391 ResTable* res = mResources; in setLocaleLocked()
605 ResTable* sharedRes = NULL; in appendPathToResTable()
643 sharedRes = new ResTable(); in appendPathToResTable()
693 const ResTable* AssetManager::getResTable(bool required) const in getResTable()
695 ResTable* rt = mResources; in getResTable()
716 mResources = new ResTable(); in getResTable()
737 ResTable* res = mResources; in updateResourceParamsLocked()
767 const String8& targetPackagePath, ResTable* sharedRes, size_t offset) const in addSystemOverlays()
[all …]
/frameworks/base/cmds/idmap/
Dcreate.cpp76 static const size_t N = ResTable::IDMAP_HEADER_SIZE_BYTES; in is_idmap_stale_fd()
108 if (!ResTable::getIdmapInfo(buf, N, NULL, &cached_target_crc, &cached_overlay_crc, in is_idmap_stale_fd()
Dinspect.cpp149 const ResTable& rt = am.getResources(); in resource_metadata()
150 struct ResTable::resource_name data; in resource_metadata()
/frameworks/base/tools/split-select/
DMain.cpp213 const ResTable& res = assetManager.getResources(false); in extractSplitDescriptionsFromApk()