Searched defs:colors (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/base/libs/hwui/tests/unit/
H A DGradientCacheTests.cpp31 SkColor colors[] = { 0xFF00FF00, 0xFFFF0000, 0xFF0000FF }; local
33 Texture* texture = cache.get(colors, positions, 3);
/frameworks/base/graphics/java/android/graphics/
H A DLinearGradient.java46 @param colors The colors to be distributed along the gradient line
48 each corresponding color in the colors array. If this is null,
49 the the colors are distributed evenly along the gradient line.
52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument
54 if (colors.length < 2) {
55 throw new IllegalArgumentException("needs >= 2 number of colors");
57 if (positions != null && colors.length != positions.length) {
65 mColors = colors;
68 init(nativeCreate1(x0, y0, x1, y1, colors, position
115 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
[all...]
H A DSweepGradient.java42 * @param colors The colors to be distributed between around the center.
43 * There must be at least 2 colors in the array.
45 * each corresponding color in the colors array, beginning
48 * If positions is NULL, then the colors are automatically
52 int colors[], float positions[]) {
53 if (colors.length < 2) {
54 throw new IllegalArgumentException("needs >= 2 number of colors");
56 if (positions != null && colors.length != positions.length) {
63 mColors = colors;
51 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
107 nativeCreate1(float x, float y, int colors[], float positions[]) argument
[all...]
H A DRadialGradient.java47 @param colors The colors to be distributed between the center and edge of the circle
50 the colors array. If <code>null</code>, colors are distributed evenly
55 @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) {
59 if (colors.length < 2) {
60 throw new IllegalArgumentException("needs >= 2 number of colors");
62 if (stops != null && colors.length != stops.length) {
69 mColors = colors;
72 init(nativeCreate1(centerX, centerY, radius, colors, stop
54 RadialGradient(float centerX, float centerY, float radius, @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) argument
120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java44 * @param colors The colors to be distributed along the gradient line
46 * corresponding color in the colors array. If this is null, the
47 * the colors are distributed evenly along the gradient line.
49 protected Gradient_Delegate(int colors[], float positions[]) { argument
50 if (colors.length < 2) {
51 throw new IllegalArgumentException("needs >= 2 number of colors");
53 if (positions != null && colors.length != positions.length) {
58 float spacing = 1.f / (colors.length - 1);
59 positions = new float[colors
84 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument
[all...]
H A DRadialGradient_Delegate.java60 int colors[], float positions[], int tileMode) {
62 colors, positions, Shader_Delegate.getTileMode(tileMode));
82 * @param colors The colors to be distributed between the center and edge of
85 * color in the colors array. If this is NULL, the the colors are
89 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], argument
91 super(colors, positions);
102 int[] colors, float[] positions, TileMode mode) {
103 super(colors, position
59 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
101 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
[all...]
H A DSweepGradient_Delegate.java55 /*package*/ static long nativeCreate1(float x, float y, int colors[], float positions[]) { argument
56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions);
72 * @param colors The colors to be distributed between around the center.
73 * There must be at least 2 colors in the array.
75 * each corresponding color in the colors array, beginning
78 * If positions is NULL, then the colors are automatically
82 int colors[], float positions[]) {
83 super(colors, positions);
92 public SweepGradientPaint(float cx, float cy, int[] colors, argument
81 SweepGradient_Delegate(float cx, float cy, int colors[], float positions[]) argument
[all...]
H A DLinearGradient_Delegate.java61 int colors[], float positions[], int tileMode) {
63 colors, positions, Shader_Delegate.getTileMode(tileMode));
85 * @param colors The colors to be distributed along the gradient line
87 * corresponding color in the colors array. If this is null, the
88 * the colors are distributed evenly along the gradient line.
92 int colors[], float positions[], TileMode tile) {
93 super(colors, positions);
111 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], argument
113 super(colors, position
59 nativeCreate1(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
91 LinearGradient_Delegate(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DTitleViewAdapter.java105 * @param colors Colors used to draw search affordance.
107 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
H A DTitleView.java78 public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
79 TitleView.this.setSearchAffordanceColors(colors);
165 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
166 mSearchOrbView.setOrbColors(colors);
H A DSearchOrbView.java58 * A set of colors used to display the search orb.
65 * Other colors are provided by the framework.
74 * Constructs a color set using the given colors for the search orb.
75 * Other colors are provided by the framework.
85 * Constructs a color set using the given colors.
284 * Other colors will be provided by the framework.
293 * Sets the search orb colors.
294 * Other colors are provided by the framework.
314 public void setOrbColors(Colors colors) { argument
315 mColors = colors;
[all...]
/frameworks/base/libs/hwui/
H A DGradientCache.h37 colors = nullptr;
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
42 copy(colors, positions, count);
46 copy(entry.colors.get(), entry.positions.get(), entry.count);
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
69 std::unique_ptr<uint32_t[]> colors; member in struct:android::uirenderer::GradientCacheEntry
74 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
76 this->colors.reset(new uint32_t[count]);
79 memcpy(this->colors.get(), colors, coun
[all...]
H A DGradientCache.cpp45 hash = JenkinsHashMix(hash, android::hash_type(colors[i]));
55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t));
108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
109 GradientCacheEntry gradient(colors, positions, count);
113 texture = addLinearGradient(gradient, colors, positions, count);
123 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument
136 if (((colors[i] >> 24) & 0xff) < 255) {
147 uint32_t* colors, float* positions, int count) {
150 getGradientInfo(colors, coun
146 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
222 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument
[all...]
H A DRecordedOp.h225 const float* vertices, const int* colors)
231 , colors(colors) {}
236 const int* colors; member in struct:android::uirenderer::BitmapMeshOp
224 BitmapMeshOp(BASE_PARAMS, const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors) argument
H A DSkiaCanvasProxy.cpp142 const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[],
152 const int* cArray = (colors) ? (int*)colors : NULL;
360 void SkiaCanvasProxy::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument
373 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
141 onDrawVertices(VertexMode mode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
/frameworks/native/cmds/flatland/
H A DRenderers.cpp22 static float colors[][4] = { member in namespace:android
33 float* color = colors[g_colorIndex];
34 g_colorIndex = (g_colorIndex + 1) % NELEMS(colors);
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerPalette.java84 public void drawPalette(int[] colors, int selectedColor) { argument
85 drawPalette(colors, selectedColor, null);
91 public void drawPalette(int[] colors, int selectedColor, String[] colorContentDescriptions) { argument
92 if (colors == null) {
101 // Fills the table with swatches based on the array of colors.
103 for (int color : colors) {
142 * Add a content description to the specified swatch view. Because the colors get added in a
143 * snaking form, every other row will need to compensate for the fact that the colors are added
H A DColorPickerDialog.java31 * A dialog which takes in as input an array of colors and creates a palette allowing the user to
42 protected static final String KEY_COLORS = "colors";
64 public static ColorPickerDialog newInstance(int titleResId, int[] colors, int selectedColor, argument
67 ret.initialize(titleResId, colors, selectedColor, columns, size);
71 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { argument
73 setColors(colors, selectedColor);
163 public void setColors(int[] colors, int selectedColor) { argument
164 if (mColors != colors || mSelectedColor != selectedColor) {
165 mColors = colors;
171 public void setColors(int[] colors) { argument
[all...]
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/
H A DNavigationBarButton.java77 public void setTextColor(ColorStateList colors) { argument
78 super.setTextColor(colors);
138 public void setTintListCompat(ColorStateList colors) { argument
139 mTintList = colors;
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java48 * Lets you map {@link android.view.View} state sets to colors.
151 * states to colors.
153 public ColorStateList(int[][] states, @ColorInt int[] colors) { argument
155 mColors = colors;
280 * Creates a new ColorStateList that has the same states and colors as this
288 final int[] colors = new int[mColors.length];
289 final int len = colors.length;
291 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24);
294 return new ColorStateList(mStateSpecs, colors);
578 * Return the colors i
[all...]
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp250 const uint32_t* colors = chunk.getColors(); local
254 color = colors[colorIndex++];
/frameworks/support/design/src/android/support/design/internal/
H A DNavigationMenuItemView.java188 public void setTextColor(ColorStateList colors) { argument
189 mTextView.setTextColor(colors);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBrandedFragment.java257 * @param colors Colors used to draw search affordance.
259 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
260 mSearchAffordanceColors = colors;
H A DBrandedSupportFragment.java259 * @param colors Colors used to draw search affordance.
261 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
262 mSearchAffordanceColors = colors;
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp142 SkColor colors[2]; local
143 colors[0] = color0;
144 colors[1] = color1;
146 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode);
184 SkColor colors[2]; local
185 colors[0] = color0;
186 colors[1] = color1;
188 SkShader* s = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2,
199 const jint* colors = env->GetIntArrayElements(jcolors, NULL); local
209 reinterpret_cast<const SkColor*>(colors), po
218 SkColor colors[2]; local
[all...]

Completed in 3878 milliseconds

123