Home
last modified time | relevance | path

Searched refs:empty (Results 1 – 25 of 45) sorted by relevance

12

/libcore/luni/src/test/java/libcore/javax/net/ssl/
DKeyManagerFactoryTest.java127 private void test_KeyManagerFactory_getKeyManagers(KeyManagerFactory kmf, boolean empty) in test_KeyManagerFactory_getKeyManagers() argument
135 test_X509KeyManager((X509KeyManager) keyManager, empty, kmf.getAlgorithm()); in test_KeyManagerFactory_getKeyManagers() local
158 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) in test_X509KeyManager() argument
163 if (empty || keyType == null || keyType.isEmpty()) { in test_X509KeyManager()
169 test_X509KeyManager_alias(km, alias, keyType, false, empty); in test_X509KeyManager()
174 if (empty || keyType == null || keyType.isEmpty()) { in test_X509KeyManager()
180 test_X509KeyManager_alias(km, alias, keyType, false, empty); in test_X509KeyManager()
185 test_X509KeyManager_alias(km, a, null, true, empty); in test_X509KeyManager()
190 test_X509KeyManager_alias(km, alias, keyType, false, empty); in test_X509KeyManager()
194 test_X509KeyManager_alias(km, alias, keyType, false, empty); in test_X509KeyManager()
[all …]
/libcore/luni/src/main/native/
Dcanonicalize_path.cpp63 while (!left.empty()) { in canonicalize_path()
72 if (nextPathComponent.empty()) { in canonicalize_path()
111 if (!left.empty()) { in canonicalize_path()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DAttributeListImplTest.java27 private AttributeListImpl empty = new AttributeListImpl(); field in AttributeListImplTest
39 assertEquals(0, empty.getLength()); in testAttributeListImpl()
45 AttributeListImpl ai = new AttributeListImpl(empty); in testAttributeListImplAttributeList()
67 attrs.setAttributeList(empty); in testSetAttributeList()
134 AttributeListImpl ai = new AttributeListImpl(empty); in testGetLength()
DAttributesImplTest.java26 private AttributesImpl empty = new AttributesImpl(); field in AttributesImplTest
44 assertEquals(0, empty.getLength()); in testAttributesImpl()
50 AttributesImpl ai = new AttributesImpl(empty); in testAttributesImplAttributes()
68 AttributesImpl ai = new AttributesImpl(empty); in testGetLength()
241 attrs.setAttributes(empty); in testSetAttributes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DWeakHashMapTest.java77 WeakHashMap empty = new WeakHashMap(0); in test_ConstructorI() local
78 assertNull("Empty weakhashmap access", empty.get("nothing")); in test_ConstructorI()
79 empty.put("something", "here"); in test_ConstructorI()
80 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorI()
102 WeakHashMap empty = new WeakHashMap(0, 0.75f); in test_ConstructorIF() local
103 assertNull("Empty hashtable access", empty.get("nothing")); in test_ConstructorIF()
104 empty.put("something", "here"); in test_ConstructorIF()
105 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorIF()
DStackTest.java40 assertTrue("New stack answers non-empty", s.empty()); in test_empty()
42 assertTrue("Stack should not be empty but answers empty", !s.empty()); in test_empty()
44 assertTrue("Stack should be empty but answers non-empty", s.empty()); in test_empty()
47 .empty()); in test_empty()
DHashtableTest.java71 Hashtable empty = new Hashtable(0); in test_ConstructorI() local
72 assertNull("Empty hashtable access", empty.get("nothing")); in test_ConstructorI()
73 empty.put("something", "here"); in test_ConstructorI()
74 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorI()
85 Hashtable empty = new Hashtable(0, 0.75f); in test_ConstructorIF() local
86 assertNull("Empty hashtable access", empty.get("nothing")); in test_ConstructorIF()
87 empty.put("something", "here"); in test_ConstructorIF()
88 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorIF()
DHashMapTest.java123 HashMap empty = new HashMap(0); in test_ConstructorI() local
124 assertNull("Empty hashmap access", empty.get("nothing")); in test_ConstructorI()
125 empty.put("something", "here"); in test_ConstructorI()
126 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorI()
143 HashMap empty = new HashMap(0, 0.75f); in test_ConstructorIF() local
144 assertNull("Empty hashtable access", empty.get("nothing")); in test_ConstructorIF()
145 empty.put("something", "here"); in test_ConstructorIF()
146 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorIF()
DLinkedHashMapTest.java90 LinkedHashMap empty = new LinkedHashMap(0); in test_ConstructorI() local
91 assertNull("Empty LinkedHashMap access", empty.get("nothing")); in test_ConstructorI()
92 empty.put("something", "here"); in test_ConstructorI()
93 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorI()
111 LinkedHashMap empty = new LinkedHashMap(0, 0.75f); in test_ConstructorIF() local
112 assertNull("Empty hashtable access", empty.get("nothing")); in test_ConstructorIF()
113 empty.put("something", "here"); in test_ConstructorIF()
114 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorIF()
DIdentityHashMap2Test.java80 IdentityHashMap empty = new IdentityHashMap(0); in test_ConstructorI() local
81 assertNull("Empty IdentityHashMap access", empty.get("nothing")); in test_ConstructorI()
82 empty.put("something", "here"); in test_ConstructorI()
83 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorI()
DIdentityHashMapTest.java86 IdentityHashMap empty = new IdentityHashMap(0); in test_ConstructorI() local
87 assertNull("Empty IdentityHashMap access", empty.get("nothing")); in test_ConstructorI()
88 empty.put("something", "here"); in test_ConstructorI()
89 assertTrue("cannot get element", empty.get("something") == "here"); in test_ConstructorI()
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java126 NavigableMap empty = map0(); in testGet() local
127 assertNull(empty.get(one)); in testGet()
134 NavigableMap empty = map0(); in testIsEmpty() local
136 assertTrue(empty.isEmpty()); in testIsEmpty()
223 NavigableMap empty = map0();
225 empty.putAll(map);
226 assertEquals(5, empty.size());
227 assertTrue(empty.containsKey(one));
228 assertTrue(empty.containsKey(two));
229 assertTrue(empty.containsKey(three));
[all …]
DConcurrentHashMapTest.java293 ConcurrentHashMap empty = new ConcurrentHashMap(); in testGet() local
295 assertNull(empty.get("anything")); in testGet()
302 ConcurrentHashMap empty = new ConcurrentHashMap(); in testIsEmpty() local
304 assertTrue(empty.isEmpty()); in testIsEmpty()
416 ConcurrentHashMap empty = new ConcurrentHashMap(); in testPutAll() local
418 empty.putAll(map); in testPutAll()
419 assertEquals(5, empty.size()); in testPutAll()
420 assertTrue(empty.containsKey(one)); in testPutAll()
421 assertTrue(empty.containsKey(two)); in testPutAll()
422 assertTrue(empty.containsKey(three)); in testPutAll()
[all …]
DCopyOnWriteArraySetTest.java177 Collection empty = new CopyOnWriteArraySet(); in testIterator() local
178 assertFalse(empty.iterator().hasNext()); in testIterator()
180 empty.iterator().next(); in testIterator()
256 Collection empty = new CopyOnWriteArraySet(); in testSize() local
259 assertEquals(0, empty.size()); in testSize()
286 Collection empty = new CopyOnWriteArraySet(); in testToArray2() local
290 assertSame(a, empty.toArray(a)); in testToArray2()
294 assertSame(a, empty.toArray(a)); in testToArray2()
DConcurrentSkipListSubMapTest.java127 ConcurrentNavigableMap empty = map0(); in testGet() local
128 assertNull(empty.get(one)); in testGet()
135 ConcurrentNavigableMap empty = map0(); in testIsEmpty() local
137 assertTrue(empty.isEmpty()); in testIsEmpty()
266 ConcurrentNavigableMap empty = map0();
268 empty.putAll(map);
269 assertEquals(5, empty.size());
270 assertTrue(empty.containsKey(one));
271 assertTrue(empty.containsKey(two));
272 assertTrue(empty.containsKey(three));
[all …]
DCopyOnWriteArrayListTest.java237 CopyOnWriteArrayList empty = new CopyOnWriteArrayList(); in testIsEmpty() local
239 assertTrue(empty.isEmpty()); in testIsEmpty()
248 Collection empty = new CopyOnWriteArrayList(); in testIterator() local
249 assertFalse(empty.iterator().hasNext()); in testIterator()
251 empty.iterator().next(); in testIterator()
408 CopyOnWriteArrayList empty = new CopyOnWriteArrayList(); in testSize() local
411 assertEquals(0, empty.size()); in testSize()
438 Collection empty = new CopyOnWriteArrayList(); in testToArray2() local
442 assertSame(a, empty.toArray(a)); in testToArray2()
446 assertSame(a, empty.toArray(a)); in testToArray2()
DTreeMapTest.java107 TreeMap empty = new TreeMap(); in testGet() local
108 assertNull(empty.get(one)); in testGet()
115 TreeMap empty = new TreeMap(); in testIsEmpty() local
117 assertTrue(empty.isEmpty()); in testIsEmpty()
337 TreeMap empty = new TreeMap();
339 empty.putAll(map);
340 assertEquals(5, empty.size());
341 assertTrue(empty.containsKey(one));
342 assertTrue(empty.containsKey(two));
343 assertTrue(empty.containsKey(three));
[all …]
DSynchronousQueueTest.java358 Integer[] empty = new Integer[0];
359 assertTrue(q.containsAll(Arrays.asList(empty)));
371 Integer[] empty = new Integer[0];
372 assertFalse(q.retainAll(Arrays.asList(empty)));
384 Integer[] empty = new Integer[0];
385 assertFalse(q.removeAll(Arrays.asList(empty)));
DConcurrentSkipListMapTest.java108 ConcurrentSkipListMap empty = new ConcurrentSkipListMap(); in testGet() local
109 assertNull(empty.get(one)); in testGet()
116 ConcurrentSkipListMap empty = new ConcurrentSkipListMap(); in testIsEmpty() local
118 assertTrue(empty.isEmpty()); in testIsEmpty()
354 ConcurrentSkipListMap empty = new ConcurrentSkipListMap();
356 empty.putAll(map);
357 assertEquals(5, empty.size());
358 assertTrue(empty.containsKey(one));
359 assertTrue(empty.containsKey(two));
360 assertTrue(empty.containsKey(three));
[all …]
DPriorityQueueTest.java258 Integer[] empty = new Integer[0]; in testAddAll5() local
263 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5()
/libcore/json/src/main/java/org/json/
DJSONStringer.java174 JSONStringer open(Scope empty, String openBracket) throws JSONException { in open() argument
179 stack.add(empty); in open()
188 JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException { in close() argument
190 if (context != nonempty && context != empty) { in close()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
DAttributes2ImplTest.java31 private Attributes2Impl empty = new Attributes2Impl(); field in Attributes2ImplTest
69 attrs.setAttributes(empty); in testSetAttributes()
83 attrs.setAttributes(empty); in testSetAttributes()
190 assertEquals(0, empty.getLength()); in testAttributes2Impl()
208 attrs = new Attributes2Impl(empty); in testAttributes2ImplAttributes()
/libcore/include/
DLocalArray.h59 bool empty() { return mSize == 0; } in empty() function
/libcore/luni/src/main/java/java/util/
DStack.java40 public boolean empty() { in empty() method in Stack
/libcore/support/src/test/java/tests/resources/x509/
Dcreate.sh94 openssl ca -gencrl -crlhours 70 -keyfile /tmp/cakey.pem -cert /tmp/cacert.pem -out /tmp/crl-empty.p…
95 openssl crl -in /tmp/crl-empty.pem -outform d -out ${DIR}/crl-empty.der
120 …em /tmp/cakey.pem /tmp/crl-rsa.pem /tmp/crl-rsa-dsa.pem /tmp/crl-unsupported.pem /tmp/crl-empty.pem

12