Searched refs:attr (Results 1 - 25 of 215) sorted by relevance

123456789

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyDrawParams.java84 public void updateParams(final int keyHeight, @Nullable final KeyVisualAttributes attr) { argument
85 if (attr == null) {
89 if (attr.mTypeface != null) {
90 mTypeface = attr.mTypeface;
94 attr.mLetterSize, attr.mLetterRatio, mLetterSize);
96 attr.mLabelSize, attr.mLabelRatio, mLabelSize);
97 mLargeLetterSize = selectTextSize(keyHeight, attr.mLargeLetterRatio, mLargeLetterSize);
98 mHintLetterSize = selectTextSize(keyHeight, attr
125 mayCloneAndUpdateParams(final int keyHeight, @Nullable final KeyVisualAttributes attr) argument
[all...]
H A 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 }
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DThemes.java31 return getAttrColor(context, android.R.attr.colorAccent);
34 public static int getAttrColor(Context context, int attr) { argument
35 TypedArray ta = context.obtainStyledAttributes(new int[]{attr});
41 public static boolean getAttrBoolean(Context context, int attr) { argument
42 TypedArray ta = context.obtainStyledAttributes(new int[]{attr});
48 public static Drawable getAttrDrawable(Context context, int attr) { argument
49 TypedArray ta = context.obtainStyledAttributes(new int[]{attr});
56 * Returns the alpha corresponding to the theme attribute {@param attr}, in the range [0, 255].
58 public static int getAlpha(Context context, int attr) { argument
59 TypedArray ta = context.obtainStyledAttributes(new int[]{attr});
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DThemeUtils.java40 * @param attr the attribute corresponding to the color to resolve
44 public static int resolveColor(Context context, @AttrRes int attr) { argument
45 return resolveColor(context, attr, null /* stateSet */);
52 * @param attr the attribute corresponding to the color to resolve
57 public static int resolveColor(Context context, @AttrRes int attr, @AttrRes int[] stateSet) { argument
60 TEMP_ATTR[0] = attr;
83 * @param attr the attribute corresponding to the drawable to resolve
86 public static Drawable resolveDrawable(Context context, @AttrRes int attr) { argument
89 TEMP_ATTR[0] = attr;
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DMaxHeightScrollView.java36 final TypedArray attr = context.obtainStyledAttributes(attrs,
38 mMaxHeight = attr.getDimensionPixelSize(R.styleable.MaxHeightScrollView_android_maxHeight,
40 attr.recycle();
/packages/apps/Contacts/src/com/android/contacts/util/
H A DThemeUtils.java39 return getAttribute(theme, android.R.attr.selectableItemBackground);
46 return getAttribute(theme, android.R.attr.activatedBackgroundIndicator);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DMailSwipeRefreshLayout.java35 public MailSwipeRefreshLayout(Context context, AttributeSet attr) { argument
36 super(context, attr);
/packages/apps/Messaging/src/com/android/messaging/util/
H A DSwitchCompatUtils.java72 states[i] = new int[] { -android.R.attr.state_enabled };
75 states[i] = new int[] { android.R.attr.state_checked };
81 android.support.v7.appcompat.R.attr.colorSwitchThumbNormal);
92 states[i] = new int[] { -android.R.attr.state_enabled };
93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f);
95 states[i] = new int[] { android.R.attr.state_checked };
100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f);
106 final int attr) {
107 if (context.getTheme().resolveAttribute(attr, typedValue, true)) {
119 final int attr, fina
105 getThemeAttrColor(final Context context, final TypedValue typedValue, final int attr) argument
118 getThemeAttrColor(final Context context, final TypedValue typedValue, final int attr, final float alpha) argument
[all...]
/packages/apps/Nfc/nci/jni/
H A DCondVar.cpp40 pthread_condattr_t attr; local
41 pthread_condattr_init(&attr);
42 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
44 int const res = pthread_cond_init (&mCondition, &attr);
/packages/apps/Car/Media/src/com/android/car/media/util/widgets/
H A DPlayPauseStopImageView.java54 private final int[] STATE_PLAYING_TO_PAUSE = {R.attr.state_playing_to_pause};
55 private final int[] STATE_PLAYING_TO_STOP = {R.attr.state_playing_to_stop};
56 private final int[] STATE_PAUSED = {R.attr.state_paused};
57 private final int[] STATE_BUFFERING_TO_PAUSE = {R.attr.state_buffering_to_pause};
58 private final int[] STATE_BUFFERING_TO_STOP = {R.attr.state_buffering_to_stop};
59 private final int[] STATE_STOPPED = {R.attr.state_stopped};
60 private final int[] STATE_DISABLED = {R.attr.state_disabled};
/packages/services/BuiltInPrintService/jni/ipphelper/
H A Dipphelper.c397 ipp_attribute_t *attr; local
400 for (attr = ippFirstAttribute(col); attr; attr = ippNextAttribute(col)) {
401 switch (ippGetValueTag(attr)) {
404 for (i = 0; i < ippGetCount(attr); i++) {
405 LOGD(" %s(%s%s)= %d ", ippGetName(attr),
406 ippGetCount(attr) > 1 ? "1setOf " : "",
407 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr,
484 print_attr(ipp_attribute_t *attr) argument
[all...]
H A Dippstatus_monitor.c288 ipp_attribute_t *attr; local
325 attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER);
326 if (attr != NULL) {
327 job_id = ippGetInteger(attr, 0);
333 attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM);
334 if (attr != NULL) {
335 ipp_jstate_t jobState = (ipp_jstate_t)ippGetInteger(attr, 0);
339 attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD);
340 if (attr != NULL) {
342 for (idx = 0; idx < ippGetCount(attr); id
[all...]
/packages/apps/Settings/src/com/android/settings/display/
H A DScreenZoomPreference.java34 android.support.v7.preference.R.attr.preferenceStyle,
35 android.R.attr.preferenceStyle));
/packages/apps/Settings/src/com/android/settings/applications/
H A DSpacePreference.java37 android.support.v7.preference.R.attr.preferenceStyle,
38 android.R.attr.preferenceStyle));
50 new int[] { com.android.internal.R.attr.layout_height }, defStyleAttr, defStyleRes);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DHtmlUtils.java145 HtmlDocument.TagAttribute attr = lastSeen.tag.getAttribute(HTML4.HREF_ATTRIBUTE);
147 if (attr == null) {
150 marker = new URLSpan(attr.getValue());
175 HtmlDocument.TagAttribute attr = wrapper.tag.getAttribute(HTML4.COLOR_ATTRIBUTE);
176 if (attr != null) {
177 int c = Color.parseColor(attr.getValue());
185 attr = wrapper.tag.getAttribute(HTML4.SIZE_ATTRIBUTE);
186 if (attr != null) {
187 int i = Integer.parseInt(attr.getValue());
195 attr
[all...]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DCheckableImageView.java33 android.R.attr.state_checked
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DDragOverTextView.java29 private static final int[] STATE_HIGHLIGHTED = {R.attr.state_highlighted};
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootItemView.java26 private static final int[] STATE_HIGHLIGHTED = {R.attr.state_highlighted};
/packages/apps/Music/src/com/android/music/
H A DCheckableRelativeLayout.java32 private static final int[] CHECKED_STATE_SET = {android.R.attr.state_checked};
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
H A DExternalAccountType.java367 String attr = parser.getAttributeName(i);
370 Log.d(TAG, attr + "=" + value);
372 if (ATTR_EDIT_CONTACT_ACTIVITY.equals(attr)) {
374 } else if (ATTR_CREATE_CONTACT_ACTIVITY.equals(attr)) {
376 } else if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) {
378 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) {
380 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) {
382 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) {
384 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) {
386 } else if (ATTR_DATA_SET.equals(attr)) {
[all...]
/packages/apps/TV/src/com/android/tv/parental/
H A DContentRatingsParser.java120 String attr = parser.getAttributeName(i);
121 if (ATTR_VERSION_CODE.equals(attr)) {
183 String attr = parser.getAttributeName(i);
184 switch (attr) {
201 checkVersion("Malformed XML: Unknown attribute " + attr + " in " +
244 String attr = parser.getAttributeName(i);
245 switch (attr) {
274 checkVersion("Malformed XML: Unknown attribute " + attr + " in " +
306 String attr = parser.getAttributeName(i);
307 switch (attr) {
[all...]
/packages/apps/Car/Radio/src/com/android/car/radio/
H A DPlayPauseButton.java33 private final int[] STATE_PLAYING = {R.attr.state_playing};
34 private final int[] STATE_PAUSED = {R.attr.state_paused};
/packages/apps/Settings/src/com/android/settings/widget/
H A DRadioButtonPreference.java52 android.support.v7.preference.R.attr.preferenceStyle,
53 android.R.attr.preferenceStyle));
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
H A DLeanbackPickerDialogPreference.java52 this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
53 android.R.attr.dialogPreferenceStyle));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DXmlParseUtils.java74 public static void checkAttributeExists(final TypedArray attr, final int attrId, argument
77 if (attr.hasValue(attrId)) {

Completed in 2911 milliseconds

123456789