Searched refs:duplexMode (Results 1 – 6 of 6) sorted by relevance
204 final int duplexMode = mDefaults[PROPERTY_DUPLEX_MODE]; in getDefaults() local205 if (duplexMode > 0) { in getDefaults()206 builder.setDuplexMode(duplexMode); in getDefaults()354 final int duplexMode = 1 << Integer.numberOfTrailingZeros(duplexModes); in duplexModesToString() local355 duplexModes &= ~duplexMode; in duplexModesToString()359 builder.append(PrintAttributes.duplexModeToString(duplexMode)); in duplexModesToString()
250 public void setDuplexMode(int duplexMode) { in setDuplexMode() argument251 enforceValidDuplexMode(duplexMode); in setDuplexMode()252 mDuplexMode = duplexMode; in setDuplexMode()1408 static String duplexModeToString(int duplexMode) { in duplexModeToString() argument1409 switch (duplexMode) { in duplexModeToString()1431 static void enforceValidDuplexMode(int duplexMode) { in enforceValidDuplexMode() argument1432 if ((duplexMode & VALID_DUPLEX_MODES) == 0 || Integer.bitCount(duplexMode) != 1) { in enforceValidDuplexMode()1433 throw new IllegalArgumentException("invalid duplex mode: " + duplexMode); in enforceValidDuplexMode()1501 public @NonNull Builder setDuplexMode(@DuplexMode int duplexMode) { in setDuplexMode() argument1502 mAttributes.setDuplexMode(duplexMode); in setDuplexMode()
375 for (String duplexMode : duplexModeList) { in createPresenceTuple()376 serviceCapabilitiesBuilder.addSupportedDuplexMode(duplexMode); in createPresenceTuple()568 String duplexMode = null, unsupportedDuplexMode = null; in insertNewPresenceCapability() local572 duplexMode = TextUtils.join(",", duplexModes); in insertNewPresenceCapability()599 contentValues.put(EabProvider.PresenceTupleColumns.DUPLEX_MODE, duplexMode); in insertNewPresenceCapability()
479 final String duplexMode = ServiceCapabilities.DUPLEX_MODE_FULL; in getRcsContactUceCapability() local487 servCapsBuilder.addSupportedDuplexMode(duplexMode); in getRcsContactUceCapability()
1223 final int duplexMode = attributes.getDuplexMode(); in updatePrintAttributesFromCapabilities() local1224 if ((capabilities.getDuplexModes() & duplexMode) == 0) { in updatePrintAttributesFromCapabilities()1826 final int duplexMode = 1 << duplexBitOffset; in updateOptionsUi() local1827 remainingDuplexModes &= ~duplexMode; in updateOptionsUi()1828 if (duplexMode != mDuplexModeSpinnerAdapter.getItem(adapterIndex).value) { in updateOptionsUi()1847 final int duplexMode = 1 << duplexBitOffset; in updateOptionsUi() local1848 if (duplexMode == oldDuplexMode) { in updateOptionsUi()1852 remainingDuplexModes &= ~duplexMode; in updateOptionsUi()1853 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()