Searched refs:color (Results 1 - 25 of 283) sorted by path

1234567891011>>

/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp94 // The pixel data is stored as combined color+alpha, 8 bits per pixel.
110 uint8_t alpha, color; local
113 color = 0x00;
117 color = FontBitmap::pixels[i] & ~1;
120 *pix++ = color;
121 *pix++ = color;
122 *pix++ = color;
/frameworks/av/cmds/stagefright/
H A Drecord.cpp52 // Check the color format to make sure
154 // returns -1 if mapping of the given color is unsuccessful
155 // returns an omx color enum value otherwise
156 static int translateColorToOmxEnumValue(int color) {
157 switch (color) {
163 fprintf(stderr, "Unsupported color: %d\n", color);
182 fprintf(stderr, "input color format must be 0 (YUV420SP) or 1 (YUV420P)\n");
H A Drecordvideo.cpp38 fprintf(stderr, " -c YUV420 color format: [0] semi planar or [1] planar or other omx YUV420 color format (default: 1)\n");
104 // iterate through solid planes of color.
139 // returns -1 if mapping of the given color is unsuccessful
140 // returns an omx color enum value otherwise
141 static int translateColorToOmxEnumValue(int color) { argument
142 switch (color) {
148 fprintf(stderr, "Custom OMX color format: %d\n", color);
149 if (color
[all...]
/frameworks/av/media/libmedia/
H A DMediaCodecInfo.cpp73 uint32_t color = static_cast<uint32_t>(parcel.readInt32()); local
75 caps->mColorFormats.push_back(color);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp407 // Parse a color represented as an HTML-style 'RRGGBB' string: each pair of
410 // corresponding elements of color.
412 // If the input string isn't valid, parseColor returns false and color is
414 static bool parseColor(const char str[7], float color[3]) { argument
428 memcpy(color, tmpColor, sizeof(tmpColor));
481 char color[7] = "000000"; // default to black if unspecified local
490 else if (sscanf(l, " %c %d %d %s #%6s", &pathType, &count, &pause, path, color) >= 4) {
491 // ALOGD("> type=%c, count=%d, pause=%d, path=%s, color=%s", pathType, count, pause, path, color);
498 if (!parseColor(color, par
[all...]
/frameworks/base/core/java/android/app/
H A DActivity.java330 * <td align="center"><font color="#800000"><strong>Pre-{@link android.os.Build.VERSION_CODES#HONEYCOMB}</strong></font></td>
344 * <td align="center"><font color="#800000"><strong>Yes</strong></font></td>
357 * <td align="center"><font color="#800000"><strong>Yes</strong></font></td>
3680 // Get the primary color and update the TaskDescription for this activity
5074 * Change the color of the title associated with this activity.
5097 protected void onTitleChanged(CharSequence title, int color) { argument
5102 if (color != 0) {
5103 win.setTitleColor(color);
H A DNotification.java334 * The color of the led. The hardware will do its best approximation.
514 * Accent color (an ARGB integer like the constants in {@link android.graphics.Color})
518 * {@link #icon} image (stenciled in white) atop a field of this color. Alpha components are
521 public int color = COLOR_DEFAULT; field in class:Notification
524 * Special value of {@link #color} telling the system not to decorate this notification with
525 * any special color but instead use default colors when presenting this notification.
1421 color = parcel.readInt();
1520 that.color = this.color;
1684 parcel.writeInt(color);
[all...]
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java44 * "color" subdirectory directory of an application's resource directory. The XML file contains
49 * &lt;item android:state_focused="true" android:color="@color/testcolor1"/&gt;
50 * &lt;item android:state_pressed="true" android:state_enabled="false" android:color="@color/testcolor2" /&gt;
51 * &lt;item android:state_enabled="false" android:color="@color/testcolor3" /&gt;
52 * &lt;item android:color="@color/testcolor5"/&gt;
56 * This defines a set of state spec / color pair
99 valueOf(int color) argument
350 addFirstIfMissing( ColorStateList colorStateList, int state, int color) argument
[all...]
H A DStringBlock.java249 sub = subtag(tag, ";color=");
309 * Returns a span for the specified color string representation.
310 * If the specified string does not represent a color (null, empty, etc.)
311 * the color black is returned instead.
313 * @param color The color as a string. Can be a resource reference,
315 * @param foreground True if the color will be used as the foreground color,
322 private static CharacterStyle getColor(String color, boolean foreground) { argument
325 if (!TextUtils.isEmpty(color)) {
[all...]
/frameworks/base/core/java/android/gesture/
H A DGesture.java182 * @param color
185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { argument
194 paint.setColor(color);
217 * @param color
220 public Bitmap toBitmap(int width, int height, int inset, int color) { argument
228 paint.setColor(color);
H A DGestureOverlayView.java207 public void setGestureColor(int color) { argument
208 mCertainGestureColor = color;
211 public void setUncertainGestureColor(int color) { argument
212 mUncertainGestureColor = color;
379 private void setCurrentColor(int color) { argument
380 mCurrentColor = color;
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java143 * Pixel data will be converted to a Baseline TIFF RGB image, with 8 bits per color channel.
279 * The pixel layout in the input is determined from the reported color filter arrangement (CFA)
327 * The pixel layout in the input is determined from the reported color filter arrangement (CFA)
496 private static void colorToRgb(int color, int outOffset, /*out*/byte[] rgbOut) { argument
497 rgbOut[outOffset] = (byte) Color.red(color);
498 rgbOut[outOffset + 1] = (byte) Color.green(color);
499 rgbOut[outOffset + 2] = (byte) Color.blue(color);
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl60 void setAttentionLight(boolean on, int color);
/frameworks/base/core/java/android/text/
H A DHtml.java311 out.append("<font color =\"#");
312 String color = Integer.toHexString(((ForegroundColorSpan)
314 while (color.length() < 6) {
315 color = "0" + color;
317 out.append(color);
652 String color = attributes.getValue("", "color");
656 text.setSpan(new Font(color, face), len, len, Spannable.SPAN_MARK_MARK);
673 int colorRes = res.getIdentifier(name, "color", "androi
829 Font(String color, String face) argument
[all...]
H A DTextPaint.java74 * @param color underline solid color
78 public void setUnderlineText(int color, float thickness) { argument
79 underlineColor = color;
/frameworks/base/core/java/android/text/style/
H A DBackgroundColorSpan.java29 public BackgroundColorSpan(int color) { argument
30 mColor = color;
H A DBulletSpan.java50 public BulletSpan(int gapWidth, int color) { argument
53 mColor = color;
H A DForegroundColorSpan.java29 public ForegroundColorSpan(int color) { argument
30 mColor = color;
H A DQuoteSpan.java37 public QuoteSpan(int color) { argument
39 mColor = color;
71 int color = p.getColor();
79 p.setColor(color);
H A DTextAppearanceSpan.java29 * Sets the text color, size, style, and typeface to match a TextAppearance
50 * text appearance, and the specified text color resource
51 * to determine the color. The <code>appearance</code> should be,
114 ColorStateList color, ColorStateList linkColor) {
118 mTextColor = color;
173 * Returns the text color specified by this span, or <code>null</code>
181 * Returns the link color specified by this span, or <code>null</code>
113 TextAppearanceSpan(String family, int style, int size, ColorStateList color, ColorStateList linkColor) argument
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java740 public void drawColor(int color) { argument
741 drawColor(color, PorterDuff.Mode.SRC_OVER);
745 public void drawColor(int color, PorterDuff.Mode mode) { argument
746 nDrawColor(mRenderer, color, mode.nativeInt);
749 private static native void nDrawColor(long renderer, int color, int mode); argument
H A DView.java3369 * Solid color to use as a background when creating the drawing cache. Enables
3441 * is useful to apply a specific color filter and/or blending mode and/or
3470 * <p>A hardware layer is useful to apply a specific color filter and/or
11970 * draw all the pixels overlapping its bounds using a fully opaque color.
14273 * Setting a solid background color for the drawing cache's bitmaps will improve
14275 * view will always be drawn on top of a solid color.
14277 * @param color The background color to use for the drawing cache's bitmap
14283 public void setDrawingCacheBackgroundColor(int color) { argument
14284 if (color !
16182 setBackgroundColor(int color) argument
20646 setFadeColor(int color) argument
[all...]
H A DWindow.java1127 * with the color 0 or the system drawable android:drawable/empty.)
1140 * with the color 0 or the system drawable android:drawable/empty.)
1834 * @return the color of the status bar.
1839 * Sets the color of the status bar to {@param color}.
1846 * If {@param color} is not opaque, consider setting
1853 public abstract void setStatusBarColor(int color); argument
1856 * @return the color of the navigation bar.
1861 * Sets the color of the navigation bar to {@param color}
1875 setNavigationBarColor(int color) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebView.java2472 public void setBackgroundColor(int color) { argument
2473 mProvider.getViewDelegate().setBackgroundColor(color);
H A DWebViewProvider.java360 public void setBackgroundColor(int color); argument

Completed in 224 milliseconds

1234567891011>>