/frameworks/base/services/core/java/com/android/server/display/color/ |
D | DisplayTransformManager.java | 250 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()
|
D | ColorDisplayService.java | 918 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/ |
D | ConfigDescription.cpp | 206 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/ |
D | Configuration.java | 204 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/ |
D | ColorModeControls.kt | 59 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/ |
D | AaptConfig_test.cpp | 105 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/ |
D | AaptConfig.cpp | 270 || 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/ |
D | ConfigDescription_test.cpp | 107 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/ |
D | ParsedActivity.java | 80 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/ |
D | DisplayDeviceInfo.java | 220 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()
|
D | LocalDisplayAdapter.java | 447 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/ |
D | OutputCompositionState.cpp | 52 dumpVal(out, "colorMode", toString(colorMode), colorMode); in dump()
|
D | DisplayColorProfile.cpp | 68 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/ |
D | DisplayInfo.java | 193 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/ |
D | ScrollCaptureViewSupport.java | 83 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/ |
D | VulkanSurface.h | 38 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType, 107 static bool InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode,
|
/frameworks/base/core/java/android/print/ |
D | PrinterCapabilitiesInfo.java | 199 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()
|
D | PrintAttributes.java | 208 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/ |
D | ActivityInfo.java | 320 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/ |
D | HardwareRenderer.java | 641 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/ |
D | Credentials_test.cpp | 339 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/ |
D | DisplayAdjustmentsTests.java | 57 configuration.colorMode = 1000; in testConfigurationConstructor_copiesConfiguration() 66 configuration.colorMode = 1000; in testDisplayAdjustmentsConstructor_copiesConfiguration()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayDevice_GetBestColorModeTest.cpp | 36 void addHwcColorModesMapping(ui::ColorMode colorMode, in addHwcColorModesMapping() argument 38 mHwcColorModes[colorMode] = renderIntents; in addHwcColorModesMapping()
|
/frameworks/native/libs/ui/ |
D | DebugUtils.cpp | 202 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/ |
D | ColorDisplayManager.java | 346 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()
|