/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 354 private Color(float r, float g, float b, float a, @NonNull ColorSpace colorSpace) { in Color() argument 356 mColorSpace = colorSpace; in Color() 365 private Color(@Size(min = 4, max = 5) float[] components, @NonNull ColorSpace colorSpace) { in Color() argument 367 mColorSpace = colorSpace; in Color() 451 public Color convert(@NonNull ColorSpace colorSpace) { in convert() argument 452 ColorSpace.Connector connector = ColorSpace.connect(mColorSpace, colorSpace); in convert() 457 return new Color(color, colorSpace); in convert() 703 public static ColorSpace colorSpace(@ColorLong long color) { in colorSpace() method in Color 796 return colorSpace(color).isSrgb(); in isSrgb() 813 return colorSpace(color).isWideGamut(); in isWideGamut() [all …]
|
D | Shader.java | 52 public Shader(ColorSpace colorSpace) { in Shader() argument 53 mColorSpace = colorSpace; in Shader() 54 if (colorSpace == null) { in Shader() 68 protected ColorSpace colorSpace() { in colorSpace() method in Shader 213 final ColorSpace colorSpace = Color.colorSpace(colors[0]); in detectColorSpace() local 215 if (Color.colorSpace(colors[i]) != colorSpace) { in detectColorSpace() 219 return colorSpace; in detectColorSpace()
|
D | ParcelableColorSpace.java | 40 public static boolean isParcelable(@NonNull ColorSpace colorSpace) { in isParcelable() argument 41 if (colorSpace.getId() == ColorSpace.MIN_ID) { in isParcelable() 42 if (!(colorSpace instanceof ColorSpace.Rgb)) { in isParcelable() 45 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace; in isParcelable() 61 public ParcelableColorSpace(@NonNull ColorSpace colorSpace) { in ParcelableColorSpace() argument 62 super(colorSpace.getName(), colorSpace.getModel(), colorSpace.getId()); in ParcelableColorSpace() 63 mColorSpace = colorSpace; in ParcelableColorSpace()
|
D | RuntimeShader.java | 57 ColorSpace colorSpace) { in RuntimeShader() argument 58 super(colorSpace); in RuntimeShader() 80 colorSpace().getNativeInstance(), mIsOpaque); in createNativeInstance()
|
D | SweepGradient.java | 93 @Nullable float[] positions, ColorSpace colorSpace) { in SweepGradient() argument 94 super(colorSpace); in SweepGradient() 136 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | ColorSpace.java | 1307 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt() argument 1309 return adapt(colorSpace, whitePoint, Adaptation.BRADFORD); in adapt() 1336 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt() argument 1339 if (colorSpace.getModel() == Model.RGB) { in adapt() 1340 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace; in adapt() 1341 if (compare(rgb.mWhitePoint, whitePoint)) return colorSpace; in adapt() 1351 return colorSpace; in adapt() 1431 for (ColorSpace colorSpace : sNamedColorSpaces) { in match() 1432 if (colorSpace.getModel() == Model.RGB) { in match() 1433 ColorSpace.Rgb rgb = (ColorSpace.Rgb) adapt(colorSpace, ILLUMINANT_D50_XYZ); in match() [all …]
|
D | RadialGradient.java | 100 @NonNull TileMode tileMode, ColorSpace colorSpace) { in RadialGradient() argument 101 super(colorSpace); in RadialGradient() 154 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | LinearGradient.java | 102 @NonNull ColorSpace colorSpace) { in LinearGradient() argument 103 super(colorSpace); in LinearGradient() 158 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | Bitmap.java | 754 @Nullable ColorSpace colorSpace) { in wrapHardwareBuffer() argument 759 if (colorSpace == null) { in wrapHardwareBuffer() 760 colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in wrapHardwareBuffer() 762 return nativeWrapHardwareBufferBitmap(hardwareBuffer, colorSpace.getNativeInstance()); in wrapHardwareBuffer() 771 @Nullable ColorSpace colorSpace) { in wrapHardwareBuffer() argument 773 return wrapHardwareBuffer(hb, colorSpace); in wrapHardwareBuffer() 1056 boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap() argument 1057 return createBitmap(null, width, height, config, hasAlpha, colorSpace); in createBitmap() 1111 @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap() argument 1118 if (colorSpace == null && config != Config.ALPHA_8) { in createBitmap() [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 35 sk_sp<SkColorSpace> colorSpace) { in createImageInfo() argument 63 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo() 67 sk_sp<SkColorSpace> colorSpace) { in ANativeWindowToImageInfo() argument 68 return createImageInfo(buffer.width, buffer.height, buffer.format, colorSpace); in ANativeWindowToImageInfo() 72 sk_sp<SkColorSpace> colorSpace) { in BufferDescriptionToImageInfo() argument 73 return createImageInfo(bufferDesc.width, bufferDesc.height, bufferDesc.format, colorSpace); in BufferDescriptionToImageInfo() 149 android_dataspace ColorSpaceToADataSpace(SkColorSpace* colorSpace, SkColorType colorType) { in ColorSpaceToADataSpace() argument 150 if (!colorSpace) { in ColorSpaceToADataSpace() 154 if (colorSpace->isSRGB()) { in ColorSpaceToADataSpace() 162 LOG_ALWAYS_FATAL_IF(!colorSpace->isNumericalTransferFn(&fn)); in ColorSpaceToADataSpace() [all …]
|
D | Color.h | 97 sk_sp<SkColorSpace> colorSpace); 100 sk_sp<SkColorSpace> colorSpace);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | BitmapUtil.java | 55 ParcelableColorSpace colorSpace = in hardwareBitmapToBundle() local 62 bundle.putParcelable(KEY_COLOR_SPACE, colorSpace); in hardwareBitmapToBundle() 82 ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE); in bundleToHardwareBitmap() local 84 return Bitmap.wrapHardwareBuffer(Objects.requireNonNull(buffer), colorSpace); in bundleToHardwareBitmap()
|
/frameworks/base/libs/hwui/jni/ |
D | Bitmap.cpp | 91 void setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace() argument 93 mBitmap->setColorSpace(colorSpace); in setColorSpace() 300 sk_sp<SkColorSpace> colorSpace; in Bitmap_creator() local 302 colorSpace = nullptr; in Bitmap_creator() 304 colorSpace = GraphicsJNI::getNativeColorSpace(colorSpacePtr); in Bitmap_creator() 309 colorSpace)); in Bitmap_creator() 344 if (!dstInfo.colorSpace() && dstCT != kAlpha_8_SkColorType) { in bitmapCopyTo() 456 sk_ref_sp(bitmap->info().colorSpace()))); in Bitmap_reconfigure() 477 const sk_sp<SkColorSpace>& colorSpace) { in bitmapErase() argument 479 p.setColor4f(color, colorSpace.get()); in bitmapErase() [all …]
|
D | ImageDecoder.cpp | 293 sk_sp<SkColorSpace> colorSpace = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in ImageDecoder_nDecodeBitmap() local 294 colorSpace = decoder->mCodec->computeOutputColorSpace(colorType, colorSpace); in ImageDecoder_nDecodeBitmap() 295 decoder->setOutColorSpace(std::move(colorSpace)); in ImageDecoder_nDecodeBitmap() 488 sk_sp<SkColorSpace> colorSpace = codec->computeOutputColorSpace(colorType); in ImageDecoder_nGetColorSpace() local 489 return GraphicsJNI::getColorSpace(env, colorSpace.get(), colorType); in ImageDecoder_nGetColorSpace()
|
/frameworks/base/core/java/android/service/contentsuggestions/ |
D | ContentSuggestionsService.java | 78 ColorSpace colorSpace = null; 80 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); 82 wrappedBuffer = Bitmap.wrapHardwareBuffer(contextImage, colorSpace);
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.h | 40 sk_sp<SkColorSpace> colorSpace, GrContext* grContext, 108 SkColorType colorType, sk_sp<SkColorSpace> colorSpace,
|
D | VulkanSurface.cpp | 119 SkColorType colorType, sk_sp<SkColorSpace> colorSpace, in Create() argument 129 if (!InitializeWindowInfoStruct(window, colorMode, colorType, colorSpace, vkManager, in Create() 144 sk_sp<SkColorSpace> colorSpace, in InitializeWindowInfoStruct() argument 199 LOG_ALWAYS_FATAL_IF(!colorSpace->toXYZD50(&surfaceGamut), in InitializeWindowInfoStruct()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.h | 80 sk_sp<SkColorSpace> colorSpace, 85 sk_sp<SkColorSpace> colorSpace, 97 void setColorSpace(sk_sp<SkColorSpace> colorSpace);
|
D | Bitmap.cpp | 148 sk_sp<Bitmap> Bitmap::createFrom(AHardwareBuffer* hardwareBuffer, sk_sp<SkColorSpace> colorSpace, in createFrom() argument 152 SkImageInfo info = uirenderer::BufferDescriptionToImageInfo(bufferDesc, colorSpace); in createFrom() 157 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument 162 colorType, alphaType, colorSpace); in createFrom() 203 void Bitmap::setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace() argument 204 mInfo = mInfo.makeColorSpace(std::move(colorSpace)); in setColorSpace()
|
/frameworks/base/core/java/android/app/ |
D | SharedElementCallback.java | 243 ColorSpace colorSpace = null; in onCreateSnapshotView() local 246 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); in onCreateSnapshotView() 248 bitmap = Bitmap.wrapHardwareBuffer(buffer, colorSpace); in onCreateSnapshotView()
|
/frameworks/native/opengl/tests/lib/include/ |
D | EGLUtils.h | 63 static inline String8 decodeColorSpace(EGLint colorSpace); 277 String8 EGLUtils::decodeColorSpace(EGLint colorSpace) { in decodeColorSpace() argument 278 switch (colorSpace) { in decodeColorSpace() 288 return String8::format("UNKNOWN ColorSpace %d", colorSpace); in decodeColorSpace()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_object.cpp | 59 EGLSurface surface, EGLint colorSpace, egl_connection_t const* cnx) in egl_surface_t() argument 66 colorSpace(colorSpace), in egl_surface_t() 208 *value = colorSpace; in getColorSpaceAttribute()
|
D | egl_object.h | 135 EGLint colorSpace, egl_connection_t const* cnx); 139 EGLint getColorSpace() const { return colorSpace; } in getColorSpace() 161 EGLint colorSpace; variable
|
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/ |
D | ContentSuggestionsManagerService.java | 169 ColorSpace colorSpace = snapshot.getColorSpace(); in provideContextImage() local 170 if (colorSpace != null) { in provideContextImage() 171 colorSpaceId = colorSpace.getId(); in provideContextImage()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RotationAnimationUtils.java | 45 public static float getMedianBorderLuma(GraphicBuffer graphicBuffer, ColorSpace colorSpace) { in getMedianBorderLuma() argument 52 ir.getSurface().attachAndQueueBufferWithColorSpace(graphicBuffer, colorSpace); in getMedianBorderLuma()
|