Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/print/
DPrintHelper.java84 public void setColorMode(int colorMode); in setColorMode() argument
116 public void setColorMode(int colorMode) { in setColorMode() argument
117 mColorMode = colorMode; in setColorMode()
161 public void setColorMode(int colorMode) { in setColorMode() argument
162 mPrintHelper.setColorMode(colorMode); in setColorMode()
236 public void setColorMode(int colorMode) { in setColorMode() argument
237 mImpl.setColorMode(colorMode); in setColorMode()
/frameworks/base/core/java/android/print/
DPrintAttributes.java149 public void setColorMode(int colorMode) { in setColorMode() argument
150 enforceValidColorMode(colorMode); in setColorMode()
151 mColorMode = colorMode; in setColorMode()
1164 static String colorModeToString(int colorMode) { in colorModeToString() argument
1165 switch (colorMode) { in colorModeToString()
1177 static void enforceValidColorMode(int colorMode) { in enforceValidColorMode() argument
1178 if ((colorMode & VALID_COLOR_MODES) == 0 && Integer.bitCount(colorMode) == 1) { in enforceValidColorMode()
1179 throw new IllegalArgumentException("invalid color mode: " + colorMode); in enforceValidColorMode()
1232 public Builder setColorMode(int colorMode) { in setColorMode() argument
1233 if (Integer.bitCount(colorMode) > 1) { in setColorMode()
[all …]
DPrinterCapabilitiesInfo.java176 final int colorMode = mDefaults[PROPERTY_COLOR_MODE]; in getDefaults() local
177 if (colorMode > 0) { in getDefaults()
178 builder.setColorMode(colorMode); in getDefaults()
281 final int colorMode = 1 << Integer.numberOfTrailingZeros(colorModes); in colorModesToString() local
282 colorModes &= ~colorMode; in colorModesToString()
286 builder.append(PrintAttributes.colorModeToString(colorMode)); in colorModesToString()
/frameworks/base/libs/hwui/
DProgram.h151 SkXfermode::Mode colorMode; member
194 colorMode = SkXfermode::kClear_Mode; in reset()
256 key |= (colorMode & PROGRAM_MAX_XFERMODE) << PROGRAM_XFERMODE_COLOR_OP_SHIFT; in key()
DSkiaColorFilter.cpp109 description.colorMode = mMode; in describe()
DProgramCache.cpp651 generateBlend(shader, "blendColors", description.colorMode); in generateFragmentShader()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
DPrintJobConfigActivity.java1096 final int colorMode = mCurrPrintAttributes.getColorMode(); in updatePrintAttributes() local
1097 if ((capabilities.getColorModes() & colorMode) == 0) { in updatePrintAttributes()
1098 mCurrPrintAttributes.setColorMode(colorMode); in updatePrintAttributes()
1499 final int colorMode = attributes.getColorMode(); in updateFromAdvancedOptions() local
1500 if (mCurrPrintAttributes.getColorMode() != colorMode) { in updateFromAdvancedOptions()
1501 if (colorMode == PrintAttributes.COLOR_MODE_MONOCHROME) { in updateFromAdvancedOptions()
1506 } else if (colorMode == PrintAttributes.COLOR_MODE_COLOR) { in updateFromAdvancedOptions()
2157 final int colorMode = 1 << colorBitOffset; in updateUi() local
2158 remainingColorModes &= ~colorMode; in updateUi()
2159 if (colorMode != mColorModeSpinnerAdapter.getItem(adapterIndex).value) { in updateUi()
[all …]
DPrintSpoolerService.java859 final int colorMode = attributes.getColorMode(); in doWriteStateLocked() local
861 String.valueOf(colorMode)); in doWriteStateLocked()
1094 String colorMode = parser.getAttributeValue(null, ATTR_COLOR_MODE); in parsePrintJob() local
1095 builder.setColorMode(Integer.parseInt(colorMode)); in parsePrintJob()
/frameworks/support/v4/kitkat/android/support/v4/print/
DPrintHelperKitkat.java123 public void setColorMode(int colorMode) { in setColorMode() argument
124 mColorMode = colorMode; in setColorMode()