Home
last modified time | relevance | path

Searched refs:colorMode (Results 1 – 25 of 100) sorted by relevance

1234

/frameworks/native/libs/ui/include/ui/
DColorMode.h27 inline bool isWideColorMode(ColorMode colorMode) { in isWideColorMode() argument
28 switch (colorMode) { in isWideColorMode()
48 inline Dataspace pickDataspaceFor(ColorMode colorMode) { in pickDataspaceFor() argument
49 switch (colorMode) { in pickDataspaceFor()
/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayTransformManager.java261 public boolean needsLinearColorMatrix(int colorMode) { in needsLinearColorMatrix() argument
262 return colorMode != ColorDisplayManager.COLOR_MODE_SATURATED; in needsLinearColorMatrix()
268 public boolean setColorMode(int colorMode, float[] nightDisplayMatrix, in setColorMode() argument
270 if (colorMode == ColorDisplayManager.COLOR_MODE_NATURAL) { in setColorMode()
273 } else if (colorMode == ColorDisplayManager.COLOR_MODE_BOOSTED) { in setColorMode()
276 } else if (colorMode == ColorDisplayManager.COLOR_MODE_SATURATED) { in setColorMode()
279 } else if (colorMode == ColorDisplayManager.COLOR_MODE_AUTOMATIC) { in setColorMode()
282 } else if (colorMode >= ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MIN in setColorMode()
283 && colorMode <= ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MAX) { in setColorMode()
285 setDisplayColor(colorMode, compositionColorMode); in setColorMode()
DColorDisplayService.java1028 private void setColorModeInternal(@ColorMode int colorMode) { in setColorModeInternal() argument
1029 if (!isColorModeAvailable(colorMode)) { in setColorModeInternal()
1030 throw new IllegalArgumentException("Invalid colorMode: " + colorMode); in setColorModeInternal()
1033 colorMode, in setColorModeInternal() local
1048 int colorMode = System.getIntForUser(cr, System.DISPLAY_COLOR_MODE, -1, mCurrentUser); in getColorModeInternal() local
1049 if (colorMode == -1) { in getColorModeInternal()
1052 colorMode = getCurrentColorModeFromSystemProperties(); in getColorModeInternal()
1057 if (!isColorModeAvailable(colorMode)) { in getColorModeInternal()
1060 if (colorMode != -1 && mappedColorModes.length > colorMode in getColorModeInternal()
1061 && isColorModeAvailable(mappedColorModes[colorMode])) { in getColorModeInternal()
[all …]
/frameworks/base/libs/androidfw/
DConfigDescription.cpp224 out->colorMode = in parseWideColorGamut()
225 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
230 out->colorMode = in parseWideColorGamut()
231 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
236 out->colorMode = in parseWideColorGamut()
237 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
247 out->colorMode = in parseHdr()
248 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
253 out->colorMode = in parseHdr()
254 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
[all …]
/frameworks/base/core/java/android/content/res/
DConfiguration.java259 public int colorMode; field in Configuration
1105 colorMode = o.colorMode; in setTo()
1196 switch ((colorMode &COLOR_MODE_HDR_MASK)) { in toString()
1201 sb.append(colorMode &COLOR_MODE_HDR_MASK); break; in toString()
1203 switch ((colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK)) { in toString()
1208 sb.append(colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK); break; in toString()
1313 protoOutputStream.write(COLOR_MODE, colorMode); in dumpDebug()
1443 colorMode = protoInputStream.readInt(COLOR_MODE); in readFromProto()
1584 colorMode = COLOR_MODE_UNDEFINED; in setToDefaults()
1723 if (((delta.colorMode & COLOR_MODE_WIDE_COLOR_GAMUT_MASK) != in updateFrom()
[all …]
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/common/
DColorModeControls.kt47 setColorMode(window.colorMode) in <lambda>()
90 window!!.colorMode == ActivityInfo.COLOR_MODE_HDR) { in <lambda>()
94 window!!.colorMode = newMode in <lambda>()
104 val colormode = window!!.colorMode in <lambda>()
/frameworks/base/tools/aapt/tests/
DAaptConfig_test.cpp105 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
111 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
120 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
126 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.h39 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType,
100 ColorMode colorMode; member
113 static bool InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode,
DVulkanSurface.cpp135 VulkanSurface* VulkanSurface::Create(ANativeWindow* window, ColorMode colorMode, in Create() argument
146 if (!InitializeWindowInfoStruct(window, colorMode, colorType, colorSpace, vkManager, in Create()
159 bool VulkanSurface::InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode, in InitializeWindowInfoStruct() argument
217 outWindowInfo->colorMode = colorMode; in InitializeWindowInfoStruct()
219 if (colorMode == ColorMode::Hdr || colorMode == ColorMode::Hdr10) { in InitializeWindowInfoStruct()
474 if (mWindowInfo.colorMode != ColorMode::Default) { in dequeueNativeBuffer()
550 if (mWindowInfo.colorMode == ColorMode::Hdr || mWindowInfo.colorMode == ColorMode::Hdr10) { in setColorSpace()
DEglManager.cpp392 ColorMode colorMode, in createSurface() argument
398 LOG_ALWAYS_FATAL_IF(colorMode == ColorMode::A8, in createSurface()
402 colorMode = ColorMode::Default; in createSurface()
430 if (colorMode == ColorMode::A8) { in createSurface()
441 colorMode = ColorMode::Default; in createSurface()
448 if (colorMode == ColorMode::Hdr) { in createSurface()
461 switch (colorMode) { in createSurface()
/frameworks/base/tools/aapt/
DAaptConfig.cpp270 || config->colorMode & ResTable_config::MASK_WIDE_COLOR_GAMUT in applyVersionForCompatibility()
271 || config->colorMode & ResTable_config::MASK_HDR) { in applyVersionForCompatibility()
454 if (out) out->colorMode = in parseWideColorGamut()
455 (out->colorMode&~ResTable_config::MASK_WIDE_COLOR_GAMUT) in parseWideColorGamut()
459 if (out) out->colorMode = in parseWideColorGamut()
460 (out->colorMode&~ResTable_config::MASK_WIDE_COLOR_GAMUT) in parseWideColorGamut()
464 if (out) out->colorMode = in parseWideColorGamut()
465 (out->colorMode&~ResTable_config::MASK_WIDE_COLOR_GAMUT) in parseWideColorGamut()
474 if (out) out->colorMode = in parseHdr()
475 (out->colorMode&~ResTable_config::MASK_HDR) in parseHdr()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java54 configuration.colorMode = 1000; in testConfigurationConstructor_copiesConfiguration()
63 configuration.colorMode = 1000; in testDisplayAdjustmentsConstructor_copiesConfiguration()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedActivityImpl.java92 private int colorMode; field in ParsedActivityImpl
125 this.colorMode = other.colorMode; in ParsedActivityImpl()
158 activity.colorMode = ActivityInfo.COLOR_MODE_DEFAULT; in makeAppDetailsActivity()
317 dest.writeInt(this.colorMode); in writeToParcel()
357 this.colorMode = in.readInt(); in ParsedActivityImpl()
420 int colorMode, in ParsedActivityImpl() argument
446 this.colorMode = colorMode; in ParsedActivityImpl()
561 return colorMode; in getColorMode()
695 colorMode = value; in setColorMode()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentDeferredUpdateTests.java116 assertThat(mDisplayContent.getDisplayInfo().colorMode).isEqualTo(123); in testUpdate_nonDeferrableUpdateAndTransitionDeferred_nonDeferrableFieldUpdated()
126 assertThat(mDisplayContent.getDisplayInfo().colorMode).isEqualTo(123); in testUpdate_nonDeferrableUpdateTwiceAndTransitionDeferred_fieldHasLatestValue()
135 assertThat(mDisplayContent.getDisplayInfo().colorMode).isEqualTo(123); in testUpdate_nonDeferrableUpdateTwiceAndTransitionDeferred_fieldHasLatestValue()
146 assertThat(mDisplayContent.getDisplayInfo().colorMode).isEqualTo(456); in testUpdate_nonDeferrableUpdateTwiceAndTransitionDeferred_fieldHasLatestValue()
155 assertThat(mDisplayContent.getDisplayInfo().colorMode).isEqualTo(456); in testUpdate_nonDeferrableUpdateTwiceAndTransitionDeferred_fieldHasLatestValue()
300 info.colorMode = mColorMode; in performInitialDisplayUpdate()
/frameworks/base/libs/androidfw/tests/
DConfigDescription_test.cpp107 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
113 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST()
122 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
128 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputCompositionState.cpp52 dumpVal(out, "colorMode", toString(colorMode), colorMode); in dump()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java311 public int colorMode; field in DisplayDeviceInfo
493 if (colorMode != other.colorMode) { in diff()
560 colorMode = other.colorMode; in copyFrom()
603 sb.append(", colorMode ").append(colorMode); in toString()
DLocalDisplayAdapter.java556 for (int colorMode : colorModes) { in updateColorModesLocked()
557 if (!mSupportedColorModes.contains(colorMode)) { in updateColorModesLocked()
560 pendingColorModes.add(colorMode); in updateColorModesLocked()
679 mInfo.colorMode = mActiveColorMode; in getDisplayDeviceInfoLocked()
1079 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument
1080 requestColorModeLocked(colorMode); in setRequestedColorModeLocked()
1199 public void requestColorModeLocked(int colorMode) { in requestColorModeLocked() argument
1200 if (mActiveColorMode == colorMode) { in requestColorModeLocked()
1203 if (!mSupportedColorModes.contains(colorMode)) { in requestColorModeLocked()
1204 Slog.w(TAG, "Unable to find color mode " + colorMode in requestColorModeLocked()
[all …]
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java199 final int colorMode = mDefaults[PROPERTY_COLOR_MODE]; in getDefaults() local
200 if (colorMode > 0) { in getDefaults()
201 builder.setColorMode(colorMode); in getDefaults()
338 final int colorMode = 1 << Integer.numberOfTrailingZeros(colorModes); in colorModesToString() local
339 colorModes &= ~colorMode; in colorModesToString()
343 builder.append(PrintAttributes.colorModeToString(colorMode)); in colorModesToString()
DPrintAttributes.java208 public void setColorMode(int colorMode) { in setColorMode() argument
209 enforceValidColorMode(colorMode); in setColorMode()
210 mColorMode = colorMode; in setColorMode()
1394 static String colorModeToString(int colorMode) { in colorModeToString() argument
1395 switch (colorMode) { in colorModeToString()
1425 static void enforceValidColorMode(int colorMode) { in enforceValidColorMode() argument
1426 if ((colorMode & VALID_COLOR_MODES) == 0 || Integer.bitCount(colorMode) != 1) { in enforceValidColorMode()
1427 throw new IllegalArgumentException("invalid color mode: " + colorMode); in enforceValidColorMode()
1486 public @NonNull Builder setColorMode(@ColorMode int colorMode) { in setColorMode() argument
1487 mAttributes.setColorMode(colorMode); in setColorMode()
/frameworks/base/core/java/com/android/internal/view/
DScrollCaptureViewSupport.java86 int colorMode = containingView.getViewRootImpl().mWindowAttributes.getColorMode(); in getColorMode() local
88 colorMode = ActivityInfo.COLOR_MODE_DEFAULT; in getColorMode()
90 return colorMode; in getColorMode()
422 public void setColorMode(@ColorMode int colorMode) { in setColorMode() argument
423 mRenderer.setColorMode(colorMode); in setColorMode()
/frameworks/base/core/java/android/view/
DDisplayInfo.java221 public int colorMode; field in DisplayInfo
439 && colorMode == other.colorMode in equals()
500 colorMode = other.colorMode; in copyFrom()
562 colorMode = source.readInt(); in readFromParcel()
632 dest.writeInt(colorMode); in writeToParcel()
798 for (int colorMode : supportedColorModes) { in isWideColorGamut()
799 if (colorMode == Display.COLOR_MODE_DCI_P3 || colorMode > Display.COLOR_MODE_SRGB) { in isWideColorGamut()
909 sb.append(colorMode); in toString()
/frameworks/base/graphics/java/android/graphics/
DHardwareRenderer.java676 public float setColorMode(@ActivityInfo.ColorMode int colorMode) { in setColorMode() argument
677 if (mColorMode != colorMode) { in setColorMode()
678 mColorMode = colorMode; in setColorMode()
679 mDesiredSdrHdrRatio = nSetColorMode(mNativeProxy, colorMode); in setColorMode()
691 public void setColorMode(@ActivityInfo.ColorMode int colorMode, float whitePoint) { in setColorMode() argument
693 mColorMode = colorMode; in setColorMode()
694 nSetColorMode(mNativeProxy, colorMode); in setColorMode()
1509 private static native float nSetColorMode(long nativeProxy, int colorMode); in nSetColorMode() argument
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_GetBestColorModeTest.cpp36 void addHwcColorModesMapping(ui::ColorMode colorMode, in addHwcColorModesMapping() argument
38 mHwcColorModes[colorMode] = renderIntents; in addHwcColorModesMapping()
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp306 for (ColorMode colorMode : colorModes) { in TEST_F() local
307 switch (colorMode) { in TEST_F()
335 ColorMode colorMode = info.activeColorMode; in TEST_F() local
336 ASSERT_NE(static_cast<ColorMode>(BAD_VALUE), colorMode); in TEST_F()

1234