Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/content/res/
DConfiguration.java167 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/
DConfigDescription.cpp212 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 …]
DConfigDescription_test.cpp109 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/
DNightDisplayController.java343 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/
DLocalDisplayAdapter.java291 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 …]
DDisplayDeviceInfo.java182 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()
DDisplayTransformManager.java234 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()
DLogicalDisplay.java266 mBaseDisplayInfo.colorMode = deviceInfo.colorMode; in updateLocked()
422 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument
423 mRequestedColorMode = colorMode; in setRequestedColorModeLocked()
DPersistentDataStore.java204 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()
DDisplayManagerService.java652 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/
DAaptConfig_test.cpp106 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/
DDisplayInfo.java173 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/
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/support/core-utils/java/android/support/v4/print/
DPrintHelper.java131 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/
DDebugUtils.cpp197 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/
DPrintAttributes.java204 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()
DPrinterCapabilitiesInfo.java197 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/
DProgram.h161 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/
DActivityInfo.java276 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/
DHWComposer_hwc1.h264 android_color_mode_t colorMode; member
271 colorMode == rhs.colorMode;
/frameworks/base/libs/androidfw/tests/
DConfig_test.cpp190 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/
DIDisplayManager.aidl64 void requestColorMode(int displayId, int colorMode); in requestColorMode() argument
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaOpenGLPipeline.h47 renderthread::ColorMode colorMode) override;
DSkiaVulkanPipeline.h45 renderthread::ColorMode colorMode) override;
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1934 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 …]

123