Home
last modified time | relevance | path

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

1234567

/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java157 String userDir = System.getProperty("user.dir"); in testSystemProperties_immutable()
160 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
163 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
166 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
172 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
180 String oldUserHome = System.getProperty("user.home"); in testSystemProperties_mutable()
183 assertEquals("/user/home", System.getProperty("user.home")); in testSystemProperties_mutable()
191 String userDir = System.getProperty("user.dir"); in testSystemProperties_setProperties_null()
201 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_setProperties_null()
203 assertNull(System.getProperty("p1")); in testSystemProperties_setProperties_null()
[all …]
DOldSystemTest.java192 + prop, p.getProperty(prop)); in test_getProperties()
194 System.getProperty(prop)); in test_getProperties()
200 System.getProperty(null); in test_getPropertyLjava_lang_String()
207 System.getProperty(""); in test_getPropertyLjava_lang_String()
216 System.getProperty(null, "0.0"); in test_getPropertyLjava_lang_StringLjava_lang_String()
223 System.getProperty("", "0"); in test_getPropertyLjava_lang_StringLjava_lang_String()
241 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/ojluni/src/main/java/sun/net/
DNetProperties.java60 String fname = System.getProperty("java.home"); in loadDefaultProperties()
90 String def = props.getProperty(key); in get()
92 return System.getProperty(key, def); in get()
115 val = System.getProperty(key, props.getProperty(key)); in getInteger()
144 val = System.getProperty(key, props.getProperty(key)); in getBoolean()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java93 systemProperties.getProperty(propertyName), in test_ConstructorLjava_util_Properties()
94 properties.getProperty(propertyName)); in test_ConstructorLjava_util_Properties()
105 ((String) tProps.getProperty("test.prop"))); in test_getPropertyLjava_lang_String()
116 ((String) tProps.getProperty("test.prop", "Blarg"))); in test_getPropertyLjava_lang_StringLjava_lang_String()
118 .getProperty("notInThere.prop", "Gabba"))); in test_getPropertyLjava_lang_StringLjava_lang_String()
127 assertNull(props.getProperty("key")); in test_getPropertyLjava_lang_String2()
137 assertEquals("defaultValue", props.getProperty("key", "defaultValue")); in test_getPropertyLjava_lang_StringLjava_lang_String2()
143 return getProperty((String) key); // assume String in get()
219 .getProperty("test.pkg")); in test_loadLjava_io_InputStream()
221 .getProperty("commented.entry")); in test_loadLjava_io_InputStream()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java25 String lineSeparator = System.getProperty("line.separator"); in timeDirect()
33 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow()
37 return System.getProperty("line.separator"); in timeFastAndSlow()
48 return System.getProperty("line.separator"); in timeNewAction()
69 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/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/ojluni/src/main/java/sun/misc/
DVM.java243 return savedProps.getProperty(key); in getSavedProperty()
286 s = props.getProperty("sun.lang.ClassLoader.allowArraySyntax"); in saveAndRemoveProperties()
294 s = props.getProperty("jdk.reflect.allowGetCallerClass"); in saveAndRemoveProperties()
298 Boolean.parseBoolean(props.getProperty("jdk.logging.allowStackWalkSearch")); in saveAndRemoveProperties()
DVersion.java84 String headless = System.getProperty("java.awt.headless"); in print()
103 String java_vm_name = System.getProperty("java.vm.name"); in print()
104 String java_vm_version = System.getProperty("java.vm.version"); in print()
105 String java_vm_info = System.getProperty("java.vm.info"); in print()
268 CharSequence cs = System.getProperty("java.vm.version"); in initVersions()
DMessageUtils.java82 return subst(System.getProperty(propName), arg); in substProp()
86 return subst(System.getProperty(propName), arg1, arg2); in substProp()
91 return subst(System.getProperty(propName), arg1, arg2, arg3); in substProp()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java94 if (!p.getProperty("Provider.id name").equals( in testProvider()
98 if (!p.getProperty("Provider.id version").equals( in testProvider()
102 if (!p.getProperty("Provider.id info").equals( in testProvider()
106 if (!p.getProperty("Provider.id className").equals( in testProvider()
114 assertNull(p.getProperty("MessageDigest.SHA-1")); in testClear()
149 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap()
150 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap()
151 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap()
152 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap()
295 assertEquals("aaa.bbb.ccc.ddd", p.getProperty("MessageDigest.SHA-1") in testPutObjectObject()
[all …]
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java59 String javah = System.getProperty("java.home");
85 String val = System.getProperty("jaxp.debug");
191 String systemProp = System.getProperty(factoryId); in find()
199 String factoryClassName = CacheHolder.cacheProps.getProperty(factoryId); in find()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java186 cname = System.getProperty("java.util.logging.manager");
869 if (owner.getProperty(pname + ".level") != null || in processParentHandlers()
870 owner.getProperty(pname + ".handlers") != null) { in processParentHandlers()
965 String levs = getProperty(word + ".level"); in loadLoggerHandlers()
1265 String cname = System.getProperty("java.util.logging.config.class"); in readConfiguration()
1280 String fname = System.getProperty("java.util.logging.config.file"); in readConfiguration()
1282 fname = System.getProperty("java.home"); in readConfiguration()
1368 String hands = getProperty(propertyName); in parseClassNames()
1467 public String getProperty(String name) { in getProperty() method in LogManager
1468 return props.getProperty(name); in getProperty()
[all …]
DLoggingProxyImpl.java114 public String getProperty(String key) { in getProperty() method in LoggingProxyImpl
115 return LogManager.getLogManager().getProperty(key); in getProperty()
/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/javax/xml/xpath/
DXPathFactoryFinder.java53 String val = System.getProperty("jaxp.debug");
67 String javah = System.getProperty("java.home");
170 String r = System.getProperty(propertyName); in _newFactory()
184 String factoryClassName = CacheHolder.cacheProps.getProperty(propertyName); in _newFactory()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java60 String javah = System.getProperty("java.home");
82 String val = System.getProperty("jaxp.debug");
177 String r = System.getProperty(propertyName); in _newFactory()
204 String factoryClassName = CacheHolder.cacheProps.getProperty(propertyName); in _newFactory()
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1072 final String locale = getProperty("user.locale", ""); in addLegacyLocaleSystemProperties()
1083 final String language = getProperty("user.language", ""); in addLegacyLocaleSystemProperties()
1084 final String region = getProperty("user.region", ""); in addLegacyLocaleSystemProperties()
1227 public static String getProperty(String key) { in getProperty() method in System
1234 return props.getProperty(key); in getProperty()
1263 public static String getProperty(String key, String def) { in getProperty() method in System
1270 return props.getProperty(key, def); in getProperty()
1699 lineSeparator = props.getProperty("line.separator");
1708 out = newPrintStream(fdOut, props.getProperty("sun.stdout.encoding"));
1709 err = newPrintStream(fdErr, props.getProperty("sun.stderr.encoding"));
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java39 = System.getProperty("java.vendor").contains("Android");
54 String testVMArgs = System.getProperty("hy.test.vmargs"); in javaProcessBuilder()
DSupport_ClassLoaderDalvik.java35 tmp = new File(System.getProperty("java.io.tmpdir"), "dex-cache");
/libcore/ojluni/src/main/java/sun/security/action/
DGetPropertyAction.java84 String value = System.getProperty(theProp); in run()

1234567