Lines Matching refs:cs
956 ColorSpace cs = source.getColorSpace(); in createBitmap() local
959 bitmap = createBitmap(null, neww, newh, newConfig, source.hasAlpha(), cs); in createBitmap()
973 if (cs == null) { in createBitmap()
974 cs = ColorSpace.get(ColorSpace.Named.SRGB); in createBitmap()
980 transformed || source.hasAlpha(), cs); in createBitmap()
2008 ColorSpace cs = Color.colorSpace(color); in eraseColor() local
2009 nativeErase(mNativePtr, cs.getNativeInstance(), color); in eraseColor()
2033 private static float clamp(float value, @NonNull ColorSpace cs, int index) { in clamp() argument
2034 return Math.max(Math.min(value, cs.getMaxValue(index)), cs.getMinValue(index)); in clamp()
2056 final ColorSpace cs = getColorSpace(); in getColor() local
2057 if (cs == null || cs.equals(ColorSpace.get(ColorSpace.Named.SRGB))) { in getColor()
2070 return Color.valueOf(clamp(r, cs, 0), clamp(g, cs, 1), clamp(b, cs, 2), a, cs); in getColor()