Home
last modified time | relevance | path

Searched refs:emptyList (Results 1 – 25 of 59) sorted by relevance

123

/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
DLiteTest.java33 import static java.util.Collections.emptyList;
515 assertEquals(emptyList(), message.getRepeatedBoolList()); in testSanityCopyOnWrite()
517 assertEquals(emptyList(), message.getRepeatedBoolList()); in testSanityCopyOnWrite()
520 assertEquals(emptyList(), builder.getRepeatedBoolList()); in testSanityCopyOnWrite()
525 assertEquals(emptyList(), message.getRepeatedBytesList()); in testSanityCopyOnWrite()
527 assertEquals(emptyList(), message.getRepeatedBytesList()); in testSanityCopyOnWrite()
530 assertEquals(emptyList(), builder.getRepeatedBytesList()); in testSanityCopyOnWrite()
536 assertEquals(emptyList(), message.getRepeatedCordList()); in testSanityCopyOnWrite()
538 assertEquals(emptyList(), message.getRepeatedCordList()); in testSanityCopyOnWrite()
541 assertEquals(emptyList(), builder.getRepeatedCordList()); in testSanityCopyOnWrite()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DProtobufLists.java46 return ProtobufArrayList.emptyList(); in emptyProtobufList()
56 return BooleanArrayList.emptyList(); in emptyBooleanList()
64 return IntArrayList.emptyList(); in emptyIntList()
72 return LongArrayList.emptyList(); in emptyLongList()
80 return FloatArrayList.emptyList(); in emptyFloatList()
88 return DoubleArrayList.emptyList(); in emptyDoubleList()
DTextFormatParseInfoTree.java99 return (result == null) ? Collections.<TextFormatParseLocation>emptyList() : result; in getLocations()
125 return result == null ? Collections.<TextFormatParseInfoTree>emptyList() : result; in getNestedTrees()
DGeneratedMessageLite.java1072 Type emptyList = (Type) Collections.emptyList(); in newRepeatedGeneratedExtension() local
1075 emptyList, in newRepeatedGeneratedExtension()
1434 return IntArrayList.emptyList(); in emptyIntList()
1444 return LongArrayList.emptyList(); in emptyLongList()
1454 return FloatArrayList.emptyList(); in emptyFloatList()
1464 return DoubleArrayList.emptyList(); in emptyDoubleList()
1474 return BooleanArrayList.emptyList(); in emptyBooleanList()
1484 return ProtobufArrayList.emptyList(); in emptyProtobufList()
DUnknownFieldSet.java937 built.varint = Collections.emptyList(); in build()
942 built.fixed32 = Collections.emptyList(); in build()
947 built.fixed64 = Collections.emptyList(); in build()
952 built.lengthDelimited = Collections.emptyList(); in build()
958 built.group = Collections.emptyList(); in build()
DProtobufArrayList.java48 public static <E> ProtobufArrayList<E> emptyList() { in emptyList() method in ProtobufArrayList
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DIntArrayListTest.java59 assertSame(IntArrayList.emptyList(), IntArrayList.emptyList()); in testEmptyListReturnsSameInstance()
63 assertImmutable(IntArrayList.emptyList()); in testEmptyListIsImmutable()
205 assertEquals(0, IntArrayList.emptyList().size()); in testSize()
327 assertFalse(list.addAll(Collections.<Integer>emptyList())); in testAddAll()
328 assertFalse(list.addAll(IntArrayList.emptyList())); in testAddAll()
367 IntList toRemove = IntArrayList.emptyList().mutableCopyWithCapacity(1); in testRemoveEnd_listAtCapacity()
374 IntList toRemove = IntArrayList.emptyList().mutableCopyWithCapacity(2); in testRemove_listAtCapacity()
383 IntList toRemove = IntArrayList.emptyList().mutableCopyWithCapacity(1); in testSublistRemoveEndOfCapacity()
409 list.addAll(Collections.<Integer>emptyList()); in assertImmutable()
451 list.addAll(0, Collections.<Integer>emptyList()); in assertImmutable()
[all …]
DLongArrayListTest.java59 assertSame(LongArrayList.emptyList(), LongArrayList.emptyList()); in testEmptyListReturnsSameInstance()
63 assertImmutable(LongArrayList.emptyList()); in testEmptyListIsImmutable()
205 assertEquals(0, LongArrayList.emptyList().size()); in testSize()
327 assertFalse(list.addAll(Collections.<Long>emptyList())); in testAddAll()
328 assertFalse(list.addAll(LongArrayList.emptyList())); in testAddAll()
367 LongList toRemove = LongArrayList.emptyList().mutableCopyWithCapacity(1); in testRemoveEnd_listAtCapacity()
374 LongList toRemove = LongArrayList.emptyList().mutableCopyWithCapacity(2); in testRemove_listAtCapacity()
383 LongList toRemove = LongArrayList.emptyList().mutableCopyWithCapacity(1); in testSublistRemoveEndOfCapacity()
409 list.addAll(Collections.<Long>emptyList()); in assertImmutable()
451 list.addAll(0, Collections.<Long>emptyList()); in assertImmutable()
[all …]
DFloatArrayListTest.java59 assertSame(FloatArrayList.emptyList(), FloatArrayList.emptyList()); in testEmptyListReturnsSameInstance()
63 assertImmutable(FloatArrayList.emptyList()); in testEmptyListIsImmutable()
205 assertEquals(0, FloatArrayList.emptyList().size()); in testSize()
327 assertFalse(list.addAll(Collections.<Float>emptyList())); in testAddAll()
328 assertFalse(list.addAll(FloatArrayList.emptyList())); in testAddAll()
369 FloatList toRemove = FloatArrayList.emptyList().mutableCopyWithCapacity(1); in testRemoveEnd_listAtCapacity()
376 FloatList toRemove = FloatArrayList.emptyList().mutableCopyWithCapacity(2); in testRemove_listAtCapacity()
385 FloatList toRemove = FloatArrayList.emptyList().mutableCopyWithCapacity(1); in testSublistRemoveEndOfCapacity()
411 list.addAll(Collections.<Float>emptyList()); in assertImmutable()
453 list.addAll(0, Collections.<Float>emptyList()); in assertImmutable()
[all …]
DDoubleArrayListTest.java59 assertSame(DoubleArrayList.emptyList(), DoubleArrayList.emptyList()); in testEmptyListReturnsSameInstance()
63 assertImmutable(DoubleArrayList.emptyList()); in testEmptyListIsImmutable()
205 assertEquals(0, DoubleArrayList.emptyList().size()); in testSize()
327 assertFalse(list.addAll(Collections.<Double>emptyList())); in testAddAll()
328 assertFalse(list.addAll(DoubleArrayList.emptyList())); in testAddAll()
369 DoubleList toRemove = DoubleArrayList.emptyList().mutableCopyWithCapacity(1); in testRemoveEnd_listAtCapacity()
376 DoubleList toRemove = DoubleArrayList.emptyList().mutableCopyWithCapacity(2); in testRemove_listAtCapacity()
385 DoubleList toRemove = DoubleArrayList.emptyList().mutableCopyWithCapacity(1); in testSublistRemoveEndOfCapacity()
411 list.addAll(Collections.<Double>emptyList()); in assertImmutable()
453 list.addAll(0, Collections.<Double>emptyList()); in assertImmutable()
[all …]
DBooleanArrayListTest.java60 assertSame(BooleanArrayList.emptyList(), BooleanArrayList.emptyList()); in testEmptyListReturnsSameInstance()
64 assertImmutable(BooleanArrayList.emptyList()); in testEmptyListIsImmutable()
206 assertEquals(0, BooleanArrayList.emptyList().size()); in testSize()
329 assertFalse(list.addAll(Collections.<Boolean>emptyList())); in testAddAll()
330 assertFalse(list.addAll(BooleanArrayList.emptyList())); in testAddAll()
369 BooleanList toRemove = BooleanArrayList.emptyList().mutableCopyWithCapacity(1); in testRemoveEnd_listAtCapacity()
376 BooleanList toRemove = BooleanArrayList.emptyList().mutableCopyWithCapacity(2); in testRemove_listAtCapacity()
385 BooleanList toRemove = BooleanArrayList.emptyList().mutableCopyWithCapacity(1); in testSublistRemoveEndOfCapacity()
408 list.addAll(Collections.<Boolean>emptyList()); in assertImmutable()
450 list.addAll(0, Collections.<Boolean>emptyList()); in assertImmutable()
[all …]
DProtobufArrayListTest.java56 assertSame(ProtobufArrayList.emptyList(), ProtobufArrayList.emptyList()); in testEmptyListReturnsSameInstance()
60 assertImmutable(ProtobufArrayList.<Integer>emptyList()); in testEmptyListIsImmutable()
223 assertFalse(list.addAll(Collections.<Integer>emptyList())); in testAddAll()
224 assertFalse(list.addAll(IntArrayList.emptyList())); in testAddAll()
228 assertEquals(0, ProtobufArrayList.emptyList().size()); in testSize()
265 list.addAll(Collections.<Integer>emptyList()); in assertImmutable()
307 list.addAll(0, Collections.<Integer>emptyList()); in assertImmutable()
335 list.removeAll(Collections.emptyList()); in assertImmutable()
356 list.retainAll(Collections.emptyList()); in assertImmutable()
DAbstractSchemaTest.java67 return Collections.emptyList(); in serializedBytesWithInvalidUtf8()
143 return Collections.emptyList(); in newMessagesMissingRequiredFields()
DRepeatedFieldBuilderV3Test.java166 if (list == Collections.emptyList()) { in assertIsUnmodifiable()
181 Collections.<TestAllTypes>emptyList(), false, parent, false); in newRepeatedFieldBuilderV3()
/third_party/node/test/parallel/
Dtest-stream-buffer-list.js8 const emptyList = new BufferList(); constant
10 emptyList.shift();
11 assert.deepStrictEqual(emptyList, new BufferList());
13 assert.strictEqual(emptyList.join(','), '');
15 assert.deepStrictEqual(emptyList.concat(0), Buffer.alloc(0));
/third_party/ejdb/src/bindings/ejdb2_react_native/binding/android/src/main/java/com/softmotions/ejdb2/
DEJDB2Package.java30 return Collections.emptyList(); in createJSModules()
35 return Collections.emptyList(); in createViewManagers()
/third_party/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestSelection.java130 List emptyList = new ArrayList(); in TestCharsetSelectorCodeCoverage() local
137 sel = new CharsetSelector(emptyList, nonEmptySet, CharsetICU.ROUNDTRIP_SET); in TestCharsetSelectorCodeCoverage()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DCurrencyMetaInfo.java470 return Collections.emptyList(); in currencyInfo()
482 return Collections.emptyList(); in currencies()
494 return Collections.emptyList(); in regions()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyMetaInfo.java508 return Collections.emptyList(); in currencyInfo()
521 return Collections.emptyList(); in currencies()
534 return Collections.emptyList(); in regions()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DDataDrivenTestHelper.java121 addLine(Collections.<String>emptyList(), ""); in load()
136 addLine(Collections.<String>emptyList(), commentBase); in load()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DDataDrivenTestHelper.java122 addLine(Collections.<String>emptyList(), ""); in load()
137 addLine(Collections.<String>emptyList(), commentBase); in load()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/init/
DMetadataParser.java98 return Collections.emptyList(); in handleNullSource()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DLanguageTag.java41 private List<String> _extlangs = Collections.emptyList(); // extlang subtags
42 private List<String> _variants = Collections.emptyList(); // variant subtags
43 private List<String> _extensions = Collections.emptyList(); // extensions
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLanguageTag.java37 private List<String> _extlangs = Collections.emptyList(); // extlang subtags
38 private List<String> _variants = Collections.emptyList(); // variant subtags
39 private List<String> _extensions = Collections.emptyList(); // extensions
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DAPIStatusConsistencyChecker.java30 List<String> skipClasses = Collections.emptyList(); in main()

123