/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ColorStateListDrawable.java | 87 if (mState.mColor != null) { in applyTheme() 88 setColorStateList(mState.mColor.obtainForTheme(t)); in applyTheme() 153 if (mState.mColor != null) { in onStateChange() 154 int color = mState.mColor.getColorForState(state, mState.mColor.getDefaultColor()); in onStateChange() 207 if (mState.mColor == null) { in getColorStateList() 210 return mState.mColor; in getColorStateList() 244 mState.mColor = colorStateList; in setColorStateList() 249 ColorStateList mColor = null; field in ColorStateListDrawable.ColorStateListDrawableState 259 mColor = state.mColor; in ColorStateListDrawableState() 274 | (mColor != null ? mColor.getChangingConfigurations() : 0) in getChangingConfigurations() [all …]
|
/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 | 30 private int mColor; field in PorterDuffColorFilter 42 mColor = color; in PorterDuffColorFilter() 57 return mColor; in getColor() 75 return native_CreateBlendModeFilter(mColor, mMode.nativeInt); in createNativeInstance() 87 return (mColor == other.mColor && mMode.nativeInt == other.mMode.nativeInt); in equals() 92 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/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/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/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | EdgeLight.java | 38 private int mColor; field in EdgeLight 52 mColor = color; in EdgeLight() 58 mColor = sourceLight.getColor(); in EdgeLight() 66 return mColor; in getColor() 71 boolean changed = mColor != color; in setColor() 72 mColor = color; in setColor()
|
/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() 136 static_cast<double>(info.mColor.r), static_cast<double>(info.mColor.g), in to_string() 137 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 | 38 private final int mColor; field in LightState 64 mColor = color; in LightState() 130 mColor = in.readInt(); in LightState() 141 return mColor; in getColor() 156 dest.writeInt(mColor); in writeToParcel() 167 return "LightState{Color=0x" + Integer.toHexString(mColor) + ", PlayerId=" in toString()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DropOutlineDrawable.java | 84 private int mColor; field in DropOutlineDrawable 90 mColor = context.getColor(R.color.drop_outline_background); in DropOutlineDrawable() 91 mMaxAlpha = Color.alpha(mColor); in DropOutlineDrawable() 103 mColor = ColorUtils.setAlphaComponent(mColor, alpha); in setAlpha() 104 mPaint.setColor(mColor); in setAlpha() 110 return Color.alpha(mColor); in getAlpha() 154 Color.alpha(mColor), visible ? mMaxAlpha : 0); in startVisibilityAnimation() 158 mAlphaAnimator = ObjectAnimator.ofInt(this, ALPHA, Color.alpha(mColor), in startVisibilityAnimation()
|
/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 | BarTransitions.java | 168 private int mColor; field in BarTransitions.BarBackgroundDrawable 209 return mColor; in getColor() 260 mColorStart = mColor; in applyModeBackground() 293 mColor = targetColor; in draw() 299 mColor = targetColor; in draw() 306 mColor = Color.argb( in draw() 318 if (Color.alpha(mColor) > 0) { in draw() 319 mPaint.setColor(mColor); in draw() 323 mPaint.setAlpha((int) (Color.alpha(mColor) * mOverrideAlpha)); in draw()
|
D | DemoStatusIcons.java | 64 private int mColor; field in DemoStatusIcons 78 mColor = DarkIconDispatcher.DEFAULT_ICON_TINT; in DemoStatusIcons() 102 mColor = color; in setColor() 109 child.setStaticDrawableColor(mColor); in updateColors() 110 child.setDecorColor(mColor); in updateColors() 236 v.setStaticDrawableColor(mColor); in updateSlot() 237 v.setDecorColor(mColor); in updateSlot() 258 mWifiView.setStaticDrawableColor(mColor); in addDemoWifiView() 280 view.setStaticDrawableColor(mColor); in addMobileView() 329 mModernWifiView.setStaticDrawableColor(mColor); in addModernWifiView()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 366 private final int mColor; field in VirtualDisplayTest.TestPresentation 373 mColor = color; in TestPresentation() 384 setContentView(createImageView(getContext(), mColor)); in onCreate() local 390 private final int mColor; field in VirtualDisplayTest.TestDialog 396 mColor = color; in TestDialog() 409 setContentView(createImageView(getContext(), mColor)); in onCreate() local 427 private int mColor = -1; field in VirtualDisplayTest.ImageListener 431 return mColor; in getColor() 438 while (mColor != color) { in waitForColor() 469 if (mColor != color) { in onImageAvailable() [all …]
|
/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/java/com/android/internal/graphics/palette/ |
D | Palette.java | 131 private final Color mColor; field in Palette.Swatch 136 mColor = Color.valueOf(colorInt); in Swatch() 143 return mColor.toArgb(); in getInt() 155 .append(mColor) in toString() 173 return mPopulation == swatch.mPopulation && mColor.toArgb() == swatch.mColor.toArgb(); in equals() 178 return 31 * mColor.toArgb() + mPopulation; in hashCode()
|
/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()
|