Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 13 of 13) sorted by relevance

/dalvik/libcore/luni/src/test/java/tests/api/java/util/
DPropertiesTest.java205 Properties prop = new Properties(); in test_loadLjava_io_InputStream() local
207 prop.load(is); in test_loadLjava_io_InputStream()
210 assertEquals("Failed to load correct properties", "harmony.tests", prop in test_loadLjava_io_InputStream()
212 assertNull("Load failed to parse incorrectly", prop in test_loadLjava_io_InputStream()
215 prop = new Properties(); in test_loadLjava_io_InputStream()
216 prop.load(new ByteArrayInputStream("=".getBytes())); in test_loadLjava_io_InputStream()
217 assertTrue("Failed to add empty key", prop.get("").equals("")); in test_loadLjava_io_InputStream()
219 prop = new Properties(); in test_loadLjava_io_InputStream()
220 prop.load(new ByteArrayInputStream(" = ".getBytes())); in test_loadLjava_io_InputStream()
221 assertTrue("Failed to add empty key2", prop.get("").equals("")); in test_loadLjava_io_InputStream()
[all …]
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/sampled/
DAudioFileFormat.java30 private HashMap<String, Object> prop; field in AudioFileFormat
57 prop = new HashMap<String, Object>(); in AudioFileFormat()
58 prop.putAll(properties); in AudioFileFormat()
78 if (prop == null) { in properties()
81 return Collections.unmodifiableMap(prop); in properties()
85 if (prop == null) { in getProperty()
88 return prop.get(key); in getProperty()
DAudioFormat.java80 private HashMap<String, Object> prop; field in AudioFormat
116 prop = new HashMap<String, Object>(); in AudioFormat()
117 prop.putAll(properties); in AudioFormat()
170 if (prop != null) { in properties()
171 return Collections.unmodifiableMap(prop); in properties()
178 if (prop == null) { in getProperty()
181 return prop.get(key); in getProperty()
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
DSystem.java411 public static String getProperty(String prop) { in getProperty() argument
412 return getProperty(prop, null); in getProperty()
431 public static String getProperty(String prop, String defaultValue) { in getProperty() argument
432 if (prop.length() == 0) { in getProperty()
437 secMgr.checkPropertyAccess(prop); in getProperty()
440 return internalGetProperties().getProperty(prop, defaultValue); in getProperty()
457 public static String setProperty(String prop, String value) { in setProperty() argument
458 if (prop.length() == 0) { in setProperty()
463 secMgr.checkPermission(new PropertyPermission(prop, "write")); in setProperty()
465 return (String)internalGetProperties().setProperty(prop, value); in setProperty()
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DSignedObjectTest.java89 Properties prop; in testSignedObject() local
103 prop = new Properties(); in testSignedObject()
104 prop.put("aaa", "bbb"); in testSignedObject()
107 so = new SignedObject(prop, tkp.getPrivate(), sig); in testSignedObject()
121 assertEquals(so.getObject(), prop); in testSignedObject() local
145 so = new SignedObject(prop, tkp2.getPrivate(), sig); in testSignedObject()
176 new SignedObject(prop, tkp.getPrivate(), new Signature("TST") { in testSignedObject()
/dalvik/libcore/luni/src/main/java/java/lang/
DLong.java206 String prop = System.getProperty(string); in getLong() local
207 if (prop == null) { in getLong()
211 return decode(prop); in getLong()
235 String prop = System.getProperty(string); in getLong() local
236 if (prop == null) { in getLong()
240 return decode(prop); in getLong()
264 String prop = System.getProperty(string); in getLong() local
265 if (prop == null) { in getLong()
269 return decode(prop); in getLong()
DInteger.java222 String prop = System.getProperty(string); in getInteger() local
223 if (prop == null) { in getInteger()
227 return decode(prop); in getInteger()
251 String prop = System.getProperty(string); in getInteger() local
252 if (prop == null) { in getInteger()
256 return decode(prop); in getInteger()
280 String prop = System.getProperty(string); in getInteger() local
281 if (prop == null) { in getInteger()
285 return decode(prop); in getInteger()
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
DPlainDatagramSocketImpl.java118 …String prop = AccessController.doPrivileged(new PriviAction<String>("bindToDevice")); //$NON-NLS-1$ in bind() local
119 boolean useBindToDevice = prop != null && prop.toLowerCase().equals("true"); //$NON-NLS-1$ in bind()
/dalvik/libcore/xml/src/test/java/tests/api/javax/xml/parsers/
DSAXParserFactoryTest.java194 Properties prop = System.getProperties(); in test_newInstance() local
195 prop.load(bis); in test_newInstance()
DDocumentBuilderFactoryTest.java360 Properties prop = System.getProperties(); in test_newInstance() local
361 prop.load(bis); in test_newInstance()
/dalvik/libcore/security/src/main/java/java/security/
DSecurity.java185 String prop = "Alg." + propName + "." + algName; //$NON-NLS-1$ in getAlgorithmProperty() local
192 if (prop.equalsIgnoreCase(pname)) { in getAlgorithmProperty()
DProvider.java384 String prop = getPropertyIgnoreCase(servAlg); in implementsAlg() local
385 if (prop == null) { in implementsAlg()
389 prop = getPropertyIgnoreCase(serv + "." + alg); //$NON-NLS-1$ in implementsAlg()
392 if (prop != null) { in implementsAlg()
/dalvik/libcore/xml/src/main/java/org/kxml2/io/
DKXmlParser.java106 private final boolean isProp(String n1, boolean prop, String n2) { in isProp() argument
109 if (prop) in isProp()