Home
last modified time | relevance | path

Searched refs:resourceName (Results 1 – 18 of 18) sorted by relevance

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DResourceExpr.java48 public ResourceExpr(String packageName, String resourceType, String resourceName, in ResourceExpr() argument
57 mResourceId = resourceName; in ResourceExpr()
139 final String resourceName = mPackage + "R." + getResourceObject() + "." + mResourceId; in toJava() local
140 …eturn "android.view.animation.AnimationUtils.loadAnimation(" + context + ", " + resourceName + ")"; in toJava()
141 …)) return "android.animation.AnimatorInflater.loadAnimator(" + context + ", " + resourceName + ")"; in toJava()
142 if ("bool".equals(mResourceType)) return resources + ".getBoolean(" + resourceName + ")"; in toJava()
143 if ("color".equals(mResourceType)) return resources + ".getColor(" + resourceName + ")"; in toJava()
144 …lorStateList".equals(mResourceType)) return resources + ".getColorStateList(" + resourceName + ")"; in toJava()
145 if ("dimen".equals(mResourceType)) return resources + ".getDimension(" + resourceName + ")"; in toJava()
146 …Offset".equals(mResourceType)) return resources + ".getDimensionPixelOffset(" + resourceName + ")"; in toJava()
[all …]
DExprModel.java230 public Expr resourceExpr(String packageName, String resourceType, String resourceName,
232 return register(new ResourceExpr(packageName, resourceType, resourceName, args));
/frameworks/base/tools/aapt2/
DResourceParser.h170 bool parseString(XmlPullParser* parser, const ResourceNameRef& resourceName);
171 bool parseColor(XmlPullParser* parser, const ResourceNameRef& resourceName);
172 bool parsePrimitive(XmlPullParser* parser, const ResourceNameRef& resourceName);
174 bool parseAttr(XmlPullParser* parser, const ResourceNameRef& resourceName);
176 ResourceName* resourceName,
180 bool parseStyle(XmlPullParser* parser, const ResourceNameRef& resourceName);
182 bool parseDeclareStyleable(XmlPullParser* parser, const ResourceNameRef& resourceName);
183 bool parseArray(XmlPullParser* parser, const ResourceNameRef& resourceName, uint32_t typeMask);
184 bool parsePlural(XmlPullParser* parser, const ResourceNameRef& resourceName);
DResourceTableResolver.cpp107 android::ResTable::resource_name resourceName; in findName() local
108 if (!table.getResourceName(resId.id, false, &resourceName)) { in findName()
112 const ResourceType* type = parseResourceType(StringPiece16(resourceName.type, in findName()
113 resourceName.typeLen)); in findName()
116 { resourceName.package, resourceName.packageLen }, in findName()
118 { resourceName.name, resourceName.nameLen } }; in findName()
DResourceParser.cpp802 bool ResourceParser::parseString(XmlPullParser* parser, const ResourceNameRef& resourceName) { in parseString() argument
829 return mTable->addResource(resourceName, mConfig, source, std::move(processedItem)); in parseString()
832 bool ResourceParser::parseColor(XmlPullParser* parser, const ResourceNameRef& resourceName) { in parseColor() argument
840 return mTable->addResource(resourceName, mConfig, source, std::move(item)); in parseColor()
843 bool ResourceParser::parsePrimitive(XmlPullParser* parser, const ResourceNameRef& resourceName) { in parsePrimitive() argument
847 switch (resourceName.type) { in parsePrimitive()
871 << resourceName.type in parsePrimitive()
877 return mTable->addResource(resourceName, mConfig, source, std::move(item)); in parsePrimitive()
902 ResourceNameRef resourceName { {}, *parsedType, name }; in parsePublic() local
923 mTable->addResource(resourceName, {}, source, util::make_unique<Id>()); in parsePublic()
[all …]
DJavaClassGenerator.cpp171 ResourceNameRef resourceName = { package, type.type, unmangledName }; in generateType() local
173 err << "invalid symbol name '" << resourceName << "'"; in generateType()
DResourceTable.cpp388 ResourceNameRef resourceName = { mPackage, type->type, entry->name }; in merge() local
390 << "resource '" << resourceName << "' has a conflicting value for " in merge()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/
DSettings.java119 public boolean getBoolean(String resourceName, boolean defaultValue) { in getBoolean() argument
120 int resId = mResources.getIdentifier(resourceName, "bool", mPackageName); in getBoolean()
/frameworks/base/tools/aapt/
DResourceTable.h38 const String16& resourceName,
45 const String16& resourceName,
53 const String16& resourceName,
83 String16 resourceName; member
205 const String16& resourceName,
DResourceTable.cpp44 const String16& resourceName, in compileXmlFile() argument
54 return compileXmlFile(bundle, assets, resourceName, root, target, table, options); in compileXmlFile()
59 const String16& resourceName, in compileXmlFile() argument
70 return compileXmlFile(bundle, assets, resourceName, root, outTarget, table, options); in compileXmlFile()
75 const String16& resourceName, in compileXmlFile() argument
109 if (table->modifyForCompat(bundle, resourceName, target, root) != NO_ERROR) { in compileXmlFile()
4675 const String16& resourceName, in modifyForCompat() argument
4751 String16(target->getResourceType()), resourceName); in modifyForCompat()
4770 String8(resourceName).string(), in modifyForCompat()
4777 resourceName, in modifyForCompat()
[all …]
DImages.cpp1508 String16 resourceName(parseResourceName(file->getSourceFile().getPathLeaf())); in postProcessImage() local
1509 return compileXmlFile(bundle, assets, resourceName, file, table); in postProcessImage()
DResource.cpp1540 … err = compileXmlFile(bundle, assets, workItem.resourceName, workItem.file, &table, xmlFlags); in buildResources()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DExpressionVisitor.java314 final String resourceName = resourceReference.substring(slashIndex + 1).trim(); in visitResources()
315 return mModel.resourceExpr(packageName, resourceType, resourceName, args); in visitResources()
/frameworks/base/core/java/android/content/
DIntent.java760 public String resourceName; field in Intent.ShortcutIconResource
774 icon.resourceName = context.getResources().getResourceName(resourceId); in fromContext()
787 icon.resourceName = source.readString();
805 dest.writeString(resourceName); in writeToParcel()
810 return resourceName; in toString()
/frameworks/base/core/java/android/view/
DView.java4530 String resourceName = attributeMap.get(resourceId); in saveAttributeData() local
4531 if (resourceName == null) { in saveAttributeData()
4533 resourceName = res.getResourceName(resourceId); in saveAttributeData()
4535 resourceName = "0x" + Integer.toHexString(resourceId); in saveAttributeData()
4537 attributeMap.put(resourceId, resourceName); in saveAttributeData()
4540 attributes[i] = resourceName; in saveAttributeData()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...
/frameworks/base/api/
Dcurrent.txt8358 field public java.lang.String resourceName;
Dsystem-current.txt8615 field public java.lang.String resourceName;