Home
last modified time | relevance | path

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

12

/frameworks/support/core-utils/java/android/support/v4/print/
DPrintHelper.java98 public void setColorMode(int colorMode); in setColorMode() argument
130 public void setColorMode(int colorMode) { in setColorMode() argument
131 mColorMode = colorMode; in setColorMode()
176 public void setColorMode(int colorMode) { in setColorMode() argument
177 mPrintHelper.setColorMode(colorMode); in setColorMode()
316 public void setColorMode(int colorMode) { in setColorMode() argument
317 mImpl.setColorMode(colorMode); in setColorMode()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java290 for (int colorMode: colorModes) { in updateColorModesLocked()
291 if (!mSupportedColorModes.contains(colorMode)) { in updateColorModesLocked()
294 pendingColorModes.add(colorMode); in updateColorModesLocked()
367 mInfo.colorMode = mActiveColorMode; in getDisplayDeviceInfoLocked()
543 int colorMode, int modeId) { in requestDisplayModesInTransactionLocked() argument
545 requestColorModeInTransactionLocked(colorMode)) { in requestDisplayModesInTransactionLocked()
576 public boolean requestColorModeInTransactionLocked(int colorMode) { in requestColorModeInTransactionLocked() argument
577 if (mActiveColorMode == colorMode) { in requestColorModeInTransactionLocked()
580 if (!mSupportedColorModes.contains(colorMode)) { in requestColorModeInTransactionLocked()
581 Slog.w(TAG, "Unable to find color mode " + colorMode in requestColorModeInTransactionLocked()
[all …]
DDisplayDeviceInfo.java164 public int colorMode; field in DisplayDeviceInfo
288 if (colorMode != other.colorMode) { in diff()
330 colorMode = other.colorMode; in copyFrom()
358 sb.append(", colorMode ").append(colorMode); in toString()
DPersistentDataStore.java195 public boolean setColorMode(DisplayDevice device, int colorMode) { in setColorMode() argument
200 if (state.setColorMode(colorMode)) { in setColorMode()
390 public boolean setColorMode(int colorMode) { in setColorMode() argument
391 if (colorMode == mColorMode) { in setColorMode()
394 mColorMode = colorMode; in setColorMode()
DLogicalDisplay.java239 mBaseDisplayInfo.colorMode = deviceInfo.colorMode; in updateLocked()
395 public void setRequestedColorModeLocked(int colorMode) { in setRequestedColorModeLocked() argument
396 mRequestedColorMode = colorMode; in setRequestedColorModeLocked()
DDisplayManagerService.java556 private void requestColorModeInternal(int displayId, int colorMode) { in requestColorModeInternal() argument
560 display.getRequestedColorModeLocked() != colorMode) { in requestColorModeInternal()
561 display.setRequestedColorModeLocked(colorMode); in requestColorModeInternal()
712 int colorMode = mPersistentDataStore.getColorMode(device); in handleDisplayDeviceAddedLocked() local
713 if (colorMode == Display.COLOR_MODE_INVALID) { in handleDisplayDeviceAddedLocked()
716 colorMode = mDefaultDisplayDefaultColorMode; in handleDisplayDeviceAddedLocked()
718 colorMode = Display.COLOR_MODE_DEFAULT; in handleDisplayDeviceAddedLocked()
721 display.setRequestedColorModeLocked(colorMode); in handleDisplayDeviceAddedLocked()
743 mPersistentDataStore.setColorMode(device, info.colorMode); in handleDisplayDeviceChanged()
1391 public void requestColorMode(int displayId, int colorMode) { in requestColorMode() argument
[all …]
DDisplayDevice.java143 public void requestDisplayModesInTransactionLocked(int colorMode, int modeId) { in requestDisplayModesInTransactionLocked() argument
/frameworks/base/core/java/android/view/
DDisplayInfo.java173 public int colorMode; field in DisplayInfo
291 && colorMode == other.colorMode in equals()
332 colorMode = other.colorMode; in copyFrom()
372 colorMode = source.readInt(); in readFromParcel()
416 dest.writeInt(colorMode); in writeToParcel()
595 sb.append(colorMode); in toString()
DDisplay.java733 public void requestColorMode(int colorMode) { in requestColorMode() argument
734 mGlobal.requestColorMode(mDisplayId, colorMode); in requestColorMode()
744 return mDisplayInfo.colorMode; in getColorMode()
DSurfaceControl.java88 int colorMode); in nativeSetActiveColorMode() argument
649 public static boolean setActiveColorMode(IBinder displayToken, int colorMode) { in setActiveColorMode() argument
653 return nativeSetActiveColorMode(displayToken, colorMode); in setActiveColorMode()
/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.h151 SkXfermode::Mode colorMode; member
192 colorMode = SkXfermode::kClear_Mode; in reset()
249 key |= (colorMode & PROGRAM_MAX_XFERMODE) << PROGRAM_XFERMODE_COLOR_OP_SHIFT; in key()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer_hwc1.h262 android_color_mode_t colorMode; member
269 colorMode == rhs.colorMode;
DHWC2On1Adapter.cpp1682 android_color_mode_t colorMode = static_cast<android_color_mode_t>(getAttribute(ColorMode)); in setHwc1Id() local
1683 mHwc1Ids.emplace(colorMode, id); in setHwc1Id()
1794 android_color_mode_t colorMode = id.first; in toString() local
1797 if (colorMode == mDisplay.mActiveColorMode) { in toString()
1799 colorMode); in toString()
1802 colorMode); in toString()
DHWComposer_hwc1.cpp408 config.colorMode = static_cast<android_color_mode_t>(values[i]); in queryDisplayProperties()
526 return mDisplayData[disp].configs[currentConfig].colorMode; in getColorMode()
1195 config.refresh, config.colorMode); in dump()
/frameworks/support/core-utils/kitkat/android/support/v4/print/
DPrintHelperKitkat.java147 public void setColorMode(int colorMode) { in setColorMode() argument
148 mColorMode = colorMode; in setColorMode()
681 private Bitmap convertBitmapForColorMode(Bitmap original, int colorMode) { in convertBitmapForColorMode() argument
682 if (colorMode != COLOR_MODE_MONOCHROME) { in convertBitmapForColorMode()
/frameworks/base/core/java/android/hardware/display/
DIDisplayManager.aidl63 void requestColorMode(int displayId, int colorMode); in requestColorMode() argument
DDisplayManagerGlobal.java357 public void requestColorMode(int displayId, int colorMode) { in requestColorMode() argument
359 mDm.requestColorMode(displayId, colorMode); in requestColorMode()
/frameworks/native/libs/gui/
DISurfaceComposer.cpp325 android_color_mode_t colorMode) { in setActiveColorMode() argument
337 result = data.writeInt32(colorMode); in setActiveColorMode()
577 android_color_mode_t colorMode = getActiveColorMode(display); in onTransact() local
578 result = reply->writeInt32(static_cast<int32_t>(colorMode)); in onTransact()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1126 final int colorMode = attributes.getColorMode(); in updatePrintAttributesFromCapabilities() local
1127 if ((capabilities.getColorModes() & colorMode) == 0) { in updatePrintAttributesFromCapabilities()
1674 final int colorMode = 1 << colorBitOffset; in updateOptionsUi() local
1675 remainingColorModes &= ~colorMode; in updateOptionsUi()
1676 if (colorMode != mColorModeSpinnerAdapter.getItem(adapterIndex).value) { in updateOptionsUi()
1694 final int colorMode = 1 << colorBitOffset; in updateOptionsUi() local
1695 if (colorMode == oldColorMode) { in updateOptionsUi()
1699 remainingColorModes &= ~colorMode; in updateOptionsUi()
1700 mColorModeSpinnerAdapter.add(new SpinnerItem<>(colorMode, in updateOptionsUi()
2013 final int colorMode = attributes.getColorMode(); in canUpdateDocument() local
[all …]
/frameworks/native/include/gui/
DISurfaceComposer.h144 android_color_mode_t colorMode) = 0;
DSurfaceComposerClient.h94 static status_t setActiveColorMode(const sp<IBinder>& display, android_color_mode_t colorMode);
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.h230 virtual status_t setActiveColorMode(const sp<IBinder>& display, android_color_mode_t colorMode);
270 void setActiveColorModeInternal(const sp<DisplayDevice>& hw, android_color_mode_t colorMode);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java949 final int colorMode = attributes.getColorMode(); in doWriteStateLocked() local
951 String.valueOf(colorMode)); in doWriteStateLocked()
1207 String colorMode = parser.getAttributeValue(null, ATTR_COLOR_MODE); in parsePrintJob() local
1208 builder.setColorMode(Integer.parseInt(colorMode)); in parsePrintJob()

12