Home
last modified time | relevance | path

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

1234567

/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/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/ContactsCommon/src/com/android/contacts/common/model/account/
DExternalAccountType.java325 String attr = parser.getAttributeName(i); in inflate() local
328 Log.d(TAG, attr + "=" + value); in inflate()
330 if (ATTR_EDIT_CONTACT_ACTIVITY.equals(attr)) { in inflate()
332 } else if (ATTR_CREATE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
334 } else if (ATTR_INVITE_CONTACT_ACTIVITY.equals(attr)) { in inflate()
336 } else if (ATTR_INVITE_CONTACT_ACTION_LABEL.equals(attr)) { in inflate()
338 } else if (ATTR_VIEW_CONTACT_NOTIFY_SERVICE.equals(attr)) { in inflate()
340 } else if (ATTR_VIEW_GROUP_ACTIVITY.equals(attr)) { in inflate()
342 } else if (ATTR_VIEW_GROUP_ACTION_LABEL.equals(attr)) { in inflate()
344 } else if (ATTR_DATA_SET.equals(attr)) { in inflate()
[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 android.support.v7.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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java253 int attr = appearance.getIndex(i); in retrieve() local
255 switch (attr) { in retrieve()
257 textColor = appearance.getColorStateList(attr); in retrieve()
261 textSize = appearance.getDimensionPixelSize(attr, textSize); in retrieve()
265 typefaceIndex = appearance.getInt(attr, -1); in retrieve()
269 styleIndex = appearance.getInt(attr, -1); in retrieve()
409 int attr = a.getIndex(i); in BatteryHistoryChart() local
411 switch (attr) { in BatteryHistoryChart()
413 shadowcolor = a.getInt(attr, 0); in BatteryHistoryChart()
417 dx = a.getFloat(attr, 0); in BatteryHistoryChart()
[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/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java667 String attr [] = vCard.split(System.getProperty("line.separator")); in StripTelephoneNumber() local
669 for (int i=0; i < attr.length; i++) { in StripTelephoneNumber()
670 if(attr[i].startsWith("TEL")) { in StripTelephoneNumber()
671 attr[i] = attr[i].replace("(", ""); in StripTelephoneNumber()
672 attr[i] = attr[i].replace(")", ""); in StripTelephoneNumber()
673 attr[i] = attr[i].replace("-", ""); in StripTelephoneNumber()
674 attr[i] = attr[i].replace(" ", ""); in StripTelephoneNumber()
678 for (int i=0; i < attr.length; i++) { in StripTelephoneNumber()
679 if(!attr[i].equals("")){ in StripTelephoneNumber()
680 Vcard = Vcard.concat(attr[i] + "\n"); in StripTelephoneNumber()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTargetDrawable.java32 { android.R.attr.state_enabled, android.R.attr.state_active };
34 { android.R.attr.state_enabled, -android.R.attr.state_active };
36 { android.R.attr.state_enabled, -android.R.attr.state_active,
37 android.R.attr.state_focused };
102 if (states[i] == android.R.attr.state_focused) { in isActive()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboardView.java132 android.R.attr.state_long_pressable
296 int attr = a.getIndex(i); in KeyboardView() local
298 switch (attr) { in KeyboardView()
300 mKeyBackground = a.getDrawable(attr); in KeyboardView()
303 mVerticalCorrection = a.getDimensionPixelOffset(attr, 0); in KeyboardView()
306 previewLayout = a.getResourceId(attr, 0); in KeyboardView()
309 mPreviewOffset = a.getDimensionPixelOffset(attr, 0); in KeyboardView()
312 mPreviewHeight = a.getDimensionPixelSize(attr, 80); in KeyboardView()
315 mKeyTextSize = a.getDimensionPixelSize(attr, 18); in KeyboardView()
318 mKeyTextColor = a.getColor(attr, 0xFF000000); in KeyboardView()
[all …]
DKeyboard.java279 android.R.attr.state_checkable,
280 android.R.attr.state_checked
284 android.R.attr.state_pressed,
285 android.R.attr.state_checkable,
286 android.R.attr.state_checked
290 android.R.attr.state_checkable
294 android.R.attr.state_pressed,
295 android.R.attr.state_checkable
302 android.R.attr.state_pressed
/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/wallpapers/MagicSmoke/res/raw/
Dpv4tex.glslv6 vec2 mul(vec4 uni, vec2 attr, float idx, vec2 offset)
10 … 0.5 + 0.5 * invz * (uni.z * ( uni.y * (attr.x + offset.x) + uni.x * (attr.y + offset.y))) + uni.w,
11 0.5 + 0.5 * invz * (uni.z * (-uni.x * (attr.x + offset.x) + uni.y * (attr.y + offset.y))));
Dpv5tex.glslv7 vec2 mul(vec4 uni, vec2 attr, float idx, vec2 offset)
11 … 0.5 + 0.5 * invz * (uni.z * ( uni.y * (attr.x + offset.x) + uni.x * (attr.y + offset.y))) + uni.w,
12 0.5 + 0.5 * invz * (uni.z * (-uni.x * (attr.x + offset.x) + uni.y * (attr.y + offset.y))));
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp.cpp276 jint *attr; in getElementAttrRspNative() local
296 attr = env->GetIntArrayElements(attrIds, NULL); in getElementAttrRspNative()
297 if (!attr) { in getElementAttrRspNative()
312 pAttrs[i].attr_id = attr[i]; in getElementAttrRspNative()
326 env->ReleaseIntArrayElements(attrIds, attr, 0); in getElementAttrRspNative()
336 env->ReleaseIntArrayElements(attrIds, attr, 0); in getElementAttrRspNative()
/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()
DViewPagerTabs.java70 android.R.attr.textSize,
71 android.R.attr.textStyle,
72 android.R.attr.textColor,
73 android.R.attr.textAllCaps
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/Nfc/nci/jni/
DCondVar.cpp40 pthread_condattr_t attr; in CondVar() local
41 pthread_condattr_init(&attr); in CondVar()
42 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in CondVar()
44 int const res = pthread_cond_init (&mCondition, &attr); in CondVar()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
DUtils.java107 public static Drawable applyTint(Context context, Drawable icon, int attr) { in applyTint() argument
110 theme.resolveAttribute(attr, typedValue, true); in applyTint()
116 public static Drawable applyTint(Context context, int iconResId, int attr) { in applyTint() argument
117 return applyTint(context, context.getDrawable(iconResId), attr); in applyTint()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DViewPagerTabs.java73 android.R.attr.textSize,
74 android.R.attr.textStyle,
75 android.R.attr.textColor,
76 android.R.attr.textAllCaps
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java959 mPressedState[attrs.length] = android.R.attr.state_pressed; in KeyBackgroundState()
968 new KeyBackgroundState(android.R.attr.state_empty),
974 new KeyBackgroundState(android.R.attr.state_checkable),
976 new KeyBackgroundState(android.R.attr.state_checkable, android.R.attr.state_checked),
978 new KeyBackgroundState(android.R.attr.state_active),
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java165 String attr = parser.getAttributeName(i); in loadPhotoPriorityFromXml() local
166 if (PRIORITY_ATTR.equals(attr)) { in loadPhotoPriorityFromXml()
170 throw new IllegalStateException("Unsupported attribute " + attr); in loadPhotoPriorityFromXml()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java225 mPara.mIconAttrId = android.R.attr.alertDialogIcon; in setUpDialog()
232 mPara.mIconAttrId = android.R.attr.alertDialogIcon; in setUpDialog()
463 mAlert.setIcon(mAlert.getIconAttributeResId(android.R.attr.alertDialogIcon)); in updateButton()
472 mAlert.setIcon(mAlert.getIconAttributeResId(android.R.attr.alertDialogIcon)); in updateButton()

1234567