/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardSecurityView.java | 109 * Show a message on the security view with a specified color 112 * @param color the color to use 114 void showMessage(String message, int color); argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageView.java | 56 int color = a.getColor(R.styleable.UsageView_textColor, 0); 58 v.setTextColor(color); 61 v.setTextColor(color); 98 public void setAccentColor(int color) { argument 99 mUsageGraph.setAccentColor(color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDualTileLabel.java | 135 public void setTextColor(int color) { argument 136 mFirstLine.setTextColor(color); 137 mSecondLine.setTextColor(color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationBackgroundView.java | 134 public void setRippleColor(int color) { argument 137 ripple.setColor(ColorStateList.valueOf(color));
|
H A D | ScrimView.java | 82 int color = getScrimColorWithAlpha(); 84 canvas.drawColor(color, mode); 86 mPaint.setColor(color); 109 int color = mScrimColor; 110 color = Color.argb((int) (Color.alpha(color) * mViewAlpha), Color.red(color), 111 Color.green(color), Color.blue(color)); 112 return color; 122 setScrimColor(int color) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | UserAvatarView.java | 93 public void setFrameColor(ColorStateList color) { argument 94 mDrawable.setFrameColor(color);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DisplayListLayersActivity.java | 94 LayerView(Context context, int color, int layerType, String tag) { argument 99 mPaint.setColor(color);
|
/frameworks/native/cmds/flatland/ |
H A D | Renderers.cpp | 33 float* color = colors[g_colorIndex]; local 35 return color;
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | CircularBitmapDrawable.java | 81 * Set the border stroke color of this drawable. Set to {@link Color#TRANSPARENT} to disable. 83 public void setBorderColor(final int color) { argument 84 final boolean changed = mBorderPaint.getColor() != color; 85 mBorderPaint.setColor(color);
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorPickerPalette.java | 31 * A color picker custom view which creates an grid of color squares. The number of squares per 103 for (int color : colors) { 104 View colorSwatch = createColorSwatch(color, selectedColor); 105 setSwatchDescription(rowNumber, tableElements, rowElements, color == selectedColor, 184 * Creates a color swatch. 186 private ColorPickerSwatch createColorSwatch(int color, int selectedColor) { argument 187 ColorPickerSwatch view = new ColorPickerSwatch(getContext(), color, 188 color == selectedColor, mOnColorSelectedListener);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifLayout.java | 98 // Set the header color 177 public void setHeaderColor(ColorStateList color) { argument 180 titleView.setTextColor(color); 205 public void setPrimaryColor(ColorStateList color) { argument 206 mPrimaryColor = color; 207 setGlifPatternColor(color); 208 setProgressBarColor(color); 215 private void setGlifPatternColor(ColorStateList color) { argument 221 new GlifPatternDrawable(color.getDefaultColor()); 256 private void setProgressBarColor(ColorStateList color) { argument [all...] |
H A D | GlifPatternDrawable.java | 64 public GlifPatternDrawable(int color) { argument 66 setColor(color); 201 public void setColor(int color) { argument 202 mColor = color; 203 mPaint.setColor(color);
|
/frameworks/rs/driver/runtime/arch/ |
H A D | generic.c | 774 extern uchar4 __attribute__((overloadable)) rsPackColorTo8888(float3 color) argument 776 color *= 255.f; 777 color += 0.5f; 778 color = clamp(color, 0.f, 255.f); 779 uchar4 c = {color.x, color.y, color.z, 255}; 783 extern uchar4 __attribute__((overloadable)) rsPackColorTo8888(float4 color) argument 785 color * [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Volume.java | 58 public void addLook(String name, int[][] color, int[][] opacity) {
argument 59 mLooks.put(name, new Look(name, color, opacity));
91 public Look(String name, int[][] color, int[][] opacity) {
argument 92 mColor = color;
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | NavigationViewTest.java | 143 R.color.emerald_text, null); 145 // Check the default text color of the menu items in our NavigationView 152 // Set a new text color on our NavigationView 154 ResourcesCompat.getColorStateList(res, R.color.color_state_list_lilac, null))); 156 // And check that all the menu items have the new color 158 R.color.lilac_default, null); 174 R.color.sand_default, null); 176 // Check the default fill color of the menu items in our NavigationView 191 // Set a new background (flat fill color) on our NavigationView 197 R.color 236 TestDrawable(@olorInt int color, int width, int height) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorOverlayDimmer.java | 25 * Helper class for assigning a dim color to Paint. It holds the alpha value for 45 context.getResources().getColor(R.color.lb_view_dim_mask_color)); 55 * Creates a ColorOverlayDimmer for the given color and levels. 57 * @param dimColor The color for fully dimmed. Only the RGB values are 124 * Change the RGB of the color according to current dim level. Maintains the 125 * alpha value of the color. 127 * @param color The color to apply the dim level to. 128 * @return A color with the RGB values adjusted by the alpha of the current 131 public int applyToColor(int color) { argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | RowContainerView.java | 81 public void setForegroundColor(@ColorInt int color) { argument 83 ((ColorDrawable) mForeground.mutate()).setColor(color); 86 setForeground(new ColorDrawable(color));
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | CircleImageView.java | 51 public CircleImageView(Context context, int color, final float radius) { argument 74 circle.getPaint().setColor(color); 112 * Update the background color of the circle image view. 114 * @param colorRes Id of a color resource. 121 public void setBackgroundColor(int color) { argument 123 ((ShapeDrawable) getBackground()).getPaint().setColor(color);
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | CardViewEclairMr1.java | 118 public void setBackgroundColor(CardViewDelegate cardView, @Nullable ColorStateList color) { argument 119 getShadowBackground(cardView).setColor(color);
|
/frameworks/av/cmds/stagefright/ |
H A D | recordvideo.cpp | 45 fprintf(stderr, " -c YUV420 color format: [0] semi planar or [1] planar or other omx YUV420 color format (default: 1)\n"); 111 // iterate through solid planes of color. 146 // returns -1 if mapping of the given color is unsuccessful 147 // returns an omx color enum value otherwise 148 static int translateColorToOmxEnumValue(int color) { argument 149 switch (color) { 155 fprintf(stderr, "Custom OMX color format: %d\n", color); 156 if (color [all...] |
/frameworks/av/media/libmedia/ |
H A D | MediaCodecInfo.cpp | 71 uint32_t color = static_cast<uint32_t>(parcel.readInt32()); local 73 caps->mColorFormats.push_back(color);
|
/frameworks/base/core/java/android/content/res/ |
H A D | ColorStateList.java | 51 * "color" subdirectory directory of an application's resource directory. The XML file contains 56 * android:color="@color/sample_focused" /> 59 * android:color="@color/sample_disabled_pressed" /> 61 * android:color="@color/sample_disabled_not_pressed" /> 62 * <item android:color="@color/sample_default" /> 66 * This defines a set of state spec / color pair 164 valueOf(@olorInt int color) argument [all...] |
H A D | StringBlock.java | 249 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/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(@ColorInt 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/core/java/com/android/internal/widget/ |
H A D | SubtitleView.java | 154 public void setForegroundColor(int color) { argument 155 mForegroundColor = color; 161 public void setBackgroundColor(int color) { argument 162 mBackgroundColor = color; 173 public void setEdgeColor(int color) { argument 174 mEdgeColor = color;
|