Home
last modified time | relevance | path

Searched refs:typedValue (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java43 final TypedValue typedValue = new TypedValue(); in updateSwitchCompatColor() local
46 getSwitchThumbColorStateList(context, color, typedValue), in updateSwitchCompatColor()
50 getSwitchTrackColorStateList(context, color, typedValue), PorterDuff.Mode.SRC_IN)); in updateSwitchCompatColor()
67 final int color, final TypedValue typedValue) { in getSwitchThumbColorStateList() argument
80 colors[i] = getThemeAttrColor(context, typedValue, in getSwitchThumbColorStateList()
87 final int color, final TypedValue typedValue) { in getSwitchTrackColorStateList() argument
93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f); in getSwitchTrackColorStateList()
100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f); in getSwitchTrackColorStateList()
105 private static int getThemeAttrColor(final Context context, final TypedValue typedValue, in getThemeAttrColor() argument
107 if (context.getTheme().resolveAttribute(attr, typedValue, true)) { in getThemeAttrColor()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java80 final TypedValue typedValue = new TypedValue(); in getTypedFloat() local
81 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true); in getTypedFloat()
82 return typedValue.getFloat(); in getTypedFloat()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
DUtils.java115 TypedValue typedValue = new TypedValue(); in applyTint() local
116 theme.resolveAttribute(attr, typedValue, true); in applyTint()
118 icon.setTint(context.getColor(typedValue.resourceId)); in applyTint()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/
DReviewPermissionsWearFragment.java288 TypedValue typedValue = new TypedValue(); in addTitlePreferenceToScreen() local
289 activity.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); in addTitlePreferenceToScreen()
290 final int color = activity.getColor(typedValue.resourceId); in addTitlePreferenceToScreen()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1348 final TypedValue typedValue = new TypedValue(); in getDeleteImageButton() local
1350 android.R.attr.selectableItemBackgroundBorderless, typedValue, true); in getDeleteImageButton()
1351 mDeleteImageButton.setBackgroundResource(typedValue.resourceId); in getDeleteImageButton()