Home
last modified time | relevance | path

Searched refs:getProperty (Results 1 – 25 of 140) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java156 String userDir = System.getProperty("user.dir"); in testSystemProperties_immutable()
159 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
162 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
165 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
171 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
179 String oldUserHome = System.getProperty("user.home"); in testSystemProperties_mutable()
182 assertEquals("/user/home", System.getProperty("user.home")); in testSystemProperties_mutable()
190 String userDir = System.getProperty("user.dir"); in testSystemProperties_setProperties_null()
200 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_setProperties_null()
202 assertNull(System.getProperty("p1")); in testSystemProperties_setProperties_null()
[all …]
DOldSystemTest.java190 + prop, p.getProperty(prop)); in test_getProperties()
192 System.getProperty(prop)); in test_getProperties()
198 System.getProperty(null); in test_getPropertyLjava_lang_String()
205 System.getProperty(""); in test_getPropertyLjava_lang_String()
214 System.getProperty(null, "0.0"); in test_getPropertyLjava_lang_StringLjava_lang_String()
221 System.getProperty("", "0"); in test_getPropertyLjava_lang_StringLjava_lang_String()
239 assertNull("Property was not deleted.", System.getProperty("test")); in test_clearProperty()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java56 String tmp = System.getProperty("java.io.tmpdir"); in loadDriver()
102 sqlDriver = properties.getProperty("sqlDriver"); in loadProperties()
103 sqlLogin = properties.getProperty("sqlLogin"); in loadProperties()
104 sqlCatalog = properties.getProperty("sqlCatalog"); in loadProperties()
105 sqlHost = properties.getProperty("sqlHost"); in loadProperties()
106 sqlUrl = properties.getProperty("sqlUrlPrefix") + sqlHost + "/" in loadProperties()
108 sqlPassword = properties.getProperty("sqlPassword"); in loadProperties()
109 sqlUser = properties.getProperty("sqlUser"); in loadProperties()
111 .getProperty("sqlMaxConnections")); in loadProperties()
112 sqlMaxTasks = Integer.parseInt(properties.getProperty("sqlMaxTasks")); in loadProperties()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java90 systemProperties.getProperty(propertyName), in test_ConstructorLjava_util_Properties()
91 properties.getProperty(propertyName)); in test_ConstructorLjava_util_Properties()
102 ((String) tProps.getProperty("test.prop"))); in test_getPropertyLjava_lang_String()
113 ((String) tProps.getProperty("test.prop", "Blarg"))); in test_getPropertyLjava_lang_StringLjava_lang_String()
115 .getProperty("notInThere.prop", "Gabba"))); in test_getPropertyLjava_lang_StringLjava_lang_String()
124 assertNull(props.getProperty("key")); in test_getPropertyLjava_lang_String2()
134 assertEquals("defaultValue", props.getProperty("key", "defaultValue")); in test_getPropertyLjava_lang_StringLjava_lang_String2()
140 return getProperty((String) key); // assume String in get()
216 .getProperty("test.pkg")); in test_loadLjava_io_InputStream()
218 .getProperty("commented.entry")); in test_loadLjava_io_InputStream()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java28 String lineSeparator = System.getProperty("line.separator"); in timeDirect()
36 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow()
40 return System.getProperty("line.separator"); in timeFastAndSlow()
51 return System.getProperty("line.separator"); in timeNewAction()
72 return System.getProperty(propertyName); in run()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java32 + System.getProperty("java.vm.version").replace('.', '-');
36 File tempDir = new File(System.getProperty("java.io.tmpdir"));
64 String tmpDirName = System.getProperty("java.io.tmpdir"); in test_ConstructorLjava_io_FileLjava_lang_String()
94 String tmpDir = System.getProperty("java.io.tmpdir"); in test_ConstructorLjava_lang_StringLjava_lang_String()
105 dirName = System.getProperty("java.io.tmpdir"); in test_ConstructorLjava_lang_StringLjava_lang_String()
137 String base = System.getProperty("java.io.tmpdir"); in test_renameToLjava_io_File()
156 String cts = System.getProperty("java.io.tmpdir"); in test_deleteOnExit()
172 builder.command().add(System.getProperty("java.class.path")); in test_deleteOnExit()
DOldFileReaderTest.java29 File noFile = new File(System.getProperty("java.io.tmpdir"), "noreader.tst"); in test_ConstructorLjava_io_File()
40 br = new FileReader(System.getProperty("java.io.tmpdir") + "/noreader.tst"); in test_ConstructorLjava_lang_String()
DOldFileWriterTest.java40 File dir = new File(System.getProperty("java.io.tmpdir")); in test_ConstructorLjava_io_File_IOException()
51 File dir = new File(System.getProperty("java.io.tmpdir")); in test_ConstructorLjava_io_FileZ_IOException()
63 fw = new FileWriter(System.getProperty("java.io.tmpdir")); in test_ConstructorLjava_lang_String_IOException()
73 fw = new FileWriter(System.getProperty("java.io.tmpdir"), false); in test_ConstructorLjava_lang_StringZ_IOException()
/libcore/luni/src/main/java/java/util/logging/
DLogManager.java151 String className = System.getProperty("java.util.logging.manager");
239 } else if (getProperty(parentName + ".level") != null || in addToFamilyTree()
240 getProperty(parentName + ".handlers") != null) { in addToFamilyTree()
303 public String getProperty(String name) { in getProperty() method in LogManager
304 return props.getProperty(name); in getProperty()
319 String configClassName = System.getProperty("java.util.logging.config.class"); in readConfiguration()
322 String configFile = System.getProperty("java.util.logging.config.file"); in readConfiguration()
326 configFile = System.getProperty("java.home") + File.separator + "lib" + in readConfiguration()
379 String configs = props.getProperty("config"); in readConfigurationImpl()
391 String property = props.getProperty(logger.getName() + ".level"); in readConfigurationImpl()
DMemoryHandler.java89 final String targetName = manager.getProperty(className + ".target"); in MemoryHandler()
101 String sizeString = manager.getProperty(className + ".size"); in MemoryHandler()
113 String pushName = manager.getProperty(className + ".push"); in MemoryHandler()
DSocketHandler.java77 initSocket(LogManager.getLogManager().getProperty( in SocketHandler()
79 .getLogManager().getProperty( in SocketHandler()
DHandler.java103 final String filterName = manager.getProperty(prefix + ".filter"); in initProperties()
116 String levelName = manager.getProperty(prefix + ".level"); in initProperties()
129 final String formatterName = manager.getProperty(prefix + ".formatter"); in initProperties()
142 final String encodingName = manager.getProperty(prefix + ".encoding"); in initProperties()
DFileHandler.java266 String tempPath = System.getProperty("java.io.tmpdir");
270 String homePath = System.getProperty("user.home");
333 String property = manager.getProperty(key); in getBooleanProperty()
348 String property = manager.getProperty(key); in getStringProperty()
354 String property = manager.getProperty(key); in getIntProperty()
/libcore/luni/src/main/java/java/util/prefs/
DFilePreferencesFactoryImpl.java28 System.getProperty("user.home") + "/.java/.userPrefs", true);
32 System.getProperty("java.home") + "/.systemPrefs", false);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DSystemTest.java141 assertNotNull(props[i], System.getProperty(props[i])); in test_getProperties()
153 String encoding = System.getProperty("file.encoding"); in test_getPropertyLjava_lang_String()
189 String bootClassPath = System.getProperty("org.apache.harmony.boot.class.path"); in test_getProperty_bootClassPath()
192 bootClassPath = System.getProperty("sun.boot.class.path"); in test_getProperty_bootClassPath()
207 assertTrue(!System.getProperty("java.version", "99999").equals("99999")); in test_getPropertyLjava_lang_StringLjava_lang_String()
209 .getProperty("bogus.prop", "bogus")); in test_getPropertyLjava_lang_StringLjava_lang_String()
224 System.getProperty("testing") == "value2"); in test_setPropertyLjava_lang_StringLjava_lang_String()
302 .getProperty("test.prop")); in test_setPropertiesLjava_util_Properties()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java93 if (!p.getProperty("Provider.id name").equals( in testProvider()
97 if (!p.getProperty("Provider.id version").equals( in testProvider()
101 if (!p.getProperty("Provider.id info").equals( in testProvider()
105 if (!p.getProperty("Provider.id className").equals( in testProvider()
113 assertNull(p.getProperty("MessageDigest.SHA-1")); in testClear()
148 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap()
149 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap()
150 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap()
151 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap()
262 assertEquals("aaa.bbb.ccc.ddd", p.getProperty("MessageDigest.SHA-1") in testPutObjectObject()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java37 if ("Dalvik".equals(System.getProperty("java.vm.name"))) { in getInstance()
63 tmp = new File(System.getProperty("java.io.tmpdir"), "dex-cache");
/libcore/luni/src/main/java/java/net/
DProxySelectorImpl.java67 && isNonProxyHost(uri.getHost(), System.getProperty(nonProxyHostsKey))) { in selectOneProxy()
95 String host = System.getProperty(hostKey); in lookupProxy()
105 String string = System.getProperty(key); in getSystemPropertyInt()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java66 String val = System.getProperty("jaxp.debug");
172 String systemProp = System.getProperty(factoryId); in find()
180 String javah = System.getProperty("java.home"); in find()
195 factoryClassName = cacheProps.getProperty(factoryId); in find()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContextSpiTest.java157 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm"); in test_engineInit()
163 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm"); in test_engineInit()
196 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm"); in test_commonTest_02()
202 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm"); in test_commonTest_02()
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DSAXParserImpl.java80 public Object getProperty(String name) throws SAXNotRecognizedException, in getProperty() method in SAXParserImpl
82 return reader.getProperty(name); in getProperty()
/libcore/luni/src/main/java/java/util/jar/
DPack200.java53 …String className = System.getProperty(SYSTEM_PROPERTY_PACKER, "org.apache.harmony.pack200.Pack200P… in newPacker()
74 …String className = System.getProperty(SYSTEM_PROPERTY_UNPACKER, "org.apache.harmony.unpack200.Pack… in newUnpacker()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java53 String val = System.getProperty("jaxp.debug");
155 String r = System.getProperty(propertyName); in _newFactory()
167 String javah = System.getProperty("java.home"); in _newFactory()
187 factoryClassName = cacheProps.getProperty(propertyName); in _newFactory()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java67 String val = System.getProperty("jaxp.debug");
162 String r = System.getProperty(propertyName); in _newFactory()
187 String javah = System.getProperty("java.home"); in _newFactory()
207 factoryClassName = cacheProps.getProperty(propertyName); in _newFactory()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DParserFactory.java85 String className = System.getProperty("org.xml.sax.parser"); in makeParser()

123456