/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 167 public int colorMode; field in Configuration 889 colorMode = o.colorMode; in setTo() 971 switch ((colorMode &COLOR_MODE_HDR_MASK)) { in toString() 976 sb.append(colorMode &COLOR_MODE_HDR_MASK); break; in toString() 978 switch ((colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK)) { in toString() 983 sb.append(colorMode &COLOR_MODE_WIDE_COLOR_GAMUT_MASK); break; in toString() 1079 colorMode = COLOR_MODE_UNDEFINED; in setToDefaults() 1216 if (((delta.colorMode & COLOR_MODE_WIDE_COLOR_GAMUT_MASK) != in updateFrom() 1218 && (delta.colorMode & COLOR_MODE_WIDE_COLOR_GAMUT_MASK) in updateFrom() 1219 != (colorMode & COLOR_MODE_WIDE_COLOR_GAMUT_MASK)) { in updateFrom() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ConfigDescription.cpp | 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() 224 out->colorMode = in parseWideColorGamut() 225 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut() 235 out->colorMode = in parseHdr() 236 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr() 241 out->colorMode = in parseHdr() 242 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr() [all …]
|
D | ConfigDescription_test.cpp | 109 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 115 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 124 config.colorMode & android::ResTable_config::MASK_HDR); in TEST() 130 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | NightDisplayController.java | 343 final int colorMode = System.getIntForUser(mContext.getContentResolver(), in getColorMode() local 345 if (colorMode < COLOR_MODE_NATURAL || colorMode > COLOR_MODE_SATURATED) { in getColorMode() 354 return colorMode; in getColorMode() 362 public void setColorMode(@ColorMode int colorMode) { in setColorMode() argument 363 if (colorMode < COLOR_MODE_NATURAL || colorMode > COLOR_MODE_SATURATED) { in setColorMode() 366 System.putIntForUser(mContext.getContentResolver(), System.DISPLAY_COLOR_MODE, colorMode, in setColorMode() local
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 291 for (int colorMode: colorModes) { in updateColorModesLocked() 292 if (!mSupportedColorModes.contains(colorMode)) { in updateColorModesLocked() 295 pendingColorModes.add(colorMode); in updateColorModesLocked() 368 mInfo.colorMode = mActiveColorMode; in getDisplayDeviceInfoLocked() 548 int colorMode, int modeId) { in requestDisplayModesInTransactionLocked() argument 550 requestColorModeInTransactionLocked(colorMode)) { in requestDisplayModesInTransactionLocked() 581 public boolean requestColorModeInTransactionLocked(int colorMode) { in requestColorModeInTransactionLocked() argument 582 if (mActiveColorMode == colorMode) { in requestColorModeInTransactionLocked() 585 if (!mSupportedColorModes.contains(colorMode)) { in requestColorModeInTransactionLocked() 586 Slog.w(TAG, "Unable to find color mode " + colorMode in requestColorModeInTransactionLocked() [all …]
|
D | DisplayDeviceInfo.java | 182 public int colorMode; field in DisplayDeviceInfo 306 if (colorMode != other.colorMode) { in diff() 348 colorMode = other.colorMode; in copyFrom() 376 sb.append(", colorMode ").append(colorMode); in toString()
|
D | DisplayTransformManager.java | 234 public boolean setColorMode(int colorMode) { in setColorMode() argument 235 if (colorMode == NightDisplayController.COLOR_MODE_NATURAL) { in setColorMode() 238 } else if (colorMode == NightDisplayController.COLOR_MODE_BOOSTED) { in setColorMode() 241 } else if (colorMode == NightDisplayController.COLOR_MODE_SATURATED) { in setColorMode()
|
D | LogicalDisplay.java | 266 mBaseDisplayInfo.colorMode = deviceInfo.colorMode; in updateLocked() 422 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument 423 mRequestedColorMode = colorMode; in setRequestedColorModeLocked()
|
D | PersistentDataStore.java | 204 public boolean setColorMode(DisplayDevice device, int colorMode) { in setColorMode() argument 209 if (state.setColorMode(colorMode)) { in setColorMode() 419 public boolean setColorMode(int colorMode) { in setColorMode() argument 420 if (colorMode == mColorMode) { in setColorMode() 423 mColorMode = colorMode; in setColorMode()
|
D | DisplayManagerService.java | 652 private void requestColorModeInternal(int displayId, int colorMode) { in requestColorModeInternal() argument 656 display.getRequestedColorModeLocked() != colorMode) { in requestColorModeInternal() 657 display.setRequestedColorModeLocked(colorMode); in requestColorModeInternal() 832 mPersistentDataStore.setColorMode(device, info.colorMode); in handleDisplayDeviceChanged() 944 int colorMode = mPersistentDataStore.getColorMode(device); in configureColorModeLocked() local 945 if (colorMode == Display.COLOR_MODE_INVALID) { in configureColorModeLocked() 948 colorMode = mDefaultDisplayDefaultColorMode; in configureColorModeLocked() 950 colorMode = Display.COLOR_MODE_DEFAULT; in configureColorModeLocked() 953 display.setRequestedColorModeLocked(colorMode); in configureColorModeLocked() 1608 public void requestColorMode(int displayId, int colorMode) { in requestColorMode() argument [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | AaptConfig_test.cpp | 106 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 112 config.colorMode & android::ResTable_config::MASK_WIDE_COLOR_GAMUT); in TEST() 121 config.colorMode & android::ResTable_config::MASK_HDR); in TEST() 127 config.colorMode & android::ResTable_config::MASK_HDR); in TEST()
|
/frameworks/base/core/java/android/view/ |
D | DisplayInfo.java | 173 public int colorMode; field in DisplayInfo 300 && colorMode == other.colorMode in equals() 342 colorMode = other.colorMode; in copyFrom() 383 colorMode = source.readInt(); in readFromParcel() 428 dest.writeInt(colorMode); in writeToParcel() 541 for (int colorMode : supportedColorModes) { in isWideColorGamut() 542 if (colorMode == Display.COLOR_MODE_DCI_P3 || colorMode > Display.COLOR_MODE_SRGB) { in isWideColorGamut() 620 sb.append(colorMode); in toString()
|
/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/support/core-utils/java/android/support/v4/print/ |
D | PrintHelper.java | 131 void setColorMode(int colorMode); in setColorMode() argument 171 public void setColorMode(@ColorMode int colorMode) { in setColorMode() argument 172 mColorMode = colorMode; in setColorMode() 267 public void setColorMode(@ColorMode int colorMode) { in setColorMode() argument 268 mColorMode = colorMode; in setColorMode() 813 private Bitmap convertBitmapForColorMode(Bitmap original, @ColorMode int colorMode) { in convertBitmapForColorMode() argument 814 if (colorMode != COLOR_MODE_MONOCHROME) { in convertBitmapForColorMode() 935 public void setColorMode(@ColorMode int colorMode) { in setColorMode() argument 936 mImpl.setColorMode(colorMode); in setColorMode()
|
/frameworks/native/libs/ui/ |
D | DebugUtils.cpp | 197 std::string decodeColorMode(android_color_mode colorMode) { in decodeColorMode() argument 198 switch (colorMode) { in decodeColorMode() 230 return android::base::StringPrintf("Unknown color mode %d", colorMode); in decodeColorMode()
|
/frameworks/base/core/java/android/print/ |
D | PrintAttributes.java | 204 public void setColorMode(int colorMode) { in setColorMode() argument 205 enforceValidColorMode(colorMode); in setColorMode() 206 mColorMode = colorMode; in setColorMode() 1342 static String colorModeToString(int colorMode) { in colorModeToString() argument 1343 switch (colorMode) { in colorModeToString() 1373 static void enforceValidColorMode(int colorMode) { in enforceValidColorMode() argument 1374 if ((colorMode & VALID_COLOR_MODES) == 0 || Integer.bitCount(colorMode) != 1) { in enforceValidColorMode() 1375 throw new IllegalArgumentException("invalid color mode: " + colorMode); in enforceValidColorMode() 1434 public @NonNull Builder setColorMode(@ColorMode int colorMode) { in setColorMode() argument 1435 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/base/libs/hwui/ |
D | Program.h | 161 SkBlendMode colorMode; member 213 colorMode = SkBlendMode::kClear; in reset() 280 key |= ((int) colorMode & PROGRAM_MAX_XFERMODE) << PROGRAM_XFERMODE_COLOR_OP_SHIFT; in key()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 276 public int colorMode = COLOR_MODE_DEFAULT; field in ActivityInfo 966 colorMode = orig.colorMode; in ActivityInfo() 1174 dest.writeInt(colorMode); in writeToParcel() 1211 colorMode = source.readInt(); in ActivityInfo()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer_hwc1.h | 264 android_color_mode_t colorMode; member 271 colorMode == rhs.colorMode;
|
/frameworks/base/libs/androidfw/tests/ |
D | Config_test.cpp | 190 wideGamutConfig.colorMode = ResTable_config::WIDE_COLOR_GAMUT_YES; in TEST() 200 hdrConfig.colorMode = ResTable_config::HDR_YES; in TEST()
|
/frameworks/base/core/java/android/hardware/display/ |
D | IDisplayManager.aidl | 64 void requestColorMode(int displayId, int colorMode); in requestColorMode() argument
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaOpenGLPipeline.h | 47 renderthread::ColorMode colorMode) override;
|
D | SkiaVulkanPipeline.h | 45 renderthread::ColorMode colorMode) override;
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1934 diff = (int32_t)(colorMode - o.colorMode); in compare() 1996 if (colorMode != o.colorMode) { in compareLogical() 1997 return colorMode < o.colorMode ? -1 : 1; in compareLogical() 2024 …if ((colorMode & MASK_WIDE_COLOR_GAMUT) != (o.colorMode & MASK_WIDE_COLOR_GAMUT)) diffs |= CONFIG_… in diff() 2025 if ((colorMode & MASK_HDR) != (o.colorMode & MASK_HDR)) diffs |= CONFIG_COLOR_MODE; in diff() 2137 if (colorMode || o.colorMode) { in isMoreSpecificThan() 2138 if (((colorMode^o.colorMode) & MASK_HDR) != 0) { in isMoreSpecificThan() 2139 if (!(colorMode & MASK_HDR)) return false; in isMoreSpecificThan() 2140 if (!(o.colorMode & MASK_HDR)) return true; in isMoreSpecificThan() 2142 if (((colorMode^o.colorMode) & MASK_WIDE_COLOR_GAMUT) != 0) { in isMoreSpecificThan() [all …]
|