/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | PropertiesTest.java | 126 MyProperties props = new MyProperties(); in test_getPropertyLjava_lang_String2() local 127 assertNull(props.getProperty("key")); in test_getPropertyLjava_lang_String2() 136 MyProperties props = new MyProperties(); in test_getPropertyLjava_lang_StringLjava_lang_String2() local 137 assertEquals("defaultValue", props.getProperty("key", "defaultValue")); in test_getPropertyLjava_lang_StringLjava_lang_String2() 286 Properties props = new Properties(); in test_loadLjava_io_InputStream_subtest0() local 287 props.load(is); in test_loadLjava_io_InputStream_subtest0() 289 assertEquals("1", "\n \t \f", props.getProperty(" \r")); in test_loadLjava_io_InputStream_subtest0() 290 assertEquals("2", "a", props.getProperty("a")); in test_loadLjava_io_InputStream_subtest0() 291 assertEquals("3", "bb as,dn ", props.getProperty("b")); in test_loadLjava_io_InputStream_subtest0() 292 assertEquals("4", ":: cu", props.getProperty("c\r \t\nu")); in test_loadLjava_io_InputStream_subtest0() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldMemoryHandlerTest.java | 36 final static Properties props = new Properties(); field in OldMemoryHandlerTest 44 manager.readConfiguration(propertiesToInputStream(props)); in setUp() 51 props.clear(); in tearDown() 61 props.put("java.util.logging.MemoryHandler.level", "FINE"); in initProps() 62 props.put("java.util.logging.MemoryHandler.filter", baseClassName + "$MockFilter"); in initProps() 63 props.put("java.util.logging.MemoryHandler.size", "2"); in initProps() 64 props.put("java.util.logging.MemoryHandler.push", "WARNING"); in initProps() 65 props.put("java.util.logging.MemoryHandler.target", baseClassName + "$MockHandler"); in initProps() 66 props.put("java.util.logging.MemoryHandler.formatter", baseClassName + "$MockFormatter"); in initProps()
|
D | OldLogManagerTest.java | 39 Properties props; field in OldLogManagerTest 49 props = new Properties(); in setUp() 50 props.put("handlers", className + "$MockHandler " + className + "$MockHandler"); in setUp() 51 props.put("java.util.logging.FileHandler.pattern", "%h/java%u.log"); in setUp() 52 props.put("java.util.logging.FileHandler.limit", "50000"); in setUp() 53 props.put("java.util.logging.FileHandler.count", "5"); in setUp() 54 props.put("java.util.logging.FileHandler.formatter", "java.util.logging.XMLFormatter"); in setUp() 55 props.put(".level", "FINE"); in setUp() 56 props.put("java.util.logging.ConsoleHandler.level", "OFF"); in setUp() 57 props.put("java.util.logging.ConsoleHandler.formatter","java.util.logging.SimpleFormatter"); in setUp() [all …]
|
D | OldFileHandlerTest.java | 42 final static Properties props = new Properties(); field in OldFileHandlerTest 55 props.clear(); in setUp() 56 props.put("java.util.logging.FileHandler.level", "FINE"); in setUp() 57 props.put("java.util.logging.FileHandler.filter", className in setUp() 59 props.put("java.util.logging.FileHandler.formatter", className in setUp() 61 props.put("java.util.logging.FileHandler.encoding", "iso-8859-1"); in setUp() 63 props.put("java.util.logging.FileHandler.limit", "1000"); in setUp() 65 props.put("java.util.logging.FileHandler.count", "2"); in setUp() 67 props.put("java.util.logging.FileHandler.append", "true"); in setUp() 68 props.put("java.util.logging.FileHandler.pattern", in setUp() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | VM.java | 275 public static void saveAndRemoveProperties(Properties props) { in saveAndRemoveProperties() argument 279 savedProps.putAll(props); in saveAndRemoveProperties() 286 String s = (String)props.remove("sun.nio.MaxDirectMemorySize"); in saveAndRemoveProperties() 299 s = (String)props.remove("sun.nio.PageAlignDirectMemory"); in saveAndRemoveProperties() 306 s = props.getProperty("sun.lang.ClassLoader.allowArraySyntax"); in saveAndRemoveProperties() 313 props.remove("java.lang.Integer.IntegerCache.high"); in saveAndRemoveProperties() 316 props.remove("sun.zip.disableMemoryMapping"); in saveAndRemoveProperties() 319 props.remove("sun.java.launcher.diag"); in saveAndRemoveProperties() 322 props.remove("sun.cds.enableSharedLookupCache"); in saveAndRemoveProperties()
|
/libcore/ojluni/src/main/java/sun/net/spi/ |
D | DefaultProxySelector.java | 76 final static String[][] props = { field in DefaultProxySelector 228 for (i=0; i<props.length; i++) { in select() 229 if (props[i][0].equalsIgnoreCase(proto)) { in select() 230 for (j = 1; j < props[i].length; j++) { in select() 235 phost = NetProperties.get(props[i][j]+"Host"); in select() 294 pport = NetProperties.getInteger(props[i][j]+"Port", 0).intValue(); in select() 295 if (pport == 0 && j < (props[i].length - 1)) { in select() 299 for (int k = 1; k < (props[i].length - 1); k++) { in select() 301 … pport = NetProperties.getInteger(props[i][k]+"Port", 0).intValue(); in select() 307 if (j == (props[i].length - 1)) // SOCKS in select() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ |
D | NetProperties.java | 42 static private Properties props = new Properties(); field in NetProperties 70 props.load(bin); in loadDefaultProperties() 90 String def = props.getProperty(key); 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/main/java/java/util/ |
D | XMLUtils.java | 70 static void load(Properties props, InputStream in) in load() argument 87 importProperties(props, propertiesElement); in load() 112 static void importProperties(Properties props, Element propertiesElement) { in importProperties() argument 126 props.setProperty(entry.getAttribute("key"), val); in importProperties() 131 static void save(Properties props, OutputStream os, String comment, in save() argument 152 synchronized (props) { in save() 153 for (String key : props.stringPropertyNames()) { in save() 157 entry.appendChild(doc.createTextNode(props.getProperty(key))); in save()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | URLConnection.java | 120 MessageHeader props = properties; in getHeaderFieldKey() local 121 return props == null ? null : props.getKey(n); in getHeaderFieldKey() 135 MessageHeader props = properties; in getHeaderField() local 136 return props == null ? null : props.getValue(n); in getHeaderField()
|
/libcore/ojluni/src/main/native/ |
D | System.c | 47 #define PUTPROP(props, key, val) \ argument 51 jobject r = (*env)->CallObjectMethod(env, props, putID, jkey, jval); \ 61 #define PUTPROP_ForPlatformNString(props, key, val) \ argument 65 jobject r = (*env)->CallObjectMethod(env, props, putID, jkey, jval); \ 71 #define REMOVEPROP(props, key) \ argument 74 jobject r = (*env)->CallObjectMethod(env, props, removeID, jkey); \ 79 #define GETPROP(props, key, jret) \ argument 82 (jret) = (*env)->CallObjectMethod(env, props, getPropID, jkey); \
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 925 private static Properties props; field in System 1162 return props; in getProperties() 1189 public static void setProperties(Properties props) { in setProperties() argument 1191 if (props != null) { in setProperties() 1192 baseProperties.putAll(props); in setProperties() 1197 System.props = baseProperties; in setProperties() 1233 return props.getProperty(key); in getProperty() 1269 return props.getProperty(key, def); in getProperty() 1309 return (String) props.setProperty(key, value); in setProperty() 1346 return (String) props.remove(key); in clearProperty() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileStore.java | 210 private static volatile Properties props; field in UnixFileStore 222 if (props == null) { in checkIfFeaturePresent() 224 if (props == null) { in checkIfFeaturePresent() 225 props = AccessController.doPrivileged( in checkIfFeaturePresent() 235 String value = props.getProperty(type()); in checkIfFeaturePresent()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldSystemTest.java | 175 String [] props = {"java.vendor.url", in test_getProperties() local 190 for (String prop : props) { in test_getProperties() 265 String[] props = { "PATH" }; in test_getenv() local 270 props.length < envMap.keySet().size()); in test_getenv() 271 for (String prop : props) { in test_getenv()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Security.java | 61 private static final Properties props; field in Security 88 props = new Properties(); 101 props.load(is); 134 props.put("security.provider.1", "com.android.org.conscrypt.OpenSSLProvider"); in initializeStatic() 135 props.put("security.provider.2", "sun.security.provider.CertPathProvider"); in initializeStatic() 136 …props.put("security.provider.3", "com.android.org.bouncycastle.jce.provider.BouncyCastleProvider"); in initializeStatic() 137 props.put("security.provider.4", "com.android.org.conscrypt.JSSEProvider"); in initializeStatic() 696 String name = props.getProperty(key); in getProperty() 727 props.put(key, datum); in setProperty()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldDriverPropertyInfoTest.java | 51 Properties props = new Properties(); in testPublicFields() local 54 props); in testPublicFields()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | SystemTest.java | 131 String[] props = { "java.version", "java.vendor", "java.vendor.url", in test_getProperties() local 140 for (int i = 0; i < props.length; i++) { in test_getProperties() 141 assertNotNull(props[i], System.getProperty(props[i])); in test_getProperties()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | HijrahChronology.java | 879 Properties props = new Properties(); in readConfigProperties() local 881 props.load(is); in readConfigProperties() 883 return props; in readConfigProperties() 901 Properties props = readConfigProperties(resourceName); in loadCalendarData() local 910 for (Map.Entry<Object, Object> entry : props.entrySet()) { in loadCalendarData()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | LocalGregorianCalendar.java | 128 String props = calendarProps.getProperty("calendar." + name + ".eras"); in getLocalGregorianCalendar() local 129 if (props == null) { in getLocalGregorianCalendar() 133 StringTokenizer eraTokens = new StringTokenizer(props, ";"); in getLocalGregorianCalendar()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | VM.java | 103 public static void saveAndRemoveProperties(java.util.Properties props) { in saveAndRemoveProperties() argument
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldServerSocketTest.java | 201 Properties props = (Properties) System.getProperties().clone(); in test_ConstructorI_SocksSet() local 207 System.setProperties(props); in test_ConstructorI_SocksSet()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | System.java | 183 public static void setProperties(java.util.Properties props) { in setProperties() argument 323 private static java.util.Properties props; field in System
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | System.annotated.java | 67 public static void setProperties(java.util.Properties props) { throw new RuntimeException("Stub!");… in setProperties() argument
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | LogManager.java | 155 private volatile Properties props = new Properties(); field in LogManager 1320 props = new Properties(); in reset() 1408 props.load(ins); in readConfiguration() 1464 return props.getProperty(name); in getProperty() 1681 Enumeration<?> enum_ = props.propertyNames(); in setLevelsOnExistingLoggers()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | System.annotated.java | 67 public static void setProperties(@libcore.util.Nullable java.util.Properties props) { throw new Run… in setProperties() argument
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X509Key.java | 235 Properties props; in buildX509Key() local
|