Home
last modified time | relevance | path

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

123456789

/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java37 String property = System.getProperty("os.name"); in testOsName()
166 String userDir = System.getProperty("user.dir"); in testSystemProperties_immutable()
169 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
172 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
175 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
181 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
185 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
189 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
193 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
197 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_immutable()
[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/ojluni/src/main/java/jdk/internal/util/
DStaticProperty.java59 JAVA_HOME = getProperty(props, "java.home");
60 USER_HOME = getProperty(props, "user.home");
61 USER_DIR = getProperty(props, "user.dir");
62 USER_NAME = getProperty(props, "user.name");
63 JAVA_IO_TMPDIR = getProperty(props, "java.io.tmpdir");
64 JAVA_LIBRARY_PATH = getProperty(props, "java.library.path", "");
72 private static String getProperty(Properties props, String key) { in getProperty() method in StaticProperty
73 String v = props.getProperty(key); in getProperty()
80 private static String getProperty(Properties props, String key, in getProperty() method in StaticProperty
82 String v = props.getProperty(key); in getProperty()
/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.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/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/ojluni/src/test/java/util/Properties/
DLoadParsing.java48 if (!myProps.getProperty("key1").equals("value1")) in main()
50 if (!myProps.getProperty("key2").equals("abc\\defg\\")) in main()
52 if (!myProps.getProperty("key3").equals("value3")) in main()
54 if (!myProps.getProperty("key4").equals(":value4")) in main()
56 if (myProps.getProperty("#") != null) in main()
DBug6609431.java61 p.getProperty("a"); in main()
62 String val = p.getProperty("b"); in main()
DPropertiesTest.java231 if (!myProps.getProperty("key1").equals("value1") || // comment in LoadParsing()
232 !myProps.getProperty("key2").equals("abc\\defg\\") || // slash in LoadParsing()
233 !myProps.getProperty("key3").equals("value3") || // spaces in key in LoadParsing()
234 !myProps.getProperty("key4").equals(":value4") || // separator in LoadParsing()
236 (myProps.getProperty("#") != null) || in LoadParsing()
381 String theSeparator = System.getProperty("line.separator"); in SaveSeparator()
460 String ls = System.getProperty("line.separator"); in SaveComments()
/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.java41 File dir = new File(System.getProperty("java.io.tmpdir")); in test_ConstructorLjava_io_File_IOException()
52 File dir = new File(System.getProperty("java.io.tmpdir")); in test_ConstructorLjava_io_FileZ_IOException()
64 fw = new FileWriter(System.getProperty("java.io.tmpdir")); in test_ConstructorLjava_lang_String_IOException()
74 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/test/javax/xml/jaxp/transform/
DTestBase.java36 if (System.getProperty("os.name").indexOf("Windows")>-1) {
64 filepath = System.getProperty("test.src"); in setUp()
67 filepath = System.getProperty("user.dir"); in setUp()
/libcore/ojluni/src/main/java/sun/security/action/
DGetPropertyAction.java87 String value = System.getProperty(theProp); in run()
106 return System.getProperty(theProp); in privilegedGetProperty()
130 return System.getProperty(theProp, defaultVal); in privilegedGetProperty()
/libcore/luni/src/test/java/libcore/javax/xml/validation/
DValidatorTest.java60 public void getProperty() { in getProperty() method in ValidatorTest
61 assertThrows(NullPointerException.class, () -> validator.getProperty(null)); in getProperty()
62 assertThrows(SAXNotRecognizedException.class, () -> validator.getProperty("hello")); in getProperty()
63 assertThrows(SAXNotRecognizedException.class, () -> validator.getProperty("")); in getProperty()
DValidatorHandlerTest.java60 public void getProperty() { in getProperty() method in ValidatorHandlerTest
61 assertThrows(NullPointerException.class, () -> handler.getProperty(null)); in getProperty()
62 assertThrows(SAXNotRecognizedException.class, () -> handler.getProperty("hello")); in getProperty()
63 assertThrows(SAXNotRecognizedException.class, () -> handler.getProperty("")); in getProperty()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java97 if (!p.getProperty("Provider.id name").equals( in testProvider()
101 if (!p.getProperty("Provider.id version").equals( in testProvider()
105 if (!p.getProperty("Provider.id info").equals( in testProvider()
109 if (!p.getProperty("Provider.id className").equals( in testProvider()
117 assertNull(p.getProperty("MessageDigest.SHA-1")); in testClear()
152 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap()
153 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap()
154 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap()
155 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap()
289 assertEquals("aaa.bbb.ccc.ddd", p.getProperty("MessageDigest.SHA-1") in testPutObjectObject()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DVersion.java85 String headless = System.getProperty("java.awt.headless"); in print()
109 String java_vm_name = System.getProperty("java.vm.name"); in print()
110 String java_vm_version = System.getProperty("java.vm.version"); in print()
111 String java_vm_info = System.getProperty("java.vm.info"); in print()
274 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/benchmarks/src/benchmarks/
DGetSystemPropertyBenchmark.java36 System.getProperty("user.language", "en"); in timeSystem_getProperty_default()
42 System.getProperty("user.region"); in timeSystem_getProperty()
/libcore/ojluni/src/main/java/sun/security/util/
DSecurityProperties.java55 String val = System.getProperty(propName); in getOverridableProperty()
57 return Security.getProperty(propName); in getOverridableProperty()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java186 cname = System.getProperty("java.util.logging.manager");
854 if (owner.getProperty(pname + ".level") != null || in processParentHandlers()
855 owner.getProperty(pname + ".handlers") != null) { in processParentHandlers()
951 String levs = getProperty(word + ".level"); in loadLoggerHandlers()
1251 String cname = System.getProperty("java.util.logging.config.class"); in readConfiguration()
1267 String fname = System.getProperty("java.util.logging.config.file"); in readConfiguration()
1269 fname = System.getProperty("java.home"); in readConfiguration()
1362 String hands = getProperty(propertyName); in parseClassNames()
1464 public String getProperty(String name) { in getProperty() method in LogManager
1465 return props.getProperty(name); in getProperty()
[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()

123456789