Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser_test.cpp49 <aapt:attr name="android:text">
53 </aapt:attr>
70 EXPECT_THAT(el->FindChild(xml::kSchemaAapt, "attr"), IsNull());
100 <aapt:attr name="android:text">
104 </aapt:attr>
106 <aapt:attr name="android:drawable">
108 </aapt:attr>
131 EXPECT_THAT(el->FindChild(xml::kSchemaAapt, "attr"), IsNull());
149 <aapt:attr name="inline_xml">
151 <aapt:attr name="nested_inline_xml">
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp34 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty() local
35 if (attr == nullptr) { in RequiredNameIsNotEmpty()
41 if (attr->value.empty()) { in RequiredNameIsNotEmpty()
50 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName() argument
56 util::GetFullyQualifiedClassName("a", attr->value); in NameIsJavaClassName()
60 : attr->value; in NameIsJavaClassName()
72 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName() local
73 return NameIsJavaClassName(el, attr, diag); in OptionalNameIsJavaClassName()
79 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaClassName() local
80 if (attr == nullptr) { in RequiredNameIsJavaClassName()
[all …]
DXmlReferenceLinker.cpp96 for (xml::Attribute& attr : el->attributes) { in Visit()
103 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit()
106 ResourceNameRef(maybe_package.value().package, ResourceType::kAttr, attr.name)); in Visit()
110 attr.compiled_attribute = in Visit()
113 if (!attr.compiled_attribute) { in Visit()
123 attribute = &attr.compiled_attribute.value().attribute; in Visit()
126 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute); in Visit()
127 if (attr.compiled_value) { in Visit()
129 attr.compiled_value->SetSource(source); in Visit()
130 attr.compiled_value->Accept(&reference_visitor_); in Visit()
[all …]
DXmlCompatVersioner.cpp88 const ResourceId attr_resid = result.attr.compiled_attribute.value().id.value(); in ProcessRule()
92 ProcessRule(src_el, result.attr, attr_version, in ProcessRule()
111 for (const auto& attr : el.attributes) { in ProcessDoc() local
112 if (!attr.compiled_attribute) { in ProcessDoc()
114 out_el->attributes.push_back(CopyAttr(attr, &cloned_doc->string_pool)); in ProcessDoc()
118 const ResourceId attr_resid = attr.compiled_attribute.value().id.value(); in ProcessDoc()
122 ProcessRule(el, attr, attr_version, rule != rules_->end() ? rule->second.get() : nullptr, in ProcessDoc()
169 for (const ReplacementAttr& attr : attrs_) { in Degrade() local
171 DegradeResult{xml::Attribute{xml::kSchemaAndroid, attr.name, src_attr.value, in Degrade()
172 xml::AaptAttribute{attr.attr, attr.id}, in Degrade()
[all …]
DXmlReferenceLinker_test.cpp89 android:attr="\?hello"
121 xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr");
202 <View xmlns:app="http://schemas.android.com/apk/res/android" app:attr="@app:id/id">
203 <View xmlns:app="http://schemas.android.com/apk/res/com.app.test" app:attr="@app:id/id"/>
214 xml::Attribute* xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr");
228 xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr");
240 android:attr="@id/id"/>)");
250 …::Attribute* xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr");
/frameworks/av/media/libmediametrics/
DMediaMetrics.cpp65 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt32() argument
68 if (item != NULL) item->setInt32(attr, value); in mediametrics_setInt32()
71 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt64() argument
74 if (item != NULL) item->setInt64(attr, value); in mediametrics_setInt64()
77 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr, in mediametrics_setDouble() argument
80 if (item != NULL) item->setDouble(attr, value); in mediametrics_setDouble()
83 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr, in mediametrics_setRate() argument
86 if (item != NULL) item->setRate(attr, count, duration); in mediametrics_setRate()
89 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr, in mediametrics_setCString() argument
92 if (item != NULL) item->setCString(attr, value); in mediametrics_setCString()
[all …]
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp68 for (const auto& attr : node->attributes) { in Visit() local
69 if (attr.compiled_value) { in Visit()
70 auto ref = ValueCast<Reference>(attr.compiled_value.get()); in Visit()
129 for (const auto& attr : node->attributes) { in Visit() local
130 if (attr.namespace_uri.empty() && attr.name == "class") { in Visit()
131 if (util::IsJavaClassName(attr.value)) { in Visit()
133 AddClass(node->line_number, attr.value, in Visit()
136 AddClass(node->line_number, attr.value, ""); in Visit()
139 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit()
140 if (is_fragment && util::IsJavaClassName(attr.value)) { in Visit()
[all …]
/frameworks/base/core/java/android/util/
DStateSet.java67 R.attr.state_window_focused, VIEW_STATE_WINDOW_FOCUSED,
68 R.attr.state_selected, VIEW_STATE_SELECTED,
69 R.attr.state_focused, VIEW_STATE_FOCUSED,
70 R.attr.state_enabled, VIEW_STATE_ENABLED,
71 R.attr.state_pressed, VIEW_STATE_PRESSED,
72 R.attr.state_activated, VIEW_STATE_ACTIVATED,
73 R.attr.state_accelerated, VIEW_STATE_ACCELERATED,
74 R.attr.state_hovered, VIEW_STATE_HOVERED,
75 R.attr.state_drag_can_accept, VIEW_STATE_DRAG_CAN_ACCEPT,
76 R.attr.state_drag_hovered, VIEW_STATE_DRAG_HOVERED
[all …]
/frameworks/av/media/libmediametrics/include/media/
DMediaMetrics.h44 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr,
46 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr,
48 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr,
50 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr,
52 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr,
57 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr,
59 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr,
61 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr,
63 void mediametrics_addRate(mediametrics_handle_t handle, attr_t attr,
69 bool mediametrics_getInt32(mediametrics_handle_t handle, attr_t attr,
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp47 for (const auto &attr : mAttributesVector) { in listAudioAttributes() local
48 androidAa.push_back({attr.mVolumeGroup, attr.mStream, attr.mAttributes}); in listAudioAttributes()
65 bool ProductStrategy::matches(const audio_attributes_t attr) const in matches()
68 [&attr](const auto &supportedAttr) { in matches()
69 return AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr); in matches()
74 const audio_attributes_t &attr) const in getStreamTypeForAttributes()
77 [&attr](const auto &supportedAttr) { in getStreamTypeForAttributes()
78 return AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr); }); in getStreamTypeForAttributes()
86 toString(attr).c_str()); in getStreamTypeForAttributes()
100 return std::find_if(begin(mAttributesVector), end(mAttributesVector), [](const auto &attr) { in isDefault() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java46 int attr = a.getIndex(i); in UserAvatarView() local
47 if (attr == R.styleable.UserAvatarView_avatarPadding) { in UserAvatarView()
48 setAvatarPadding(a.getDimension(attr, 0)); in UserAvatarView()
49 } else if (attr == R.styleable.UserAvatarView_frameWidth) { in UserAvatarView()
50 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView()
51 } else if (attr == R.styleable.UserAvatarView_framePadding) { in UserAvatarView()
52 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView()
53 } else if (attr == R.styleable.UserAvatarView_frameColor) { in UserAvatarView()
54 setFrameColor(a.getColorStateList(attr)); in UserAvatarView()
55 } else if (attr == R.styleable.UserAvatarView_badgeDiameter) { in UserAvatarView()
[all …]
DNavigationHandle.java46 public NavigationHandle(Context context, AttributeSet attr) { in NavigationHandle() argument
47 super(context, attr); in NavigationHandle()
52 final int dualToneDarkTheme = Utils.getThemeAttr(context, R.attr.darkIconTheme); in NavigationHandle()
53 final int dualToneLightTheme = Utils.getThemeAttr(context, R.attr.lightIconTheme); in NavigationHandle()
56 mLightColor = Utils.getColorAttrDefaultColor(lightContext, R.attr.homeHandleColor); in NavigationHandle()
57 mDarkColor = Utils.getColorAttrDefaultColor(darkContext, R.attr.homeHandleColor); in NavigationHandle()
/frameworks/base/tests/BiDiTests/
Dnew-attributes.txt1 <public type="attr" name="layoutDirection" />
3 <public type="attr" name="layout_marginStart"/>
4 <public type="attr" name="layout_marginEnd"/>
6 <public type="attr" name="paddingStart"/>
7 <public type="attr" name="paddingEnd"/>
9 <public type="attr" name="textDirection"/>
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDualToneHandler.kt52 Utils.getThemeAttr(context, R.attr.darkIconTheme)) in setColorsFromContext()
54 Utils.getThemeAttr(context, R.attr.lightIconTheme)) in setColorsFromContext()
56 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.singleToneColor), in setColorsFromContext()
57 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.backgroundColor), in setColorsFromContext()
58 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.fillColor)) in setColorsFromContext()
60 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.singleToneColor), in setColorsFromContext()
61 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.backgroundColor), in setColorsFromContext()
62 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.fillColor)) in setColorsFromContext()
/frameworks/base/tools/processors/view_inspector/test/resources/android/processor/view/inspector/InspectionCompanionGeneratorTest/
DSimpleProperties.java.txt83 mBooleanId = propertyMapper.mapBoolean("boolean", R.attr.boolean);
84 mByteId = propertyMapper.mapByte("byte", R.attr.byte);
85 mCharId = propertyMapper.mapChar("char", R.attr.char);
86 mColorId = propertyMapper.mapColor("color", R.attr.color);
87 mDoubleId = propertyMapper.mapDouble("double", R.attr.double);
88 mFloatId = propertyMapper.mapFloat("float", R.attr.float);
89 mGravityId = propertyMapper.mapGravity("gravity", R.attr.gravity);
90 mIntId = propertyMapper.mapInt("int", R.attr.int);
91 mLongId = propertyMapper.mapLong("long", R.attr.long);
92 mObjectId = propertyMapper.mapObject("object", R.attr.object);
[all …]
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h605 t->attr.width = l.getWidth(); in wrapAs()
606 t->attr.height = l.getHeight(); in wrapAs()
607 t->attr.stride = l.getStride(); in wrapAs()
608 t->attr.format = static_cast<PixelFormat>(l.getPixelFormat()); in wrapAs()
609 t->attr.layerCount = l.getLayerCount(); in wrapAs()
610 t->attr.usage = l.getUsage(); in wrapAs()
611 t->attr.id = l.getId(); in wrapAs()
612 t->attr.generationNumber = l.getGenerationNumber(); in wrapAs()
647 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo()
648 ints[2] = static_cast<int32_t>(t.attr.height); in convertTo()
[all …]
/frameworks/base/libs/androidfw/tests/
DAttributeResolution_test.cpp77 {fix_package_id(R::attr::attr_one, 0x02), fix_package_id(R::attr::attr_two, 0x02)}}; in TEST()
107 std::array<uint32_t, 5> attrs{{R::attr::attr_one, R::attr::attr_two, R::attr::attr_three, in TEST_F()
108 R::attr::attr_four, R::attr::attr_empty}}; in TEST_F()
160 std::array<uint32_t, 5> attrs{{R::attr::attr_one, R::attr::attr_two, R::attr::attr_three, in TEST_F()
161 R::attr::attr_four, R::attr::attr_empty}}; in TEST_F()
193 EXPECT_EQ(R::attr::attr_indirect, values_cursor[STYLE_DATA]); in TEST_F()
212 std::array<uint32_t, 6> attrs{{R::attr::attr_one, R::attr::attr_two, R::attr::attr_three, in TEST_F()
213 R::attr::attr_four, R::attr::attr_five, R::attr::attr_empty}}; in TEST_F()
DTheme_test.cpp73 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags)); in TEST_F()
87 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F()
93 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F()
111 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F()
117 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F()
126 cookie = theme->GetAttribute(app::R::attr::attr_three, &value, &flags); in TEST_F()
158 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F()
165 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags); in TEST_F()
172 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags); in TEST_F()
192 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java79 Bundle attr = new Bundle(ATTRIBUTES); in scoredNetworksWithDifferentSizedAttributeBundle_notEqual() local
80 attr.putBoolean(ScoredNetwork.ATTRIBUTES_KEY_HAS_CAPTIVE_PORTAL, true); in scoredNetworksWithDifferentSizedAttributeBundle_notEqual()
82 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); in scoredNetworksWithDifferentSizedAttributeBundle_notEqual()
90 Bundle attr = new Bundle(); in scoredNetworksWithDifferentAttributeValues_notEqual() local
91 attr.putInt(ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET, Integer.MIN_VALUE); in scoredNetworksWithDifferentAttributeValues_notEqual()
93 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); in scoredNetworksWithDifferentAttributeValues_notEqual()
137 Bundle attr = new Bundle(); in calculateRankingScoreShouldNotResultInIntegerOverflow() local
138 attr.putInt(ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET, Integer.MAX_VALUE); in calculateRankingScoreShouldNotResultInIntegerOverflow()
140 = new ScoredNetwork(KEY, CURVE, false /* meteredHint */, attr); in calculateRankingScoreShouldNotResultInIntegerOverflow()
146 Bundle attr = new Bundle(); in calculateRankingScoreShouldNotResultInIntegerUnderflow() local
[all …]
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp102 for (const auto& attr : element->attributes) { in GetLabel() local
103 if (attr.name == "label") { in GetLabel()
104 label = attr.value; in GetLabel()
496 for (const auto& attr : root_element->attributes) { in ArtifactTagHandler() local
497 if (attr.name == "name") { in ArtifactTagHandler()
498 artifact.name = attr.value; in ArtifactTagHandler()
499 } else if (attr.name == "abi-group") { in ArtifactTagHandler()
500 artifact.abi_group = {attr.value}; in ArtifactTagHandler()
501 } else if (attr.name == "screen-density-group") { in ArtifactTagHandler()
502 artifact.screen_density_group = {attr.value}; in ArtifactTagHandler()
[all …]
/frameworks/wilhelm/src/
Dlocks.h24 extern void object_unlock_exclusive_attributes_(IObject *thiz, unsigned attr,
30 extern void object_unlock_exclusive_attributes(IObject *thiz, unsigned attr);
39 #define object_unlock_exclusive_attributes(thiz, attr) \ argument
40 object_unlock_exclusive_attributes_((thiz), (attr), __FILE__, __LINE__)
55 #define interface_unlock_exclusive_attributes(thiz, attr) \ argument
56 object_unlock_exclusive_attributes(InterfaceToIObject(thiz), (attr))
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp228 Attribute attr; in CopyAttributes() local
232 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
237 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
247 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
257 attr.compiled_value = ResourceUtils::ParseBinaryResValue( in CopyAttributes()
262 el->attributes.push_back(std::move(attr)); in CopyAttributes()
378 for (const xml::Attribute& attr : src.attributes) { in Clone() local
380 cloned_attr.name = attr.name; in Clone()
381 cloned_attr.namespace_uri = attr.namespace_uri; in Clone()
[all …]
/frameworks/base/tools/aapt2/
DDebug.cpp57 void Visit(const Attribute* attr) override { in Visit() argument
59 printer_->Print(attr->MaskString()); in Visit()
60 if (!attr->symbols.empty()) { in Visit()
61 printer_->Print(StringPrintf(" size=%zd", attr->symbols.size())); in Visit()
134 void Visit(const Attribute* attr) override { in Visit() argument
136 if (attr->type_mask & kMask) { in Visit()
137 for (const auto& symbol : attr->symbols) { in Visit()
214 for (const auto& attr : styleable->entries) { in Visit() local
215 if (attr.name) { in Visit()
216 const ResourceName& name = attr.name.value(); in Visit()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DAttributeFinder.h26 static inline uint32_t get_package(uint32_t attr) { return attr >> 24; } in get_package() argument
60 Iterator Find(uint32_t attr);
147 Iterator BackTrackingAttributeFinder<Derived, Iterator>::Find(uint32_t attr) { in Find() argument
164 const uint32_t needle_package_id = get_package(attr); in Find()
173 if (needle_package_id == haystack_package_id && attr < current_attr_) { in Find()
197 if (attr == prev_attr) { in Find()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DFillContentLayoutTest.java40 .addAttribute(android.R.attr.minWidth, "123dp") in testMeasureMinSize()
41 .addAttribute(android.R.attr.minHeight, "123dp") in testMeasureMinSize()
58 .addAttribute(android.R.attr.maxWidth, "123dp") in testMeasureChildIsSmallerThanMaxSize()
59 .addAttribute(android.R.attr.maxHeight, "123dp") in testMeasureChildIsSmallerThanMaxSize()
77 .addAttribute(android.R.attr.maxWidth, "123dp") in testMeasureChildIsSmallerThanParent()
78 .addAttribute(android.R.attr.maxHeight, "123dp") in testMeasureChildIsSmallerThanParent()

12345678910>>...19