Home
last modified time | relevance | path

Searched refs:setProperty (Results 1 – 25 of 62) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java117 System.setProperty("http.proxyHost", HTTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
118 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
120 System.setProperty("https.proxyHost", HTTPS_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
121 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
123 System.setProperty("ftp.proxyHost", FTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
124 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
126 System.setProperty("socksProxyHost", SOCKS_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
127 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
158 System.setProperty("http.proxyHost", HTTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact_NullHost()
159 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
[all …]
DInetAddressThreadTest.java130 System.setProperty("networkaddress.cache.ttl", "0"); in test_getHostName()
169 System.setProperty("networkaddress.cache.ttl", "-1"); in test_getHostName()
171 System.setProperty("networkaddress.cache.ttl", in test_getHostName()
/libcore/luni/src/test/java/libcore/java/net/
DProxySelectorTest.java74 System.setProperty("ftp.proxyHost", "a"); in testProxyHostOnly()
75 System.setProperty("http.proxyHost", "b"); in testProxyHostOnly()
76 System.setProperty("https.proxyHost", "c"); in testProxyHostOnly()
77 System.setProperty("other.proxyHost", "d"); in testProxyHostOnly()
78 System.setProperty("socket.proxyHost", "d"); in testProxyHostOnly()
90 System.setProperty("ftp.proxyHost", "a"); in testProxyHostPort()
91 System.setProperty("ftp.proxyPort", "1001"); in testProxyHostPort()
92 System.setProperty("http.proxyHost", "b"); in testProxyHostPort()
93 System.setProperty("http.proxyPort", "1002"); in testProxyHostPort()
94 System.setProperty("https.proxyHost", "c"); in testProxyHostPort()
[all …]
DURLStreamHandlerFactoryTest.java80 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName()); in testInstallCustomProtocolHandler()
99 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName()); in testFirstUseIsCached()
/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java40 System.setProperty("line.separator", "poop"); in testLineSeparator()
63 System.setProperty("line.separator", "\n"); in testLineSeparator()
158 System.setProperty("user.dir", "not poop"); in testSystemProperties_immutable()
161 System.getProperties().setProperty("user.dir", "hmmph"); in testSystemProperties_immutable()
168 p.setProperty("user.dir", "meh"); in testSystemProperties_immutable()
181 System.setProperty("user.home", "/user/home"); in testSystemProperties_mutable()
184 System.setProperty("user.home", oldUserHome); in testSystemProperties_mutable()
194 System.setProperty("p1", "v1"); in testSystemProperties_setProperties_null()
210 newProperties.setProperty("user.dir", "v1"); in testSystemProperties_setProperties_nonNull()
212 newProperties.setProperty("p1", "v2"); in testSystemProperties_setProperties_nonNull()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DXMLReaderFactoryTest.java43 System.setProperty("org.xml.sax.driver", "foo.bar.XMLReader"); in testCreateXMLReader()
52 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
62 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
72 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
84 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
DParserFactoryTest.java44 System.setProperty("org.xml.sax.parser", "foo.bar.SAXParser"); in testMakeParser()
54 System.setProperty("org.xml.sax.parser", in testMakeParser()
65 System.setProperty("org.xml.sax.parser", in testMakeParser()
76 System.setProperty("org.xml.sax.parser", in testMakeParser()
87 System.setProperty("org.xml.sax.parser", in testMakeParser()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java151 myProps.setProperty("Abba", "Cadabra"); in test_listLjava_io_PrintStream()
152 myProps.setProperty("Open", "Sesame"); in test_listLjava_io_PrintStream()
153 myProps.setProperty("LongProperty", in test_listLjava_io_PrintStream()
181 myProps.setProperty("Abba", "Cadabra"); in test_listLjava_io_PrintWriter()
182 myProps.setProperty("Open", "Sesame"); in test_listLjava_io_PrintWriter()
183 myProps.setProperty("LongProperty", in test_listLjava_io_PrintWriter()
510 properties.setProperty(keys[index], values[index]); in test_stringPropertyNames_scenario1()
559 defaults.setProperty(defaultKeys[index], defaultValues[index]); in test_stringPropertyNames_scenario2()
567 properties.setProperty(keys[index], values[index]); in test_stringPropertyNames_scenario2()
587 defaults.setProperty(defaultKeys[index], defaultValues[index]); in test_stringPropertyNames_scenario2()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DBooleanTest.java76 System.setProperty(getClass().getName(), "true"); in test_getBooleanLjava_lang_String()
79 System.setProperty(getClass().getName(), "TRUE"); in test_getBooleanLjava_lang_String()
82 System.setProperty(getClass().getName(), "false"); in test_getBooleanLjava_lang_String()
DSystemTest.java219 assertNull("Failed to return null", System.setProperty("testing", in test_setPropertyLjava_lang_StringLjava_lang_String()
221 assertTrue("Failed to return old value", System.setProperty("testing", in test_setPropertyLjava_lang_StringLjava_lang_String()
228 System.setProperty("", "default"); in test_setPropertyLjava_lang_StringLjava_lang_String()
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DSAXParserImpl.java105 public void setProperty(String name, Object value) in setProperty() method in SAXParserImpl
107 reader.setProperty(name, value); in setProperty()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurityTest.java391 Security.setProperty("myprop","test white space "); in test_getPropertyLjava_lang_String()
401 Security.setProperty(null, ""); in test_setPropertyLjava_lang_StringLjava_lang_String()
407 Security.setProperty("", null); in test_setPropertyLjava_lang_StringLjava_lang_String()
412 Security.setProperty("", ""); in test_setPropertyLjava_lang_StringLjava_lang_String()
415 Security.setProperty("My Test Property", "My property value"); in test_setPropertyLjava_lang_StringLjava_lang_String()
/libcore/luni/src/main/java/org/xml/sax/
DXMLReader.java210 public void setProperty (String name, Object value) in setProperty() method
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestUtils.java76 properties.setProperty(key, value); in setSystemProperty()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DNoSubclassXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in NoSubclassXMLReader
DNoAccessXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in NoAccessXMLReader
DDoNothingXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in DoNothingXMLReader
DNoInstanceXMLReader.java79 public void setProperty(String name, Object value) { in setProperty() method in NoInstanceXMLReader
DMockFilter.java70 public void setProperty(String name, Object value) throws SAXNotRecognizedException, in setProperty() method in MockFilter
/libcore/luni/src/main/java/java/sql/
DDriverManager.java208 theProperties.setProperty("user", user); in getConnection()
211 theProperties.setProperty("password", password); in getConnection()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java38 System.setProperty("java.library.path", systemLibPath.toString()); in testLibraryPathSearchOrder()
/libcore/luni/src/main/java/javax/xml/validation/
DValidatorHandler.java415 …public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSuppor… in setProperty() method in ValidatorHandler
DValidator.java406 …public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSuppor… in setProperty() method in Validator
/libcore/luni/src/test/java/tests/security/cert/
DCertPathBuilder2Test.java86 Security.setProperty(propName, invalidValues[i]); in checkResult()
92 Security.setProperty(propName, dt); in checkResult()
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlSerializer.java76 void setProperty(String name, in setProperty() method

123