/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ColorStateListDrawable.java | 81 if (mState.mColor != null) { in applyTheme() 82 setColorStateList(mState.mColor.obtainForTheme(t)); in applyTheme() 147 if (mState.mColor != null) { in onStateChange() 148 int color = mState.mColor.getColorForState(state, mState.mColor.getDefaultColor()); in onStateChange() 201 if (mState.mColor == null) { in getColorStateList() 204 return mState.mColor; in getColorStateList() 238 mState.mColor = colorStateList; in setColorStateList() 243 ColorStateList mColor = null; field in ColorStateListDrawable.ColorStateListDrawableState 253 mColor = state.mColor; in ColorStateListDrawableState() 268 | (mColor != null ? mColor.getChangingConfigurations() : 0) in getChangingConfigurations() [all …]
|
D | RippleDrawable.java | 395 mState.mColor = color; in setColor() 487 mState.mColor = color; in updateStateFromTypedArray() 495 if (mState.mColor == null && (mState.mTouchThemeAttrs == null in verifyRequiredAttributes() 524 if (state.mColor != null && state.mColor.canApplyTheme()) { in applyTheme() 525 state.mColor = state.mColor.obtainForTheme(t); in applyTheme() 885 int color = mState.mColor.getColorForState(getState(), Color.BLACK); in getRipplePaint() 984 ColorStateList mColor = ColorStateList.valueOf(Color.MAGENTA); field in RippleDrawable.RippleState 993 mColor = origs.mColor; in RippleState() 1019 || (mColor != null && mColor.canApplyTheme()) in canApplyTheme() 1036 | (mColor != null ? mColor.getChangingConfigurations() : 0); in getChangingConfigurations()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Material.java | 38 public byte[] mColor = new byte[SIZE * STRIDE]; // table contain r, g, b, A, S, D field in Material 90 mColor[p + RED] = v; in simpleSetup() 91 mColor[p + GREEN] = v; in simpleSetup() 92 mColor[p + BLUE] = v; in simpleSetup() 93 mColor[p + DIFF] = (byte) (255 * diffuse); in simpleSetup() 94 mColor[p + SPEC] = (byte) (255 * specular); in simpleSetup() 95 mColor[p + AMB] = (byte) (255 * ambient); in simpleSetup() 249 mColor[p + RED] = (byte) red; in buildMaterialProp() 250 mColor[p + GREEN] = (byte) green; in buildMaterialProp() 251 mColor[p + BLUE] = (byte) blue; in buildMaterialProp() [all …]
|
D | Volume.java | 51 return mLooks.get(name).mColor; in getLookColor() 66 Log.v(LOGTAG, "mColor "+l.dblArrayToString(l.mColor)); in addLook() 71 int[][] mColor; field in Volume.Look 79 mColor = new int[colorSplit.length][]; in Look() 82 mColor[i] = readNumbers(colorSplit[i]); in Look() 92 mColor = color; in Look() 121 … return "mColor=" + dblArrayToString(mColor) + "\nmOpacity=" + dblArrayToString(mOpacity); in toString()
|
/frameworks/base/graphics/java/android/graphics/ |
D | PorterDuffColorFilter.java | 29 private int mColor; field in PorterDuffColorFilter 41 mColor = color; in PorterDuffColorFilter() 56 return mColor; in getColor() 74 return native_CreateBlendModeFilter(mColor, mMode.nativeInt); in createNativeInstance() 86 return (mColor == other.mColor && mMode.nativeInt == other.mMode.nativeInt); in equals() 91 return 31 * mMode.hashCode() + mColor; in hashCode()
|
D | BlendModeColorFilter.java | 28 @ColorInt final int mColor; field in BlendModeColorFilter 32 mColor = color; in BlendModeColorFilter() 46 return mColor; in getColor() 62 return native_CreateBlendModeFilter(mColor, mMode.getXfermode().porterDuffMode); in createNativeInstance() 79 return 31 * mMode.hashCode() + mColor; in hashCode()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | SurfaceAndTextureViews.java | 84 mView.mColor = SimpleView.LARGE_COLOR; in onCreate() 85 mSurfaceView.mColor = SimpleSurfaceView.LARGE_COLOR; in onCreate() 86 mTextureView.mColor = SimpleTextureView.LARGE_COLOR; in onCreate() 91 mView.mColor = SimpleView.SMALL_COLOR; in onCreate() 92 mSurfaceView.mColor = SimpleSurfaceView.SMALL_COLOR; in onCreate() 93 mTextureView.mColor = SimpleTextureView.SMALL_COLOR; in onCreate() 106 int mColor = SMALL_COLOR; field in SurfaceAndTextureViews.SimpleView 114 canvas.drawColor(mColor); in onDraw() 122 int mColor = SMALL_COLOR; field in SurfaceAndTextureViews.SimpleSurfaceView 141 canvas.drawColor(mColor); in surfaceChanged() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | ForegroundColorSpan.java | 40 private final int mColor; field in ForegroundColorSpan 51 mColor = color; in ForegroundColorSpan() 58 mColor = src.readInt(); in ForegroundColorSpan() 85 dest.writeInt(mColor); in writeToParcelInternal() 94 return mColor; in getForegroundColor() 102 textPaint.setColor(mColor); in updateDrawState()
|
D | BackgroundColorSpan.java | 40 private final int mColor; field in BackgroundColorSpan 50 mColor = color; in BackgroundColorSpan() 57 mColor = src.readInt(); in BackgroundColorSpan() 84 dest.writeInt(mColor); in writeToParcelInternal() 93 return mColor; in getBackgroundColor() 101 textPaint.bgColor = mColor; in updateDrawState()
|
D | LineBackgroundSpan.java | 68 private final int mColor; field in LineBackgroundSpan.Standard 76 mColor = color; in Standard() 83 mColor = src.readInt(); in Standard() 110 dest.writeInt(mColor); in writeToParcelInternal() 119 return mColor; in getColor() 129 paint.setColor(mColor); in drawBackground()
|
D | QuoteSpan.java | 78 private final int mColor; field in QuoteSpan 110 mColor = color; in QuoteSpan() 119 mColor = src.readInt(); in QuoteSpan() 152 dest.writeInt(mColor); in writeToParcelInternal() 164 return mColor; in getColor() 199 p.setColor(mColor); in drawLeadingMargin()
|
D | BulletSpan.java | 79 private final int mColor; field in BulletSpan 126 mColor = color; in BulletSpan() 136 mColor = src.readInt(); in BulletSpan() 166 dest.writeInt(mColor); in writeToParcelInternal() 199 return mColor; in getColor() 213 paint.setColor(mColor); in drawLeadingMargin()
|
/frameworks/native/libs/gui/ |
D | LayerDebugInfo.cpp | 46 RETURN_ON_ERROR(parcel->writeFloat(mColor.r)); in writeToParcel() 47 RETURN_ON_ERROR(parcel->writeFloat(mColor.g)); in writeToParcel() 48 RETURN_ON_ERROR(parcel->writeFloat(mColor.b)); in writeToParcel() 49 RETURN_ON_ERROR(parcel->writeFloat(mColor.a)); in writeToParcel() 84 mColor.r = parcel->readFloat(); in readFromParcel() 86 mColor.g = parcel->readFloat(); in readFromParcel() 88 mColor.b = parcel->readFloat(); in readFromParcel() 90 mColor.a = parcel->readFloat(); in readFromParcel() 128 static_cast<double>(info.mColor.r), static_cast<double>(info.mColor.g), in to_string() 129 static_cast<double>(info.mColor.b), static_cast<double>(info.mColor.a), in to_string()
|
/frameworks/base/core/java/android/hardware/lights/ |
D | LightState.java | 41 private final int mColor; field in LightState 49 mColor = color; in LightState() 53 mColor = in.readInt(); in LightState() 61 return mColor; in getColor() 66 dest.writeInt(mColor); in writeToParcel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | EdgeLight.java | 33 private int mColor; field in EdgeLight 47 mColor = color; in EdgeLight() 53 mColor = sourceLight.getColor(); in EdgeLight() 61 return mColor; in getColor() 66 mColor = color; in setColor()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | AmbientShadowVertexCalculator.java | 29 private final float[] mColor; field in AmbientShadowVertexCalculator 40 mColor = new float[size * 4]; in AmbientShadowVertexCalculator() 98 mColor[p * 4 + 0] = 0; in generateVertex() 99 mColor[p * 4 + 1] = 0; in generateVertex() 100 mColor[p * 4 + 2] = 0; in generateVertex() 101 mColor[p * 4 + 3] = (1 - jf) * opacity; in generateVertex() 142 return mColor; in getColor()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorStateDrawable.java | 32 private int mColor; field in ColorStateDrawable 36 mColor = color; in ColorStateDrawable() 50 super.setColorFilter(getPressedColor(mColor), PorterDuff.Mode.SRC_ATOP); in onStateChange() 52 super.setColorFilter(mColor, PorterDuff.Mode.SRC_ATOP); in onStateChange()
|
D | ColorPickerSwatch.java | 30 private int mColor; field in ColorPickerSwatch 49 mColor = color; in ColorPickerSwatch() 77 mOnColorSelectedListener.onColorSelected(mColor); in onClick()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLPaint.java | 23 private int mColor = 0; field in GLPaint 26 mColor = color; in setColor() 30 return mColor; in getColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DemoStatusIcons.java | 52 private int mColor; field in DemoStatusIcons 58 mColor = DarkIconDispatcher.DEFAULT_ICON_TINT; in DemoStatusIcons() 80 mColor = color; in setColor() 87 child.setStaticDrawableColor(mColor); in updateColors() 88 child.setDecorColor(mColor); in updateColors() 201 v.setStaticDrawableColor(mColor); in updateSlot() 202 v.setDecorColor(mColor); in updateSlot() 222 mWifiView.setStaticDrawableColor(mColor); in addDemoWifiView() 240 view.setStaticDrawableColor(mColor); in addMobileView()
|
D | BarTransitions.java | 168 private int mColor; field in BarTransitions.BarBackgroundDrawable 242 mColorStart = mColor; in applyModeBackground() 275 mColor = targetColor; in draw() 281 mColor = targetColor; in draw() 288 mColor = Color.argb( in draw() 299 if (Color.alpha(mColor) > 0) { in draw() 300 mPaint.setColor(mColor); in draw()
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | BufferQueueScheduler.cpp | 27 : mSurfaceControl(surfaceControl), mColor(color), mSurfaceId(id), mContinueScheduling(true) {} in BufferQueueScheduler() 47 mColor.modulate(); in startScheduling() 71 mColor = color; in setSurfaceControl() 91 auto color = mColor.getRGB(); in fillSurface()
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestViewDrawText.java | 30 private int mColor; field in BiDiTestViewDrawText 47 mColor = a.getColor(R.styleable.DrawTextTestView_color, Color.YELLOW); in BiDiTestViewDrawText() 61 paint.setColor(mColor); in onDraw()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 345 private final int mColor; field in VirtualDisplayTest.TestPresentation 352 mColor = color; in TestPresentation() 367 view.setImageDrawable(new ColorDrawable(mColor)); in onCreate() 379 private int mColor = -1; field in VirtualDisplayTest.ImageListener 383 return mColor; in getColor() 390 while (mColor != color) { in waitForColor() 421 if (mColor != color) { in onImageAvailable() 422 mColor = color; in onImageAvailable()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | InvalidateActivity.java | 36 public int mColor; field in InvalidateActivity.ColorView 43 mColor = color; in setColor() 49 canvas.drawColor(mColor); in onDraw()
|