/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
D | AndroidResources.java | 21 android.R.attr.name, android.R.attr.tint, android.R.attr.height, 22 android.R.attr.width, android.R.attr.alpha, android.R.attr.autoMirrored, 23 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight 35 android.R.attr.name, android.R.attr.pivotX, android.R.attr.pivotY, 36 android.R.attr.scaleX, android.R.attr.scaleY, android.R.attr.rotation, 37 android.R.attr.translateX, android.R.attr.translateY 48 android.R.attr.name, android.R.attr.fillColor, android.R.attr.pathData, 49 android.R.attr.strokeColor, android.R.attr.strokeWidth, android.R.attr.trimPathStart, 50 android.R.attr.trimPathEnd, android.R.attr.trimPathOffset, android.R.attr.strokeLineCap, 51 android.R.attr.strokeLineJoin, android.R.attr.strokeMiterLimit, [all …]
|
/frameworks/av/include/media/ |
D | AudioPolicyHelper.h | 21 static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) in audio_attributes_to_stream_type() argument 24 if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) { in audio_attributes_to_stream_type() 27 if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) { in audio_attributes_to_stream_type() 32 switch (attr->usage) { in audio_attributes_to_stream_type() 65 audio_attributes_t *attr) { in stream_type_to_audio_attributes() argument 66 memset(attr, 0, sizeof(audio_attributes_t)); in stream_type_to_audio_attributes() 71 attr->content_type = AUDIO_CONTENT_TYPE_MUSIC; in stream_type_to_audio_attributes() 72 attr->usage = AUDIO_USAGE_MEDIA; in stream_type_to_audio_attributes() 75 attr->content_type = AUDIO_CONTENT_TYPE_SPEECH; in stream_type_to_audio_attributes() 76 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes() [all …]
|
/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/docs/html/ndk/reference/ |
D | dynsections.js | 3 var base = $(linkObj).attr('id'); 7 var src=$(trigger).attr('src'); 12 $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); 17 $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); 34 i.attr('src','ftv2folderopen.png'); 35 a.attr('src','ftv2mnode.png'); 38 i.attr('src','ftv2folderclosed.png'); 39 a.attr('src','ftv2pnode.png'); 65 currentRowImages.filter("[id^=arr]").attr('src', 'ftv2pnode.png'); 66 currentRowImages.filter("[id^=img]").attr('src', 'ftv2folderclosed.png'); [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 87 for (const auto& attr : node->attributes) { in visit() local 88 if (checkClass && attr.namespaceUri.empty() && attr.name == u"class" && in visit() 89 util::isJavaClassName(attr.value)) { in visit() 90 addClass(node->lineNumber, attr.value); in visit() 91 } else if (checkName && attr.namespaceUri == xml::kSchemaAndroid && in visit() 92 attr.name == u"name" && util::isJavaClassName(attr.value)) { in visit() 93 addClass(node->lineNumber, attr.value); in visit() 94 } else if (attr.namespaceUri == xml::kSchemaAndroid && attr.name == u"onClick") { in visit() 95 addMethod(node->lineNumber, attr.value); in visit() 114 xml::Attribute* attr = node->findAttribute(xml::kSchemaAndroid, u"fragment"); in visit() local [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | XmlReferenceLinker.cpp | 79 for (xml::Attribute& attr : el->attributes) { in visit() 81 xml::extractPackageFromNamespace(attr.namespaceUri); in visit() 90 Reference attrRef(ResourceNameRef(package, ResourceType::kAttr, attr.name)); in visit() 94 attr.compiledAttribute = ReferenceLinker::compileXmlAttribute( in visit() 98 if (attr.compiledAttribute) { in visit() 99 if (attr.compiledAttribute.value().id) { in visit() 102 attr.compiledAttribute.value().id.value()); in visit() 108 const Attribute* attribute = &attr.compiledAttribute.value().attribute; in visit() 109 attr.compiledValue = ResourceUtils::parseItemForAttribute(attr.value, in visit() 111 if (!attr.compiledValue && in visit() [all …]
|
D | ManifestFixer.cpp | 28 static bool nameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in nameIsJavaClassName() argument 30 std::u16string className = attr->value; in nameIsJavaClassName() 34 className += attr->value; in nameIsJavaClassName() 55 if (xml::Attribute* attr = el->findAttribute(xml::kSchemaAndroid, u"name")) { in optionalNameIsJavaClassName() local 56 return nameIsJavaClassName(el, attr, diag); in optionalNameIsJavaClassName() 62 if (xml::Attribute* attr = el->findAttribute(xml::kSchemaAndroid, u"name")) { in requiredNameIsJavaClassName() local 63 return nameIsJavaClassName(el, attr, diag); in requiredNameIsJavaClassName() 71 xml::Attribute* attr = el->findAttribute({}, u"package"); in verifyManifest() local 72 if (!attr) { in verifyManifest() 75 } else if (ResourceUtils::isReference(attr->value)) { in verifyManifest() [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/support/design/lollipop/android/support/design/widget/ |
D | ViewUtilsLollipop.java | 31 private static final int[] STATE_LIST_ANIM_ATTRS = new int[] {android.R.attr.stateListAnimator}; 61 sla.addState(new int[]{android.R.attr.enabled, R.attr.state_collapsible, in setDefaultAppBarLayoutStateListAnimator() 62 R.attr.state_collapsed}, in setDefaultAppBarLayoutStateListAnimator() 66 sla.addState(new int[]{android.R.attr.enabled, R.attr.state_collapsible, in setDefaultAppBarLayoutStateListAnimator() 67 -R.attr.state_collapsed}, in setDefaultAppBarLayoutStateListAnimator() 71 sla.addState(new int[]{android.R.attr.enabled, -R.attr.state_collapsible}, in setDefaultAppBarLayoutStateListAnimator()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 75 public static int getThemeResource(Context context, int attr) { in getThemeResource() argument 77 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource() 82 return context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, value, true) in getDisabledAlpha() 88 android.support.v7.appcompat.R.attr.colorPrimary); in getControllerColor() 98 android.support.v7.appcompat.R.attr.colorPrimary); in getButtonTextColor() 99 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); in getButtonTextColor() 103 return getThemeColor(context, 0, android.support.v7.appcompat.R.attr.colorAccent); in getButtonTextColor() 111 android.support.v7.appcompat.R.attr.colorPrimary); in setMediaControlsBackgroundColor() 113 android.support.v7.appcompat.R.attr.colorPrimaryDark); in setMediaControlsBackgroundColor() 143 android.support.v7.appcompat.R.attr.isLightTheme, value, true) in isLightTheme() [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/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/base/tools/aapt2/ |
D | ResourceParser_test.cpp | 134 Attribute* attr = test::getValue<Attribute>(&mTable, u"@attr/foo"); in TEST_F() local 135 ASSERT_NE(nullptr, attr); in TEST_F() 136 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_STRING), attr->typeMask); in TEST_F() 138 attr = test::getValue<Attribute>(&mTable, u"@attr/bar"); in TEST_F() 139 ASSERT_NE(nullptr, attr); in TEST_F() 140 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_ANY), attr->typeMask); in TEST_F() 167 Attribute* attr = test::getValue<Attribute>(&mTable, u"@attr/foo"); in TEST_F() local 168 ASSERT_NE(nullptr, attr); in TEST_F() 169 EXPECT_EQ(uint32_t(android::ResTable_map::TYPE_INTEGER), attr->typeMask); in TEST_F() 170 EXPECT_EQ(10, attr->minInt); in TEST_F() [all …]
|
D | Debug.cpp | 37 void visit(Attribute* attr) override { in visit() argument 39 attr->printMask(&std::cout); in visit() 42 if (attr->typeMask & kMask) { in visit() 43 for (const auto& symbol : attr->symbols) { in visit() 98 for (const auto& attr : styleable->entries) { in visit() local 100 if (attr.name) { in visit() 101 const ResourceName& name = attr.name.value(); in visit() 108 if (attr.id) { in visit() 109 std::cout << "(" << attr.id.value() << ")"; in visit()
|
D | ResourceTable_test.cpp | 110 Attribute* attr = test::getValue<Attribute>(&table, u"@android:attr/foo"); in TEST() local 111 ASSERT_NE(nullptr, attr); in TEST() 112 EXPECT_TRUE(attr->isWeak()); in TEST() 117 attr = test::getValue<Attribute>(&table, u"@android:attr/foo"); in TEST() 118 ASSERT_NE(nullptr, attr); in TEST() 119 EXPECT_FALSE(attr->isWeak()); in TEST()
|
/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/include/androidfw/ |
D | AttributeFinder.h | 25 static inline uint32_t getPackage(uint32_t attr) { in getPackage() argument 26 return attr >> 24; in getPackage() 61 Iterator find(uint32_t attr); 145 Iterator BackTrackingAttributeFinder<Derived, Iterator>::find(uint32_t attr) { in find() argument 162 const uint32_t needlePackageId = getPackage(attr); in find() 171 if (needlePackageId == haystackPackageId && attr < mCurrentAttr) { in find() 196 if (attr == prevAttr) { in find()
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 59 PlayerBase(@NonNull AudioAttributes attr) { in PlayerBase() argument 60 if (attr == null) { in PlayerBase() 63 mAttributes = attr; in PlayerBase() 91 void baseUpdateAudioAttributes(@NonNull AudioAttributes attr) { in baseUpdateAudioAttributes() argument 92 if (attr == null) { in baseUpdateAudioAttributes() 96 mAttributes = attr; in baseUpdateAudioAttributes()
|
/frameworks/native/opengl/tests/configdump/ |
D | configdump.cpp | 79 for (int attr = 0 ; attr<sizeof(attributes)/sizeof(Attribute) ; attr++) { in main() local 81 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); in main() 82 printf("\t%-32s: %10d (0x%08x)\n", attributes[attr].name, value, value); in main()
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener_test.cpp | 210 Attribute attr(false); in TEST_F() local 211 attr.typeMask = android::ResTable_map::TYPE_INTEGER; in TEST_F() 212 attr.minInt = 10; in TEST_F() 213 attr.maxInt = 23; in TEST_F() 217 util::make_unique<Attribute>(attr)) in TEST_F() 225 EXPECT_EQ(attr.isWeak(), actualAttr->isWeak()); in TEST_F() 226 EXPECT_EQ(attr.typeMask, actualAttr->typeMask); in TEST_F() 227 EXPECT_EQ(attr.minInt, actualAttr->minInt); in TEST_F() 228 EXPECT_EQ(attr.maxInt, actualAttr->maxInt); in TEST_F()
|
/frameworks/base/core/java/android/preference/ |
D | Preference.java | 223 int attr = a.getIndex(i); in Preference() local 224 switch (attr) { in Preference() 226 mIconResId = a.getResourceId(attr, 0); in Preference() 230 mKey = a.getString(attr); in Preference() 234 mTitleRes = a.getResourceId(attr, 0); in Preference() 235 mTitle = a.getString(attr); in Preference() 239 mSummary = a.getString(attr); in Preference() 243 mOrder = a.getInt(attr, mOrder); in Preference() 247 mFragment = a.getString(attr); in Preference() 251 mLayoutResId = a.getResourceId(attr, mLayoutResId); in Preference() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Theme_test.cpp | 47 ASSERT_GE(theme1.getAttribute(android::R::attr::background, &val), 0); in TEST() 50 ASSERT_GE(theme1.getAttribute(app::R::attr::number, &val), 0); in TEST() 60 ASSERT_GE(theme2.getAttribute(android::R::attr::background, &val), 0); in TEST() 63 ASSERT_GE(theme2.getAttribute(app::R::attr::number, &val), 0); in TEST()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | StateListDrawableTest.java | 45 int focusedStateSet[] = {R.attr.state_focused}; in broken_testFocusScenarioSetStringWildcardFirst() 46 int checkedStateSet[] = {R.attr.state_checked}; in broken_testFocusScenarioSetStringWildcardFirst() 57 int focusedStateSet[] = {R.attr.state_focused}; in broken_testFocusScenarioStateSetWildcardLast() 58 int checkedStateSet[] = {R.attr.state_checked}; in broken_testFocusScenarioStateSetWildcardLast()
|
/frameworks/base/tools/aapt/ |
D | XMLNode.cpp | 1019 String16 attr("attr"); in assignResourceIds() local 1038 ? table->getResId(e.name, &attr, &pkg, &errorMsg, nsIsPublic) in assignResourceIds() 1041 attr.string(), attr.size(), in assignResourceIds() 1171 const attribute_entry& attr = mAttributes.itemAt(idx); in print() local 1172 String8 attrNs(attr.ns); in print() 1176 if (attr.nameResId) { in print() 1178 String8(attr.name).string(), attr.nameResId); in print() 1180 printf("%s%s", attrNs.string(), String8(attr.name).string()); in print() 1182 printf("=%s", String8(attr.string).string()); in print() 1398 const attribute_entry& attr = mAttributes.itemAt(i); in collect_attr_strings() local [all …]
|