/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 | 825 private void setColorModeInternal(@ColorMode int colorMode) { in setColorModeInternal() argument 826 if (!isColorModeAvailable(colorMode)) { in setColorModeInternal() 827 throw new IllegalArgumentException("Invalid colorMode: " + colorMode); in setColorModeInternal() 830 colorMode, in setColorModeInternal() local 845 int colorMode = System.getIntForUser(cr, System.DISPLAY_COLOR_MODE, -1, mCurrentUser); in getColorModeInternal() local 846 if (colorMode == -1) { in getColorModeInternal() 849 colorMode = getCurrentColorModeFromSystemProperties(); in getColorModeInternal() 854 if (!isColorModeAvailable(colorMode)) { in getColorModeInternal() 855 if (colorMode == COLOR_MODE_BOOSTED && isColorModeAvailable(COLOR_MODE_NATURAL)) { in getColorModeInternal() 856 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 | 203 public int colorMode; field in Configuration 926 colorMode = o.colorMode; in setTo() 1008 switch ((colorMode &COLOR_MODE_HDR_MASK)) { in toString() 1013 sb.append(colorMode &COLOR_MODE_HDR_MASK); break; in toString() 1015 switch ((colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK)) { in toString() 1020 sb.append(colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK); break; in toString() 1119 protoOutputStream.write(COLOR_MODE, colorMode); in writeToProto() 1247 colorMode = protoInputStream.readInt(COLOR_MODE); in readFromProto() 1382 colorMode = COLOR_MODE_UNDEFINED; in setToDefaults() 1519 if (((delta.colorMode & COLOR_MODE_WIDE_COLOR_GAMUT_MASK) != in updateFrom() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceInfo.java | 199 public int colorMode; field in DisplayDeviceInfo 328 if (colorMode != other.colorMode) { in diff() 371 colorMode = other.colorMode; in copyFrom() 400 sb.append(", colorMode ").append(colorMode); in toString()
|
D | LocalDisplayAdapter.java | 324 for (int colorMode: colorModes) { in updateColorModesLocked() 325 if (!mSupportedColorModes.contains(colorMode)) { in updateColorModesLocked() 328 pendingColorModes.add(colorMode); in updateColorModesLocked() 397 mInfo.colorMode = mActiveColorMode; in getDisplayDeviceInfoLocked() 619 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument 620 if (requestColorModeLocked(colorMode)) { in setRequestedColorModeLocked() 717 public boolean requestColorModeLocked(int colorMode) { in requestColorModeLocked() argument 718 if (mActiveColorMode == colorMode) { in requestColorModeLocked() 721 if (!mSupportedColorModes.contains(colorMode)) { in requestColorModeLocked() 722 Slog.w(TAG, "Unable to find color mode " + colorMode in requestColorModeLocked() [all …]
|
D | LogicalDisplay.java | 284 mBaseDisplayInfo.colorMode = deviceInfo.colorMode; in updateLocked() 484 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument 485 mRequestedColorMode = colorMode; in setRequestedColorModeLocked()
|
D | PersistentDataStore.java | 250 public boolean setColorMode(DisplayDevice device, int colorMode) { in setColorMode() argument 255 if (state.setColorMode(colorMode)) { in setColorMode() 483 public boolean setColorMode(int colorMode) { in setColorMode() argument 484 if (colorMode == mColorMode) { in setColorMode() 487 mColorMode = colorMode; in setColorMode()
|
/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/core/java/android/view/ |
D | DisplayInfo.java | 201 public int colorMode; field in DisplayInfo 332 && colorMode == other.colorMode in equals() 376 colorMode = other.colorMode; in copyFrom() 419 colorMode = source.readInt(); in readFromParcel() 466 dest.writeInt(colorMode); in writeToParcel() 579 for (int colorMode : supportedColorModes) { in isWideColorGamut() 580 if (colorMode == Display.COLOR_MODE_DCI_P3 || colorMode > Display.COLOR_MODE_SRGB) { in isWideColorGamut() 660 sb.append(colorMode); in toString()
|
/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/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputCompositionState.cpp | 43 dumpVal(out, "colorMode", toString(colorMode), colorMode); in dump()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaVulkanPipeline.cpp | 119 ColorMode colorMode, uint32_t extraBuffers) { in setSurface() argument 125 setSurfaceColorProperties(colorMode); in setSurface() 129 mVkManager.createSurface(surface, colorMode, mSurfaceColorSpace, mSurfaceColorType, in setSurface()
|
D | SkiaOpenGLPipeline.cpp | 173 ColorMode colorMode, uint32_t extraBuffers) { in setSurface() argument 179 setSurfaceColorProperties(colorMode); in setSurface() 183 auto newSurface = mEglManager.createSurface(surface, colorMode, mSurfaceColorSpace); in setSurface()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 290 public int colorMode = COLOR_MODE_DEFAULT; field in ActivityInfo 1006 colorMode = orig.colorMode; in ActivityInfo() 1231 dest.writeInt(colorMode); in writeToParcel() 1305 public static String colorModeToString(@ColorMode int colorMode) { in colorModeToString() argument 1306 switch (colorMode) { in colorModeToString() 1314 return Integer.toString(colorMode); in colorModeToString() 1353 colorMode = source.readInt(); in ActivityInfo()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayTest.cpp | 147 ASSERT_EQ(ui::ColorMode::NATIVE, mDisplay.getState().colorMode); in TEST_F() 155 EXPECT_EQ(ui::ColorMode::NATIVE, mDisplay.getState().colorMode); in TEST_F() 169 EXPECT_EQ(ui::ColorMode::DISPLAY_P3, mDisplay.getState().colorMode); in TEST_F() 181 EXPECT_EQ(ui::ColorMode::NATIVE, virtualDisplay.getState().colorMode); in TEST_F()
|
/frameworks/base/core/java/android/print/ |
D | PrintAttributes.java | 208 public void setColorMode(int colorMode) { in setColorMode() argument 209 enforceValidColorMode(colorMode); in setColorMode() 210 mColorMode = colorMode; in setColorMode() 1346 static String colorModeToString(int colorMode) { in colorModeToString() argument 1347 switch (colorMode) { in colorModeToString() 1377 static void enforceValidColorMode(int colorMode) { in enforceValidColorMode() argument 1378 if ((colorMode & VALID_COLOR_MODES) == 0 || Integer.bitCount(colorMode) != 1) { in enforceValidColorMode() 1379 throw new IllegalArgumentException("invalid color mode: " + colorMode); in enforceValidColorMode() 1438 public @NonNull Builder setColorMode(@ColorMode int colorMode) { in setColorMode() argument 1439 mAttributes.setColorMode(colorMode); in setColorMode()
|
D | PrinterCapabilitiesInfo.java | 197 final int colorMode = mDefaults[PROPERTY_COLOR_MODE]; in getDefaults() local 198 if (colorMode > 0) { in getDefaults() 199 builder.setColorMode(colorMode); in getDefaults() 336 final int colorMode = 1 << Integer.numberOfTrailingZeros(colorModes); in colorModesToString() local 337 colorModes &= ~colorMode; in colorModesToString() 341 builder.append(PrintAttributes.colorModeToString(colorMode)); in colorModesToString()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Credentials_test.cpp | 334 for (ColorMode colorMode : colorModes) { in TEST_F() local 335 switch (colorMode) { in TEST_F() 361 ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(display); in TEST_F() local 362 ASSERT_NE(static_cast<ColorMode>(BAD_VALUE), colorMode); in TEST_F()
|
/frameworks/native/libs/ui/ |
D | DebugUtils.cpp | 202 std::string decodeColorMode(ColorMode colorMode) { in decodeColorMode() argument 203 switch (colorMode) { in decodeColorMode() 247 return android::base::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() 677 void setColorMode(int colorMode) { in setColorMode() argument 679 mCdm.setColorMode(colorMode); in setColorMode()
|
D | IColorDisplayManager.aidl | 44 void setColorMode(int colorMode); in setColorMode() argument
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputCompositionState.h | 86 ui::ColorMode colorMode{ui::ColorMode::NATIVE};
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 160 out_config->colorMode = (out_config->colorMode & ~ConfigDescription::MASK_WIDE_COLOR_GAMUT) | in DeserializeConfigFromPb() 165 out_config->colorMode = (out_config->colorMode & ~ConfigDescription::MASK_WIDE_COLOR_GAMUT) | in DeserializeConfigFromPb() 175 out_config->colorMode = in DeserializeConfigFromPb() 176 (out_config->colorMode & ~ConfigDescription::MASK_HDR) | ConfigDescription::HDR_YES; in DeserializeConfigFromPb() 180 out_config->colorMode = in DeserializeConfigFromPb() 181 (out_config->colorMode & ~ConfigDescription::MASK_HDR) | ConfigDescription::HDR_NO; in DeserializeConfigFromPb()
|