Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 375) sorted by relevance

12345678910>>...15

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DDefaultSoftKeyboard.java644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off)); in updateIndicator()
645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on)); in updateIndicator()
651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
653 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
656 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_lock)); in updateIndicator()
657 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java454 R.color.timestamp_text_incoming) : subscriptionEntry.displayColor); in updateViewContent()
854 final int selectedImageTint = getResources().getColor(R.color.message_image_selected_tint); in updateMessageAttachmentsAppearance()
905 messageColorResId = R.color.message_text_color_incoming; in updateTextAppearance()
906 statusColorResId = R.color.message_action_status_text; in updateTextAppearance()
907 infoColorResId = R.color.message_action_info_text; in updateTextAppearance()
909 timestampColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
910 subjectLabelColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
914 timestampColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
915 subjectLabelColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
919 R.color.message_text_color_incoming : R.color.message_text_color_outgoing); in updateTextAppearance()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java829 public static int getDisplayColorFromColor(int color) { in getDisplayColorFromColor() argument
831 return color; in getDisplayColorFromColor()
835 Color.colorToHSV(color, hsv); in getDisplayColorFromColor()
843 public static int getDeclinedColorFromColor(int color) { in getDeclinedColorFromColor() argument
846 int r = (((color & 0x00ff0000) * a) + ((bg & 0x00ff0000) * (0xff - a))) & 0xff000000; in getDeclinedColorFromColor()
847 int g = (((color & 0x0000ff00) * a) + ((bg & 0x0000ff00) * (0xff - a))) & 0x00ff0000; in getDeclinedColorFromColor()
848 int b = (((color & 0x000000ff) * a) + ((bg & 0x000000ff) * (0xff - a))) & 0x0000ff00; in getDeclinedColorFromColor()
882 public int color; field in Utils.DNAStrand
891 int color; // Calendar color or black for conflicts field in Utils.DNASegment
933 CONFLICT_COLOR = res.getColor(R.color.month_dna_conflict_time_color); in createDNAStrands()
[all …]
DEvent.java121 public int color; field in Event
162 e.color = color; in clone()
183 dest.color = color; in copyTo()
204 e.color = 0; in newInstance()
356 mNoColorColor = res.getColor(R.color.event_center); in buildEventsFromCursor()
389 e.color = Utils.getDisplayColorFromColor(cEvents.getInt(PROJECTION_COLOR_INDEX)); in generateEventFromCursor()
391 e.color = mNoColorColor; in generateEventFromCursor()
542 Log.e("Cal", "+ color = " + color); in dump()
/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 …]
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java41 public static void updateSwitchCompatColor(SwitchCompat switchCompat, final int color) { in updateSwitchCompatColor() argument
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
76 colors[i] = color; in getSwitchThumbColorStateList()
87 final int color, final TypedValue typedValue) { in getSwitchTrackColorStateList() argument
96 colors[i] = getColor(color, 0.3f); in getSwitchTrackColorStateList()
120 final int color = getThemeAttrColor(context, typedValue, attr); in getThemeAttrColor() local
121 return getColor(color, alpha); in getThemeAttrColor()
124 private static int getColor(int color, float alpha) { in getColor() argument
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DHolographicOutlineHelper.java96 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyExpensiveOutlineWithBlur() argument
98 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, true, in applyExpensiveOutlineWithBlur()
101 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyExpensiveOutlineWithBlur() argument
181 mHolographicPaint.setColor(color); in applyExpensiveOutlineWithBlur()
200 void applyExtraThickExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyExtraThickExpensiveOutlineWithBlur() argument
202 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, EXTRA_THICK); in applyExtraThickExpensiveOutlineWithBlur()
205 void applyThickExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyThickExpensiveOutlineWithBlur() argument
207 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, THICK); in applyThickExpensiveOutlineWithBlur()
210 void applyMediumExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyMediumExpensiveOutlineWithBlur() argument
212 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, clipAlpha, in applyMediumExpensiveOutlineWithBlur()
[all …]
/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()
123 int color; in getBubbleDrawable() local
125 color = mSelectedBubbleColor; in getBubbleDrawable()
128 color = mIncomingErrorBubbleColor; in getBubbleDrawable()
130 color = mThemeColor; in getBubbleDrawable()
133 color = mOutgoingBubbleColor; in getBubbleDrawable()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionPreviewFragment.java210 int color = mTextColor & 0xff000000 | textColor & 0xffffff; in livePreviewTextColor() local
211 mPreviewText.setForegroundColor(color); in livePreviewTextColor()
217 int color = mTextColor & 0xffffff | opacity & 0xff000000; in livePreviewTextOpacity() local
218 mPreviewText.setForegroundColor(color); in livePreviewTextOpacity()
223 int color = mBackgroundColor & 0xff000000 | bgColor & 0xffffff; in livePreviewBackgroundColor() local
224 mPreviewText.setBackgroundColor(color); in livePreviewBackgroundColor()
230 int color = mBackgroundColor & 0xffffff | opacity & 0xff000000; in livePreviewBackgroundOpacity() local
231 mPreviewText.setBackgroundColor(color); in livePreviewBackgroundOpacity()
255 int color = opacity | windowColor & 0xffffff; in livePreviewWindowColor() local
256 mPreviewWindow.setBackgroundColor(color); in livePreviewWindowColor()
[all …]
/packages/apps/Messaging/jni/
DGifTranscoder.cpp32 #define ALPHA(color) (((color) >> 24) & 0xff) argument
33 #define RED(color) (((color) >> 16) & 0xff) argument
34 #define GREEN(color) (((color) >> 8) & 0xff) argument
35 #define BLUE(color) (((color) >> 0) & 0xff) argument
407 ColorARGB color) { in fillRect() argument
414 *renderPixel = color; in fillRect()
495 ColorARGB GifTranscoder::gifColorToColorARGB(const GifColorType& color) { in gifColorToColorARGB() argument
496 return MAKE_COLOR_ARGB(0xff, color.Red, color.Green, color.Blue); in gifColorToColorARGB()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorDrawTabletUI.java81 ParameterColor color; in setDrawRepresentation() local
82 color = (ParameterColor) mRep.getParam(FilterDrawRepresentation.PARAM_COLOR); in setDrawRepresentation()
83 color.setValue(mBasColors[mSelectedColorButton]); in setDrawRepresentation()
138 button.setBackgroundResource(android.R.color.transparent); in EditorDrawTabletUI()
170 mTransparent = res.getColor(R.color.color_chooser_unslected_border); in EditorDrawTabletUI()
171 mSelected = res.getColor(R.color.color_chooser_slected_border); in EditorDrawTabletUI()
235 int color = Color.HSVToColor((int) (hsvo[3] * 255), hsvo); in EditorDrawTabletUI()
239 mBasColors[mSelectedColorButton] = color; in EditorDrawTabletUI()
241 sd.setColor(color); in EditorDrawTabletUI()
245 pram.setValue(color); in EditorDrawTabletUI()
[all …]
DEditorColorBorderTabletUI.java82 ParameterColor color; in setColorBorderRepresentation() local
83 color = (ParameterColor) mRep.getParam(FilterColorBorderRepresentation.PARAM_COLOR); in setColorBorderRepresentation()
84 mBasColors = color.getColorPalette(); in setColorBorderRepresentation()
85 color.setValue(mBasColors[mSelectedColorButton]); in setColorBorderRepresentation()
165 mTransparent = res.getColor(R.color.color_chooser_unslected_border); in setupColor()
166 mSelected = res.getColor(R.color.color_chooser_slected_border); in setupColor()
224 int color = Color.HSVToColor((int) (hsvo[3] * 255), hsvo); in setupColor()
228 mBasColors[mSelectedColorButton] = color; in setupColor()
230 sd.setColor(color); in setupColor()
234 pram.setValue(color); in setupColor()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java92 int color; field in SelectCalendarsSimpleAdapter.CalendarRow
103 mColorCalendarVisible = mRes.getColor(R.color.calendar_visible); in SelectCalendarsSimpleAdapter()
104 mColorCalendarHidden = mRes.getColor(R.color.calendar_hidden); in SelectCalendarsSimpleAdapter()
105 mColorCalendarSecondaryVisible = mRes.getColor(R.color.calendar_secondary_visible); in SelectCalendarsSimpleAdapter()
106 mColorCalendarSecondaryHidden = mRes.getColor(R.color.calendar_secondary_hidden); in SelectCalendarsSimpleAdapter()
202 mData[p].color = c.getInt(mColorColumn); in initData()
224 int color = Utils.getDisplayColorFromColor(mData[position].color); in getView() local
228 final View delegate = view.findViewById(R.id.color); in getView()
250 View colorView = view.findViewById(R.id.color); in getView()
251 colorView.setBackgroundColor(color); in getView()
[all …]
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralRS.java237 Float4 color = new Float4(); in generateSpiral() local
238 color.x = primary.x + ((secondary.x - primary.x) * r); in generateSpiral()
239 color.y = primary.y + ((secondary.y - primary.y) * r); in generateSpiral()
240 color.z = primary.z + ((secondary.z - primary.z) * r); in generateSpiral()
241 color.w = primary.w + ((secondary.w - primary.w) * r); in generateSpiral()
244 points.set_color(i, color, false); in generateSpiral()
254 private static Float4 convertColor(int color) { in convertColor() argument
255 float red = Color.red(color) / 255.0f; in convertColor()
256 float green = Color.green(color) / 255.0f; in convertColor()
257 float blue = Color.blue(color) / 255.0f; in convertColor()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetConversationListItemViewBuilder.java95 int color[] = new int[] in displayFolders() local
97 Bitmap bitmap = Bitmap.createBitmap(color, 1, 1, Bitmap.Config.RGB_565); in displayFolders()
118 SUBJECT_TEXT_COLOR_READ = res.getColor(R.color.subject_text_color_read); in WidgetConversationListItemViewBuilder()
119 SUBJECT_TEXT_COLOR_UNREAD = res.getColor(R.color.subject_text_color_unread); in WidgetConversationListItemViewBuilder()
120 SNIPPET_TEXT_COLOR = res.getColor(R.color.snippet_text_color); in WidgetConversationListItemViewBuilder()
121 DATE_TEXT_COLOR_READ = res.getColor(R.color.date_text_color_read); in WidgetConversationListItemViewBuilder()
122 DATE_TEXT_COLOR_UNREAD = res.getColor(R.color.date_text_color_unread); in WidgetConversationListItemViewBuilder()
131 private static SpannableStringBuilder addStyle(CharSequence text, int size, int color) { in addStyle() argument
135 if (color != 0) { in addStyle()
136 builder.setSpan(new ForegroundColorSpan(color), 0, text.length(), in addStyle()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java181 final int color) { in getMoreSuggestionsHint() argument
186 paint.setColor(color); in getMoreSuggestionsHint()
309 final int color; in getSuggestionTextColor() local
312 color = mColorAutoCorrect; in getSuggestionTextColor()
314 color = mColorValidTypedWord; in getSuggestionTextColor()
316 color = mColorTypedWord; in getSuggestionTextColor()
318 color = mColorSuggested; in getSuggestionTextColor()
321 return applyAlpha(color, mAlphaObsoleted); in getSuggestionTextColor()
323 return color; in getSuggestionTextColor()
326 private static int applyAlpha(final int color, final float alpha) { in applyAlpha() argument
[all …]
/packages/apps/Gallery2/jni/filters/
Dfilters.h28 #define GetA(color) (((color) >> 24) & 0xFF) argument
29 #define GetB(color) (((color) >> 16) & 0xFF) argument
30 #define GetG(color) (((color) >> 8) & 0xFF) argument
31 #define GetR(color) (((color) >> 0) & 0xFF) argument
/packages/apps/Camera2/src/com/android/camera/ui/
DBottomBar.java112 private void setPaintColor(int alpha, int color) { in setPaintColor() argument
114 mAnimatedCircleDrawable.setColor(color); in setPaintColor()
117 mColorDrawable.setColor(color); in setPaintColor()
124 intentBackground.setColor(color); in setPaintColor()
133 private void setCancelBackgroundColor(int alpha, int color) { in setCancelBackgroundColor() argument
138 animatedCircleDrawable.setColor(color); in setCancelBackgroundColor()
143 colorDrawable.setColor(color); in setCancelBackgroundColor()
373 public void setBackgroundColor(int color) { in setBackgroundColor() argument
374 mBackgroundColor = color; in setBackgroundColor()
379 private void setBackgroundPressedColor(int color) { in setBackgroundPressedColor() argument
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DMaterialColorMapUtils.java109 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { in calculatePrimaryAndSecondaryColor() argument
112 final float colorHue = hue(color); in calculatePrimaryAndSecondaryColor()
135 R.color.quickcontact_default_photo_tint_color); in getDefaultPrimaryAndSecondaryColors()
137 R.color.quickcontact_default_photo_tint_color_dark); in getDefaultPrimaryAndSecondaryColors()
146 public static float hue(int color) { in hue() argument
147 int r = (color >> 16) & 0xFF; in hue()
148 int g = (color >> 8) & 0xFF; in hue()
149 int b = color & 0xFF; in hue()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java88 int color; field in CalendarAppWidgetModel.EventInfo
114 builder.append(String.format("0x%x", color)); in toString()
135 result = prime * result + color; in hashCode()
180 if (color != other.color) { in equals()
292 final int color = cursor.getInt(CalendarAppWidgetService.INDEX_COLOR); in buildFromCursor() local
315 location, color, selfStatus)); in buildFromCursor()
355 int startDay, int endDay, String title, String location, int color, int selfStatus) { in populateEventInfo() argument
386 eventInfo.color = color; in populateEventInfo()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java501 public void setHeaderTintColor(int color) { in setHeaderTintColor() argument
502 mHeaderTintColor = color; in setHeaderTintColor()
506 mEdgeGlowBottom.setColor((color & 0xffffff) | Color.argb(edgeEffectAlpha, 0, 0, 0)); in setHeaderTintColor()
1173 private ColorMatrix alphaMatrix(float alpha, int color) { in alphaMatrix() argument
1174 mAlphaMatrixValues[0] = Color.red(color) * alpha / 255; in alphaMatrix()
1175 mAlphaMatrixValues[6] = Color.green(color) * alpha / 255; in alphaMatrix()
1176 mAlphaMatrixValues[12] = Color.blue(color) * alpha / 255; in alphaMatrix()
1189 private ColorMatrix multiplyBlendMatrix(int color, float alpha) { in multiplyBlendMatrix() argument
1190 mMultiplyBlendMatrixValues[0] = multiplyBlend(Color.red(color), alpha); in multiplyBlendMatrix()
1191 mMultiplyBlendMatrixValues[6] = multiplyBlend(Color.green(color), alpha); in multiplyBlendMatrix()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDragView.java243 public void setColor(int color) { in setColor() argument
247 if (color != 0) { in setColor()
252 setColorScale(color, m2); in setColor()
358 public static void setColorScale(int color, ColorMatrix target) { in setColorScale() argument
359 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, in setColorScale()
360 Color.blue(color) / 255f, Color.alpha(color) / 255f); in setColorScale()
/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/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java213 public void fillRect(float x, float y, float width, float height, int color) { in fillRect() argument
214 mGLState.setColorMode(color, mAlpha); in fillRect()
464 float[] color = mTextureColor; in setTextureColor() local
465 color[0] = r; in setTextureColor()
466 color[1] = g; in setTextureColor()
467 color[2] = b; in setTextureColor()
468 color[3] = alpha; in setTextureColor()
648 public void setColorMode(int color, float alpha) { in setColorMode() argument
649 setBlendEnabled(!Utils.isOpaque(color) || alpha < OPAQUE_ALPHA); in setColorMode()
657 float prealpha = (color >>> 24) * alpha * 65535f / 255f / 255f; in setColorMode()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DInCallUIMaterialColorMapUtils.java30 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { in calculatePrimaryAndSecondaryColor() argument
31 if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) { in calculatePrimaryAndSecondaryColor()
36 if (sPrimaryColors.getColor(i, 0) == color) { in calculatePrimaryAndSecondaryColor()
44 return super.calculatePrimaryAndSecondaryColor(color); in calculatePrimaryAndSecondaryColor()
48 final int primaryColor = resources.getColor(R.color.dialer_theme_color, null); in getDefaultPrimaryAndSecondaryColors()
49 final int secondaryColor = resources.getColor(R.color.dialer_theme_color_dark, null); in getDefaultPrimaryAndSecondaryColors()

12345678910>>...15