/libcore/luni/src/main/java/java/util/ |
D | Locale.java | 350 if (language == null || language.isEmpty()) { in normalizeAndValidateLanguage() 381 if (languageTag == null || languageTag.isEmpty()) { in setLanguageTag() 414 if (region == null || region.isEmpty()) { in normalizeAndValidateRegion() 456 if (variant == null || variant.isEmpty()) { in normalizeAndValidateVariant() 512 if (script == null || script.isEmpty()) { in normalizeAndValidateScript() 680 if (value == null || value.isEmpty()) { in setExtension() 901 if (language.isEmpty() && country.isEmpty()) { in Locale() 1025 if (countryCode.isEmpty()) { in getDisplayCountry() 1031 if (normalizedRegion.isEmpty()) { in getDisplayCountry() 1054 if (languageCode.isEmpty()) { in getDisplayLanguage() [all …]
|
D | MiniEnumSet.java | 122 if (collection.isEmpty()) { in addAll() 153 if (collection.isEmpty()) { in containsAll() 166 if (collection.isEmpty()) { in removeAll() 240 return size == 0 && set.isEmpty(); in equals()
|
/libcore/luni/src/main/java/java/security/cert/ |
D | PKIXParameters.java | 191 if (certPathCheckers.isEmpty()) { in getCertPathCheckers() 215 if (certPathCheckers == null || certPathCheckers.isEmpty()) { in setCertPathCheckers() 218 !this.certPathCheckers.isEmpty()) { in setCertPathCheckers() 263 if (certStores.isEmpty()) { in getCertStores() 282 if (certStores == null || certStores.isEmpty()) { in setCertStores() 284 if (this.certStores != null && !this.certStores.isEmpty()) { in setCertStores() 372 if (initialPolicies.isEmpty()) { in getInitialPolicies() 392 if (initialPolicies == null || initialPolicies.isEmpty()) { in setInitialPolicies() 394 if (this.initialPolicies != null && !this.initialPolicies.isEmpty()) { in setInitialPolicies() 561 sb.append((initialPolicies == null || initialPolicies.isEmpty()) in toString() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONStringer.java | 175 if (stack.isEmpty() && out.length() > 0) { in open() 206 if (stack.isEmpty()) { in peek() 228 if (stack.isEmpty()) { in value() 264 if (stack.isEmpty()) { in value() 280 if (stack.isEmpty()) { in value() 294 if (stack.isEmpty()) { in value() 400 if (stack.isEmpty()) { in beforeValue()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidArrayListTest.java | 32 assertTrue(array.isEmpty()); in testArrayList() 41 assertFalse(array.isEmpty()); in testArrayList() 60 assertFalse(array.isEmpty()); in testArrayList() 75 assertTrue(array.isEmpty()); in testArrayList()
|
D | LocaleInternalsTest.java | 87 assertTrue(attributes.isEmpty()); in test_parseUnicodeExtension() 93 assertTrue(attributes.isEmpty()); in test_parseUnicodeExtension() 100 assertTrue(attributes.isEmpty()); in test_parseUnicodeExtension()
|
/libcore/xml/src/main/java/org/kxml2/io/ |
D | KXmlSerializer.java | 72 if (!nspStack[i * 2].isEmpty()) { in check() 76 else if (getNamespace().isEmpty() && !nspStack[i * 2 + 1].isEmpty()) in check() 208 && (includeDefault || !nspStack[i].isEmpty())) { in getPrefix() 228 if (namespace.isEmpty()) in getPrefix() 396 if (namespace != null && namespace.isEmpty()) { in startTag() 400 if (nspStack[i * 2].isEmpty() && !nspStack[i * 2 + 1].isEmpty()) { in startTag() 411 if (!prefix.isEmpty()) { in startTag() 440 namespace.isEmpty() in attribute() 461 if (!prefix.isEmpty()) { in attribute() 513 if (!prefix.isEmpty()) { in endTag()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | PriorityQueueTest.java | 34 assertTrue(q.isEmpty()); in populatedQueue() 39 assertFalse(q.isEmpty()); in populatedQueue() 127 assertTrue(q.isEmpty()); in testEmpty() 129 assertFalse(q.isEmpty()); in testEmpty() 133 assertTrue(q.isEmpty()); in testEmpty() 331 assertTrue(q.isEmpty()); in testRemoveElement() 352 assertTrue(q.isEmpty()); in testClear() 355 assertFalse(q.isEmpty()); in testClear() 357 assertTrue(q.isEmpty()); in testClear() 486 while (!x.isEmpty()) { in testSerialization() [all …]
|
D | ConcurrentLinkedQueueTest.java | 27 assertTrue(q.isEmpty()); in populatedQueue() 30 assertFalse(q.isEmpty()); in populatedQueue() 93 assertTrue(q.isEmpty()); in testEmpty() 95 assertFalse(q.isEmpty()); in testEmpty() 99 assertTrue(q.isEmpty()); in testEmpty() 295 assertTrue(q.isEmpty()); in testRemoveElement() 316 assertTrue(q.isEmpty()); in testClear() 319 assertFalse(q.isEmpty()); in testClear() 321 assertTrue(q.isEmpty()); in testClear() 504 while (!x.isEmpty()) { in testSerialization() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 37 assertTrue(q.isEmpty()); in populatedSet() 46 assertFalse(s.isEmpty()); in populatedSet() 56 assertTrue(q.isEmpty()); in set5() 74 assertTrue(q.isEmpty()); in dset5() 87 assertTrue(set.isEmpty()); in set0() 93 assertTrue(set.isEmpty()); in dset0() 109 assertTrue(q.isEmpty()); in testEmpty() 111 assertFalse(q.isEmpty()); in testEmpty() 115 assertTrue(q.isEmpty()); in testEmpty() 256 assertTrue(q.isEmpty()); in testRemoveElement() [all …]
|
D | TreeSubSetTest.java | 32 assertTrue(q.isEmpty()); in populatedSet() 41 assertFalse(s.isEmpty()); in populatedSet() 51 assertTrue(q.isEmpty()); in set5() 66 assertTrue(q.isEmpty()); in dset5() 79 assertTrue(set.isEmpty()); in set0() 85 assertTrue(set.isEmpty()); in dset0() 101 assertTrue(q.isEmpty()); in testEmpty() 103 assertFalse(q.isEmpty()); in testEmpty() 107 assertTrue(q.isEmpty()); in testEmpty() 248 assertTrue(q.isEmpty()); in testRemoveElement() [all …]
|
D | ConcurrentLinkedDequeTest.java | 28 assertTrue(q.isEmpty()); in populatedDeque() 31 assertFalse(q.isEmpty()); in populatedDeque() 40 assertTrue(new ConcurrentLinkedDeque().isEmpty()); in testConstructor1() 95 assertTrue(q.isEmpty()); in testEmpty() 97 assertFalse(q.isEmpty()); in testEmpty() 101 assertTrue(q.isEmpty()); in testEmpty() 444 assertTrue(q.isEmpty()); in testRemoveElement() 548 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence() 563 assertTrue(q.isEmpty()); in testRemoveLastOccurrence() 584 assertTrue(q.isEmpty()); in testClear() [all …]
|
D | ArrayDequeTest.java | 27 assertTrue(q.isEmpty()); in populatedDeque() 30 assertFalse(q.isEmpty()); in populatedDeque() 93 assertTrue(q.isEmpty()); in testEmpty() 95 assertFalse(q.isEmpty()); in testEmpty() 99 assertTrue(q.isEmpty()); in testEmpty() 402 assertTrue(q.isEmpty()); in testRemoveElement() 535 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence() 550 assertTrue(q.isEmpty()); in testRemoveLastOccurrence() 571 assertTrue(q.isEmpty()); in testClear() 574 assertFalse(q.isEmpty()); in testClear() [all …]
|
D | CopyOnWriteArrayListTest.java | 28 assertTrue(a.isEmpty()); in populatedArray() 31 assertFalse(a.isEmpty()); in populatedArray() 38 assertTrue(a.isEmpty()); in populatedArray() 41 assertFalse(a.isEmpty()); in populatedArray() 51 assertTrue(a.isEmpty()); in testConstructor() 232 assertTrue(empty.isEmpty()); in testIsEmpty() 233 assertFalse(full.isEmpty()); in testIsEmpty() 472 assertTrue(a.subList(1,1).isEmpty()); in testSubList() 698 while (!x.isEmpty()) { in testSerialization() 699 assertFalse(y.isEmpty()); in testSerialization() [all …]
|
D | LinkedListTest.java | 26 assertTrue(q.isEmpty()); in populatedQueue() 29 assertFalse(q.isEmpty()); in populatedQueue() 68 assertTrue(q.isEmpty()); in testEmpty() 70 assertFalse(q.isEmpty()); in testEmpty() 74 assertTrue(q.isEmpty()); in testEmpty() 246 assertTrue(q.isEmpty()); in testRemoveElement() 267 assertTrue(q.isEmpty()); in testClear() 270 assertFalse(q.isEmpty()); in testClear() 272 assertTrue(q.isEmpty()); in testClear() 609 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence() [all …]
|
D | PriorityBlockingQueueTest.java | 44 assertTrue(q.isEmpty()); in populatedQueue() 49 assertFalse(q.isEmpty()); in populatedQueue() 139 assertTrue(q.isEmpty()); in testEmpty() 142 assertFalse(q.isEmpty()); in testEmpty() 146 assertTrue(q.isEmpty()); in testEmpty() 459 assertTrue(q.isEmpty()); in testClear() 462 assertFalse(q.isEmpty()); in testClear() 465 assertTrue(q.isEmpty()); in testClear() 629 while (!x.isEmpty()) { in testSerialization() 630 assertFalse(y.isEmpty()); in testSerialization() [all …]
|
D | CopyOnWriteArraySetTest.java | 26 assertTrue(a.isEmpty()); in populatedSet() 29 assertFalse(a.isEmpty()); in populatedSet() 36 assertTrue(a.isEmpty()); in populatedSet() 39 assertFalse(a.isEmpty()); in populatedSet() 49 assertTrue(a.isEmpty()); in testConstructor() 164 assertTrue(empty.isEmpty()); in testIsEmpty() 165 assertFalse(full.isEmpty()); in testIsEmpty()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringIsEmptyBenchmark.java | 26 result &= !("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".isEmpty()); in timeIsEmpty_NonEmpty() 34 result &= ("".isEmpty()); in timeIsEmpty_Empty()
|
D | BitSetBenchmark.java | 35 if (!bs.isEmpty()) throw new RuntimeException(); in timeIsEmptyTrue() 42 if (bs.isEmpty()) throw new RuntimeException(); in timeIsEmptyFalse()
|
/libcore/luni/src/main/java/java/util/regex/ |
D | Splitter.java | 63 if (input.isEmpty()) { in fastSplit() 112 if (input.isEmpty()) { in split() 136 while (i >= 0 && list.get(i).isEmpty()) { in finishSplit()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | AbstractQueueTest.java | 88 if (isEmpty()) { in poll() 100 if (isEmpty()) { in peek() 235 assertTrue(queue.isEmpty()); in test_clear_empty() 246 assertTrue(queue.isEmpty()); in test_clear()
|
D | SortedMapTestBase.java | 57 assertTrue(map.isEmpty()); in testClear() 154 while (!ref.isEmpty()) { in testRemove0() 259 assertEquals(ref.isEmpty(), map.isEmpty()); in testIsEmpty() 281 assertTrue(map.isEmpty()); in testIsEmpty2() 296 assertEquals(ref.isEmpty(), map.isEmpty()); in checkSubMap() 297 if (!ref.isEmpty()) { in checkSubMap()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldManifestTest.java | 37 assertTrue("Should have no entries", emptyClone.getEntries().isEmpty()); in test_ConstructorLjava_util_jar_Manifest() 39 .getMainAttributes().isEmpty()); in test_ConstructorLjava_util_jar_Manifest() 78 assertTrue("Should have no entries", emptyClone.getEntries().isEmpty()); in test_clone() 80 .getMainAttributes().isEmpty()); in test_clone()
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserFactory.java | 145 if (parserClasses != null && !parserClasses.isEmpty()) { in getParserInstance() 169 if (serializerClasses != null && !serializerClasses.isEmpty()) { in getSerializerInstance() 192 if (exceptions == null || exceptions.isEmpty()) { in newInstantiationException()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 230 } while (!responseQueue.isEmpty()); in play() 272 while (!responseQueue.isEmpty() && processOneRequest(in, out, socket)) {} in serveConnection() 281 if (responseQueue.isEmpty()) { in serveConnection() 339 if (request.isEmpty()) { in readRequest() 347 while (!(header = readAsciiUntilCrlf(in)).isEmpty()) { in readRequest() 401 if (responseQueue.isEmpty()) { in dispatch() 468 if (!line.isEmpty()) { in readEmptyLine()
|