Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 331) 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.java390 for (CarrierIdProto.CarrierAttribute attr : id.carrierAttribute) { in updateDatabaseFromPb()
400 convertCarrierAttrToContentValues(cv, cvs, attr, 0); in updateDatabaseFromPb()
432 CarrierIdProto.CarrierAttribute attr, int index) { in convertCarrierAttrToContentValues() argument
442 for (String str : attr.mccmncTuple) { in convertCarrierAttrToContentValues()
444 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
450 for (String str : attr.imsiPrefixXpattern) { in convertCarrierAttrToContentValues()
452 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
458 for (String str : attr.gid1) { in convertCarrierAttrToContentValues()
460 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
466 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/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/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.java265 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr);
465 (status, key, attr) -> {
469 assertEquals(attributes, attr);
481 (status, key, attr) -> {
485 assertEquals(attributes.assignedV4Address, attr.assignedV4Address);
487 attr.assignedV4AddressExpiry);
488 assertEquals(attributes.cluster, attr.cluster);
489 assertEquals(attributes.mtu, attr.mtu);
490 assertEquals(attributes2.dnsAddresses, attr.dnsAddresses);
497 (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/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionConfiguration.java97 for (ConfigAttribute attr : configPayload.recognizedAttributeList) { in IkeSessionConfiguration()
98 if (attr.isEmptyValue()) continue; in IkeSessionConfiguration()
99 switch (attr.attributeType) { in IkeSessionConfiguration()
101 ConfigAttributeAppVersion appVersionAttr = (ConfigAttributeAppVersion) attr; in IkeSessionConfiguration()
105 ConfigAttributeIpv4Pcscf ip4Pcscf = (ConfigAttributeIpv4Pcscf) attr; in IkeSessionConfiguration()
109 ConfigAttributeIpv6Pcscf ip6Pcscf = (ConfigAttributeIpv6Pcscf) attr; in IkeSessionConfiguration()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java135 for (ConfigAttribute attr : recognizedAttributeList) { in validateNetmaskInReply()
136 if (attr.isEmptyValue()) { in validateNetmaskInReply()
141 + attr.attributeType); in validateNetmaskInReply()
143 switch (attr.attributeType) { in validateNetmaskInReply()
145 if (!attr.isEmptyValue()) hasIpv4Address = true; in validateNetmaskInReply()
148 if (!attr.isEmptyValue()) numNetmask++; in validateNetmaskInReply()
1063 for (ConfigAttribute attr : recognizedAttributeList) { in encodeToByteBuffer()
1064 attr.encodeAttributeToByteBuffer(byteBuffer); in encodeToByteBuffer()
1077 for (ConfigAttribute attr : recognizedAttributeList) { in getPayloadLength()
1078 len += attr.getAttributeLen(); in getPayloadLength()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerItem.kt19 import android.R.attr
71 val colorAccent = ThemeUtils.resolveColor(c, R.attr.colorAccent) in onFinishInflate()
72 val textColorPrimary = ThemeUtils.resolveColor(c, attr.textColorPrimary) in onFinishInflate()
74 arrayOf(intArrayOf(-attr.state_activated, -attr.state_pressed), in onFinishInflate()
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()
/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/Car/libs/car-ui-lib/src/com/android/car/ui/utils/
DCarUiUtils.java54 public static int getAttrResourceId(Context context, int attr) { in getAttrResourceId() argument
55 return getAttrResourceId(context, /*styleResId=*/ 0, attr); in getAttrResourceId()
62 public static int getAttrResourceId(Context context, @StyleRes int styleResId, int attr) { in getAttrResourceId() argument
63 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrResourceId()
/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()

12345678910>>...14