/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
D | AndroidResources.java | 23 android.R.attr.name, android.R.attr.tint, android.R.attr.height, 24 android.R.attr.width, android.R.attr.alpha, android.R.attr.autoMirrored, 25 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight 37 android.R.attr.name, android.R.attr.pivotX, android.R.attr.pivotY, 38 android.R.attr.scaleX, android.R.attr.scaleY, android.R.attr.rotation, 39 android.R.attr.translateX, android.R.attr.translateY 50 android.R.attr.name, android.R.attr.fillColor, android.R.attr.pathData, 51 android.R.attr.strokeColor, android.R.attr.strokeWidth, android.R.attr.trimPathStart, 52 android.R.attr.trimPathEnd, android.R.attr.trimPathOffset, android.R.attr.strokeLineCap, 53 android.R.attr.strokeLineJoin, android.R.attr.strokeMiterLimit, [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioPolicyHelper.h | 23 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) in audio_attributes_to_stream_type() argument 26 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) { in audio_attributes_to_stream_type() 29 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) { in audio_attributes_to_stream_type() 34 switch (attr->usage) { in audio_attributes_to_stream_type() 71 audio_attributes_t *attr) { in stream_type_to_audio_attributes() argument 72 memset(attr, 0, sizeof(audio_attributes_t)); in stream_type_to_audio_attributes() 77 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC; in stream_type_to_audio_attributes() 78 attr->usage = AUDIO_USAGE_MEDIA; in stream_type_to_audio_attributes() 81 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH; in stream_type_to_audio_attributes() 82 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes() [all …]
|
/frameworks/av/include/media/ |
D | AudioPolicyHelper.h | 23 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) in audio_attributes_to_stream_type() argument 26 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) { in audio_attributes_to_stream_type() 29 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) { in audio_attributes_to_stream_type() 34 switch (attr->usage) { in audio_attributes_to_stream_type() 71 audio_attributes_t *attr) { in stream_type_to_audio_attributes() argument 72 memset(attr, 0, sizeof(audio_attributes_t)); in stream_type_to_audio_attributes() 77 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC; in stream_type_to_audio_attributes() 78 attr->usage = AUDIO_USAGE_MEDIA; in stream_type_to_audio_attributes() 81 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH; in stream_type_to_audio_attributes() 82 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes() [all …]
|
/frameworks/support/transition/src/android/support/transition/ |
D | Styleable.java | 30 android.R.attr.targetClass, 31 android.R.attr.targetId, 32 android.R.attr.excludeId, 33 android.R.attr.excludeClass, 34 android.R.attr.targetName, 35 android.R.attr.excludeName, 55 android.R.attr.fromScene, 56 android.R.attr.toScene, 57 android.R.attr.transition, 71 android.R.attr.interpolator, [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.cpp | 33 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName() argument 39 util::GetFullyQualifiedClassName("a", attr->value); in NameIsJavaClassName() 43 : attr->value; in NameIsJavaClassName() 55 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName() local 56 return NameIsJavaClassName(el, attr, diag); in OptionalNameIsJavaClassName() 62 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in RequiredNameIsJavaClassName() local 63 return NameIsJavaClassName(el, attr, diag); in RequiredNameIsJavaClassName() 71 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in RequiredNameIsJavaPackage() local 72 return util::IsJavaPackageName(attr->value); in RequiredNameIsJavaPackage() 79 static xml::XmlNodeAction::ActionFuncWithDiag RequiredAndroidAttribute(const std::string& attr) { in RequiredAndroidAttribute() argument [all …]
|
D | XmlReferenceLinker.cpp | 90 for (xml::Attribute& attr : el->attributes) { in Visit() 98 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit() 106 Reference attr_ref(ResourceNameRef(attribute_package, ResourceType::kAttr, attr.name)); in Visit() 110 attr.compiled_attribute = in Visit() 113 if (!attr.compiled_attribute) { in Visit() 116 << attr.name << "' " << err_str); in Visit() 121 attribute = &attr.compiled_attribute.value().attribute; in Visit() 124 attr.compiled_value = ResourceUtils::TryParseItemForAttribute(attr.value, attribute); in Visit() 125 if (attr.compiled_value) { in Visit() 127 attr.compiled_value->SetSource(source); in Visit() [all …]
|
D | XmlCompatVersioner.cpp | 88 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 …]
|
D | XmlReferenceLinker_test.cpp | 84 android:attr="\?hello" 122 xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr"); 209 app:attr="@app:id/id"> 211 app:attr="@app:id/id"/> 222 xml::Attribute* xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "attr"); 238 xml_attr = view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr"); 252 android:attr="@id/id"/>)EOF"); 263 view_el->FindAttribute(xml::BuildPackageNamespace("com.app.test"), "attr");
|
D | XmlCompatVersioner_test.cpp | 28 struct attr { struct 50 .AddPublicSymbol("android:attr/paddingLeft", R::attr::paddingLeft, in SetUp() 52 .AddPublicSymbol("android:attr/paddingRight", R::attr::paddingRight, in SetUp() 54 .AddPublicSymbol("android:attr/progressBarPadding", R::attr::progressBarPadding, in SetUp() 56 .AddPublicSymbol("android:attr/paddingStart", R::attr::paddingStart, in SetUp() 58 .AddPublicSymbol("android:attr/paddingHorizontal", R::attr::paddingHorizontal, in SetUp()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ThemeUtils.java | 29 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) { in getThemeAttrColor() argument 62 TEMP_ARRAY[0] = attr; in getThemeAttrColor() 71 public static ColorStateList getThemeAttrColorStateList(Context context, int attr) { in getThemeAttrColorStateList() argument [all …]
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 67 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/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 93 for (const auto& attr : node->attributes) { in Visit() local 94 if (check_class && attr.namespace_uri.empty() && attr.name == "class" && in Visit() 95 util::IsJavaClassName(attr.value)) { in Visit() 96 AddClass(node->line_number, attr.value); in Visit() 97 } else if (check_name && attr.namespace_uri == xml::kSchemaAndroid && in Visit() 98 attr.name == "name" && util::IsJavaClassName(attr.value)) { in Visit() 99 AddClass(node->line_number, attr.value); in Visit() 100 } else if (attr.namespace_uri == xml::kSchemaAndroid && in Visit() 101 attr.name == "onClick") { in Visit() 102 AddMethod(node->line_number, attr.value); in Visit() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | InlineXmlFormatParser_test.cpp | 42 <aapt:attr name="android:text"> 46 </aapt:attr> 63 EXPECT_EQ(nullptr, el->FindChild(xml::kSchemaAapt, "attr")); 93 <aapt:attr name="android:text"> 97 </aapt:attr> 99 <aapt:attr name="android:drawable"> 101 </aapt:attr> 126 EXPECT_EQ(nullptr, el->FindChild(xml::kSchemaAapt, "attr"));
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 74 int mediaRouteThemeResId = getThemeResource(context, R.attr.mediaRouteTheme); in createThemedContext() 82 public static int getThemeResource(Context context, int attr) { in getThemeResource() argument 84 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource() 89 return context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, value, true) in getDisabledAlpha() 95 android.support.v7.appcompat.R.attr.colorPrimary); in getControllerColor() 105 android.support.v7.appcompat.R.attr.colorPrimary); in getButtonTextColor() 106 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); in getButtonTextColor() 110 return getThemeColor(context, 0, android.support.v7.appcompat.R.attr.colorAccent); in getButtonTextColor() 118 android.support.v7.appcompat.R.attr.colorPrimary); in setMediaControlsBackgroundColor() 120 android.support.v7.appcompat.R.attr.colorPrimaryDark); in setMediaControlsBackgroundColor() [all …]
|
/frameworks/base/tests/BiDiTests/ |
D | new-attributes.txt | 1 <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/av/include/media/omx/1.0/ |
D | Conversion.h | 559 t->attr.width = l.getWidth(); in wrapAs() 560 t->attr.height = l.getHeight(); in wrapAs() 561 t->attr.stride = l.getStride(); in wrapAs() 562 t->attr.format = static_cast<PixelFormat>(l.getPixelFormat()); in wrapAs() 563 t->attr.layerCount = l.getLayerCount(); in wrapAs() 564 t->attr.usage = l.getUsage(); in wrapAs() 565 t->attr.id = l.getId(); in wrapAs() 566 t->attr.generationNumber = l.getGenerationNumber(); in wrapAs() 591 ints[1] = static_cast<int32_t>(t.attr.width); in convertTo() 592 ints[2] = static_cast<int32_t>(t.attr.height); in convertTo() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_test.cpp | 72 std::array<uint32_t, 5> attrs{{R::attr::attr_one, R::attr::attr_two, R::attr::attr_three, in TEST_F() 73 R::attr::attr_four, R::attr::attr_empty}}; in TEST_F() 125 std::array<uint32_t, 5> attrs{{R::attr::attr_one, R::attr::attr_two, R::attr::attr_three, in TEST_F() 126 R::attr::attr_four, R::attr::attr_empty}}; in TEST_F() 158 EXPECT_EQ(R::attr::attr_indirect, values_cursor[STYLE_DATA]); in TEST_F() 177 std::array<uint32_t, 6> attrs{{R::attr::attr_one, R::attr::attr_two, R::attr::attr_three, in TEST_F() 178 R::attr::attr_four, R::attr::attr_five, R::attr::attr_empty}}; in TEST_F()
|
D | Theme_test.cpp | 66 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags)); in TEST_F() 80 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 86 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 104 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 110 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F() 119 cookie = theme->GetAttribute(app::R::attr::attr_three, &value, &flags); in TEST_F() 139 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() 146 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags); in TEST_F() 153 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags); in TEST_F() 173 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/ |
D | Debug.cpp | 40 void Visit(Attribute* attr) override { in Visit() argument 42 attr->PrintMask(&std::cout); in Visit() 45 if (attr->type_mask & kMask) { in Visit() 46 for (const auto& symbol : attr->symbols) { in Visit() 97 for (const auto& attr : styleable->entries) { in Visit() local 99 if (attr.name) { in Visit() 100 const ResourceName& name = attr.name.value(); in Visit() 107 if (attr.id) { in Visit() 108 std::cout << "(" << attr.id.value() << ")"; in Visit() 272 for (const xml::Attribute& attr : el->attributes) { in Visit() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UserAvatarView.java | 47 int attr = a.getIndex(i); in UserAvatarView() local 48 switch (attr) { in UserAvatarView() 50 setAvatarPadding(a.getDimension(attr, 0)); in UserAvatarView() 53 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView() 56 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView() 59 setFrameColor(a.getColorStateList(attr)); in UserAvatarView() 62 setBadgeDiameter(a.getDimension(attr, 0)); in UserAvatarView() 65 setBadgeMargin(a.getDimension(attr, 0)); in UserAvatarView()
|
/frameworks/av/media/libstagefright/tests/ |
D | DummyRecorder.cpp | 43 pthread_attr_t attr; in start() local 44 pthread_attr_init(&attr); in start() 45 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); in start() 46 int err = pthread_create(&mThread, &attr, threadWrapper, this); in start() 47 pthread_attr_destroy(&attr); in start()
|
/frameworks/wilhelm/src/ |
D | locks.h | 24 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/ |
D | AttributeFinder.h | 26 static inline uint32_t get_package(uint32_t attr) { return attr >> 24; } in get_package() argument 60 Iterator Find(uint32_t attr); 146 Iterator BackTrackingAttributeFinder<Derived, Iterator>::Find(uint32_t attr) { in Find() argument 163 const uint32_t needle_package_id = get_package(attr); in Find() 172 if (needle_package_id == haystack_package_id && attr < current_attr_) { in Find() 196 if (attr == prev_attr) { in Find()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util.cpp | 194 static Maybe<std::string> ExtractCompiledString(xml::Attribute* attr, std::string* out_error) { in ExtractCompiledString() argument 195 if (attr->compiled_value != nullptr) { in ExtractCompiledString() 196 String* compiled_str = ValueCast<String>(attr->compiled_value.get()); in ExtractCompiledString() 210 if (!attr->value.empty()) { in ExtractCompiledString() 211 return attr->value; in ExtractCompiledString() 217 static Maybe<uint32_t> ExtractCompiledInt(xml::Attribute* attr, std::string* out_error) { in ExtractCompiledInt() argument 218 if (attr->compiled_value != nullptr) { in ExtractCompiledInt() 219 BinaryPrimitive* compiled_prim = ValueCast<BinaryPrimitive>(attr->compiled_value.get()); in ExtractCompiledInt() 231 Maybe<uint32_t> integer = ResourceUtils::ParseInt(attr->value); in ExtractCompiledInt() 236 error_msg << "'" << attr->value << "' is not a valid integer"; in ExtractCompiledInt() [all …]
|
/frameworks/native/opengl/tests/configdump/ |
D | configdump.cpp | 82 for (int attr = 0 ; attr<sizeof(attributes)/sizeof(Attribute) ; attr++) { in main() local 84 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); in main() 85 printf("\t%-32s: %10d (0x%08x)\n", attributes[attr].name, value, value); in main()
|