/packages/apps/Dialer/java/com/android/dialer/theme/base/impl/ |
D | AospThemeImpl.java | 73 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/ |
D | MaterialColorMapUtils.java | 119 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/ |
D | KeyVisualAttributes.java | 128 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/ |
D | ThemeColorManager.java | 74 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()
|
D | InCallUIMaterialColorMapUtils.java | 63 if (primaryColors.getColor(i, 0) == color) { in calculatePrimaryAndSecondaryColor() 64 return new MaterialPalette(primaryColors.getColor(i, 0), secondaryColors.getColor(i, 0)); in calculatePrimaryAndSecondaryColor()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GradControl.java | 69 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/ |
D | DarkThemeUiTest.java | 55 mTheme.getResources().getColor(com.android.documentsui.R.color.app_background_color, in themeNightModeEnable_actionBarColorShouldBeDark() 74 mTheme.getResources().getColor(android.R.color.black, mTheme)); in themeNightModeEnable_navigationBarColorShouldBeDark() 81 mTheme.getResources().getColor(com.android.documentsui.R.color.app_background_color, in themeNightModeEnable_windowBackgroundColorShouldBeDark() 89 mTheme.getResources().getColor(com.android.documentsui.R.color.app_background_color, in themeNightModeEnable_statusBarColorShouldBeDark() 97 mTheme.getResources().getColor(com.android.documentsui.R.color.primary, mTheme)); in appCompatThemeNightModeEnable_colorPrimaryShouldBeThemeable()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | SwitchCompatUtils.java | 73 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/Calendar/src/com/android/calendar/month/ |
D | MonthWeekEventsView.kt | 247 mMonthWeekNumColor = res.getColor(R.color.month_week_num_color) in loadColors() 248 mMonthNumColor = res.getColor(R.color.month_day_number) in loadColors() 249 mMonthNumOtherColor = res.getColor(R.color.month_day_number_other) in loadColors() 250 mMonthNumTodayColor = res.getColor(R.color.month_today_number) in loadColors() 253 mMonthEventColor = res.getColor(R.color.month_event_color) in loadColors() 254 mMonthDeclinedEventColor = res.getColor(R.color.agenda_item_declined_color) in loadColors() 255 mMonthDeclinedExtrasColor = res.getColor(R.color.agenda_item_where_declined_text_color) in loadColors() 256 mMonthEventExtraColor = res.getColor(R.color.month_event_extra_color) in loadColors() 257 mMonthEventOtherColor = res.getColor(R.color.month_event_other_color) in loadColors() 258 mMonthEventExtraOtherColor = res.getColor(R.color.month_event_extra_other_color) in loadColors() [all …]
|
D | SimpleWeekView.kt | 538 mBGColor = res.getColor(R.color.month_bgcolor) 539 mSelectedWeekBGColor = res.getColor(R.color.month_selected_week_bgcolor) 540 mFocusMonthColor = res.getColor(R.color.month_mini_day_number) 541 mOtherMonthColor = res.getColor(R.color.month_other_month_day_number) 542 mDaySeparatorColor = res.getColor(R.color.month_grid_lines) 543 mTodayOutlineColor = res.getColor(R.color.mini_month_today_outline_color) 544 mWeekNumColor = res.getColor(R.color.month_week_num_color)
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Config.java | 46 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/ThemePicker/src/com/android/customization/model/theme/custom/ |
D | ColorOptionsProvider.java | 97 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/ui/ |
D | ConversationDrawables.java | 98 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/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | DuoTabs.java | 118 ? getResources().getColor(R.color.text_color_on_accent) in updateTabIndicator() 119 : SystemColors.getColor(c, android.R.attr.textColorPrimary)); in updateTabIndicator() 126 ? getResources().getColor(R.color.text_color_on_accent) in updateTabIndicator() 127 : SystemColors.getColor(c, android.R.attr.textColorPrimary)); in updateTabIndicator()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
D | NotificationFragment.java | 152 .setColor(mContext.getColor(android.R.color.holo_orange_dark)) in initCarCategoriesButton() 165 .setColor(mContext.getColor(android.R.color.holo_orange_light)) in initCarCategoriesButton() 197 .setColor(mContext.getColor(android.R.color.holo_red_light)) in initImportanceHighBotton() 314 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initCustomizableMessageButton() 383 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initMessagingStyleButtonForDiffPerson() 474 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initMessagingStyleButtonForSamePerson() 516 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initMessagingStyleButtonForLongMessageSamePerson() 565 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initMessagingStyleButtonWithMuteAction() 610 .setColor(mContext.getColor(android.R.color.holo_green_light)) in initTestMessagesButton() 657 .setColor(mContext.getColor(android.R.color.holo_purple)) in initProgressButton() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | ParticleCollection.java | 82 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/TV/src/com/android/tv/dvr/ui/list/ |
D | ScheduleRowPresenter.java | 299 .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/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
D | StateView.java | 79 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/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | PhotoPickerActivity.java | 120 mToolBarIconColor = ta.getColor(/* index */ 1,/* defValue */ -1); in onCreate() 123 mDefaultBackgroundColor = getColor(R.color.picker_background_color); in onCreate() 396 toolbarColor = new ColorDrawable(getColor(android.R.color.transparent)); in updateToolbar() 399 toolbarColor = new ColorDrawable(getColor(R.color.preview_scrim_solid_color)); in updateToolbar() 428 final int navigationBarColor = isPreview ? getColor(R.color.preview_background_color) : in updateStatusBarAndNavigationBar() 432 final int statusBarColor = isPreview ? getColor(R.color.preview_background_color) : in updateStatusBarAndNavigationBar() 433 getColor(android.R.color.transparent); in updateStatusBarAndNavigationBar()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/ |
D | TemperatureBarOverlay.java | 127 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/Settings/src/com/android/settings/display/ |
D | ConversationMessageView.java | 78 mIconTextColor = a.getColor(R.styleable.ConversationMessageView_iconTextColor, 0); in ConversationMessageView() 79 mIconBackgroundColor = a.getColor(R.styleable.ConversationMessageView_iconBackgroundColor, in ConversationMessageView() 186 getContext().getColor(R.color.message_icon_color))}); in updateViewContent() 228 context.getColor(bubbleColorResId)); in updateViewAppearance() 256 final int messageColor = getContext().getColor(messageColorResId); in updateTextAppearance()
|
/packages/apps/Dialer/java/com/android/dialer/lettertile/ |
D | LetterTileDrawable.java | 121 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()
|
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/voice/ |
D | BitmapSoundLevelView.java | 94 mEnableBackgroundColor = a.getColor(R.styleable.BitmapSoundLevelView_enabledBackgroundColor, in BitmapSoundLevelView() 97 mDisableBackgroundColor = a.getColor( in BitmapSoundLevelView() 268 mPaint.setColor(getResources().getColor(R.color.search_mic_background)); in onDraw() 274 mPaint.setColor(getResources().getColor(R.color.search_mic_levels_guideline)); in onDraw()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListItemViewTest.java | 109 assertEquals(context.getResources().getColor(R.color.conversation_list_item_unread), in verifyContent() 111 assertEquals(context.getResources().getColor(R.color.conversation_list_item_unread), in verifyContent() 117 assertEquals(context.getResources().getColor(R.color.conversation_list_item_read), in verifyContent() 119 assertEquals(context.getResources().getColor(R.color.conversation_list_item_read), in verifyContent()
|
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 81 sDefaultColor = res.getColor(R.color.letter_tile_default_color); in LetterTileDrawable() 82 sTileFontColor = res.getColor(R.color.letter_tile_font_color); in LetterTileDrawable() 178 public int getColor() { in getColor() method in LetterTileDrawable 193 return sColors.getColor(color, sDefaultColor); in pickColor()
|