/libcore/luni/src/test/java/libcore/java/util/ |
D | EvilMapTest.java | 50 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_HashMap() 53 HashMap<String, String> map = new HashMap<String, String>(evil); in test_48055_HashMap() 55 HashMap<String, String> map2 = new HashMap<String, String>(); in test_48055_HashMap() 60 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_Hashtable() 63 Hashtable<String, String> map = new Hashtable<String, String>(evil); in test_48055_Hashtable() 65 Hashtable<String, String> map2 = new Hashtable<String, String>(); in test_48055_Hashtable() 70 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_LinkedHashMap() 73 LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(evil); in test_48055_LinkedHashMap() 75 LinkedHashMap<String, String> map2 = new LinkedHashMap<String, String>(); in test_48055_LinkedHashMap() 80 Map<String, String> evil = new EvilMap<String, String>(); in test_48055_WeakHashMap() [all …]
|
D | TreeMapTest.java | 45 TreeMap<String, String> map = new TreeMap<String, String>(); in testEntrySetSetValue() 50 Iterator<Entry<String, String>> iterator = map.entrySet().iterator(); in testEntrySetSetValue() 51 Entry<String, String> entryA = iterator.next(); in testEntrySetSetValue() 55 Entry<String, String> entryB = iterator.next(); in testEntrySetSetValue() 57 Entry<String, String> entryC = iterator.next(); in testEntrySetSetValue() 70 TreeMap<String, String> map = new TreeMap<String, String>(); in testSubMapEntrySetSetValue() 75 NavigableMap<String, String> subMap = map.subMap("A", true, "C", true); in testSubMapEntrySetSetValue() 77 Iterator<Entry<String, String>> iterator = subMap.entrySet().iterator(); in testSubMapEntrySetSetValue() 78 Entry<String, String> entryA = iterator.next(); in testSubMapEntrySetSetValue() 83 Entry<String, String> entryB = iterator.next(); in testSubMapEntrySetSetValue() [all …]
|
D | OptionalTest.java | 34 assertSame(Optional.<Integer>empty(), Optional.<String>empty()); in testEmpty_sameInstance() 35 assertSame(Optional.<String>empty(), Optional.<String>empty()); in testEmpty_sameInstance() 40 assertSame(Optional.<String>empty(), Optional.ofNullable(null)); in testEmpty_sameInstance() 44 Optional<String> empty = Optional.empty(); in testGet() 52 String foo = "foo"; in testGet() 53 Optional<String> optionalFoo = Optional.of(foo); in testGet() 58 Optional<String> empty = Optional.empty(); in testIsPresent() 61 Optional<String> optionalFoo = Optional.of("foo"); in testIsPresent() 64 assertFalse(Optional.<String>ofNullable(null).isPresent()); in testIsPresent() 69 Optional<String> empty = Optional.empty(); in testIfPresent() [all …]
|
D | TreeSetTest.java | 30 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testEmptySetSerialization() 32 TreeSet<String> set = new TreeSet<String>(); in testEmptySetSerialization() 33 new SerializationTester<TreeSet<String>>(set, s).test(); in testEmptySetSerialization() 37 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testSerializationWithComparator() 41 TreeSet<String> set = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); in testSerializationWithComparator() 44 new SerializationTester<NavigableSet<String>>(set, s) { in testSerializationWithComparator() 45 @Override protected void verify(NavigableSet<String> deserialized) { in testSerializationWithComparator() 52 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testSubSetSerialization() 56 TreeSet<String> set = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); in testSubSetSerialization() 61 final SortedSet<String> subSet = set.subSet("a", "c"); in testSubSetSerialization() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestAccessString.java | 48 static final String static_final_v = "foo"; 50 static String static_v; 52 final String final_v = "foo"; 54 String v; 71 VarHandleTestAccessString.class, "final_v", String.class); in setup() 74 VarHandleTestAccessString.class, "v", String.class); in setup() 77 VarHandleTestAccessString.class, "static_final_v", String.class); in setup() 80 VarHandleTestAccessString.class, "static_v", String.class); in setup() 82 vhArray = MethodHandles.arrayElementVarHandle(String[].class); in setup() 141 types.add(new Object[] {vhArray, Arrays.asList(String[].class, int.class)}); in typesProvider() [all …]
|
D | VarHandleTestMethodTypeString.java | 49 static final String static_final_v = "foo"; 51 static String static_v = "foo"; 53 final String final_v = "foo"; 55 String v = "foo"; 70 VarHandleTestMethodTypeString.class, "final_v", String.class); in setup() 73 VarHandleTestMethodTypeString.class, "v", String.class); in setup() 76 VarHandleTestMethodTypeString.class, "static_final_v", String.class); in setup() 79 VarHandleTestMethodTypeString.class, "static_v", String.class); in setup() 81 vhArray = MethodHandles.arrayElementVarHandle(String[].class); in setup() 120 public <T> void testAccess(String desc, AccessTestCase<T> atc) throws Throwable { in testAccess() [all …]
|
D | VarHandleTestMethodHandleAccessString.java | 45 static final String static_final_v = "foo"; 47 static String static_v; 49 final String final_v = "foo"; 51 String v; 66 VarHandleTestMethodHandleAccessString.class, "final_v", String.class); in setup() 69 VarHandleTestMethodHandleAccessString.class, "v", String.class); in setup() 72 VarHandleTestMethodHandleAccessString.class, "static_final_v", String.class); in setup() 75 VarHandleTestMethodHandleAccessString.class, "static_v", String.class); in setup() 77 vhArray = MethodHandles.arrayElementVarHandle(String[].class); in setup() 115 public <T> void testAccess(String desc, AccessTestCase<T> atc) throws Throwable { in testAccess() [all …]
|
/libcore/ojluni/src/test/java/lang/String/CompactString/ |
D | Split.java | 24 package test.java.lang.String.CompactString; 46 new Object[] { STRING_L1, "", 0, new String[] { "A" } }, in provider() 47 new Object[] { STRING_L1, "", 1, new String[] { "A" } }, in provider() 48 new Object[] { STRING_L1, "", 2, new String[] { "A", "" } }, in provider() 49 new Object[] { STRING_L1, "A", 0, new String[] {} }, in provider() 50 new Object[] { STRING_L2, "A", 0, new String[] { "", "B" } }, in provider() 51 new Object[] { STRING_L2, "B", 0, new String[] { "A" } }, in provider() 53 new String[] { "ABC", "EFGH" } }, in provider() 55 new String[] { "ABC", "EFGH" } }, in provider() 57 new String[] { "AB", "EFGH" } }, in provider() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | BasicLruCacheTest.java | 30 BasicLruCache<String, String> cache = newCreatingCache(); in testCreateOnCacheMiss() 31 String created = cache.get("aa"); in testCreateOnCacheMiss() 36 BasicLruCache<String, String> cache = newCreatingCache(); in testNoCreateOnCacheHit() 43 new BasicLruCache<String, String>(0); in testConstructorDoesNotAllowZeroCacheSize() 50 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3); in testCannotPutNullKey() 59 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3); in testCannotPutNullValue() 68 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(1); in testEvictionWithSingletonCache() 75 List<String> expectedEvictionLog = new ArrayList<String>(); in testEntryEvictedWhenFull() 76 final List<String> evictionLog = new ArrayList<String>(); in testEntryEvictedWhenFull() 77 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3) { in testEntryEvictedWhenFull() [all …]
|
/libcore/ojluni/src/main/java/java/sql/ |
D | DatabaseMetaData.java | 104 String getURL() throws SQLException; in getURL() 112 String getUserName() throws SQLException; in getUserName() 174 String getDatabaseProductName() throws SQLException; in getDatabaseProductName() 182 String getDatabaseProductVersion() throws SQLException; in getDatabaseProductVersion() 190 String getDriverName() throws SQLException; in getDriverName() 198 String getDriverVersion() throws SQLException; in getDriverVersion() 310 String getIdentifierQuoteString() throws SQLException; in getIdentifierQuoteString() 320 String getSQLKeywords() throws SQLException; in getSQLKeywords() 330 String getNumericFunctions() throws SQLException; in getNumericFunctions() 340 String getStringFunctions() throws SQLException; in getStringFunctions() [all …]
|
D | CallableStatement.java | 174 String getString(int parameterIndex) throws SQLException; in getString() 430 Object getObject(int parameterIndex, java.util.Map<String,Class<?>> map) in getObject() argument 621 void registerOutParameter (int parameterIndex, int sqlType, String typeName) in registerOutParameter() 660 void registerOutParameter(String parameterName, int sqlType) in registerOutParameter() 695 void registerOutParameter(String parameterName, int sqlType, int scale) in registerOutParameter() 742 void registerOutParameter (String parameterName, int sqlType, String typeName) in registerOutParameter() 781 void setURL(String parameterName, java.net.URL val) throws SQLException; in setURL() 797 void setNull(String parameterName, int sqlType) throws SQLException; in setNull() 814 void setBoolean(String parameterName, boolean x) throws SQLException; in setBoolean() 831 void setByte(String parameterName, byte x) throws SQLException; in setByte() [all …]
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParser.java | 144 String NO_NAMESPACE = ""; 330 String [] TYPES = { 357 String FEATURE_PROCESS_NAMESPACES = 369 String FEATURE_REPORT_NAMESPACE_ATTRIBUTES = 390 String FEATURE_PROCESS_DOCDECL = 404 String FEATURE_VALIDATION = 420 void setFeature(String name, in setFeature() 433 boolean getFeature(String name); in getFeature() 443 void setProperty(String name, in setProperty() 456 Object getProperty(String name); in getProperty() [all …]
|
/libcore/luni/src/test/java/tests/support/ |
D | DatabaseCreator.java | 28 public static final String defaultString = "string"; 30 public static final String defaultCharacter = "chr"; 34 public static final String TEST_TABLE1 = "table1"; 36 public static final String TEST_TABLE2 = "table2"; 38 public static final String TEST_TABLE3 = "table3"; 40 public static final String TEST_TABLE4 = "table4"; 42 public static final String SALESPEOPLE_TABLE = "Salespeople"; 44 public static final String CUSTOMERS_TABLE = "Customers"; 46 public static final String ORDERS_TABLE = "Orders"; 48 public static final String PARENT_TABLE = "test_names"; [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | String.java | 32 public final class String class 34 java.lang.Comparable<java.lang.String>, 37 public String() { in String() method in String 41 public String(java.lang.String original) { in String() method in String 45 public String(char[] value) { in String() method in String 49 public String(char[] value, int offset, int count) { in String() method in String 53 public String(int[] codePoints, int offset, int count) { in String() method in String 58 public String(byte[] ascii, int hibyte, int offset, int count) { in String() method in String 63 public String(byte[] ascii, int hibyte) { in String() method in String 67 public String(byte[] bytes, int offset, int length, java.lang.String charsetName) in String() method in String [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | XmlPullParserFactoryTest.java | 78 new String[] { "libcore.xml.XmlPullParserFactoryTest$XmlPullParserStub" }, in testOverriding_customClassList() 79 new String[] { "libcore.xml.XmlPullParserFactoryTest$XmlSerializerStub" }); in testOverriding_customClassList() 87 new String[] { in testOverriding_customClassList() 90 new String[] { in testOverriding_customClassList() 102 … new String[] { "libcore.xml.XmlPullParserFactoryTest$XmlParserThatHatesAllFeatures" }, null); in testSetFeature_setsFeatureOnlyIfTrue() 126 TestXmlPullParserFactory(String[] parserClassList, String[] serializerClassList) { in TestXmlPullParserFactory() 133 for (String parserClass : parserClassList) { in TestXmlPullParserFactory() 139 for (String serializerClass : serializerClassList) { in TestXmlPullParserFactory() 151 public void setFeature(String name, boolean state) { in setFeature() 164 public void setFeature(String name, boolean state) throws IllegalArgumentException, in setFeature() [all …]
|
D | SaxTest.java | 40 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces() 41 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 53 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces() 54 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 68 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces() 69 String qName, Attributes attributes) { in testNoPrefixesYesNamespaces() 81 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces() 82 String qName, Attributes attributes) { in testNoPrefixesYesNamespaces() 100 @Override public void startElement(String uri, String localName, in testYesPrefixesYesNamespaces() 101 String qName, Attributes attributes) { in testYesPrefixesYesNamespaces() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | URI.java | 38 public URI(java.lang.String str) throws java.net.URISyntaxException { in URI() 43 java.lang.String scheme, in URI() 44 java.lang.String userInfo, in URI() 45 java.lang.String host, in URI() 47 java.lang.String path, in URI() 48 java.lang.String query, in URI() 49 java.lang.String fragment) in URI() 55 java.lang.String scheme, in URI() 56 java.lang.String authority, in URI() 57 java.lang.String path, in URI() [all …]
|
D | HttpCookie.java | 34 public HttpCookie(java.lang.String name, java.lang.String value) { in HttpCookie() 38 private HttpCookie(java.lang.String name, java.lang.String value, java.lang.String header) { in HttpCookie() 42 public static java.util.List<java.net.HttpCookie> parse(java.lang.String header) { in parse() 47 java.lang.String header, boolean retainHeader) { in parse() 55 public void setComment(java.lang.String purpose) { in setComment() 59 public java.lang.String getComment() { in getComment() 63 public void setCommentURL(java.lang.String purpose) { in setCommentURL() 67 public java.lang.String getCommentURL() { in getCommentURL() 79 public void setPortlist(java.lang.String ports) { in setPortlist() 83 public java.lang.String getPortlist() { in getPortlist() [all …]
|
/libcore/luni/src/main/java/org/w3c/dom/ |
D | Element.java | 45 public String getTagName(); in getTagName() 53 public String getAttribute(String name); in getAttribute() 77 public void setAttribute(String name, in setAttribute() 78 String value) in setAttribute() 96 public void removeAttribute(String name) in removeAttribute() 109 public Attr getAttributeNode(String name); in getAttributeNode() 161 public NodeList getElementsByTagName(String name); in getElementsByTagName() 179 public String getAttributeNS(String namespaceURI, in getAttributeNS() 180 String localName) in getAttributeNS() 225 public void setAttributeNS(String namespaceURI, in setAttributeNS() [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | MessageUtils.java | 37 public static java.lang.String subst(java.lang.String patt, java.lang.String arg) { in subst() 41 public static java.lang.String subst( in subst() 42 java.lang.String patt, java.lang.String arg1, java.lang.String arg2) { in subst() 46 public static java.lang.String subst( in subst() 47 java.lang.String patt, in subst() 48 java.lang.String arg1, in subst() 49 java.lang.String arg2, in subst() 50 java.lang.String arg3) { in subst() 54 public static java.lang.String subst(java.lang.String patt, java.lang.String[] args) { in subst() 58 public static java.lang.String substProp(java.lang.String propName, java.lang.String arg) { in substProp() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | MessageUtils.java | 42 public static String subst(String patt, String arg) { in subst() 43 String args[] = { arg }; in subst() 47 public static String subst(String patt, String arg1, String arg2) { in subst() 48 String args[] = { arg1, arg2 }; in subst() 52 public static String subst(String patt, String arg1, String arg2, in subst() 53 String arg3) { in subst() 54 String args[] = { arg1, arg2, arg3 }; in subst() 58 public static String subst(String patt, String args[]) { in subst() 81 public static String substProp(String propName, String arg) { in substProp() 85 public static String substProp(String propName, String arg1, String arg2) { in substProp() [all …]
|
/libcore/ojluni/src/test/java/util/PriorityQueue/ |
D | NoNulls.java | 55 void test(String[] args) throws Throwable { in test() 56 final Comparator<String> nullTolerantComparator in test() 58 public int compare(String x, String y) { in test() 64 final SortedSet<String> nullSortedSet in test() 68 final PriorityQueue<String> nullPriorityQueue in test() 72 final Collection<String> nullCollection = new ArrayList<>(); in test() 77 new PriorityQueue<String>(nullCollection); in test() 80 new PriorityBlockingQueue<String>(nullCollection); in test() 83 new ArrayBlockingQueue<String>(10, false, nullCollection); in test() 86 new ArrayBlockingQueue<String>(10, true, nullCollection); in test() [all …]
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Pack200.java | 259 String SEGMENT_LIMIT = "pack.segment.limit"; 273 String KEEP_FILE_ORDER = "pack.keep.file.order"; 290 String EFFORT = "pack.effort"; 311 String DEFLATE_HINT = "pack.deflate.hint"; 336 String MODIFICATION_TIME = "pack.modification.time"; 364 String PASS_FILE_PFX = "pack.pass.file."; 390 String UNKNOWN_ATTRIBUTE = "pack.unknown.attribute"; 422 String CLASS_ATTRIBUTE_PFX = "pack.class.attribute."; 433 String FIELD_ATTRIBUTE_PFX = "pack.field.attribute."; 444 String METHOD_ATTRIBUTE_PFX = "pack.method.attribute."; [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestFramework.java | 29 String feature, in hasFeature() 30 String version); in hasFeature() 34 void fail(DOMTestCase test, String assertID); in fail() 36 void assertTrue(DOMTestCase test, String assertID, boolean actual); in assertTrue() 38 void assertFalse(DOMTestCase test, String assertID, boolean actual); in assertFalse() 40 void assertNull(DOMTestCase test, String assertID, Object actual); in assertNull() 42 void assertNotNull(DOMTestCase test, String assertID, Object actual); in assertNotNull() 46 String assertID, in assertSame() 52 String assertID, in assertInstanceOf() 58 String assertID, in assertSize() [all …]
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | DefaultHandler2.java | 54 public void startDTD (String name, String publicId, String systemId) in startDTD() 62 public void startEntity (String name) in startEntity() 66 public void endEntity (String name) in endEntity() 77 public void attributeDecl (String eName, String aName, in attributeDecl() 78 String type, String mode, String value) in attributeDecl() 82 public void elementDecl (String name, String model) in elementDecl() 86 public void externalEntityDecl (String name, in externalEntityDecl() 87 String publicId, String systemId) in externalEntityDecl() 91 public void internalEntityDecl (String name, String value) in internalEntityDecl() 116 public InputSource getExternalSubset (String name, String baseURI) in getExternalSubset() [all …]
|