Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/av/include/media/
DAudioPolicyHelper.h21 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/internal/widget/
DTintManager.java167 colorAttr = R.attr.colorControlNormal; in tintDrawable()
170 colorAttr = R.attr.colorControlActivated; in tintDrawable()
173 colorAttr = android.R.attr.colorBackground; in tintDrawable()
177 colorAttr = android.R.attr.colorForeground; in tintDrawable()
235 final int colorControlNormal = getThemeAttrColor(R.attr.colorControlNormal); in getDefaultColorStateList()
236 final int colorControlActivated = getThemeAttrColor(R.attr.colorControlActivated); in getDefaultColorStateList()
243 states[i] = new int[] { -android.R.attr.state_enabled }; in getDefaultColorStateList()
244 colors[i] = getDisabledThemeAttrColor(R.attr.colorControlNormal); in getDefaultColorStateList()
247 states[i] = new int[] { android.R.attr.state_focused }; in getDefaultColorStateList()
251 states[i] = new int[] { android.R.attr.state_activated }; in getDefaultColorStateList()
[all …]
DTintButton.java31 android.R.attr.background,
32 android.R.attr.textAppearance
42 this(context, attrs, android.R.attr.buttonStyle); in TintButton()
DTintMultiAutoCompleteTextView.java32 android.R.attr.background,
33 android.R.attr.popupBackground
43 this(context, attrs, android.R.attr.autoCompleteTextViewStyle); in TintMultiAutoCompleteTextView()
DTintAutoCompleteTextView.java33 android.R.attr.background,
34 android.R.attr.popupBackground
44 this(context, attrs, android.R.attr.autoCompleteTextViewStyle); in TintAutoCompleteTextView()
/frameworks/compile/mclinker/lib/CodeGen/
DMCLinker.cpp323 cl::list<bool>::iterator attr, attrBegin, attrEnd; in initializeInputTree() local
326 for (attr = attrBegin; attr != attrEnd; ++attr) { in initializeInputTree()
327 unsigned int pos = ArgWholeArchiveList.getPosition(attr - attrBegin); in initializeInputTree()
334 for (attr = attrBegin; attr != attrEnd; ++attr) { in initializeInputTree()
335 unsigned int pos = ArgNoWholeArchiveList.getPosition(attr - attrBegin); in initializeInputTree()
342 for (attr = attrBegin; attr != attrEnd; ++attr) { in initializeInputTree()
343 unsigned int pos = ArgAsNeededList.getPosition(attr - attrBegin); in initializeInputTree()
350 for (attr = attrBegin; attr != attrEnd; ++attr) { in initializeInputTree()
351 unsigned int pos = ArgNoAsNeededList.getPosition(attr - attrBegin); in initializeInputTree()
358 for (attr = attrBegin; attr != attrEnd; ++attr) { in initializeInputTree()
[all …]
/frameworks/compile/mclinker/tools/mcld/lib/
DPositionalOptions.cpp252 llvm::cl::list<bool>::iterator attr, attrBegin, attrEnd; in parse() local
255 for (attr = attrBegin; attr != attrEnd; ++attr) { in parse()
256 unsigned int pos = m_WholeArchiveList.getPosition(attr - attrBegin); in parse()
263 for (attr = attrBegin; attr != attrEnd; ++attr) { in parse()
264 unsigned int pos = m_NoWholeArchiveList.getPosition(attr - attrBegin); in parse()
271 for (attr = attrBegin; attr != attrEnd; ++attr) { in parse()
272 unsigned int pos = m_AsNeededList.getPosition(attr - attrBegin); in parse()
279 for (attr = attrBegin; attr != attrEnd; ++attr) { in parse()
280 unsigned int pos = m_NoAsNeededList.getPosition(attr - attrBegin); in parse()
287 for (attr = attrBegin; attr != attrEnd; ++attr) { in parse()
[all …]
/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/docs/html/sdk/api_diff/6/
DmissingSinces.txt2 NO DOC BLOCK: android.R.attr Field quickContactBadgeStyleSmallWindowLarge
3 NO DOC BLOCK: android.R.attr Field quickContactBadgeStyleSmallWindowMedium
4 NO DOC BLOCK: android.R.attr Field quickContactBadgeStyleSmallWindowSmall
5 NO DOC BLOCK: android.R.attr Field quickContactBadgeStyleWindowLarge
6 NO DOC BLOCK: android.R.attr Field quickContactBadgeStyleWindowMedium
7 NO DOC BLOCK: android.R.attr Field quickContactBadgeStyleWindowSmall
/frameworks/av/media/libstagefright/tests/
DDummyRecorder.cpp43 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/
Dlocks.h22 extern void object_unlock_exclusive_attributes_(IObject *thiz, unsigned attr,
28 extern void object_unlock_exclusive_attributes(IObject *thiz, unsigned attr);
37 #define object_unlock_exclusive_attributes(thiz, attr) \ argument
38 object_unlock_exclusive_attributes_((thiz), (attr), __FILE__, __LINE__)
53 #define interface_unlock_exclusive_attributes(thiz, attr) \ argument
54 object_unlock_exclusive_attributes(InterfaceToIObject(thiz), (attr))
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java35 public static int getThemeResource(Context context, int attr) { in getThemeResource() argument
37 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource()
40 public static Drawable getThemeDrawable(Context context, int attr) { in getThemeDrawable() argument
41 int res = getThemeResource(context, attr); in getThemeDrawable()
47 return context.getTheme().resolveAttribute(R.attr.isLightTheme, value, true) in isLightTheme()
/frameworks/base/include/androidfw/
DAttributeFinder.h25 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/core/java/com/android/internal/widget/multiwaveview/
DTargetDrawable.java30 { android.R.attr.state_enabled, android.R.attr.state_active };
32 { android.R.attr.state_enabled, -android.R.attr.state_active };
34 { android.R.attr.state_enabled, -android.R.attr.state_active,
35 android.R.attr.state_focused };
97 if (states[i] == android.R.attr.state_focused) { in isActive()
/frameworks/native/opengl/tests/configdump/
Dconfigdump.cpp79 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/core/java/android/util/
DStateSet.java160 case R.attr.state_window_focused: in dump()
163 case R.attr.state_pressed: in dump()
166 case R.attr.state_selected: in dump()
169 case R.attr.state_focused: in dump()
172 case R.attr.state_enabled: in dump()
/frameworks/base/libs/androidfw/tests/
DTheme_test.cpp47 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/docs/html/sdk/api_diff/4/
DmissingSinces.txt117 NO DOC BLOCK: android.R.attr Field allowBackup
120 NO DOC BLOCK: android.R.attr Field anyDensity
121 NO DOC BLOCK: android.R.attr Field autoUrlDetect
122 NO DOC BLOCK: android.R.attr Field backupAgent
127 NO DOC BLOCK: android.R.attr Field contentDescription
140 NO DOC BLOCK: android.R.attr Field dropDownHeight
142 NO DOC BLOCK: android.R.attr Field eventsInterceptionEnabled
144 NO DOC BLOCK: android.R.attr Field extraTension
145 NO DOC BLOCK: android.R.attr Field fadeDuration
146 NO DOC BLOCK: android.R.attr Field fadeEnabled
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
DStateListDrawableTest.java45 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/core/java/android/preference/
DPreference.java219 int attr = a.getIndex(i); in Preference() local
220 switch (attr) { in Preference()
222 mIconResId = a.getResourceId(attr, 0); in Preference()
226 mKey = a.getString(attr); in Preference()
230 mTitleRes = a.getResourceId(attr, 0); in Preference()
231 mTitle = a.getString(attr); in Preference()
235 mSummary = a.getString(attr); in Preference()
239 mOrder = a.getInt(attr, mOrder); in Preference()
243 mFragment = a.getString(attr); in Preference()
247 mLayoutResId = a.getResourceId(attr, mLayoutResId); in Preference()
[all …]
/frameworks/base/tools/aapt/
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) { in getIntegerAttribute() argument
63 return getIntegerAttribute(tree, ns, attr, -1, outError); in getIntegerAttribute()
DXMLNode.cpp989 String16 attr("attr"); in assignResourceIds() local
1006 ? table->getResId(e.name, &attr, &pkg, &errorMsg, nsIsPublic) in assignResourceIds()
1009 attr.string(), attr.size(), in assignResourceIds()
1152 const attribute_entry& attr = mAttributes.itemAt(idx); in print() local
1153 String8 attrNs(attr.ns); in print()
1157 if (attr.nameResId) { in print()
1159 String8(attr.name).string(), attr.nameResId); in print()
1161 printf("%s%s", attrNs.string(), String8(attr.name).string()); in print()
1163 printf("=%s", String8(attr.string).string()); in print()
1367 const attribute_entry& attr = mAttributes.itemAt(i); in collect_attr_strings() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailItemView.java67 int attr = a.getIndex(i); in UserDetailItemView() local
68 switch (attr) { in UserDetailItemView()
70 mRegularTypeface = Typeface.create(a.getString(attr), 0 /* style */); in UserDetailItemView()
73 mActivatedTypeface = Typeface.create(a.getString(attr), 0 /* style */); in UserDetailItemView()
125 boolean activated = ArrayUtils.contains(getDrawableState(), android.R.attr.state_activated); in updateTypeface()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java59 int attr = a.getIndex(i); in UserAvatarView() local
60 switch (attr) { in UserAvatarView()
62 setFrameWidth(a.getDimension(attr, 0)); in UserAvatarView()
65 setFramePadding(a.getDimension(attr, 0)); in UserAvatarView()
68 setActiveFrameColor(a.getColor(attr, 0)); in UserAvatarView()
71 setFrameColor(a.getColor(attr, 0)); in UserAvatarView()
/frameworks/base/docs/html/sdk/api_diff/3/
DmissingSinces.txt520 NO DOC BLOCK: android.R.attr Field allowSingleTap
521 NO DOC BLOCK: android.R.attr Field animateOnClick
529 NO DOC BLOCK: android.R.attr Field backgroundDimEnabled
533 NO DOC BLOCK: android.R.attr Field bottomOffset
540 NO DOC BLOCK: android.R.attr Field candidatesTextStyleSpans
548 NO DOC BLOCK: android.R.attr Field codes
550 NO DOC BLOCK: android.R.attr Field configure
551 NO DOC BLOCK: android.R.attr Field content
565 NO DOC BLOCK: android.R.attr Field dropDownAnchor
566 NO DOC BLOCK: android.R.attr Field dropDownWidth
[all …]

12345678910>>...16