Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 29) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java126 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/
DOldMemoryHandlerTest.java36 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()
DOldLogManagerTest.java39 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 …]
DOldFileHandlerTest.java42 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/
DVM.java275 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/
DDefaultProxySelector.java76 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/
DNetProperties.java42 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/
DXMLUtils.java70 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/
DURLConnection.java120 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/
DSystem.c47 #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/sun/nio/fs/
DUnixFileStore.java210 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/
DOldSystemTest.java175 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/lang/
DSystem.java930 private static Properties props; field in System
1174 return props; in getProperties()
1201 public static void setProperties(Properties props) { in setProperties() argument
1203 if (props != null) { in setProperties()
1204 baseProperties.putAll(props); in setProperties()
1209 System.props = baseProperties; in setProperties()
1245 return props.getProperty(key); in getProperty()
1281 return props.getProperty(key, def); in getProperty()
1321 return (String) props.setProperty(key, value); in setProperty()
1358 return (String) props.remove(key); in clearProperty()
[all …]
/libcore/ojluni/src/main/java/java/security/
DSecurity.java61 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()
136props.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/
DOldDriverPropertyInfoTest.java51 Properties props = new Properties(); in testPublicFields() local
54 props); in testPublicFields()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DSystemTest.java131 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/
DHijrahChronology.java879 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/
DLocalGregorianCalendar.java128 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/
DVM.java103 public static void saveAndRemoveProperties(java.util.Properties props) { in saveAndRemoveProperties() argument
/libcore/ojluni/annotations/hiddenapi/java/lang/
DSystem.java183 public static void setProperties(java.util.Properties props) { in setProperties() argument
323 private static java.util.Properties props; field in System
/libcore/luni/src/test/java/libcore/java/net/
DOldServerSocketTest.java201 Properties props = (Properties) System.getProperties().clone(); in test_ConstructorI_SocksSet() local
207 System.setProperties(props); in test_ConstructorI_SocksSet()
/libcore/ojluni/annotations/mmodule/java/lang/
DSystem.annotated.java67 public static void setProperties(java.util.Properties props) { throw new RuntimeException("Stub!");… in setProperties() argument
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java155 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/
DSystem.annotated.java67 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/
DX509Key.java235 Properties props; in buildX509Key() local

12