Home
last modified time | relevance | path

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

12345678910>>...18

/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.cpp87 for (xml::Attribute& attr : el->attributes) { in Visit()
94 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit()
97 ResourceNameRef(maybe_package.value().package, ResourceType::kAttr, attr.name)); in Visit()
101 attr.compiled_attribute = in Visit()
104 if (!attr.compiled_attribute) { in Visit()
114 attribute = &attr.compiled_attribute.value().attribute; in Visit()
117 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute); in Visit()
118 if (attr.compiled_value) { in Visit()
120 attr.compiled_value->SetSource(source); in Visit()
121 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.cpp87 android:attr="\?hello"
119 xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr");
200 <View xmlns:app="http://schemas.android.com/apk/res/android" app:attr="@app:id/id">
201 <View xmlns:app="http://schemas.android.com/apk/res/com.app.test" app:attr="@app:id/id"/>
212 xml::Attribute* xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr");
226 xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr");
238 android:attr="@id/id"/>)");
248 …::Attribute* xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr");
/frameworks/av/media/libmediametrics/
DMediaMetrics.cpp62 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt32() argument
65 if (item != NULL) item->setInt32(attr, value); in mediametrics_setInt32()
68 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt64() argument
71 if (item != NULL) item->setInt64(attr, value); in mediametrics_setInt64()
74 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr, in mediametrics_setDouble() argument
77 if (item != NULL) item->setDouble(attr, value); in mediametrics_setDouble()
80 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr, in mediametrics_setRate() argument
83 if (item != NULL) item->setRate(attr, count, duration); in mediametrics_setRate()
86 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr, in mediametrics_setCString() argument
89 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()
124 for (const auto& attr : node->attributes) { in Visit() local
125 if (attr.namespace_uri.empty() && attr.name == "class") { in Visit()
126 if (util::IsJavaClassName(attr.value)) { in Visit()
128 AddClass(node->line_number, attr.value, in Visit()
131 AddClass(node->line_number, attr.value, ""); in Visit()
134 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit()
135 if (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/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/av/include/media/
DMediaMetrics.h41 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr,
43 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr,
45 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr,
47 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr,
49 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr,
54 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr,
56 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr,
58 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr,
60 void mediametrics_addRate(mediametrics_handle_t handle, attr_t attr,
66 bool mediametrics_getInt32(mediametrics_handle_t handle, attr_t attr,
[all …]
/frameworks/av/media/libmediametrics/include/
DMediaMetrics.h41 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr,
43 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr,
45 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr,
47 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr,
49 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr,
54 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr,
56 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr,
58 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr,
60 void mediametrics_addRate(mediametrics_handle_t handle, attr_t attr,
66 bool mediametrics_getInt32(mediametrics_handle_t handle, attr_t attr,
[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.h606 t->attr.width = l.getWidth(); in wrapAs()
607 t->attr.height = l.getHeight(); in wrapAs()
608 t->attr.stride = l.getStride(); in wrapAs()
609 t->attr.format = static_cast<PixelFormat>(l.getPixelFormat()); in wrapAs()
610 t->attr.layerCount = l.getLayerCount(); in wrapAs()
611 t->attr.usage = l.getUsage(); in wrapAs()
612 t->attr.id = l.getId(); in wrapAs()
613 t->attr.generationNumber = l.getGenerationNumber(); in wrapAs()
648 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo()
649 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/base/tools/aapt2/
DDebug.cpp51 void Visit(const Attribute* attr) override { in Visit() argument
53 printer_->Print(attr->MaskString()); in Visit()
54 if (!attr->symbols.empty()) { in Visit()
55 printer_->Print(StringPrintf(" size=%zd", attr->symbols.size())); in Visit()
128 void Visit(const Attribute* attr) override { in Visit() argument
130 if (attr->type_mask & kMask) { in Visit()
131 for (const auto& symbol : attr->symbols) { in Visit()
210 for (const auto& attr : styleable->entries) { in Visit() local
211 if (attr.name) { in Visit()
212 const ResourceName& name = attr.name.value(); in Visit()
[all …]
/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()
380 for (const xml::Attribute& attr : src.attributes) { in Clone() local
382 cloned_attr.name = attr.name; in Clone()
383 cloned_attr.namespace_uri = attr.namespace_uri; in Clone()
[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/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()

12345678910>>...18