/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleUtils.java | 209 static boolean isEmpty(String str) { in isEmpty() method in LocaleUtils 213 static boolean isEmpty(Set<?> set) { in isEmpty() method in LocaleUtils 214 return set == null || set.isEmpty(); in isEmpty() 217 static boolean isEmpty(Map<?, ?> map) { in isEmpty() method in LocaleUtils 218 return map == null || map.isEmpty(); in isEmpty() 221 static boolean isEmpty(List<?> list) { in isEmpty() method in LocaleUtils 222 return list == null || list.isEmpty(); in isEmpty()
|
D | LocaleExtensions.java | 73 boolean hasExtension = !LocaleUtils.isEmpty(extensions); in LocaleExtensions() 74 boolean hasUAttributes = !LocaleUtils.isEmpty(uattributes); in LocaleExtensions() 75 boolean hasUKeywords = !LocaleUtils.isEmpty(ukeywords); in LocaleExtensions() 126 if (map.isEmpty()) { in LocaleExtensions() 137 if (extensionMap.isEmpty()) { in getKeys() 182 public boolean isEmpty() { in isEmpty() method in LocaleExtensions 183 return extensionMap.isEmpty(); in isEmpty()
|
D | LocaleMatcher.java | 51 if (priorityList.isEmpty() || locales.isEmpty()) { in filter() 76 if (priorityList.isEmpty() || tags.isEmpty()) { in filterTags() 182 if (priorityList.isEmpty() || locales.isEmpty()) { in lookup() 204 if (priorityList.isEmpty() || tags.isEmpty()) { in lookupTag() 429 if (priorityList.isEmpty()) { in mapEquivalents() 432 if (map == null || map.isEmpty()) { in mapEquivalents()
|
D | InternalLocaleBuilder.java | 60 if (LocaleUtils.isEmpty(language)) { in setLanguage() 72 if (LocaleUtils.isEmpty(script)) { in setScript() 84 if (LocaleUtils.isEmpty(region)) { in setRegion() 96 if (LocaleUtils.isEmpty(variant)) { in setVariant() 174 boolean remove = LocaleUtils.isEmpty(value); in setExtension() 226 if (LocaleUtils.isEmpty(subtags)) { in setExtensions() 315 if (!LocaleUtils.isEmpty(bcpExtensions)) { in setExtensions() 350 if (!langtag.getExtlangs().isEmpty()) { in setLanguageTag() 362 if (!bcpVariants.isEmpty()) { in setLanguageTag() 531 if (LocaleUtils.isEmpty(extensions) && LocaleUtils.isEmpty(uattributes) in getLocaleExtensions() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONStringer.java | 181 if (stack.isEmpty() && out.length() > 0) { in open() 214 if (stack.isEmpty()) { in peek() 237 if (stack.isEmpty()) { in value() 273 if (stack.isEmpty()) { in value() 289 if (stack.isEmpty()) { in value() 303 if (stack.isEmpty()) { in value() 413 if (stack.isEmpty()) { in beforeValue()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlSerializer.java | 102 if (!nspStack[i * 2].isEmpty()) { in check() 106 else if (getNamespace().isEmpty() && !nspStack[i * 2 + 1].isEmpty()) in check() 242 && (includeDefault || !nspStack[i].isEmpty())) { in getPrefix() 262 if (namespace.isEmpty()) in getPrefix() 422 if (namespace != null && namespace.isEmpty()) { in startTag() 426 if (nspStack[i * 2].isEmpty() && !nspStack[i * 2 + 1].isEmpty()) { in startTag() 437 if (!prefix.isEmpty()) { in startTag() 466 namespace.isEmpty() in attribute() 487 if (!prefix.isEmpty()) { in attribute() 539 if (!prefix.isEmpty()) { in endTag()
|
/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()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSubSetTest.java | 43 assertTrue(q.isEmpty()); in populatedSet() 52 assertFalse(s.isEmpty()); in populatedSet() 62 assertTrue(q.isEmpty()); in set5() 77 assertTrue(q.isEmpty()); in dset5() 90 assertTrue(set.isEmpty()); in set0() 96 assertTrue(set.isEmpty()); in dset0() 112 assertTrue(q.isEmpty()); in testEmpty() 114 assertFalse(q.isEmpty()); in testEmpty() 118 assertTrue(q.isEmpty()); in testEmpty() 258 assertTrue(q.isEmpty()); in testRemoveElement() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 43 assertTrue(q.isEmpty()); in populatedSet() 52 assertFalse(s.isEmpty()); in populatedSet() 62 assertTrue(q.isEmpty()); in set5() 80 assertTrue(q.isEmpty()); in dset5() 93 assertTrue(set.isEmpty()); in set0() 99 assertTrue(set.isEmpty()); in dset0() 115 assertTrue(q.isEmpty()); in testEmpty() 117 assertFalse(q.isEmpty()); in testEmpty() 121 assertTrue(q.isEmpty()); in testEmpty() 261 assertTrue(q.isEmpty()); in testRemoveElement() [all …]
|
D | PriorityQueueTest.java | 45 assertTrue(q.isEmpty()); in populatedQueue() 50 assertFalse(q.isEmpty()); in populatedQueue() 137 assertTrue(q.isEmpty()); in testEmpty() 139 assertFalse(q.isEmpty()); in testEmpty() 143 assertTrue(q.isEmpty()); in testEmpty() 339 assertTrue(q.isEmpty()); in testRemoveElement() 360 assertTrue(q.isEmpty()); in testClear() 363 assertFalse(q.isEmpty()); in testClear() 365 assertTrue(q.isEmpty()); in testClear() 500 while (!x.isEmpty()) { in testSerialization() [all …]
|
D | ConcurrentLinkedQueueTest.java | 39 assertTrue(q.isEmpty()); in populatedQueue() 42 assertFalse(q.isEmpty()); in populatedQueue() 104 assertTrue(q.isEmpty()); in testEmpty() 106 assertFalse(q.isEmpty()); in testEmpty() 110 assertTrue(q.isEmpty()); in testEmpty() 305 assertTrue(q.isEmpty()); in testRemoveElement() 326 assertTrue(q.isEmpty()); in testClear() 329 assertFalse(q.isEmpty()); in testClear() 331 assertTrue(q.isEmpty()); in testClear() 520 while (!x.isEmpty()) { in testSerialization() [all …]
|
D | ConcurrentLinkedDequeTest.java | 41 assertTrue(q.isEmpty()); in populatedDeque() 44 assertFalse(q.isEmpty()); in populatedDeque() 53 assertTrue(new ConcurrentLinkedDeque().isEmpty()); in testConstructor1() 107 assertTrue(q.isEmpty()); in testEmpty() 109 assertFalse(q.isEmpty()); in testEmpty() 113 assertTrue(q.isEmpty()); in testEmpty() 455 assertTrue(q.isEmpty()); in testRemoveElement() 559 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence() 574 assertTrue(q.isEmpty()); in testRemoveLastOccurrence() 595 assertTrue(q.isEmpty()); in testClear() [all …]
|
D | ArrayDequeTest.java | 38 assertTrue(q.isEmpty()); in populatedDeque() 41 assertFalse(q.isEmpty()); in populatedDeque() 103 assertTrue(q.isEmpty()); in testEmpty() 105 assertFalse(q.isEmpty()); in testEmpty() 109 assertTrue(q.isEmpty()); in testEmpty() 411 assertTrue(q.isEmpty()); in testRemoveElement() 544 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence() 559 assertTrue(q.isEmpty()); in testRemoveLastOccurrence() 580 assertTrue(q.isEmpty()); in testClear() 583 assertFalse(q.isEmpty()); in testClear() [all …]
|
D | LinkedListTest.java | 37 assertTrue(q.isEmpty()); in populatedQueue() 40 assertFalse(q.isEmpty()); in populatedQueue() 79 assertTrue(q.isEmpty()); in testEmpty() 81 assertFalse(q.isEmpty()); in testEmpty() 85 assertTrue(q.isEmpty()); in testEmpty() 259 assertTrue(q.isEmpty()); in testRemoveElement() 280 assertTrue(q.isEmpty()); in testClear() 283 assertFalse(q.isEmpty()); in testClear() 285 assertTrue(q.isEmpty()); in testClear() 628 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence() [all …]
|
D | PriorityBlockingQueueTest.java | 71 assertTrue(q.isEmpty()); in populatedQueue() 76 assertFalse(q.isEmpty()); in populatedQueue() 167 assertTrue(q.isEmpty()); in testEmpty() 170 assertFalse(q.isEmpty()); in testEmpty() 174 assertTrue(q.isEmpty()); in testEmpty() 483 assertTrue(q.isEmpty()); in testClear() 486 assertFalse(q.isEmpty()); in testClear() 489 assertTrue(q.isEmpty()); in testClear() 659 while (!x.isEmpty()) { in testSerialization() 660 assertFalse(y.isEmpty()); in testSerialization() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | MimeTypesFileTypeDetector.java | 74 if (ext.isEmpty()) in implProbeContentType() 91 } while (mimeType == null && !ext.isEmpty()); in implProbeContentType() 99 if (name != null && !name.isEmpty()) { in getExtension()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | GeneralNames.java | 92 public boolean isEmpty() { in isEmpty() method in GeneralNames 93 return names.isEmpty(); in isEmpty() 115 if (isEmpty()) { in encode()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringIsEmptyBenchmark.java | 23 result &= !("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".isEmpty()); in timeIsEmpty_NonEmpty() 31 result &= ("".isEmpty()); in timeIsEmpty_Empty()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 962 if (!languageTag.isEmpty()) { in initDefault() 1730 else if (lang.isEmpty()) { in getISO3Language() 1739 if (!lang.isEmpty() && language3.isEmpty()) { in getISO3Language() 1768 } else if (region.isEmpty()) { in getISO3Country() 1774 if (!region.isEmpty() && country3.isEmpty()) { in getISO3Country() 1859 if (languageCode.isEmpty()) { in getDisplayLanguage() 1886 if (language == null || language.isEmpty()) { in normalizeAndValidateLanguage() 1949 if (scriptCode.isEmpty()) { in getDisplayScript() 2037 if (countryCode.isEmpty()) { in getDisplayCountry() 2043 if (normalizedRegion.isEmpty()) { in getDisplayCountry() [all …]
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SSLParameters.java | 297 if (!serverNames.isEmpty()) { in setServerNames() 355 if (!sniNames.isEmpty()) { in getServerNames() 392 if (!matchers.isEmpty()) { in setSNIMatchers() 430 if (!sniMatchers.isEmpty()) { in getSNIMatchers()
|
/libcore/luni/src/main/java/android/compat/ |
D | Compatibility.java | 152 if (!intersection.isEmpty()) { in ChangeConfig() 158 public boolean isEmpty() { in isEmpty() method in Compatibility.ChangeConfig 159 return enabled.isEmpty() && disabled.isEmpty(); in isEmpty()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Port.java | 96 if (fdToChannel.isEmpty()) in unregister() 117 final boolean isEmpty() { in isEmpty() method in Port 120 return fdToChannel.isEmpty(); in isEmpty()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ProcessEnvironment.java | 230 public boolean isEmpty() {return m.isEmpty();} in isEmpty() method in ProcessEnvironment.StringEnvironment 326 public boolean isEmpty() {return s.isEmpty();} in isEmpty() method in ProcessEnvironment.StringEntrySet 368 public boolean isEmpty() {return c.isEmpty();} 395 public boolean isEmpty() {return s.isEmpty();}
|
/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()
|