Home
last modified time | relevance | path

Searched refs:isEmpty (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleUtils.java209 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()
DLocaleExtensions.java73 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()
DLocaleMatcher.java51 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()
DInternalLocaleBuilder.java60 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/
DJSONStringer.java181 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/
DKXmlSerializer.java102 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/ojluni/src/test/java/util/concurrent/tck/
DTreeSubSetTest.java66 assertTrue(q.isEmpty()); in populatedSet()
75 assertFalse(s.isEmpty()); in populatedSet()
85 assertTrue(q.isEmpty()); in set5()
100 assertTrue(q.isEmpty()); in dset5()
113 assertTrue(set.isEmpty()); in set0()
119 assertTrue(set.isEmpty()); in dset0()
135 assertTrue(q.isEmpty()); in testEmpty()
137 assertFalse(q.isEmpty()); in testEmpty()
141 assertTrue(q.isEmpty()); in testEmpty()
281 assertTrue(q.isEmpty()); in testRemoveElement()
[all …]
DConcurrentSkipListSubSetTest.java66 assertTrue(q.isEmpty()); in populatedSet()
75 assertFalse(s.isEmpty()); in populatedSet()
85 assertTrue(q.isEmpty()); in set5()
103 assertTrue(q.isEmpty()); in dset5()
116 assertTrue(set.isEmpty()); in set0()
122 assertTrue(set.isEmpty()); in dset0()
138 assertTrue(q.isEmpty()); in testEmpty()
140 assertFalse(q.isEmpty()); in testEmpty()
144 assertTrue(q.isEmpty()); in testEmpty()
284 assertTrue(q.isEmpty()); in testRemoveElement()
[all …]
DPriorityQueueTest.java76 assertTrue(q.isEmpty()); in populatedQueue()
81 assertFalse(q.isEmpty()); in populatedQueue()
169 assertTrue(q.isEmpty()); in testEmpty()
171 assertFalse(q.isEmpty()); in testEmpty()
175 assertTrue(q.isEmpty()); in testEmpty()
233 assertTrue(q.isEmpty()); in testOfferNonComparable()
374 assertTrue(q.isEmpty()); in testRemoveElement()
395 assertTrue(q.isEmpty()); in testClear()
398 assertFalse(q.isEmpty()); in testClear()
400 assertTrue(q.isEmpty()); in testClear()
[all …]
DConcurrentLinkedQueueTest.java71 assertTrue(q.isEmpty()); in populatedQueue()
74 assertFalse(q.isEmpty()); in populatedQueue()
137 assertTrue(q.isEmpty()); in testEmpty()
139 assertFalse(q.isEmpty()); in testEmpty()
143 assertTrue(q.isEmpty()); in testEmpty()
338 assertTrue(q.isEmpty()); in testRemoveElement()
359 assertTrue(q.isEmpty()); in testClear()
362 assertFalse(q.isEmpty()); in testClear()
364 assertTrue(q.isEmpty()); in testClear()
553 while (!x.isEmpty()) { in testSerialization()
[all …]
DConcurrentLinkedDequeTest.java73 assertTrue(q.isEmpty()); in populatedDeque()
76 assertFalse(q.isEmpty()); in populatedDeque()
87 assertTrue(new ConcurrentLinkedDeque().isEmpty()); in testConstructor1()
141 assertTrue(q.isEmpty()); in testEmpty()
143 assertFalse(q.isEmpty()); in testEmpty()
147 assertTrue(q.isEmpty()); in testEmpty()
489 assertTrue(q.isEmpty()); in testRemoveElement()
593 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence()
608 assertTrue(q.isEmpty()); in testRemoveLastOccurrence()
629 assertTrue(q.isEmpty()); in testClear()
[all …]
DArrayDequeTest.java97 assertTrue(q.isEmpty()); in populatedDeque()
106 assertFalse(q.isEmpty()); in populatedDeque()
170 assertTrue(q.isEmpty()); in testEmpty()
172 assertFalse(q.isEmpty()); in testEmpty()
176 assertTrue(q.isEmpty()); in testEmpty()
478 assertTrue(q.isEmpty()); in testRemoveElement()
615 assertTrue(q.isEmpty()); in testRemoveFirstOccurrence()
639 assertTrue(q.isEmpty()); in testRemoveLastOccurrence()
665 assertTrue(q.isEmpty()); in testClear()
668 assertFalse(q.isEmpty()); in testClear()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubSetTest.java43 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 …]
DConcurrentSkipListSubSetTest.java43 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 …]
DPriorityQueueTest.java45 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 …]
DConcurrentLinkedQueueTest.java39 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 …]
DConcurrentLinkedDequeTest.java41 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 …]
DArrayDequeTest.java38 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 …]
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java32 assertTrue(array.isEmpty()); in testArrayList()
41 assertFalse(array.isEmpty()); in testArrayList()
60 assertFalse(array.isEmpty()); in testArrayList()
75 assertTrue(array.isEmpty()); in testArrayList()
/libcore/ojluni/src/main/java/sun/nio/fs/
DMimeTypesFileTypeDetector.java74 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/
DGeneralNames.java92 public boolean isEmpty() { in isEmpty() method in GeneralNames
93 return names.isEmpty(); in isEmpty()
115 if (isEmpty()) { in encode()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java104 assertTrue(lock.getQueuedReaderThreads().isEmpty()); in testGetQueuedReaderThreads()
114 assertTrue(lock.getQueuedReaderThreads().isEmpty()); in testGetQueuedReaderThreads()
123 assertTrue(lock.getQueuedWriterThreads().isEmpty()); in testGetQueuedWriterThreads()
133 assertTrue(lock.getQueuedWriterThreads().isEmpty()); in testGetQueuedWriterThreads()
/libcore/ojluni/src/main/java/java/util/
DLocale.java962 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/benchmarks/src/benchmarks/regression/
DStringIsEmptyBenchmark.java23 result &= !("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".isEmpty()); in timeIsEmpty_NonEmpty()
31 result &= ("".isEmpty()); in timeIsEmpty_Empty()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLParameters.java297 if (!serverNames.isEmpty()) { in setServerNames()
355 if (!sniNames.isEmpty()) { in getServerNames()
392 if (!matchers.isEmpty()) { in setSNIMatchers()
430 if (!sniMatchers.isEmpty()) { in getSNIMatchers()

12345678910>>...16