Home
last modified time | relevance | path

Searched refs:duplexMode (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/print/
DPrintAttributes.java246 public void setDuplexMode(int duplexMode) { in setDuplexMode() argument
247 enforceValidDuplexMode(duplexMode); in setDuplexMode()
248 mDuplexMode = duplexMode; in setDuplexMode()
1356 static String duplexModeToString(int duplexMode) { in duplexModeToString() argument
1357 switch (duplexMode) { in duplexModeToString()
1379 static void enforceValidDuplexMode(int duplexMode) { in enforceValidDuplexMode() argument
1380 if ((duplexMode & VALID_DUPLEX_MODES) == 0 || Integer.bitCount(duplexMode) != 1) { in enforceValidDuplexMode()
1381 throw new IllegalArgumentException("invalid duplex mode: " + duplexMode); in enforceValidDuplexMode()
1449 public @NonNull Builder setDuplexMode(@DuplexMode int duplexMode) { in setDuplexMode() argument
1450 mAttributes.setDuplexMode(duplexMode); in setDuplexMode()
DPrinterCapabilitiesInfo.java202 final int duplexMode = mDefaults[PROPERTY_DUPLEX_MODE]; in getDefaults() local
203 if (duplexMode > 0) { in getDefaults()
204 builder.setDuplexMode(duplexMode); in getDefaults()
352 final int duplexMode = 1 << Integer.numberOfTrailingZeros(duplexModes); in duplexModesToString() local
353 duplexModes &= ~duplexMode; in duplexModesToString()
357 builder.append(PrintAttributes.duplexModeToString(duplexMode)); in duplexModesToString()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1132 final int duplexMode = attributes.getDuplexMode(); in updatePrintAttributesFromCapabilities() local
1133 if ((capabilities.getDuplexModes() & duplexMode) == 0) { in updatePrintAttributesFromCapabilities()
1739 final int duplexMode = 1 << duplexBitOffset; in updateOptionsUi() local
1740 remainingDuplexModes &= ~duplexMode; in updateOptionsUi()
1741 if (duplexMode != mDuplexModeSpinnerAdapter.getItem(adapterIndex).value) { in updateOptionsUi()
1760 final int duplexMode = 1 << duplexBitOffset; in updateOptionsUi() local
1761 if (duplexMode == oldDuplexMode) { in updateOptionsUi()
1765 remainingDuplexModes &= ~duplexMode; in updateOptionsUi()
1766 mDuplexModeSpinnerAdapter.add(new SpinnerItem<>(duplexMode, in updateOptionsUi()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java953 final int duplexMode = attributes.getDuplexMode(); in doWriteStateLocked() local
955 String.valueOf(duplexMode)); in doWriteStateLocked()
1210 String duplexMode = parser.getAttributeValue(null, ATTR_DUPLEX_MODE); in parsePrintJob() local
1212 if (duplexMode != null) { in parsePrintJob()
1213 builder.setDuplexMode(Integer.parseInt(duplexMode)); in parsePrintJob()