Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayTransformManager.java250 public static boolean needsLinearColorMatrix(int colorMode) { in needsLinearColorMatrix() argument
251 return colorMode != ColorDisplayManager.COLOR_MODE_SATURATED; in needsLinearColorMatrix()
257 public boolean setColorMode(int colorMode, float[] nightDisplayMatrix, in setColorMode() argument
259 if (colorMode == ColorDisplayManager.COLOR_MODE_NATURAL) { in setColorMode()
262 } else if (colorMode == ColorDisplayManager.COLOR_MODE_BOOSTED) { in setColorMode()
265 } else if (colorMode == ColorDisplayManager.COLOR_MODE_SATURATED) { in setColorMode()
268 } else if (colorMode == ColorDisplayManager.COLOR_MODE_AUTOMATIC) { in setColorMode()
271 } else if (colorMode >= ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MIN in setColorMode()
272 && colorMode <= ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MAX) { in setColorMode()
274 setDisplayColor(colorMode, compositionColorMode); in setColorMode()
DColorDisplayService.java918 private void setColorModeInternal(@ColorMode int colorMode) { in setColorModeInternal() argument
919 if (!isColorModeAvailable(colorMode)) { in setColorModeInternal()
920 throw new IllegalArgumentException("Invalid colorMode: " + colorMode); in setColorModeInternal()
923 colorMode, in setColorModeInternal() local
938 int colorMode = System.getIntForUser(cr, System.DISPLAY_COLOR_MODE, -1, mCurrentUser); in getColorModeInternal() local
939 if (colorMode == -1) { in getColorModeInternal()
942 colorMode = getCurrentColorModeFromSystemProperties(); in getColorModeInternal()
947 if (!isColorModeAvailable(colorMode)) { in getColorModeInternal()
950 if (colorMode == COLOR_MODE_BOOSTED && mappedColorModes.length > COLOR_MODE_NATURAL in getColorModeInternal()
952 colorMode = COLOR_MODE_NATURAL; in getColorModeInternal()
[all …]
/frameworks/base/libs/androidfw/
DConfigDescription.cpp206 out->colorMode = in parseWideColorGamut()
207 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
212 out->colorMode = in parseWideColorGamut()
213 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
218 out->colorMode = in parseWideColorGamut()
219 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
229 out->colorMode = in parseHdr()
230 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
235 out->colorMode = in parseHdr()
236 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
[all …]
/frameworks/base/core/java/android/content/res/
DConfiguration.java204 public int colorMode; field in Configuration
971 colorMode = o.colorMode; in setTo()
1054 switch ((colorMode &COLOR_MODE_HDR_MASK)) { in toString()
1059 sb.append(colorMode &COLOR_MODE_HDR_MASK); break; in toString()
1061 switch ((colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK)) { in toString()
1066 sb.append(colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK); break; in toString()
1171 protoOutputStream.write(COLOR_MODE, colorMode); in dumpDebug()
1300 colorMode = protoInputStream.readInt(COLOR_MODE); in readFromProto()
1438 colorMode = COLOR_MODE_UNDEFINED; in setToDefaults()
1576 if (((delta.colorMode & COLOR_MODE_WIDE_COLOR_GAMUT_MASK) != in updateFrom()
[all …]
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/common/
DColorModeControls.kt59 setColorMode(window.colorMode) in onFinishInflate()
82 if (window.colorMode == newMode) { in setColorMode()
90 window.colorMode = newMode in setColorMode()
142 threadedRenderer?.setColorMode(window!!.colorMode, whitePoint) in onAttachedToWindow()
/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/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/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/base/core/java/android/content/pm/parsing/component/
DParsedActivity.java80 int colorMode; field in ParsedActivity
108 this.colorMode = other.colorMode; in ParsedActivity()
137 activity.colorMode = ActivityInfo.COLOR_MODE_DEFAULT; in makeAppDetailsActivity()
293 dest.writeInt(this.colorMode); in writeToParcel()
330 this.colorMode = in.readInt(); in ParsedActivity()
441 return colorMode; in getColorMode()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java220 public int colorMode; field in DisplayDeviceInfo
378 if (colorMode != other.colorMode) { in diff()
430 colorMode = other.colorMode; in copyFrom()
467 sb.append(", colorMode ").append(colorMode); in toString()
DLocalDisplayAdapter.java447 for (int colorMode : colorModes) { in updateColorModesLocked()
448 if (!mSupportedColorModes.contains(colorMode)) { in updateColorModesLocked()
451 pendingColorModes.add(colorMode); in updateColorModesLocked()
566 mInfo.colorMode = mActiveColorMode; in getDisplayDeviceInfoLocked()
825 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument
826 requestColorModeLocked(colorMode); in setRequestedColorModeLocked()
922 public void requestColorModeLocked(int colorMode) { in requestColorModeLocked() argument
923 if (mActiveColorMode == colorMode) { in requestColorModeLocked()
926 if (!mSupportedColorModes.contains(colorMode)) { in requestColorModeLocked()
927 Slog.w(TAG, "Unable to find color mode " + colorMode in requestColorModeLocked()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputCompositionState.cpp52 dumpVal(out, "colorMode", toString(colorMode), colorMode); in dump()
DDisplayColorProfile.cpp68 bool isHdrColorMode(const ColorMode colorMode) { in isHdrColorMode() argument
70 [colorMode](ColorMode hdrColorMode) { return hdrColorMode == colorMode; }); in isHdrColorMode()
363 *outMode = iter->second.colorMode; in getBestColorMode()
/frameworks/base/core/java/android/view/
DDisplayInfo.java193 public int colorMode; field in DisplayInfo
366 && colorMode == other.colorMode in equals()
415 colorMode = other.colorMode; in copyFrom()
463 colorMode = source.readInt(); in readFromParcel()
519 dest.writeInt(colorMode); in writeToParcel()
674 for (int colorMode : supportedColorModes) { in isWideColorGamut()
675 if (colorMode == Display.COLOR_MODE_DCI_P3 || colorMode > Display.COLOR_MODE_SRGB) { in isWideColorGamut()
777 sb.append(colorMode); in toString()
/frameworks/base/core/java/com/android/internal/view/
DScrollCaptureViewSupport.java83 int colorMode = containingView.getViewRootImpl().mWindowAttributes.getColorMode(); in getColorMode() local
85 colorMode = ActivityInfo.COLOR_MODE_DEFAULT; in getColorMode()
87 return colorMode; in getColorMode()
424 public void setColorMode(@ColorMode int colorMode) { in setColorMode() argument
425 mRenderer.setColorMode(colorMode); in setColorMode()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.h38 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType,
107 static bool InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode,
/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/android/content/pm/
DActivityInfo.java320 public int colorMode = COLOR_MODE_DEFAULT; field in ActivityInfo
1205 colorMode = orig.colorMode; in ActivityInfo()
1574 dest.writeInt(colorMode); in writeToParcel()
1645 public static String colorModeToString(@ColorMode int colorMode) { in colorModeToString() argument
1646 switch (colorMode) { in colorModeToString()
1654 return Integer.toString(colorMode); in colorModeToString()
1693 colorMode = source.readInt(); in ActivityInfo()
/frameworks/base/graphics/java/android/graphics/
DHardwareRenderer.java641 public void setColorMode(@ActivityInfo.ColorMode int colorMode) { in setColorMode() argument
642 if (mColorMode != colorMode) { in setColorMode()
643 mColorMode = colorMode; in setColorMode()
644 nSetColorMode(mNativeProxy, colorMode); in setColorMode()
655 public void setColorMode(@ActivityInfo.ColorMode int colorMode, float whitePoint) { in setColorMode() argument
657 mColorMode = colorMode; in setColorMode()
658 nSetColorMode(mNativeProxy, colorMode); in setColorMode()
1302 private static native void nSetColorMode(long nativeProxy, int colorMode); in nSetColorMode() argument
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp339 for (ColorMode colorMode : colorModes) { in TEST_F() local
340 switch (colorMode) { in TEST_F()
368 ColorMode colorMode = info.activeColorMode; in TEST_F() local
369 ASSERT_NE(static_cast<ColorMode>(BAD_VALUE), colorMode); in TEST_F()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java57 configuration.colorMode = 1000; in testConfigurationConstructor_copiesConfiguration()
66 configuration.colorMode = 1000; in testDisplayAdjustmentsConstructor_copiesConfiguration()
/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/libs/ui/
DDebugUtils.cpp202 std::string decodeColorMode(ColorMode colorMode) { in decodeColorMode() argument
203 switch (colorMode) { in decodeColorMode()
247 return StringPrintf("Unknown color mode %d", colorMode); in decodeColorMode()
/frameworks/base/core/java/android/hardware/display/
DColorDisplayManager.java346 public void setColorMode(int colorMode) { in setColorMode() argument
347 mManager.setColorMode(colorMode); in setColorMode()
808 void setColorMode(int colorMode) { in setColorMode() argument
810 mCdm.setColorMode(colorMode); in setColorMode()

1234