Home
last modified time | relevance | path

Searched refs:typedValue (Results 1 – 11 of 11) 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/Car/SystemUI/src/com/android/systemui/car/bluetooth/
DConnectedDeviceSignalController.java111 TypedValue typedValue = new TypedValue(); in ConnectedDeviceSignalController() local
112 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in ConnectedDeviceSignalController()
113 mIconScaleFactor = typedValue.getFloat(); in ConnectedDeviceSignalController()
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/
DDockItemViewHolder.kt82 val typedValue = TypedValue() constant
85 typedValue,
88 val excitedIconColorFilterAlpha = typedValue.float
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DReviewPermissionsWearFragment.java349 TypedValue typedValue = new TypedValue(); in addTitlePreferenceToScreen() local
350 activity.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); in addTitlePreferenceToScreen()
351 final int color = activity.getColor(typedValue.resourceId); in addTitlePreferenceToScreen()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupChooseLockPatternTest.java272 final TypedValue typedValue = new TypedValue(); in inChoiceTooShortStage_theHeaderColor_shouldTintOnErrorColor() local
274 theme.resolveAttribute(androidx.appcompat.R.attr.colorError, typedValue, true); in inChoiceTooShortStage_theHeaderColor_shouldTintOnErrorColor()
275 final int errorColor = typedValue.data; in inChoiceTooShortStage_theHeaderColor_shouldTintOnErrorColor()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DNavStateController.java179 TypedValue typedValue = new TypedValue(); in getAlphaFromResource() local
180 mContext.getResources().getValue(alphaId, typedValue, true); in getAlphaFromResource()
181 return typedValue.getFloat(); in getAlphaFromResource()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DNavStateController.java177 TypedValue typedValue = new TypedValue(); in getAlphaFromResource() local
178 mContext.getResources().getValue(alphaId, typedValue, true); in getAlphaFromResource()
179 return typedValue.getFloat(); in getAlphaFromResource()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java692 TypedValue typedValue = new TypedValue(); in applyTint() local
693 theme.resolveAttribute(attr, typedValue, true); in applyTint()
695 icon.setTint(context.getColor(typedValue.resourceId)); in applyTint()
711 TypedValue typedValue = new TypedValue(); in getColorResId() local
712 theme.resolveAttribute(attr, typedValue, true); in getColorResId()
713 return typedValue.resourceId; in getColorResId()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockPattern.java752 TypedValue typedValue = new TypedValue(); in updateStage() local
754 theme.resolveAttribute(androidx.appcompat.R.attr.colorError, typedValue, true); in updateStage()
755 mHeaderText.setTextColor(typedValue.data); in updateStage()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1346 final TypedValue typedValue = new TypedValue(); in getDeleteImageButton() local
1348 android.R.attr.selectableItemBackgroundBorderless, typedValue, true); in getDeleteImageButton()
1349 mDeleteImageButton.setBackgroundResource(typedValue.resourceId); in getDeleteImageButton()