/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 407 // 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/gesture/ |
H A D | GestureOverlayView.java | 207 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/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | PlaybackOverlayFragment.java | 589 getResources().getColor(R.color.lb_playback_controls_background_dark); 591 getResources().getColor(R.color.lb_playback_controls_background_light); 634 int color = mBgDarkColor; 637 case BG_LIGHT: color = mBgLightColor; break; 638 case BG_NONE: color = Color.TRANSPARENT; break; 640 mRootView.setBackground(new ColorDrawable(color));
|
H A D | PlaybackOverlaySupportFragment.java | 591 getResources().getColor(R.color.lb_playback_controls_background_dark); 593 getResources().getColor(R.color.lb_playback_controls_background_light); 636 int color = mBgDarkColor; 639 case BG_LIGHT: color = mBgLightColor; break; 640 case BG_NONE: color = Color.TRANSPARENT; break; 642 mRootView.setBackground(new ColorDrawable(color));
|
H A D | VerticalGridFragment.java | 283 * Sets the color used to draw the search affordance. 284 * A default brighter color will be set by the framework. 286 * @param color The color to use for the search affordance. 288 public void setSearchAffordanceColor(int color) { argument 289 setSearchAffordanceColors(new SearchOrbView.Colors(color)); 293 * Returns the color used to draw the search affordance. 296 return getSearchAffordanceColors().color;
|
H A D | VerticalGridSupportFragment.java | 285 * Sets the color used to draw the search affordance. 286 * A default brighter color will be set by the framework. 288 * @param color The color to use for the search affordance. 290 public void setSearchAffordanceColor(int color) { argument 291 setSearchAffordanceColors(new SearchOrbView.Colors(color)); 295 * Returns the color used to draw the search affordance. 298 return getSearchAffordanceColors().color;
|
/frameworks/av/cmds/stagefright/ |
H A D | record.cpp | 52 // 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");
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardSimPukView.java | 125 int color = Color.WHITE; 133 color = info.getIconTint(); 137 mSimImageView.setImageTintList(ColorStateList.valueOf(color));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationTemplateViewWrapper.java | 63 ctx.getResources().getColor(R.color.doze_small_icon_background_color); 80 // If the icon already has a color filter, we assume that we already forced the icon to be 209 int color = interpolateColor(mIconBackgroundColor, mIconBackgroundDarkColor, intensity); 210 mIconColorFilter.setColor(color);
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
H A D | DemoModeController.java | 132 final int color = Color.HSVToColor(new float[]{hue, sat, val}); 133 if (DEBUG) Log.d(TAG, String.format("hsv=(%s,%s,%s) argb=#%08x", hue, sat, val, color)); 134 mContent.setBackgroundColor(color);
|
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 155 def _add_timeseries_line(self, axes, label, color, linewidth=1): 156 return axes.plot([], label=label, color=color, linewidth=linewidth)[0]
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 143 * 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/text/ |
H A D | Html.java | 311 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...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ShapeDrawable.java | 270 * also has a color in its paint, which has an alpha as well. These two 271 * values are automatically combined during drawing. Thus if the color's 435 int color = paint.getColor(); 436 color = a.getColor(R.styleable.ShapeDrawable_color, color); 437 paint.setColor(color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardUserSwitcherScrim.java | 52 R.color.keyguard_user_switcher_background_gradient_color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | StorageNotification.java | 312 mUsbStorageNotification.color = mContext.getResources().getColor( 313 com.android.internal.R.color.system_notification_accent_color); 407 mMediaStorageNotification.color = mContext.getResources().getColor( 408 com.android.internal.R.color.system_notification_accent_color);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 89 // Fills the specified rectangle with the specified color. 90 public abstract void fillRect(float x, float y, float width, float height, int color); argument 112 // Draw a region of a texture and a specified color to the specified 113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_lights_LightsService.cpp | 117 state.color = colorARGB;
|
/frameworks/rs/scriptc/ |
H A D | rs_math.rsh | 223 * @param color 227 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsPackColorTo8888(float3 color); 232 * @param color 236 _RS_RUNTIME uchar4 __attribute__((const, overloadable)) rsPackColorTo8888(float4 color); 239 * Unpack a uchar4 color to float4. The resulting float range will be (0-1).
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorFilterDimmer.java | 39 * Creates a default ColorFilterDimmer. Uses the default color and level for 43 * @return A ColorFilterDimmer with the default dim color and levels. 49 context.getResources().getColor(R.color.lb_view_dim_mask_color)); 60 * Creates a ColorFilterDimmer for the given color and levels.. 62 * @param dimmer The ColorFilterCache for dim color.
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | PlaybackControlsRowPresenter.java | 233 * Sets the background color. If not set, a default from the theme will be used. 235 public void setBackgroundColor(int color) { argument 236 mBackgroundColor = color; 241 * Returns the background color. If no background color was set, transparent 249 * Sets the primary color for the progress bar. If not set, a default from 252 public void setProgressColor(int color) { argument 253 mProgressColor = color; 258 * Returns the primary color for the progress bar. If no color wa [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 723 * is drawn with the rgba color (0,0,0,alpha). The alpha value offered by the 1489 // The last parameter is important: we are not drawing in the color buffer 1610 void OpenGLRenderer::setupDrawColor(int color, int alpha) { argument 1612 mColorR = mColorA * ((color >> 16) & 0xFF) / 255.0f; 1613 mColorG = mColorA * ((color >> 8) & 0xFF) / 255.0f; 1614 mColorB = mColorA * ((color ) & 0xFF) / 255.0f; 1619 void OpenGLRenderer::setupDrawAlpha8Color(int color, int alpha) { argument 1621 mColorR = mColorA * ((color >> 16) & 0xFF) / 255.0f; 1622 mColorG = mColorA * ((color >> 8) & 0xFF) / 255.0f; 1623 mColorB = mColorA * ((color ) 1768 SkColor color; local 1934 int color = paint != NULL ? paint->getColor() : 0; local 2339 int color = paint->getColor(); local 2454 drawColor(int color, SkXfermode::Mode mode) argument 3178 int color = paint->getColor(); local 3238 int color = paint->getColor(); local 3356 int color = paint != NULL ? paint->getColor() : 0; local [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | TextAppearanceSpan.java | 29 * 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/widget/ |
H A D | EdgeEffect.java | 292 * Set the color of this edge effect in argb. 294 * @param color Color in argb 296 public void setColor(int color) { argument 297 mPaint.setColor(color); 301 * Return the color of this edge effect in argb. 302 * @return The color of this edge effect in argb
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | DataUsageDetailView.java | 67 int usageColor = R.color.system_accent_color; 92 usageColor = R.color.system_warning_color;
|