Home
last modified time | relevance | path

Searched refs:getColor (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/packages/apps/Dialer/java/com/android/dialer/theme/base/impl/
DAospThemeImpl.java73 colorPrimary = array.getColor(/* index= */ 0, /* defValue= */ -1); in AospThemeImpl()
74 colorPrimaryDark = array.getColor(/* index= */ 1, /* defValue= */ -1); in AospThemeImpl()
75 colorAccent = array.getColor(/* index= */ 2, /* defValue= */ -1); in AospThemeImpl()
76 textColorPrimary = array.getColor(/* index= */ 3, /* defValue= */ -1); in AospThemeImpl()
77 textColorSecondary = array.getColor(/* index= */ 4, /* defValue= */ -1); in AospThemeImpl()
78 textColorPrimaryInverse = array.getColor(/* index= */ 5, /* defValue= */ -1); in AospThemeImpl()
79 textColorHint = array.getColor(/* index= */ 6, /* defValue= */ -1); in AospThemeImpl()
80 colorBackground = array.getColor(/* index= */ 7, /* defValue= */ -1); in AospThemeImpl()
81 colorBackgroundFloating = array.getColor(/* index= */ 8, /* defValue= */ -1); in AospThemeImpl()
82 colorIcon = array.getColor(/* index= */ 9, /* defValue= */ -1); in AospThemeImpl()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DMaterialColorMapUtils.java119 final int primaryColor = sPrimaryColors.getColor(i, 0); in calculatePrimaryAndSecondaryColor()
132 return new MaterialPalette(sPrimaryColors.getColor(indexBestMatch, 0), in calculatePrimaryAndSecondaryColor()
133 sSecondaryColors.getColor(indexBestMatch, 0)); in calculatePrimaryAndSecondaryColor()
137 final int primaryColor = resources.getColor( in getDefaultPrimaryAndSecondaryColors()
139 final int secondaryColor = resources.getColor( in getDefaultPrimaryAndSecondaryColors()
191 ? ContextCompat.getColor(activity, R.color.group_primary_color_dark) in getStatusBarColor()
192 : ContextCompat.getColor(activity, R.color.primary_color_dark); in getStatusBarColor()
202 ? ContextCompat.getColor(activity, R.color.group_primary_color) in getToolBarColor()
203 : ContextCompat.getColor(activity, R.color.primary_color); in getToolBarColor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyVisualAttributes.java128 mTextColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyTextColor, 0); in KeyVisualAttributes()
129 mTextInactivatedColor = keyAttr.getColor( in KeyVisualAttributes()
131 mTextShadowColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyTextShadowColor, 0); in KeyVisualAttributes()
132 mFunctionalTextColor = keyAttr.getColor(R.styleable.Keyboard_Key_functionalTextColor, 0); in KeyVisualAttributes()
133 mHintLetterColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyHintLetterColor, 0); in KeyVisualAttributes()
134 mHintLabelColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyHintLabelColor, 0); in KeyVisualAttributes()
135 mShiftedLetterHintInactivatedColor = keyAttr.getColor( in KeyVisualAttributes()
137 mShiftedLetterHintActivatedColor = keyAttr.getColor( in KeyVisualAttributes()
139 mPreviewTextColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyPreviewTextColor, 0); in KeyVisualAttributes()
/packages/apps/Dialer/java/com/android/incallui/
DThemeColorManager.java74 backgroundColorTop = context.getColor(R.color.incall_background_gradient_spam_top); in updateThemeColors()
75 backgroundColorMiddle = context.getColor(R.color.incall_background_gradient_spam_middle); in updateThemeColors()
76 backgroundColorBottom = context.getColor(R.color.incall_background_gradient_spam_bottom); in updateThemeColors()
77 backgroundColorSolid = context.getColor(R.color.incall_background_multiwindow_spam); in updateThemeColors()
80 backgroundColorTop = context.getColor(R.color.incall_background_gradient_top); in updateThemeColors()
81 backgroundColorMiddle = context.getColor(R.color.incall_background_gradient_middle); in updateThemeColors()
82 backgroundColorBottom = context.getColor(R.color.incall_background_gradient_bottom); in updateThemeColors()
83 backgroundColorSolid = context.getColor(R.color.incall_background_multiwindow); in updateThemeColors()
DInCallUIMaterialColorMapUtils.java63 if (primaryColors.getColor(i, 0) == color) { in calculatePrimaryAndSecondaryColor()
64 return new MaterialPalette(primaryColors.getColor(i, 0), secondaryColors.getColor(i, 0)); in calculatePrimaryAndSecondaryColor()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java319 mMonthWeekNumColor = res.getColor(R.color.month_week_num_color); in loadColors()
320 mMonthNumColor = res.getColor(R.color.month_day_number); in loadColors()
321 mMonthNumOtherColor = res.getColor(R.color.month_day_number_other); in loadColors()
322 mMonthNumTodayColor = res.getColor(R.color.month_today_number); in loadColors()
325 mMonthEventColor = res.getColor(R.color.month_event_color); in loadColors()
326 mMonthDeclinedEventColor = res.getColor(R.color.agenda_item_declined_color); in loadColors()
327 mMonthDeclinedExtrasColor = res.getColor(R.color.agenda_item_where_declined_text_color); in loadColors()
328 mMonthEventExtraColor = res.getColor(R.color.month_event_extra_color); in loadColors()
329 mMonthEventOtherColor = res.getColor(R.color.month_event_other_color); in loadColors()
330 mMonthEventExtraOtherColor = res.getColor(R.color.month_event_extra_other_color); in loadColors()
[all …]
DSimpleWeekView.java174 mBGColor = res.getColor(R.color.month_bgcolor); in SimpleWeekView()
175 mSelectedWeekBGColor = res.getColor(R.color.month_selected_week_bgcolor); in SimpleWeekView()
176 mFocusMonthColor = res.getColor(R.color.month_mini_day_number); in SimpleWeekView()
177 mOtherMonthColor = res.getColor(R.color.month_other_month_day_number); in SimpleWeekView()
178 mDaySeparatorColor = res.getColor(R.color.month_grid_lines); in SimpleWeekView()
179 mTodayOutlineColor = res.getColor(R.color.mini_month_today_outline_color); in SimpleWeekView()
180 mWeekNumColor = res.getColor(R.color.month_week_num_color); in SimpleWeekView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGradControl.java69 int grayPointCenterColor = res.getColor(R.color.gradcontrol_graypoint_center); in GradControl()
70 int grayPointEdgeColor = res.getColor(R.color.gradcontrol_graypoint_edge); in GradControl()
71 int pointCenterColor = res.getColor(R.color.gradcontrol_point_center); in GradControl()
72 int pointEdgeColor = res.getColor(R.color.gradcontrol_point_edge); in GradControl()
73 int pointShadowStartColor = res.getColor(R.color.gradcontrol_point_shadow_start); in GradControl()
74 int pointShadowEndColor = res.getColor(R.color.gradcontrol_point_shadow_end); in GradControl()
80 mLineColor = res.getColor(R.color.gradcontrol_line_color); in GradControl()
81 mlineShadowColor = res.getColor(R.color.gradcontrol_line_shadow); in GradControl()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/
DDarkThemeUiTest.java51 mTheme.getResources().getColor(com.android.documentsui.R.color.app_background_color, in themeNightModeEnable_actionBarColorShouldBeDark()
70 mTheme.getResources().getColor(android.R.color.black, mTheme)); in themeNightModeEnable_navigationBarColorShouldBeDark()
76 mTheme.getResources().getColor(com.android.documentsui.R.color.app_background_color, in themeNightModeEnable_windowBackgroundColorShouldBeDark()
83 mTheme.getResources().getColor(com.android.documentsui.R.color.app_background_color, in themeNightModeEnable_statusBarColorShouldBeDark()
90 mTheme.getResources().getColor(com.android.documentsui.R.color.primary, mTheme)); in appCompatThemeNightModeEnable_colorPrimaryShouldBeThemeable()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java144 .setColor(mContext.getColor(android.R.color.holo_orange_dark)) in initCarCategoriesButton()
157 .setColor(mContext.getColor(android.R.color.holo_orange_light)) in initCarCategoriesButton()
188 .setColor(mContext.getColor(android.R.color.holo_red_light)) in initImportanceHighBotton()
297 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initMessagingStyleButtonForDiffPerson()
332 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initMessagingStyleButtonForSamePerson()
373 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initTestMessagesButton()
420 .setColor(mContext.getColor(android.R.color.holo_purple)) in initProgressButton()
437 .setColor(mContext.getColor(android.R.color.holo_purple)) in initProgressButton()
467 .setColor(mContext.getColor(android.R.color.holo_green_dark)) in initNavigationButton()
496 .setColor(mContext.getColor(android.R.color.holo_green_dark)) in initNavigationButton()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DColorOptionsProvider.java97 int lightColor = overlayRes.getColor( in loadOptions()
100 int darkColor = overlayRes.getColor( in loadOptions()
121 lightColor = r.getColor( in addDefault()
124 darkColor = r.getColor( in addDefault()
130 lightColor = system.getColor( in addDefault()
133 darkColor = system.getColor( in addDefault()
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java73 colors[i] = getColor(Color.parseColor("#ffbdbdbd"), 1f); in getSwitchThumbColorStateList()
96 colors[i] = getColor(color, 0.3f); in getSwitchTrackColorStateList()
112 return context.getResources().getColor(typedValue.resourceId); in getThemeAttrColor()
121 return getColor(color, alpha); in getThemeAttrColor()
124 private static int getColor(int color, float alpha) { in getColor() method in SwitchCompatUtils
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DConfig.java46 placeholderColor = r.getColor(R.color.albumset_placeholder); in AlbumSetPage()
74 labelSpec.backgroundColor = r.getColor( in AlbumSetPage()
76 labelSpec.titleColor = r.getColor(R.color.albumset_label_title); in AlbumSetPage()
77 labelSpec.countColor = r.getColor(R.color.albumset_label_count); in AlbumSetPage()
97 placeholderColor = r.getColor(R.color.album_placeholder); in AlbumPage()
/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java98 mOutgoingBubbleColor = resources.getColor(R.color.message_bubble_color_outgoing); in updateDrawables()
100 resources.getColor(R.color.message_error_bubble_color_incoming); in updateDrawables()
102 resources.getColor(R.color.message_audio_button_color_incoming); in updateDrawables()
103 mSelectedBubbleColor = resources.getColor(R.color.message_bubble_color_selected); in updateDrawables()
104 mThemeColor = resources.getColor(R.color.primary_color); in updateDrawables()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowPresenter.java299 .getColor(R.color.dvr_schedules_item_info_grey, null)); in greyOutInfo()
303 .getColor(R.color.dvr_schedules_item_info_grey, null)); in greyOutInfo()
307 .getColor(R.color.dvr_schedules_item_info_grey, null)); in greyOutInfo()
311 .getColor(R.color.dvr_schedules_item_info_grey, null)); in greyOutInfo()
315 .getColor(R.color.dvr_schedules_item_info_grey, null)); in greyOutInfo()
321 mInfoContainer.getResources().getColor(R.color.dvr_schedules_item_info, null)); in whiteBackInfo()
323 mInfoContainer.getResources().getColor(R.color.dvr_schedules_item_main, null)); in whiteBackInfo()
325 mInfoContainer.getResources().getColor(R.color.dvr_schedules_item_info, null)); in whiteBackInfo()
327 mInfoContainer.getResources().getColor(R.color.dvr_schedules_item_info, null)); in whiteBackInfo()
329 mInfoContainer.getResources().getColor(R.color.dvr_schedules_item_info, null)); in whiteBackInfo()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DParticleCollection.java82 colors.add(resources.getColor(R.color.face_anim_particle_color_1, theme)); in ParticleCollection()
83 colors.add(resources.getColor(R.color.face_anim_particle_color_2, theme)); in ParticleCollection()
84 colors.add(resources.getColor(R.color.face_anim_particle_color_3, theme)); in ParticleCollection()
85 colors.add(resources.getColor(R.color.face_anim_particle_color_4, theme)); in ParticleCollection()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DParticleCollection.java82 colors.add(resources.getColor(R.color.face_anim_particle_color_1, theme)); in ParticleCollection()
83 colors.add(resources.getColor(R.color.face_anim_particle_color_2, theme)); in ParticleCollection()
84 colors.add(resources.getColor(R.color.face_anim_particle_color_3, theme)); in ParticleCollection()
85 colors.add(resources.getColor(R.color.face_anim_particle_color_4, theme)); in ParticleCollection()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateView.java79 mEndsBackgroundColor = res.getColor(R.color.filtershow_stateview_end_background); in StateView()
80 mEndsTextColor = res.getColor(R.color.filtershow_stateview_end_text); in StateView()
81 mBackgroundColor = res.getColor(R.color.filtershow_stateview_background); in StateView()
82 mTextColor = res.getColor(R.color.filtershow_stateview_text); in StateView()
83 mSelectedBackgroundColor = res.getColor(R.color.filtershow_stateview_selected_background); in StateView()
84 mSelectedTextColor = res.getColor(R.color.filtershow_stateview_selected_text); in StateView()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrDecorateView.java81 mCornerColor = context.getResources().getColor(R.color.qr_corner_line_color); in QrDecorateView()
82 mFocusedCornerColor = context.getResources().getColor(R.color.qr_focused_corner_line_color); in QrDecorateView()
83 mBackgroundColor = context.getResources().getColor(R.color.qr_background_color); in QrDecorateView()
90 mTransparentPaint.setColor(getResources().getColor(android.R.color.transparent)); in QrDecorateView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrDecorateView.java81 mCornerColor = context.getResources().getColor(R.color.qr_corner_line_color); in QrDecorateView()
82 mFocusedCornerColor = context.getResources().getColor(R.color.qr_focused_corner_line_color); in QrDecorateView()
83 mBackgroundColor = context.getResources().getColor(R.color.qr_background_color); in QrDecorateView()
90 mTransparentPaint.setColor(getResources().getColor(android.R.color.transparent)); in QrDecorateView()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerFragment.java936 getResources().getColor(R.color.rotation_tile_enabled_background_color)); in RotationHolder()
939 getResources().getColor(R.color.rotation_tile_enabled_title_text_color)); in RotationHolder()
941 getResources().getColor(R.color.rotation_tile_enabled_subtitle_text_color)); in RotationHolder()
943 getResources().getColor(R.color.rotation_tile_enabled_refresh_icon_color), in RotationHolder()
974 … ? getResources().getColor(R.color.rotation_tile_not_enabled_background_color) in bindRotationInitializationState()
975 … : getResources().getColor(R.color.rotation_tile_enabled_background_color); in bindRotationInitializationState()
978 … ? getResources().getColor(R.color.rotation_tile_not_enabled_title_text_color) in bindRotationInitializationState()
979 … : getResources().getColor(R.color.rotation_tile_enabled_title_text_color); in bindRotationInitializationState()
982 … ? getResources().getColor(R.color.rotation_tile_not_enabled_subtitle_text_color) in bindRotationInitializationState()
983 … : getResources().getColor(R.color.rotation_tile_enabled_subtitle_text_color); in bindRotationInitializationState()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DCustomizationParamsTest.java72 assertThat(instance.statusBarColor, equalTo(getColor(DEFAULT_STATUS_BAR_COLOR_ID))); in defaultColorManagedProfile()
85 assertThat(instance.statusBarColor, equalTo(getColor(DEFAULT_STATUS_BAR_COLOR_ID))); in defaultColorDeviceOwner()
189 private int getColor(int colorId) { in getColor() method in CustomizationParamsTest
190 return mContext.getColor(colorId); in getColor()
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DTemperatureBarOverlay.java127 mTempColor1 = res.getColor(R.color.temperature_1); in onFinishInflate()
128 mTempColor2 = res.getColor(R.color.temperature_2); in onFinishInflate()
129 mTempColor3 = res.getColor(R.color.temperature_3); in onFinishInflate()
130 mTempColor4 = res.getColor(R.color.temperature_4); in onFinishInflate()
131 mTempColor5 = res.getColor(R.color.temperature_5); in onFinishInflate()
133 mOffColor = res.getColor(R.color.hvac_temperature_off_text_bg_color); in onFinishInflate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategoryFragment.java538 ? new ColorDrawable(getResources().getColor(R.color.secondary_color, in setUpLiveWallpaperPreview()
673 getResources().getColor(R.color.secondary_color)); in updateThumbnail()
678 new ColorDrawable(getResources().getColor( in updateThumbnail()
709 ContextCompat.getColor(getContext(), R.color.primary_color));
812 … getActivity(), mWallpaperImage, getResources().getColor(R.color.secondary_color)); in bindWallpaperAsset()
891 getResources().getColor(R.color.currently_set_explore_button_color, in updateExploreSectionVisibility()
993 getResources().getColor(R.color.secondary_color, getContext().getTheme())); in bindHomeWallpaper()
1030 getResources().getColor(R.color.currently_set_explore_button_color, in bindHomeWallpaper()
1049 getResources().getColor(R.color.currently_set_explore_button_color, in bindHomeWallpaper()
1078 … getActivity(), mLockWallpaperImage, getResources().getColor(R.color.secondary_color)); in bindLockWallpaper()
[all …]
/packages/apps/Dialer/java/com/android/dialer/lettertile/
DLetterTileDrawable.java121 spamColor = res.getColor(R.color.spam_contact_background); in LetterTileDrawable()
122 defaultColor = res.getColor(R.color.letter_tile_default_color); in LetterTileDrawable()
123 tileFontColor = res.getColor(R.color.letter_tile_font_color); in LetterTileDrawable()
246 public int getColor() { in getColor() method in LetterTileDrawable
271 return colors.getColor(color, defaultColor); in pickColor()

12345678910>>...16