Searched refs:duplexMode (Results 1 – 4 of 4) sorted by relevance
250 public void setDuplexMode(int duplexMode) { in setDuplexMode() argument251 enforceValidDuplexMode(duplexMode); in setDuplexMode()252 mDuplexMode = duplexMode; in setDuplexMode()1360 static String duplexModeToString(int duplexMode) { in duplexModeToString() argument1361 switch (duplexMode) { in duplexModeToString()1383 static void enforceValidDuplexMode(int duplexMode) { in enforceValidDuplexMode() argument1384 if ((duplexMode & VALID_DUPLEX_MODES) == 0 || Integer.bitCount(duplexMode) != 1) { in enforceValidDuplexMode()1385 throw new IllegalArgumentException("invalid duplex mode: " + duplexMode); in enforceValidDuplexMode()1453 public @NonNull Builder setDuplexMode(@DuplexMode int duplexMode) { in setDuplexMode() argument1454 mAttributes.setDuplexMode(duplexMode); in setDuplexMode()
202 final int duplexMode = mDefaults[PROPERTY_DUPLEX_MODE]; in getDefaults() local203 if (duplexMode > 0) { in getDefaults()204 builder.setDuplexMode(duplexMode); in getDefaults()352 final int duplexMode = 1 << Integer.numberOfTrailingZeros(duplexModes); in duplexModesToString() local353 duplexModes &= ~duplexMode; in duplexModesToString()357 builder.append(PrintAttributes.duplexModeToString(duplexMode)); in duplexModesToString()
1224 final int duplexMode = attributes.getDuplexMode(); in updatePrintAttributesFromCapabilities() local1225 if ((capabilities.getDuplexModes() & duplexMode) == 0) { in updatePrintAttributesFromCapabilities()1827 final int duplexMode = 1 << duplexBitOffset; in updateOptionsUi() local1828 remainingDuplexModes &= ~duplexMode; in updateOptionsUi()1829 if (duplexMode != mDuplexModeSpinnerAdapter.getItem(adapterIndex).value) { in updateOptionsUi()1848 final int duplexMode = 1 << duplexBitOffset; in updateOptionsUi() local1849 if (duplexMode == oldDuplexMode) { in updateOptionsUi()1853 remainingDuplexModes &= ~duplexMode; in updateOptionsUi()1854 mDuplexModeSpinnerAdapter.add(new SpinnerItem<>(duplexMode, in updateOptionsUi()
998 final int duplexMode = attributes.getDuplexMode(); in doWriteStateLocked() local1000 String.valueOf(duplexMode)); in doWriteStateLocked()1255 String duplexMode = parser.getAttributeValue(null, ATTR_DUPLEX_MODE); in parsePrintJobLocked() local1257 if (duplexMode != null) { in parsePrintJobLocked()1258 builder.setDuplexMode(Integer.parseInt(duplexMode)); in parsePrintJobLocked()