Home
last modified time | relevance | path

Searched refs:EnumSet (Results 1 – 25 of 69) sorted by relevance

123

/external/icu/icu4c/source/common/unicode/
Denumset.h31 class EnumSet {
33 inline EnumSet() : fBools(0) {} in EnumSet() function
34 inline EnumSet(const EnumSet<T,minValue,limitValue>& other) : fBools(other.fBools) {} in EnumSet() function
35 inline ~EnumSet() {} in ~EnumSet()
45 …inline const EnumSet<T,minValue,limitValue>& operator=(const EnumSet<T,minValue,limitValue>& other…
/external/guava/guava/src/com/google/common/collect/
DImmutableEnumSet.java23 import java.util.EnumSet;
34 static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) { in asImmutable()
53 private final transient EnumSet<E> delegate;
55 private ImmutableEnumSet(EnumSet<E> delegate) { in ImmutableEnumSet()
109 final EnumSet<E> delegate;
110 EnumSerializedForm(EnumSet<E> delegate) { in EnumSerializedForm()
DSets.java36 import java.util.EnumSet;
99 return ImmutableEnumSet.asImmutable(EnumSet.of(anElement, otherElements)); in immutableEnumSet()
124 return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection)); in immutableEnumSet()
129 EnumSet<E> enumSet = EnumSet.of(itr.next()); in immutableEnumSet()
144 public static <E extends Enum<E>> EnumSet<E> newEnumSet(Iterable<E> iterable, in newEnumSet()
146 EnumSet<E> set = EnumSet.noneOf(elementType); in newEnumSet()
446 public static <E extends Enum<E>> EnumSet<E> complementOf( in complementOf()
448 if (collection instanceof EnumSet) { in complementOf()
449 return EnumSet.complementOf((EnumSet<E>) collection); in complementOf()
469 public static <E extends Enum<E>> EnumSet<E> complementOf( in complementOf()
[all …]
DImmutableSet.java30 import java.util.EnumSet;
371 } else if (elements instanceof EnumSet) {
372 return copyOfEnumSet((EnumSet) elements);
379 EnumSet<E> enumSet) {
380 return ImmutableEnumSet.asImmutable(EnumSet.copyOf(enumSet));
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DExampleNumbersTest.java26 import java.util.EnumSet;
77 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE, in testFixedLine()
85 Set<PhoneNumberType> mobileTypes = EnumSet.of(PhoneNumberType.MOBILE, in testMobile()
93 Set<PhoneNumberType> tollFreeTypes = EnumSet.of(PhoneNumberType.TOLL_FREE); in testTollFree()
100 Set<PhoneNumberType> premiumRateTypes = EnumSet.of(PhoneNumberType.PREMIUM_RATE); in testPremiumRate()
107 Set<PhoneNumberType> voipTypes = EnumSet.of(PhoneNumberType.VOIP); in testVoip()
114 Set<PhoneNumberType> pagerTypes = EnumSet.of(PhoneNumberType.PAGER); in testPager()
121 Set<PhoneNumberType> uanTypes = EnumSet.of(PhoneNumberType.UAN); in testUan()
128 Set<PhoneNumberType> voicemailTypes = EnumSet.of(PhoneNumberType.VOICEMAIL); in testVoicemail()
135 Set<PhoneNumberType> sharedCostTypes = EnumSet.of(PhoneNumberType.SHARED_COST); in testSharedCost()
/external/dexmaker/src/dx/java/com/android/dx/ssa/
DOptimizer.java24 import java.util.EnumSet;
74 EnumSet.allOf(OptionalStep.class)); in optimize()
93 TranslationAdvice inAdvice, EnumSet<OptionalStep> steps) { in optimize()
130 EnumSet<OptionalStep> steps) { in optimizeMinimizeRegisters()
137 EnumSet<OptionalStep> newSteps = steps.clone(); in optimizeMinimizeRegisters()
152 EnumSet<OptionalStep> steps) { in runSsaFormSteps()
242 TranslationAdvice inAdvice, EnumSet<OptionalStep> steps) { in debugNoRegisterAllocation()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSets.java32 import java.util.EnumSet;
94 return ImmutableEnumSet.asImmutable(EnumSet.of(anElement, otherElements)); in immutableEnumSet()
119 return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection)); in immutableEnumSet()
124 EnumSet<E> enumSet = EnumSet.of(itr.next()); in immutableEnumSet()
139 public static <E extends Enum<E>> EnumSet<E> newEnumSet(Iterable<E> iterable, in newEnumSet()
141 EnumSet<E> set = EnumSet.noneOf(elementType); in newEnumSet()
409 public static <E extends Enum<E>> EnumSet<E> complementOf( in complementOf()
411 if (collection instanceof EnumSet) { in complementOf()
412 return EnumSet.complementOf((EnumSet<E>) collection); in complementOf()
432 public static <E extends Enum<E>> EnumSet<E> complementOf( in complementOf()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSetsTest.java42 import java.util.EnumSet;
127 EnumSet<SomeEnum> copy = in testNewEnumSet_empty()
129 assertEquals(EnumSet.noneOf(SomeEnum.class), copy); in testNewEnumSet_empty()
133 EnumSet<SomeEnum> set = EnumSet.of(SomeEnum.A, SomeEnum.D); in testNewEnumSet_enumSet()
288 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D); in testComplementOfEnumSet()
289 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units); in testComplementOfEnumSet()
290 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C)); in testComplementOfEnumSet()
294 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D); in testComplementOfEnumSetWithType()
295 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units, SomeEnum.class); in testComplementOfEnumSetWithType()
296 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C)); in testComplementOfEnumSetWithType()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/system/
DNullRenderer.java50 import java.util.EnumSet;
54 private static final EnumSet<Caps> caps = EnumSet.noneOf(Caps.class);
57 public EnumSet<Caps> getCaps() { in getCaps()
/external/guava/guava-tests/test/com/google/common/collect/
DSetsTest.java63 import java.util.EnumSet;
309 EnumSet<?> delegate = (EnumSet<?>) in.readObject();
344 EnumSet<SomeEnum> copy =
346 assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
350 EnumSet<SomeEnum> set = EnumSet.of(SomeEnum.A, SomeEnum.D);
517 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D);
518 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units);
519 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C));
523 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D);
524 EnumSet<SomeEnum> otherUnits = Sets.complementOf(units, SomeEnum.class);
[all …]
DEnumMultisetTest.java38 import java.util.EnumSet;
102 Collection<Color> empty = EnumSet.noneOf(Color.class);
170 .setDefault(Iterable.class, EnumSet.allOf(Color.class))
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DIDNA.java11 import java.util.EnumSet;
221 errors=EnumSet.noneOf(Error.class); in Info()
222 labelErrors=EnumSet.noneOf(Error.class); in Info()
262 private EnumSet<Error> errors, labelErrors;
284 protected static boolean hasCertainErrors(Info info, EnumSet<Error> errors) { in hasCertainErrors()
292 protected static boolean hasCertainLabelErrors(Info info, EnumSet<Error> errors) { in hasCertainLabelErrors()
DTimeZoneFormat.java24 import java.util.EnumSet;
397 private static final EnumSet<NameType> ALL_SIMPLE_NAME_TYPES = EnumSet.of(
404 private static final EnumSet<GenericNameType> ALL_GENERIC_NAME_TYPES = EnumSet.of(
730 public TimeZoneFormat setDefaultParseOptions(EnumSet<ParseOption> options) { in setDefaultParseOptions()
742 public EnumSet<ParseOption> getDefaultParseOptions() { in getDefaultParseOptions()
744 return EnumSet.of(ParseOption.ALL_STYLES, ParseOption.TZ_DATABASE_ABBREVIATIONS); in getDefaultParseOptions()
746 return EnumSet.of(ParseOption.ALL_STYLES); in getDefaultParseOptions()
748 return EnumSet.of(ParseOption.TZ_DATABASE_ABBREVIATIONS); in getDefaultParseOptions()
750 return EnumSet.noneOf(ParseOption.class); in getDefaultParseOptions()
1069 …public TimeZone parse(Style style, String text, ParsePosition pos, EnumSet<ParseOption> options, O… in parse()
[all …]
DTimeZoneNames.java12 import java.util.EnumSet;
345 public Collection<MatchInfo> find(CharSequence text, int start, EnumSet<NameType> types) { in find()
568 … public Collection<MatchInfo> find(CharSequence text, int start, EnumSet<NameType> nameTypes) { in find()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DUTS46Test.java10 import java.util.EnumSet;
50 …if( !info.getErrors().equals(EnumSet.of(IDNA.Error.LABEL_HAS_DOT, IDNA.Error.INVALID_ACE_LABEL)) || in TestAPI()
85 … if(!UTF16Plus.equal(result, input) || !info.getErrors().equals(EnumSet.of(IDNA.Error.BIDI))) { in TestNotSTD3()
119 errors=EnumSet.noneOf(IDNA.Error.class); in TestCase()
136 private EnumSet<IDNA.Error> errors;
480 EnumSet<IDNA.Error> uniErrors=EnumSet.noneOf(IDNA.Error.class); in TestSomeCases()
717 private static final EnumSet<IDNA.Error> severeErrors=EnumSet.of(
723 private static final EnumSet<IDNA.Error> lengthOverflowErrors=EnumSet.of(
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java15 import java.util.EnumSet;
546 EnumSet.of(ParseOption.ALL_STYLES), "Etc/GMT", 1, TimeType.UNKNOWN}, in TestParse()
552 EnumSet.of(ParseOption.ALL_STYLES), "Africa/Lusaka", 11, TimeType.UNKNOWN}, in TestParse()
588 EnumSet.of(ParseOption.ALL_STYLES), "America/New_York", 3, TimeType.STANDARD}, in TestParse()
600EnumSet.of(ParseOption.TZ_DATABASE_ABBREVIATIONS), "America/Chicago", 3, TimeType.STANDARD}, in TestParse()
603EnumSet.of(ParseOption.TZ_DATABASE_ABBREVIATIONS), "America/Chicago", 5, TimeType.STANDARD}, in TestParse()
606EnumSet.of(ParseOption.TZ_DATABASE_ABBREVIATIONS), "Asia/Shanghai", 3, TimeType.STANDARD}, in TestParse()
609EnumSet.of(ParseOption.TZ_DATABASE_ABBREVIATIONS), "Australia/Sydney", 4, TimeType.STANDARD}, in TestParse()
612EnumSet.of(ParseOption.TZ_DATABASE_ABBREVIATIONS), "Asia/Riyadh", 3, TimeType.STANDARD}, in TestParse()
618 EnumSet.of(ParseOption.ALL_STYLES), null, 0, TimeType.UNKNOWN}, in TestParse()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/material/
DTechniqueDef.java43 import java.util.EnumSet;
99 private EnumSet<Caps> requiredCaps = EnumSet.noneOf(Caps.class);
219 public EnumSet<Caps> getRequiredCaps() { in getRequiredCaps()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DIteratorFeature.java22 import java.util.EnumSet;
64 Collections.unmodifiableSet(EnumSet.allOf(IteratorFeature.class));
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DKeyTypeData.java9 import java.util.EnumSet;
61 EnumSet<SpecialType> specialTypes;
64 EnumSet<SpecialType> specialTypes) { in KeyData()
347 EnumSet<SpecialType> specialTypes = null; in initFromResourceBundle()
349 specialTypes = EnumSet.copyOf(specialTypeSet); in initFromResourceBundle()
520 EnumSet<SpecialType> specialTypes = null; in initFromTables()
522 specialTypes = EnumSet.copyOf(specialTypeSet); in initFromTables()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneGenericNames.java15 import java.util.EnumSet;
624 private EnumSet<GenericNameType> _types;
628 GenericNameSearchHandler(EnumSet<GenericNameType> types) { in GenericNameSearchHandler()
690 …public GenericMatchInfo findBestMatch(String text, int start, EnumSet<GenericNameType> genericType… in findBestMatch()
756 …public Collection<GenericMatchInfo> find(String text, int start, EnumSet<GenericNameType> genericT… in find()
830 …private Collection<MatchInfo> findTimeZoneNames(String text, int start, EnumSet<GenericNameType> t… in findTimeZoneNames()
834 EnumSet<NameType> nameTypes = EnumSet.noneOf(NameType.class); in findTimeZoneNames()
861 …private synchronized Collection<GenericMatchInfo> findLocal(String text, int start, EnumSet<Generi… in findLocal()
DTZDBTimeZoneNames.java11 import java.util.EnumSet;
126 public Collection<MatchInfo> find(CharSequence text, int start, EnumSet<NameType> nameTypes) { in find()
222 private EnumSet<NameType> _nameTypes;
226 TZDBNameSearchHandler(EnumSet<NameType> nameTypes, String region) { in TZDBNameSearchHandler()
/external/jetty/src/java/org/eclipse/jetty/servlet/
DFilterHolder.java24 import java.util.EnumSet;
192 …public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfte… in addMappingForServletNames()
205 …public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter… in addMappingForUrlPatterns()
/external/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/
DFakeTickerTest.java23 import java.util.EnumSet;
75 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero()
/external/jmonkeyengine/engine/src/core/com/jme3/renderer/
DRenderer.java46 import java.util.EnumSet;
60 public EnumSet<Caps> getCaps(); in getCaps()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeVisitorTest.java27 import java.util.EnumSet;
81 Type type = new TypeCapture<EnumSet<E>>() {}.capture(); in testVisitRecursiveTypeBounds()

123