Searched defs:attr (Results 1 - 25 of 100) sorted by relevance

1234

/frameworks/av/include/media/
H A DAudioPolicyHelper.h23 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) argument
26 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) {
29 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) {
34 switch (attr->usage) {
71 audio_attributes_t *attr) {
72 memset(attr, 0, sizeof(audio_attributes_t));
77 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC;
78 attr->usage = AUDIO_USAGE_MEDIA;
81 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH;
82 attr
70 stream_type_to_audio_attributes(audio_stream_type_t streamType, audio_attributes_t *attr) argument
[all...]
/frameworks/av/media/libaudioclient/include/media/
H A DAudioPolicyHelper.h23 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) argument
26 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) {
29 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) {
34 switch (attr->usage) {
71 audio_attributes_t *attr) {
72 memset(attr, 0, sizeof(audio_attributes_t));
77 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC;
78 attr->usage = AUDIO_USAGE_MEDIA;
81 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH;
82 attr
70 stream_type_to_audio_attributes(audio_stream_type_t streamType, audio_attributes_t *attr) argument
[all...]
/frameworks/base/libs/androidfw/tests/data/app/
H A DR.h27 struct attr { struct in struct:com::android::app::R
/frameworks/base/libs/androidfw/tests/data/system/
H A DR.h25 struct attr { struct in struct:android::R
/frameworks/base/libs/androidfw/tests/data/lib_one/
H A DR.h27 struct attr { struct in struct:com::android::lib_one::R
/frameworks/base/libs/androidfw/tests/data/libclient/
H A DR.h27 struct attr { struct in struct:com::android::libclient::R
/frameworks/base/tools/aapt/
H A DAaptXml.h38 const char* attr, android::String8* outError = NULL);
54 const char* attr, int32_t defValue = -1, android::String8* outError = NULL);
62 const char* attr, android::String8* outError) {
63 return getIntegerAttribute(tree, ns, attr, -1, outError);
61 getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, const char* attr, android::String8* outError) argument
H A DAaptXml.cpp80 const char* attr, String8* outError) {
81 ssize_t idx = tree.indexOfAttribute(ns, attr);
124 const char* attr, int32_t defValue, String8* outError) {
125 ssize_t idx = tree.indexOfAttribute(ns, attr);
79 getAttribute(const ResXMLTree& tree, const char* ns, const char* attr, String8* outError) argument
123 getIntegerAttribute(const ResXMLTree& tree, const char* ns, const char* attr, int32_t defValue, String8* outError) argument
/frameworks/base/tools/aapt2/
H A DResourceTable_test.cpp55 test::ParseNameOrDie("android:attr/id"), ConfigDescription{}, "",
59 ASSERT_NE(nullptr, test::GetValue<Id>(&table, "android:attr/id"));
70 test::ParseNameOrDie("android:attr/layout_width"), config, "",
75 test::ParseNameOrDie("android:attr/id"), config, "",
91 ASSERT_NE(nullptr, test::GetValue<Id>(&table, "android:attr/layout_width"));
92 ASSERT_NE(nullptr, test::GetValue<Id>(&table, "android:attr/id"));
102 test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "",
105 Attribute* attr = test::GetValue<Attribute>(&table, "android:attr/foo"); local
106 ASSERT_NE(nullptr, attr);
[all...]
H A DResourceUtils_test.cpp128 EXPECT_TRUE(ResourceUtils::IsAttributeReference("?attr/foo"));
129 EXPECT_TRUE(ResourceUtils::IsAttributeReference("?android:attr/foo"));
136 EXPECT_FALSE(ResourceUtils::IsAttributeReference("?android:attr/"));
137 EXPECT_FALSE(ResourceUtils::IsAttributeReference("?:attr/"));
138 EXPECT_FALSE(ResourceUtils::IsAttributeReference("?:attr/foo"));
141 EXPECT_FALSE(ResourceUtils::IsAttributeReference("?attr/"));
193 std::unique_ptr<Attribute> attr = local
201 ResourceUtils::TryParseFlagSymbol(attr.get(), "");
/frameworks/base/tools/aapt2/link/
H A DManifestFixer_test.cpp37 "android:attr/package", ResourceId(0x01010000),
42 "android:attr/minSdkVersion", ResourceId(0x01010001),
48 "android:attr/targetSdkVersion", ResourceId(0x01010002),
122 xml::Attribute* attr;
128 attr = el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion");
129 ASSERT_NE(nullptr, attr);
130 EXPECT_EQ("7", attr->value);
131 attr = el->FindAttribute(xml::kSchemaAndroid, "targetSdkVersion");
132 ASSERT_NE(nullptr, attr);
133 EXPECT_EQ("21", attr
351 xml::Attribute* attr = el->FindAttribute("", "coreApp"); local
[all...]
H A DManifestFixer.cpp33 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, argument
39 util::GetFullyQualifiedClassName("a", attr->value);
43 : attr->value;
55 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) {
56 return NameIsJavaClassName(el, attr, diag);
62 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) {
63 return NameIsJavaClassName(el, attr, diag);
71 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) {
72 return util::IsJavaPackageName(attr->value);
79 static xml::XmlNodeAction::ActionFuncWithDiag RequiredAndroidAttribute(const std::string& attr) { argument
[all...]
H A DXmlCompatVersioner.h37 xml::Attribute attr; member in struct:aapt::DegradeResult
81 Attribute attr; member in struct:aapt::ReplacementAttr
H A DXmlCompatVersioner_test.cpp28 struct attr { struct in struct:aapt::R
50 .AddPublicSymbol("android:attr/paddingLeft", R::attr::paddingLeft,
52 .AddPublicSymbol("android:attr/paddingRight", R::attr::paddingRight,
54 .AddPublicSymbol("android:attr/progressBarPadding", R::attr::progressBarPadding,
56 .AddPublicSymbol("android:attr/paddingStart", R::attr::paddingStart,
58 .AddPublicSymbol("android:attr/paddingHorizonta
[all...]
/frameworks/compile/mclinker/include/mcld/MC/
H A DInputFactory.h50 /// attr - the last touched attribute.
51 const AttributeProxy& attr() const { return *m_pLast; } function in class:mcld::InputFactory
52 AttributeProxy& attr() { return *m_pLast; } function in class:mcld::InputFactory
/frameworks/av/media/libstagefright/tests/
H A DDummyRecorder.cpp43 pthread_attr_t attr; local
44 pthread_attr_init(&attr);
45 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
46 int err = pthread_create(&mThread, &attr, threadWrapper, this);
47 pthread_attr_destroy(&attr);
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DR$attr.class ... android.layoutlib.test.myapplication.R$attr extends java.lang.Object { public static final int ...
/frameworks/base/libs/androidfw/tests/data/basic/
H A DR.h27 struct attr { struct in struct:com::android::basic::R
/frameworks/base/libs/androidfw/tests/data/styles/
H A DR.h27 struct attr { struct in struct:com::android::app::R
/frameworks/base/tools/aapt2/java/
H A DManifestClassGenerator.cpp67 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); local
68 if (!attr) {
75 diag, source.WithLine(el->line_number), attr->value);
81 util::make_unique<StringMember>(result.value(), attr->value);
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTestUtils.java116 public static int getThemeAttrColor(Context context, final int attr) { argument
119 a = context.obtainStyledAttributes(new int[]{attr});
/frameworks/base/libs/androidfw/include/androidfw/
H A DAttributeFinder.h26 static inline uint32_t get_package(uint32_t attr) { return attr >> 24; } argument
60 Iterator Find(uint32_t attr);
146 Iterator BackTrackingAttributeFinder<Derived, Iterator>::Find(uint32_t attr) { argument
163 const uint32_t needle_package_id = get_package(attr);
172 if (needle_package_id == haystack_package_id && attr < current_attr_) {
196 if (attr == prev_attr) {
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
H A DMDNSUtils.java76 * @param attr The attribute
81 private static boolean containsVendor(@NonNull String attr, @NonNull Set<String> vendorNames) { argument
83 if (containsString(attr.toLowerCase(), name.toLowerCase())) {
/frameworks/compile/mclinker/unittests/
H A DLinkerTest.cpp411 LDSection* attr = builder.CreateELFHeader( local
414 SectionData* attr_data = builder.CreateSectionData(*attr);
472 attr);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DThemeUtils.java29 static final int[] DISABLED_STATE_SET = new int[]{-android.R.attr.state_enabled};
30 static final int[] FOCUSED_STATE_SET = new int[]{android.R.attr.state_focused};
31 static final int[] ACTIVATED_STATE_SET = new int[]{android.R.attr.state_activated};
32 static final int[] PRESSED_STATE_SET = new int[]{android.R.attr.state_pressed};
33 static final int[] CHECKED_STATE_SET = new int[]{android.R.attr.state_checked};
34 static final int[] SELECTED_STATE_SET = new int[]{android.R.attr.state_selected};
36 -android.R.attr.state_pressed, -android.R.attr.state_focused};
61 public static int getThemeAttrColor(Context context, int attr) { argument
62 TEMP_ARRAY[0] = attr;
71 getThemeAttrColorStateList(Context context, int attr) argument
81 getDisabledThemeAttrColor(Context context, int attr) argument
107 getThemeAttrColor(Context context, int attr, float alpha) argument
[all...]

Completed in 511 milliseconds

1234