/libcore/luni/src/test/java/libcore/java/lang/ |
D | SystemTest.java | 37 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() 189 String oldUserHome = System.getProperty("user.home"); in testSystemProperties_mutable() 192 assertEquals("/user/home", System.getProperty("user.home")); in testSystemProperties_mutable() 200 String userDir = System.getProperty("user.dir"); in testSystemProperties_setProperties_null() 210 assertEquals(userDir, System.getProperty("user.dir")); in testSystemProperties_setProperties_null() [all …]
|
D | OldSystemTest.java | 192 + 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/ |
D | Support_SQL.java | 56 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/ |
D | NetProperties.java | 60 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/ |
D | PropertiesTest.java | 93 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/ |
D | DoPrivilegedBenchmark.java | 25 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/ |
D | OldFileTest.java | 32 + 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()
|
D | OldFileReaderTest.java | 29 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()
|
D | OldFileWriterTest.java | 40 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/ |
D | SystemTest.java | 141 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/benchmarks/src/benchmarks/ |
D | GetSystemPropertyBenchmark.java | 36 System.getProperty("user.language", "en"); in timeSystem_getProperty_default() 42 System.getProperty("user.region"); in timeSystem_getProperty()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 94 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/ojluni/src/main/java/sun/misc/ |
D | Version.java | 85 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()
|
D | MessageUtils.java | 82 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()
|
D | VM.java | 263 return savedProps.getProperty(key); in getSavedProperty() 306 s = props.getProperty("sun.lang.ClassLoader.allowArraySyntax"); in saveAndRemoveProperties()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 59 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/ |
D | LogManager.java | 186 cname = System.getProperty("java.util.logging.manager"); 853 if (owner.getProperty(pname + ".level") != null || in processParentHandlers() 854 owner.getProperty(pname + ".handlers") != null) { in processParentHandlers() 950 String levs = getProperty(word + ".level"); in loadLoggerHandlers() 1250 String cname = System.getProperty("java.util.logging.config.class"); in readConfiguration() 1266 String fname = System.getProperty("java.util.logging.config.file"); in readConfiguration() 1268 fname = System.getProperty("java.home"); in readConfiguration() 1361 String hands = getProperty(propertyName); in parseClassNames() 1463 public String getProperty(String name) { in getProperty() method in LogManager 1464 return props.getProperty(name); in getProperty() [all …]
|
D | LoggingProxyImpl.java | 114 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/ |
D | SSLContextSpiTest.java | 157 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/ |
D | SAXParserImpl.java | 80 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/ |
D | XPathFactoryFinder.java | 53 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/ |
D | SchemaFactoryFinder.java | 60 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/ |
D | System.java | 1082 final String locale = getProperty("user.locale", ""); in addLegacyLocaleSystemProperties() 1093 final String language = getProperty("user.language", ""); in addLegacyLocaleSystemProperties() 1094 final String region = getProperty("user.region", ""); in addLegacyLocaleSystemProperties() 1237 public static String getProperty(String key) { in getProperty() method in System 1244 return props.getProperty(key); in getProperty() 1273 public static String getProperty(String key, String def) { in getProperty() method in System 1280 return props.getProperty(key, def); in getProperty() 1709 lineSeparator = props.getProperty("line.separator"); 1718 out = newPrintStream(fdOut, props.getProperty("sun.stdout.encoding")); 1719 err = newPrintStream(fdErr, props.getProperty("sun.stderr.encoding"));
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ClassLoaderDalvik.java | 35 tmp = new File(System.getProperty("java.io.tmpdir"), "dex-cache");
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLServerSocketFactoryTest.java | 87 String origProvider = Security.getProperty(SSL_PROPERTY); in resetSslProvider() 101 assertNull(Security.getProperty(SSL_PROPERTY)); in resetSslProvider()
|