Home
last modified time | relevance | path

Searched refs:attrName (Results 1 – 20 of 20) sorted by relevance

/frameworks/support/compat/java/android/support/v4/content/res/
DTypedArrayUtils.java54 public static boolean hasAttribute(@NonNull XmlPullParser parser, @NonNull String attrName) { in hasAttribute() argument
55 return parser.getAttributeValue(NAMESPACE, attrName) != null; in hasAttribute()
66 @NonNull String attrName, @StyleableRes int resId, float defaultValue) { in getNamedFloat() argument
67 final boolean hasAttr = hasAttribute(parser, attrName); in getNamedFloat()
83 String attrName, @StyleableRes int resId, boolean defaultValue) { in getNamedBoolean() argument
84 final boolean hasAttr = hasAttribute(parser, attrName); in getNamedBoolean()
100 String attrName, @StyleableRes int resId, int defaultValue) { in getNamedInt() argument
101 final boolean hasAttr = hasAttribute(parser, attrName); in getNamedInt()
118 String attrName, @StyleableRes int resId, @ColorInt int defaultValue) { in getNamedColor() argument
119 final boolean hasAttr = hasAttribute(parser, attrName); in getNamedColor()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/util/
DBridgeXmlPullAttributesTest.java56 attrName -> { in testGetAttributeIntValueForEnums()
57 if ("layout_width".equals(attrName)) { in testGetAttributeIntValueForEnums()
63 attrName -> { in testGetAttributeIntValueForEnums()
64 if ("my_custom_attr".equals(attrName)) { in testGetAttributeIntValueForEnums()
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp405 string attrName; in parseRect() local
407 in >> attrName; in parseRect()
416 if (attrName == "transform:") { // Transform in parseRect()
437 } else if (attrName == "blend:") { // Blend in parseRect()
452 } else if (attrName == "color:") { // Color in parseRect()
458 } else if (attrName == "alpha:") { // Alpha in parseRect()
465 } else if (attrName == "sourceDim:") { // Source Dimension in parseRect()
472 } else if (attrName == "sourceCrop:") { // Source Crop in parseRect()
480 testPrintE("Unknown attribute of \"%s\" in: %s", attrName.c_str(), in parseRect()
/frameworks/base/services/core/java/com/android/server/am/
DTaskRecord.java1851 final String attrName = in.getAttributeName(attrNdx); in restoreFromXml() local
1854 attrName + " value=" + attrValue); in restoreFromXml()
1855 if (ATTR_TASKID.equals(attrName)) { in restoreFromXml()
1857 } else if (ATTR_REALACTIVITY.equals(attrName)) { in restoreFromXml()
1859 } else if (ATTR_REALACTIVITY_SUSPENDED.equals(attrName)) { in restoreFromXml()
1861 } else if (ATTR_ORIGACTIVITY.equals(attrName)) { in restoreFromXml()
1863 } else if (ATTR_AFFINITY.equals(attrName)) { in restoreFromXml()
1865 } else if (ATTR_ROOT_AFFINITY.equals(attrName)) { in restoreFromXml()
1868 } else if (ATTR_ROOTHASRESET.equals(attrName)) { in restoreFromXml()
1870 } else if (ATTR_AUTOREMOVERECENTS.equals(attrName)) { in restoreFromXml()
[all …]
DActivityRecord.java2713 final String attrName = in.getAttributeName(attrNdx); in restoreFromXml() local
2716 "ActivityRecord: attribute name=" + attrName + " value=" + attrValue); in restoreFromXml()
2717 if (ATTR_ID.equals(attrName)) { in restoreFromXml()
2719 } else if (ATTR_LAUNCHEDFROMUID.equals(attrName)) { in restoreFromXml()
2721 } else if (ATTR_LAUNCHEDFROMPACKAGE.equals(attrName)) { in restoreFromXml()
2723 } else if (ATTR_RESOLVEDTYPE.equals(attrName)) { in restoreFromXml()
2725 } else if (ATTR_COMPONENTSPECIFIED.equals(attrName)) { in restoreFromXml()
2727 } else if (ATTR_USERID.equals(attrName)) { in restoreFromXml()
2729 } else if (attrName.startsWith(ATTR_TASKDESCRIPTION_PREFIX)) { in restoreFromXml()
2730 taskDescription.restoreFromXml(attrName, attrValue); in restoreFromXml()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java875 String attrName = attributeHolder.name; in obtainStyledAttributes() local
881 attrName); in obtainStyledAttributes()
886 value = set.getAttributeValue(BridgeConstants.NS_APP_RES_AUTO, attrName); in obtainStyledAttributes()
899 defaultValue = mRenderResources.findItemInStyle(customStyleValues, attrName, in obtainStyledAttributes()
905 defaultValue = mRenderResources.findItemInStyle(defStyleValues, attrName, in obtainStyledAttributes()
912 defaultValue = mRenderResources.findItemInTheme(attrName, frameworkAttr); in obtainStyledAttributes()
923 frameworkAttr ? SdkConstants.PREFIX_ANDROID + attrName : in obtainStyledAttributes()
924attrName, new Property(preResolve, defaultValue.getValue())); in obtainStyledAttributes()
937 ResourceValue patchedValue = FRAMEWORK_PATCHED_VALUES.get(attrName); in obtainStyledAttributes()
954 defaultValue = FRAMEWORK_REPLACE_VALUES.get(attrName); in obtainStyledAttributes()
[all …]
/frameworks/av/services/mediaanalytics/
DMetricsSummarizer.cpp262 const char *attrName = prop1->mName; in sameAttributes() local
268 if (strcmp(*ig, attrName) == 0) { in sameAttributes()
273 ALOGV("we don't mind that it has attr '%s'", attrName); in sameAttributes()
278 MediaAnalyticsItem::Prop *prop2 = summ->findProp(attrName); in sameAttributes()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
DXmlEditor.java195 String attrName = input.attrName.getText(); in expressionAttributes() local
196 boolean isExpression = attrName.equals("android:tag"); in expressionAttributes()
310 replace(lines, start, end, it.attrName.getText() + "=\"" + defaultVal + "\""); in recurseReplace()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java60 this(parser, context, platformFile, Bridge::getEnumValues, attrName -> { in BridgeXmlPullAttributes()
63 ResourceValue attr = res.getProjectResource(ResourceType.ATTR, attrName); in BridgeXmlPullAttributes()
/frameworks/rs/driver/
DrsdShaderCache.cpp236 int32_t RsdShaderCache::vtxAttribSlot(const std::string &attrName) const { in vtxAttribSlot()
238 if (attrName == mCurrent->vtxAttrs[ct].name) { in vtxAttribSlot()
DrsdShaderCache.h58 int32_t vtxAttribSlot(const std::string &attrName) const;
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java339 String attrName = name.substring(arrayName.length() + 1); in parseStyleable() local
342 sRMap.put(attrValue, Pair.of(ResourceType.ATTR, attrName)); in parseStyleable()
343 revRAttrMap.put(attrName, attrValue); in parseStyleable()
/frameworks/base/core/java/android/app/
DActivityManager.java1472 public void restoreFromXml(String attrName, String attrValue) { in restoreFromXml() argument
1473 if (ATTR_TASKDESCRIPTIONLABEL.equals(attrName)) { in restoreFromXml()
1475 } else if (ATTR_TASKDESCRIPTIONCOLOR_PRIMARY.equals(attrName)) { in restoreFromXml()
1477 } else if (ATTR_TASKDESCRIPTIONCOLOR_BACKGROUND.equals(attrName)) { in restoreFromXml()
1479 } else if (ATTR_TASKDESCRIPTIONICONFILENAME.equals(attrName)) { in restoreFromXml()
2204 public void restoreFromXml(String attrName, String attrValue) { in restoreFromXml() argument
2205 if (ATTR_TASK_WIDTH.equals(attrName)) { in restoreFromXml()
2207 } else if (ATTR_TASK_HEIGHT.equals(attrName)) { in restoreFromXml()
2209 } else if (ATTR_SCREEN_ORIENTATION.equals(attrName)) { in restoreFromXml()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DLayoutFileParser.java263 bindingTargetBundle.addBinding(escapeQuotes(attr.attrName.getText(), false), in parseExpressions()
468 result.put(escapeQuotes(attr.attrName.getText(), false), in attributeMap()
477 if (escapeQuotes(attr.attrName.getText(), false).equals(name)) { in findAttribute()
/frameworks/data-binding/compilerCommon/
DXMLParser.g447 attribute : attrName=Name '=' attrValue=STRING ; // Our STRING is AttValue in spec
/frameworks/base/core/java/android/animation/
DAnimatorInflater.java226 int attrName = attributeSet.getAttributeNameResource(i); in createStateListAnimatorFromXml() local
227 if (attrName == R.attr.animation) { in createStateListAnimatorFromXml()
233 attrName : -attrName; in createStateListAnimatorFromXml()
/frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/
DXMLParser.java550 public Token attrName; field in XMLParser.AttributeContext
580 ((AttributeContext)_localctx).attrName = match(Name); in attribute()
/frameworks/base/core/java/android/content/
DIntent.java9755 final String attrName = in.getAttributeName(attrNdx); in restoreFromXml() local
9757 if (ATTR_ACTION.equals(attrName)) { in restoreFromXml()
9759 } else if (ATTR_DATA.equals(attrName)) { in restoreFromXml()
9761 } else if (ATTR_TYPE.equals(attrName)) { in restoreFromXml()
9763 } else if (ATTR_COMPONENT.equals(attrName)) { in restoreFromXml()
9765 } else if (ATTR_FLAGS.equals(attrName)) { in restoreFromXml()
9768 Log.e("Intent", "restoreFromXml: unknown attribute=" + attrName); in restoreFromXml()
/frameworks/base/tools/aapt/
DResourceTable.cpp5142 String16 attrPackage, attrType, attrName; in processBundleFormatImpl() local
5145 &attrPackage, &attrType, &attrName, in processBundleFormatImpl()
5210 if (parent->getAttribute(attrNs, attrName) != NULL) { in processBundleFormatImpl()
5213 String8(attrPackage).string(), String8(attrName).string()); in processBundleFormatImpl()
5218 parent->addAttribute(attrNs, attrName, nestedResourceRef); in processBundleFormatImpl()
DResource.cpp756 const String16& attrName) { in fullyQualifyClassName() argument
758 String16("http://schemas.android.com/apk/res/android"), attrName); in fullyQualifyClassName()