/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
DigitalWatchFaceWearableConfigActivity.java | 81 String[] colors = getResources().getStringArray(R.array.color_array); local 82 listView.setAdapter(new ColorListAdapter(colors)); 161 public ColorListAdapter(String[] colors) { 162 mColors = colors;
|
/external/deqp/modules/egl/ |
teglGLES2SharingTests.cpp | 700 static const GLfloat colors [] = { local 730 GLU_CHECK_GLW_CALL(m_gl, vertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, 0, colors)); 757 tcu::Vec4 a(colors[0], colors[1], colors[2], colors[3]); 758 tcu::Vec4 b(colors[4 + 0], colors[4 + 1], colors[4 + 2], colors[4 + 3]) 989 static const GLfloat colors [] = { local [all...] |
teglPreservingSwapTests.cpp | 175 const glw::GLubyte colors[] = local 194 m_gl.vertexAttribPointer(m_colorLoc, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0, colors);
|
/external/deqp/modules/gles3/functional/ |
es3fPixelBufferObjectTests.cpp | 295 float colors[] = { local 322 GLU_CHECK_CALL(glVertexAttribPointer(colorLoc, 4, GL_FLOAT, GL_FALSE, 0, colors));
|
es3fDrawTests.cpp | 715 std::vector<tcu::Vec4> colors; local 718 colors.push_back(((x + y) % 2 == 0) ? (green) : (yellow)); 736 ctx.bufferData(GL_ARRAY_BUFFER, colors.size() * sizeof(tcu::Vec4), &colors[0], GL_STATIC_DRAW); [all...] |
/external/libpng/contrib/libtests/ |
makepng.c | 30 * 1 channel: a square image with a diamond, the least luminous colors are on 138 image_size_of_type(int color_type, int bit_depth, unsigned int *colors) 140 if (*colors) 171 png_const_bytep gamma_table, unsigned int *colors) 182 switch (colors[0]) 185 fprintf(stderr, "makepng: --colors=...: invalid count %u\n", 186 colors[0]); 190 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255 1283 unsigned int colors[5]; local [all...] |
/external/libvncserver/libvncserver/ |
cursor.c | 40 rfbXCursorColors colors; local 124 colors.foreRed = (char)(pCursor->foreRed >> 8); 125 colors.foreGreen = (char)(pCursor->foreGreen >> 8); 126 colors.foreBlue = (char)(pCursor->foreBlue >> 8); 127 colors.backRed = (char)(pCursor->backRed >> 8); 128 colors.backGreen = (char)(pCursor->backGreen >> 8); 129 colors.backBlue = (char)(pCursor->backBlue >> 8); 131 memcpy(&cl->updateBuf[cl->ublen], (char *)&colors, sz_rfbXCursorColors);
|
/external/libvterm/src/ |
vterm_internal.h | 105 VTermColor colors[16]; // Store the 8 ANSI and the 8 ANSI high-brights only member in struct:VTermState
|
/external/skia/bench/ |
nanobench.cpp | 697 SkPMColor colors[256]; local 700 info, storage.get(), rowBytes, NULL, colors, [all...] |
/external/skia/gm/ |
multipicturedraw.cpp | 407 static const SkColor colors[kNumTilesX][kNumTilesY] = { local 420 SkColorFilter::CreateModeFilter(colors[x][y], SkXfermode::kModulate_Mode))->unref();
|
/external/skia/samplecode/ |
SampleAll.cpp | 512 SkColor colors[] = { SK_ColorRED, SK_ColorBLUE }; local 513 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL,
|
SampleSlides.cpp | 329 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorRED }; local 330 return SkGradientShader::CreateLinear(pts, colors, NULL, 331 SK_ARRAY_COUNT(colors), SkShader::kMirror_TileMode);
|
/external/skia/src/effects/gradients/ |
SkRadialGradient.cpp | 509 SkColor colors[kMaxRandomGradientColors]; local 513 int colorCount = RandomGradientParams(random, colors, &stops, &tm); 515 colors, stops, colorCount,
|
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 114 * If the caller wants unpremultiplied colors, that is respected. 621 const SkPMColor* colors = bm.getColorTable() ? bm.getColorTable()->readColors() : NULL; local 630 pic.width, colors);
|
/external/skia/tests/ |
ImageFilterTest.cpp | 338 SkColor colors[2]; local 339 colors[0] = SK_ColorWHITE; 340 colors[1] = SK_ColorBLACK; 342 SkGradientShader::CreateRadial(SkPoint::Make(x, y), radius, colors, NULL, 2, [all...] |
/frameworks/base/core/java/android/content/res/ |
ColorStateList.java | 47 * Lets you map {@link android.view.View} state sets to colors. 98 * states to colors. 100 public ColorStateList(int[][] states, @ColorInt int[] colors) { 102 mColors = colors; 227 * Creates a new ColorStateList that has the same states and colors as this 235 final int[] colors = new int[mColors.length]; local 236 final int len = colors.length; 238 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); 241 return new ColorStateList(mStateSpecs, colors); 522 * Return the colors in this {@link ColorStateList}. The returned arra 577 final int[] colors = mColors; local [all...] |
/frameworks/base/core/java/android/widget/ |
TimePickerClockDelegate.java | 265 // We somehow failed to obtain the colors. 270 final int[] colors = new int[] { activatedColor, defaultColor }; local 271 return new ColorStateList(stateSet, colors); [all...] |
/frameworks/native/opengl/libagl/ |
texture.cpp | 256 GGLfixed colors[4] = { 0, 0, 0, 0x10000 }; local 263 ggl->color4xv(ggl, colors); [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
ColorCutQuantizer.java | 33 * colors rather than representation colors. 37 * requested number of colors. An average color is then generated from each cube. 41 * This means that the color space is divided into distinct colors, rather than representative 42 * colors. 68 * @param maxColors The maximum number of colors that should be in the result palette. 88 // Now let's count the number of distinct colors 102 mTimingLogger.addSplit("Filtered colors and distinct colors counted"); 105 // Now lets go through create an array consisting of only distinct colors 106 final int[] colors = mColors = new int[distinctColorCount]; local 196 ArrayList<Swatch> colors = new ArrayList<>(vboxes.size()); local 245 final int[] colors = mColors; local 341 final int[] colors = mColors; local 370 final int[] colors = mColors; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageDraw.java | 193 int[] colors = new int[16 * 16]; local 194 for (int i = 0; i < colors.length; i++) { 197 colors[i] = (x == y) ? 0xFF777777 : 0xFF222222; 199 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/ |
OldLogCatView.java | 186 LogColors colors = new LogColors(); local 190 colors.infoColor = new Color(d, 0, 127, 0); 191 colors.debugColor = new Color(d, 0, 0, 127); 192 colors.errorColor = new Color(d, 255, 0, 0); 193 colors.warningColor = new Color(d, 255, 127, 0); 194 colors.verboseColor = new Color(d, 0, 0, 0); 267 mLogPanel = new LogPanel(colors, new FilterStorage(), LogPanel.FILTER_MANUAL);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
BatteryMeterView.java | 110 TypedArray colors = res.obtainTypedArray(R.array.batterymeter_color_values); local 116 mColors[2*i+1] = colors.getColor(i, 0); 119 colors.recycle();
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 182 int[] colors = createColors(100); local 183 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); 265 int[] colors = createColors(100); local 269 Bitmap.createBitmap(colors, 0, 100, -1, 100, Config.RGB_565); 276 Bitmap.createBitmap(colors, 10, 10, 100, 100, Config.RGB_565); 283 Bitmap.createBitmap(colors, -10, 100, 100, 100, Config.RGB_565); 288 //abnormal case: (offset + width) bigger than colors' length 290 Bitmap.createBitmap(colors, 10, 100, 100, 100, Config.RGB_565); 295 //abnormal case: (lastScanline + width) bigger than colors' length 297 Bitmap.createBitmap(colors, 10, 100, 50, 100, Config.RGB_565) 722 int[] colors = createColors(100); local 1022 int[] colors = new int[size]; local [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
FramebufferTest.java | 612 int[] colors = new int[pixelCount]; local 613 buf.asIntBuffer().get(colors); 615 int c = colors[i]; 616 colors[i] = (c & 0xff00ff00) | ((c & 0x00ff0000) >> 16) | ((c & 0x000000ff) << 16); 622 Bitmap bmp = Bitmap.createBitmap(colors, mWidth, mHeight, Bitmap.Config.ARGB_8888);
|
/external/deqp/modules/gles2/functional/ |
es2fTextureSpecificationTests.cpp | 211 tcu::Vec4 colors[4]; local 223 m_uniforms[0].sampler.tex2D->sample4(colors, texCoords); 227 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, colors[fragNdx]); 293 tcu::Vec4 colors[4]; local 319 m_uniforms[0].sampler.texCube->sample4(colors, texCoords); 323 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, colors[fragNdx]); [all...] |