/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
ParticipantData.java | 22 import android.graphics.Color; 193 pd.mSubscriptionColor = Color.TRANSPARENT; 214 pd.mSubscriptionColor = Color.TRANSPARENT; 280 pd.mSubscriptionColor = Color.TRANSPARENT; 381 mSubscriptionColor = Color.TRANSPARENT; 387 final int color = subscriptionInfo.getIconTint(); local 389 if (mSlotId != slotId || mSubscriptionColor != color || mSubscriptionName != name) { 391 mSubscriptionColor = color; 458 // Force the alpha channel to 0xff to ensure the returned color is solid.
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
GrantPermissionsActivity.java | 190 // Color the app name. 193 int color = getColor(R.color.grant_permissions_app_color); local 194 message.setSpan(new ForegroundColorSpan(color), appLabelStart,
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageSettings.java | 26 import android.graphics.Color; 66 static final int COLOR_PUBLIC = Color.parseColor("#ff9e9e9e"); 67 static final int COLOR_WARNING = Color.parseColor("#fff4511e"); 70 Color.parseColor("#ff26a69a"), 71 Color.parseColor("#ffab47bc"), 72 Color.parseColor("#fff2a600"), 73 Color.parseColor("#ffec407a"), 74 Color.parseColor("#ffc0ca33"), 150 final int color = COLOR_PRIVATE[privateCount++ % COLOR_PRIVATE.length]; local 152 new StorageVolumePreference(context, vol, color)); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
Account.java | 180 * The color used for this account in combined view (Email) 182 public final int color; field in class:Account 288 json.put(AccountColumns.COLOR, color); 417 color = json.optInt(AccountColumns.COLOR, 0); 493 color = cursor.getInt(cursor.getColumnIndex(UIProvider.AccountColumns.COLOR)); 619 color = in.readInt(); 668 dest.writeInt(color); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SecureConversationViewController.java | 92 // Add color backgrounds to the header and footer. 96 final int color = rootView.getResources().getColor( local 97 R.color.message_header_background_color); 98 mMessageHeaderView.setBackgroundColor(color); 99 mSnapHeaderView.setBackgroundColor(color); 100 mMessageFooterView.setBackgroundColor(color);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
TelecomAccountRegistry.java | 101 int color = PhoneAccount.NO_HIGHLIGHT_COLOR; local 136 color = record.getIconTint(); 179 drawable.setTint(res.getColor(R.color.default_sim_icon_tint_color, null)); 198 .setHighlightColor(color)
|
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
HoloSpiralRS.java | 26 import android.graphics.Color; 58 private static final int POINTS_COLOR_BLUE = Color.argb(179, 0, 0, 255); 59 private static final int POINTS_COLOR_GREEN = Color.argb(210, 166, 51, 255); 60 private static final int POINTS_COLOR_AQUA = Color.argb(220, 38, 120, 148); 61 private static final int BG_COLOR_BLACK = Color.argb(255, 26, 26, 83); 62 private static final int BG_COLOR_BLUE = Color.argb(255, 8, 0, 26); 237 Float4 color = new Float4(); local 238 color.x = primary.x + ((secondary.x - primary.x) * r); 239 color.y = primary.y + ((secondary.y - primary.y) * r); 240 color.z = primary.z + ((secondary.z - primary.z) * r) [all...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
MultiTouchActivity.java | 23 import android.graphics.Color; 319 final int color = bb.getShort(); local 320 final int r = ((color & 0xf800) >> 8) | ((color & 0xf800) >> 14); 321 final int g = ((color & 0x7e0) >> 3) | ((color & 0x7e0) >> 9); 322 final int b = ((color & 0x1f) << 3) | ((color & 0x1f) >> 2); 323 mColors[n] = Color.rgb(r, g, b); 331 mColors[n] = Color.rgb(r, g, b) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
GCWrapper.java | 29 import org.eclipse.swt.graphics.Color; 60 * Implementation of IColor wrapping an SWT color. 63 private final Color mColor; 65 public ColorWrapper(Color color) { 66 mColor = color; 69 public Color getColor() { 81 private final Map<DrawingStyle, Color> mStyleStrokeMap = new EnumMap<DrawingStyle, Color>( 88 private final Map<DrawingStyle, Color> mStyleFillMap = new EnumMap<DrawingStyle, Color> 433 Color color = getStrokeColor(style, stroke); local 438 Color color = getFillColor(style, fill); local 505 Color color = map.get(style); local [all...] |
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
grep.c | 72 /* 5*/ "\t[-e pattern] [-f file] [--binary-files=value] [--color=when]\n", 121 const char *color; /* --color */ variable 178 {"color", optional_argument, NULL, COLOR_OPT}, 580 color = NULL; 589 color = init_color("01;31"); 593 color = init_color("01;31"); 597 errx(2, getstr(3), "--color");
|
/cts/tests/tests/content/src/android/content/res/cts/ |
ResourcesTest.java | 201 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 203 final int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); 204 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); 215 final int color = mResources.getColor(R.color.testcolor1); local 216 assertEquals(0xff00ff00, color);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 26 import android.graphics.Color; 46 // small alpha values cause color values to be pre-multiplied down, losing accuracy 47 private final int PREMUL_COLOR = Color.argb(2, 255, 254, 253); 48 private final int PREMUL_ROUNDED_COLOR = Color.argb(2, 255, 255, 255); 49 private final int PREMUL_STORED_COLOR = Color.argb(2, 2, 2, 2); 364 assertEquals(Color.alpha(source), Color.alpha(result)); 365 assertEquals(0xFF, Color.alpha(result)); 384 assertEquals(Color.alpha(source), Color.alpha(result)) 680 int color = 0xff << 24; local [all...] |
PaintTest.java | 281 int[] color = new int[width * height]; local 282 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); [all...] |
/development/ndk/platforms/android-4/samples/san-angeles/jni/ |
demo.c | 71 /* Vertex array and color array are enabled for all objects, so their 77 * (i.e. tightly packed array). Color array is supposed to have 4 78 * components per color with GL_UNSIGNED_BYTE datatype and stride 0. 298 int a, color[3]; local 301 color[a] = (int)(ca * baseColor[a] * 255); 302 if (color[a] > 255) color[a] = 255; 304 result->colorArray[i] = (GLubyte)color[0]; 305 result->colorArray[i + 1] = (GLubyte)color[1]; 306 result->colorArray[i + 2] = (GLubyte)color[2] 367 GLubyte color; local [all...] |
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
QualcommUsbCamera.cpp | 763 int color=30; local 2152 static int color = 30; local [all...] |
/external/deqp/modules/egl/ |
teglImageFormatTests.cpp | 237 ModifyRenderbufferClearColor (tcu::Vec4 color) : m_color(color) {} 535 const tcu::Vec4 color = depthLevelColors[level]; local 538 GLU_CHECK_GLW_CALL(gl, uniform4f(colorLoc, color.x(), color.y(), color.z(), color.w())); 655 const tcu::Vec4 color = stencilLevelColors[level]; local 659 GLU_CHECK_GLW_CALL(gl, uniform4f(colorLoc, color.x(), color.y(), color.z(), color.w())) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fDepthStencilTests.cpp | 162 tcu::Vec4 color; member in struct:deqp::gles2::Functional::DepthStencilCaseUtil::ClearCommand 180 , color (color_) 190 tcu::Vec4 color; member in struct:deqp::gles2::Functional::DepthStencilCaseUtil::RenderCommand 325 cmd.color = Vec4(0.0f, 0.0f, colorStep*ndx, 0.0f); 350 cmd.color = Vec4(0.0f, colorStep*(ndx+1), 0.0f, 0.0f); 390 std::fill(DE_ARRAY_BEGIN(dst.quad.color), DE_ARRAY_END(dst.quad.color), src.color); 422 if (clear.buffers & GL_COLOR_BUFFER_BIT) glClearColor(clear.color.x(), clear.color.y(), clear.color.z(), clear.color.w()) [all...] |
es2fMultisampleTests.cpp | 114 * p0, p1, p2 and p3 are all (approximately) of the same color. 123 tcu::RGBA insideColor; //!< Color of the first pixel inside the region. 134 if (!tcu::compareThreshold(pixColor, insideColor, tcu::RGBA(3, 3, 3, 3))) // Pixel color differs from already-detected color inside same region - region not unicolored. 188 void renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& color) const; 190 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const; 192 void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4& color) const; 193 void renderLine (const Vec2& p0, const Vec2& p1, const Vec4& color) const; 253 void MultisampleCase::renderTriangle (const Vec3& p0, const Vec3& p1, const Vec3& p2, const Vec4& color) const 255 renderTriangle(p0, p1, p2, color, color, color) 445 tcu::RGBA color = renderedImg.getPixel(x, y); local 927 Vec4 color = i % 2 == 0 ? Vec4(1.0f, 1.0f, 1.0f, 1.0f) : Vec4(0.0f, 0.0f, 0.0f, 1.0f); local [all...] |
es2fTextureMipmapTests.cpp | 171 deUint32 color = 0xff000000 | rgb; local 174 tcu::clear(m_texture->getRefTexture().getLevel(levelNdx), toVec4(tcu::RGBA(color))); 534 deUint32 color = 0xff000000 | rgb; local 537 tcu::clear(m_texture->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)faceNdx), toVec4(tcu::RGBA(color))); [all...] |
/external/deqp/modules/gles3/functional/ |
es3fDepthStencilTests.cpp | 162 tcu::Vec4 color; member in struct:deqp::gles3::Functional::DepthStencilCaseUtil::ClearCommand 180 , color (color_) 190 tcu::Vec4 color; member in struct:deqp::gles3::Functional::DepthStencilCaseUtil::RenderCommand 325 cmd.color = Vec4(0.0f, 0.0f, colorStep*ndx, 0.0f); 350 cmd.color = Vec4(0.0f, colorStep*(ndx+1), 0.0f, 0.0f); 390 std::fill(DE_ARRAY_BEGIN(dst.quad.color), DE_ARRAY_END(dst.quad.color), src.color); 422 if (clear.buffers & GL_COLOR_BUFFER_BIT) glClearColor(clear.color.x(), clear.color.y(), clear.color.z(), clear.color.w()) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fOpaqueTypeIndexingTests.cpp | 264 const void* color) 279 gl.texSubImage1D(texTarget, 0, 0, 1, transferFmt.format, transferFmt.dataType, color); 284 gl.texSubImage2D(texTarget, 0, 0, 0, 1, 1, transferFmt.format, transferFmt.dataType, color); 290 gl.texSubImage3D(texTarget, 0, 0, 0, 0, 1, 1, 1, transferFmt.format, transferFmt.dataType, color); 296 gl.texSubImage2D(glu::getGLCubeFace((tcu::CubeFace)face), 0, 0, 0, 1, 1, transferFmt.format, transferFmt.dataType, color); local [all...] |
es31fVertexAttributeBindingTests.cpp | 297 << "Color:\n" 449 // In interleaved mode color rg and position zw are the same. Select "good" values for r and g 456 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (colorA) : (colorB); local 471 // copy color to buffer 474 memcpy(&dataBuf[m_spec.bufferOffset + m_spec.colorAttrOffset + m_spec.bufferStride * ((y * GRID_SIZE + x) * 6 + v)], color.getPtr(), sizeof(color)); 760 // store color&offset 772 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (green) : (yellow); local 774 colorOffsetWritePtr[(y * GRID_SIZE + x) * 2 + 0] = color; 784 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (green) : (yellow) local 1031 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (green) : (yellow); local 1247 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (green) : (yellow); local [all...] |
/external/deqp/modules/glshared/ |
glsShaderRenderCase.cpp | 316 color = Vec4(0.0f, 0.0f, 0.0f, 1.0f); 661 // Evaluate color for each vertex. 673 Vec4 color = evalCtx.color; local 676 color.w() = 1.0f; 678 colors[vtxNdx] = color; 731 Vec4 color = t0 + (t1-t0)*tx + (t2-t0)*ty; local 733 result.setPixel(ix, iy, toRGBA(color)); 755 // Select either clear color or computed color based on discarded bit 756 Vec4 color = evalCtx.isDiscarded ? m_clearColor : evalCtx.color; local [all...] |
glsVertexArrayTests.cpp | 779 void calcShaderColorCoord (tcu::Vec2& coord, tcu::Vec3& color, const tcu::Vector<T, 4>& attribValue, bool isCoordinate, int numComponents) 797 color = color * (float)attribValue.x(); 801 color.x() = color.x() * attribValue.x(); 802 color.y() = color.y() * attribValue.y(); 806 color.x() = color.x() * attribValue.x(); 807 color.y() = color.y() * attribValue.y() 836 tcu::Vec3 color = tcu::Vec3(1.0, 1.0, 1.0); local 869 tcu::Vec4 color = rr::readTriangleVarying<float>(packets[0], context, varyingLocColor, 0); local [all...] |
/external/e2fsprogs/e2fsck/ |
dict.c | 54 #define color dict_color macro 202 if (root->color == dnode_red) { 203 if (root->left->color != dnode_black) 205 if (root->right->color != dnode_black) 209 if (root->color != dnode_black) 269 new->nilnode.color = dnode_black; 346 dict->nilnode.color = dnode_black; 367 dict->nilnode.color = dnode_black; 383 assert (dict->nilnode.color == dnode_black); 400 if (root->color != dnode_black [all...] |