Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DThemes.java31 public static int getAttrColor(Context context, int attr) { in getAttrColor() argument
32 return getAttrColor(context, /*styleResId=*/ 0, attr); in getAttrColor()
36 public static int getAttrColor(Context context, @StyleRes int styleResId, int attr) { in getAttrColor() argument
37 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColor()
48 public static ColorStateList getAttrColorStateList(Context context, int attr) { in getAttrColorStateList() argument
49 return getAttrColorStateList(context, /*styleResId=*/ 0, attr); in getAttrColorStateList()
58 int attr) { in getAttrColorStateList() argument
59 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColorStateList()
68 public static boolean getAttrBoolean(Context context, int attr) { in getAttrBoolean() argument
69 return getAttrBoolean(context, /*styleResId=*/ 0, attr); in getAttrBoolean()
[all …]
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c397 ipp_attribute_t *attr; in print_col() local
400 for (attr = ippFirstAttribute(col); attr; attr = ippNextAttribute(col)) { in print_col()
401 switch (ippGetValueTag(attr)) { in print_col()
404 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
405 LOGD(" %s(%s%s)= %d ", ippGetName(attr), in print_col()
406 ippGetCount(attr) > 1 ? "1setOf " : "", in print_col()
407 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_col()
411 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
412 if (ippGetBoolean(attr, i)) { in print_col()
413 LOGD(" %s(%s%s)= true ", ippGetName(attr), in print_col()
[all …]
Dippstatus_monitor.c288 ipp_attribute_t *attr; in _cancel() local
325 attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER); in _cancel()
326 if (attr != NULL) { in _cancel()
327 job_id = ippGetInteger(attr, 0); in _cancel()
333 attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM); in _cancel()
334 if (attr != NULL) { in _cancel()
335 ipp_jstate_t jobState = (ipp_jstate_t)ippGetInteger(attr, 0); in _cancel()
339 attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD); in _cancel()
340 if (attr != NULL) { in _cancel()
342 for (idx = 0; idx < ippGetCount(attr); idx++) { in _cancel()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyDrawParams.java84 public void updateParams(final int keyHeight, @Nullable final KeyVisualAttributes attr) { in updateParams() argument
85 if (attr == null) { in updateParams()
89 if (attr.mTypeface != null) { in updateParams()
90 mTypeface = attr.mTypeface; in updateParams()
94 attr.mLetterSize, attr.mLetterRatio, mLetterSize); in updateParams()
96 attr.mLabelSize, attr.mLabelRatio, mLabelSize); in updateParams()
97 mLargeLetterSize = selectTextSize(keyHeight, attr.mLargeLetterRatio, mLargeLetterSize); in updateParams()
98 mHintLetterSize = selectTextSize(keyHeight, attr.mHintLetterRatio, mHintLetterSize); in updateParams()
100 attr.mShiftedLetterHintRatio, mShiftedLetterHintSize); in updateParams()
101 mHintLabelSize = selectTextSize(keyHeight, attr.mHintLabelRatio, mHintLabelSize); in updateParams()
[all …]
DKeyPreviewView.java117 { R.attr.state_has_morekeys }
120 { R.attr.state_left_edge },
121 { R.attr.state_left_edge, R.attr.state_has_morekeys }
124 { R.attr.state_right_edge },
125 { R.attr.state_right_edge, R.attr.state_has_morekeys }
DKeyboardBuilder.java238 final AttributeSet attr = Xml.asAttributeSet(parser); in parseKeyboardAttributes() local
240 attr, R.styleable.Keyboard, R.attr.keyboardStyle, R.style.Keyboard); in parseKeyboardAttributes()
241 final TypedArray keyAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Key); in parseKeyboardAttributes()
340 final AttributeSet attr = Xml.asAttributeSet(parser); in parseRowAttributes() local
341 final TypedArray keyboardAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard); in parseRowAttributes()
528 final AttributeSet attr = Xml.asAttributeSet(parser); in parseIncludeInternal() local
530 attr, R.styleable.Keyboard_Include); in parseIncludeInternal()
531 final TypedArray keyAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Key); in parseIncludeInternal()
642 final AttributeSet attr = Xml.asAttributeSet(parser); in parseCaseCondition() local
643 final TypedArray caseAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Case); in parseCaseCondition()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java62 new int[]{android.R.attr.fontFamily}); in getDefaultBodyFont()
69 return getDimension(context, android.R.attr.dialogCornerRadius, in getDialogCornerRadius()
73 public static float getDimension(Context context, int attr, float defaultValue) { in getDimension() argument
74 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDimension()
81 return getAttrColor(context, android.R.attr.colorAccent); in getColorAccent()
84 public static int getAttrColor(Context context, int attr) { in getAttrColor() argument
85 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrColor()
91 public static boolean getAttrBoolean(Context context, int attr) { in getAttrBoolean() argument
92 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrBoolean()
98 public static Drawable getAttrDrawable(Context context, int attr) { in getAttrDrawable() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/theme/base/impl/
DAospThemeImpl.java59 android.R.attr.colorPrimary, in AospThemeImpl()
60 android.R.attr.colorPrimaryDark, in AospThemeImpl()
61 android.R.attr.colorAccent, in AospThemeImpl()
62 android.R.attr.textColorPrimary, in AospThemeImpl()
63 android.R.attr.textColorSecondary, in AospThemeImpl()
64 android.R.attr.textColorPrimaryInverse, in AospThemeImpl()
65 android.R.attr.textColorHint, in AospThemeImpl()
66 android.R.attr.colorBackground, in AospThemeImpl()
67 android.R.attr.colorBackgroundFloating, in AospThemeImpl()
68 R.attr.colorIcon, in AospThemeImpl()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java72 states[i] = new int[] { -android.R.attr.state_enabled }; in getSwitchThumbColorStateList()
75 states[i] = new int[] { android.R.attr.state_checked }; in getSwitchThumbColorStateList()
81 androidx.appcompat.R.attr.colorSwitchThumbNormal); in getSwitchThumbColorStateList()
92 states[i] = new int[] { -android.R.attr.state_enabled }; in getSwitchTrackColorStateList()
93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f); in getSwitchTrackColorStateList()
95 states[i] = new int[] { android.R.attr.state_checked }; in getSwitchTrackColorStateList()
100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f); in getSwitchTrackColorStateList()
106 final int attr) { in getThemeAttrColor() argument
107 if (context.getTheme().resolveAttribute(attr, typedValue, true)) { in getThemeAttrColor()
119 final int attr, final float alpha) { in getThemeAttrColor() argument
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java387 for (CarrierIdProto.CarrierAttribute attr : id.carrierAttribute) { in updateDatabaseFromPb()
397 convertCarrierAttrToContentValues(cv, cvs, attr, 0); in updateDatabaseFromPb()
429 CarrierIdProto.CarrierAttribute attr, int index) { in convertCarrierAttrToContentValues() argument
439 for (String str : attr.mccmncTuple) { in convertCarrierAttrToContentValues()
441 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
447 for (String str : attr.imsiPrefixXpattern) { in convertCarrierAttrToContentValues()
449 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
455 for (String str : attr.gid1) { in convertCarrierAttrToContentValues()
457 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
463 for (String str : attr.gid2) { in convertCarrierAttrToContentValues()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DExternalAccountType.java365 String attr = parser.getAttributeName(i); in inflate() local
367 LogUtil.d(TAG, attr + "=" + value); in inflate()
368 if (ATTR_EDIT_CONTACT_ACTIVITY.equals(attr)) { in inflate()
370 } else if (ATTR_CREATE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
372 } else if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
374 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) { in inflate()
376 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) { in inflate()
378 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) { in inflate()
380 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) { in inflate()
382 } else if (ATTR_DATA_SET.equals(attr)) { in inflate()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java145 HtmlDocument.TagAttribute attr = lastSeen.tag.getAttribute(HTML4.HREF_ATTRIBUTE); in handleEnd() local
147 if (attr == null) { in handleEnd()
150 marker = new URLSpan(attr.getValue()); in handleEnd()
175 HtmlDocument.TagAttribute attr = wrapper.tag.getAttribute(HTML4.COLOR_ATTRIBUTE); in handleFont() local
176 if (attr != null) { in handleFont()
177 int c = Color.parseColor(attr.getValue()); in handleFont()
185 attr = wrapper.tag.getAttribute(HTML4.SIZE_ATTRIBUTE); in handleFont()
186 if (attr != null) { in handleFont()
187 int i = Integer.parseInt(attr.getValue()); in handleFont()
195 attr = wrapper.tag.getAttribute(HTML4.FACE_ATTRIBUTE); in handleFont()
[all …]
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingsParser.java120 String attr = parser.getAttributeName(i); in parse() local
121 if (ATTR_VERSION_CODE.equals(attr)) { in parse()
190 String attr = parser.getAttributeName(i); in parseRatingSystemDefinition() local
191 switch (attr) { in parseRatingSystemDefinition()
210 + attr in parseRatingSystemDefinition()
266 String attr = parser.getAttributeName(i); in parseRatingDefinition() local
267 switch (attr) { in parseRatingDefinition()
300 + attr in parseRatingDefinition()
336 String attr = parser.getAttributeName(i); in parseSubRatingDefinition() local
337 switch (attr) { in parseSubRatingDefinition()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlDocument.java152 public static TagAttribute createTagAttribute(HTML.Attribute attr, String value) { in createTagAttribute() argument
153 return createTagAttribute(attr, value, null); in createTagAttribute()
159 public static TagAttribute createTagAttribute(HTML.Attribute attr, in createTagAttribute() argument
161 X.assertTrue(attr != null); in createTagAttribute()
162 return new TagAttribute(attr, value, originalHtml); in createTagAttribute()
557 public void addAttribute(HTML.Attribute attr, String value) { in addAttribute() argument
558 X.assertTrue(attr != null); in addAttribute()
559 addAttribute(new TagAttribute(attr, value, null)); in addAttribute()
563 public void addAttribute(TagAttribute attr) { in addAttribute() argument
564 X.assertTrue(attr != null); in addAttribute()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DExternalAccountType.java327 String attr = parser.getAttributeName(i); in inflate() local
330 Log.d(TAG, attr + "=" + value); in inflate()
332 if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
334 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) { in inflate()
336 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) { in inflate()
338 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) { in inflate()
340 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) { in inflate()
342 } else if (ATTR_DATA_SET.equals(attr)) { in inflate()
344 } else if (ATTR_EXTENSION_PACKAGE_NAMES.equals(attr)) { in inflate()
346 } else if (ATTR_ACCOUNT_TYPE.equals(attr)) { in inflate()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java202 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr);
374 (status, key, attr) -> {
378 assertEquals(attributes, attr);
390 (status, key, attr) -> {
394 assertEquals(attributes.assignedV4Address, attr.assignedV4Address);
396 attr.assignedV4AddressExpiry);
397 assertEquals(attributes.groupHint, attr.groupHint);
398 assertEquals(attributes.mtu, attr.mtu);
399 assertEquals(attributes2.dnsAddresses, attr.dnsAddresses);
406 (status, key, attr) -> {
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DThemeUtils.java44 public static int resolveColor(Context context, @AttrRes int attr) { in resolveColor() argument
45 return resolveColor(context, attr, null /* stateSet */); in resolveColor()
57 public static int resolveColor(Context context, @AttrRes int attr, @AttrRes int[] stateSet) { in resolveColor() argument
60 TEMP_ATTR[0] = attr; in resolveColor()
86 public static Drawable resolveDrawable(Context context, @AttrRes int attr) { in resolveDrawable() argument
89 TEMP_ATTR[0] = attr; in resolveDrawable()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationTipView.java111 private void bindIcon(ImageView image, ImageAttrSet attr) { in bindIcon() argument
112 if (attr != null) { in bindIcon()
114 image.setContentDescription(attr.contentDescription); in bindIcon()
116 image.setImageResource(attr.resId); in bindIcon()
117 if (attr.background != -1) { in bindIcon()
118 image.setBackgroundResource(attr.background); in bindIcon()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DPlayPauseStopImageView.java41 private static final int[] STATE_PAUSE = {R.attr.state_pause};
42 private static final int[] STATE_STOP = {R.attr.state_stop};
43 private static final int[] STATE_PLAY = {R.attr.state_play};
44 private static final int[] STATE_DISABLED = {R.attr.state_disabled};
/packages/apps/Nfc/nci/jni/
DCondVar.cpp42 pthread_condattr_t attr; in CondVar() local
43 pthread_condattr_init(&attr); in CondVar()
44 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in CondVar()
46 int const res = pthread_cond_init(&mCondition, &attr); in CondVar()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DLauncherLayoutBuilder.java111 for (Map.Entry<String, Object> attr : node.second.entrySet()) { in writeNodes()
112 if (ATTR_CHILDREN.equals(attr.getKey())) { in writeNodes()
113 children = (ArrayList<Pair<String, HashMap<String, Object>>>) attr.getValue(); in writeNodes()
115 serializer.attribute(null, attr.getKey(), (String) attr.getValue()); in writeNodes()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/
DThemeUiTestBase.java94 protected void assertTheme(int[] styleable, int attr, int expected) { in assertTheme() argument
96 final int targetColor = ta.getColor(attr, ~expected); in assertTheme()
108 protected void assertTheme(int[] styleable, int attr, boolean expected) { in assertTheme() argument
110 final boolean targetBoolean = ta.getBoolean(attr, !expected); in assertTheme()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java105 final TypedArray attr = context.obtainStyledAttributes(attrs, R.styleable.AsyncImageView, in AsyncImageView() local
107 mFadeIn = attr.getBoolean(R.styleable.AsyncImageView_fadeIn, true); in AsyncImageView()
108 mReveal = attr.getBoolean(R.styleable.AsyncImageView_reveal, false); in AsyncImageView()
109 mPlaceholderDrawable = attr.getDrawable(R.styleable.AsyncImageView_placeholderDrawable); in AsyncImageView()
110 mCornerRadius = attr.getDimensionPixelSize(R.styleable.AsyncImageView_cornerRadius, 0); in AsyncImageView()
113 attr.recycle(); in AsyncImageView()
DMaxHeightScrollView.java36 final TypedArray attr = context.obtainStyledAttributes(attrs, in MaxHeightScrollView() local
38 mMaxHeight = attr.getDimensionPixelSize(R.styleable.MaxHeightScrollView_android_maxHeight, in MaxHeightScrollView()
40 attr.recycle(); in MaxHeightScrollView()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerItem.java35 import static android.R.attr.state_activated;
36 import static android.R.attr.state_pressed;
79 final int colorAccent = ThemeUtils.resolveColor(c, R.attr.colorAccent); in onFinishInflate()
80 final int textColorPrimary = ThemeUtils.resolveColor(c, android.R.attr.textColorPrimary); in onFinishInflate()

12345678910>>...14