Home
last modified time | relevance | path

Searched refs:names (Results 1 – 25 of 35) sorted by relevance

12

/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributeListImpl.java140 names.add(name); in addAttribute()
161 int i = names.indexOf(name); in removeAttribute()
163 names.remove(i); in removeAttribute()
181 names.clear(); in clear()
200 return names.size(); in getLength()
213 if (i < 0 || i >= names.size()) { in getName()
216 return names.get(i); in getName()
264 return getType(names.indexOf(name)); in getType()
277 return getValue(names.indexOf(name)); in getValue()
286 private ArrayList<String> names = new ArrayList<String>(); field in AttributeListImpl
DParserAdapter.java619 String names[] = processName(qName, false, false); in endElement() local
621 contentHandler.endElement(names[0], names[1], names[2]); in endElement()
/libcore/luni/src/main/java/org/apache/harmony/security/
DSystemScope.java44 private Hashtable names = new Hashtable(); field in SystemScope
74 return names.size(); in size()
84 return (Identity) names.get(name); in getIdentity()
106 if (names.containsKey(name)) { in addIdentity()
115 names.put(name, identity); in addIdentity()
137 boolean contains = names.containsKey(name); in removeIdentity()
138 names.remove(name); in removeIdentity()
156 return names.elements(); in identities()
/libcore/expectations/
Dbrokentests.txt17 names: [
52 names: [
68 names: [
79 names: [
88 names: [
96 names: [
103 names: [
114 names: [
125 names: [
133 names: [
[all …]
Dknownfailures.txt47 names: [
61 names: [
100 names: [
132 names: [
150 names: [
169 names: [
180 names: [
198 names: [
206 names: [
223 names: [
[all …]
Dtaggedtests.txt9 names: [
/libcore/luni/src/main/native/
Dlibcore_icu_TimeZoneNames.cpp70 UniquePtr<TimeZoneNames> names(TimeZoneNames::createInstance(icuLocale.locale(), status)); in TimeZoneNames_fillZoneStrings() local
91 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_STANDARD, now, long_std); in TimeZoneNames_fillZoneStrings()
93 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_STANDARD, now, short_std); in TimeZoneNames_fillZoneStrings()
95 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_DAYLIGHT, now, long_dst); in TimeZoneNames_fillZoneStrings()
97 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_DAYLIGHT, now, short_dst); in TimeZoneNames_fillZoneStrings()
126 UniquePtr<TimeZoneNames> names(TimeZoneNames::createInstance(icuLocale.locale(), status)); in TimeZoneNames_getExemplarLocation() local
138 names->getDisplayName(tz.unicodeString(), UTZNM_EXEMPLAR_LOCATION, now, s); in TimeZoneNames_getExemplarLocation()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DFilePreferencesImplTest.java53 String[] names = uroot.keys(); in testPutGet() local
54 assertEquals(1, names.length); in testPutGet()
60 names = uroot.keys(); in testPutGet()
61 assertEquals(3, names.length); in testPutGet()
65 names = uroot.keys(); in testPutGet()
66 assertEquals(0, names.length); in testPutGet()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DSecretKeyFactoryThread.java26 SecretKeyFactoryThread(String[] names) { in SecretKeyFactoryThread() argument
27 super(names); in SecretKeyFactoryThread()
DMacThread.java22 MacThread(String[] names) { in MacThread() argument
23 super(names); in MacThread()
DTestThread.java26 TestThread(String[] names) { in TestThread() argument
27 algNamesArray = names; in TestThread()
DKeyGeneratorThread.java26 KeyGeneratorThread(String[] names) { in KeyGeneratorThread() argument
27 super(names); in KeyGeneratorThread()
DKeyAgreementThread.java63 public KeyAgreementThread(String[] names) { in KeyAgreementThread() argument
64 super(names); in KeyAgreementThread()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DNameConstraints.java171 List<GeneralName> names; in isAcceptable() local
173 names = (bytes == null) in isAcceptable()
183 names.add(new GeneralName(4, in isAcceptable()
189 return isAcceptable(names); in isAcceptable()
196 public boolean isAcceptable(List<GeneralName> names) { in isAcceptable() argument
207 for (GeneralName name : names) { in isAcceptable()
/libcore/luni/src/main/java/java/security/cert/
DX509CRLSelector.java103 public void setIssuerNames(Collection<?> names) throws IOException { in setIssuerNames() argument
104 if (names == null) { in setIssuerNames()
109 if (names.size() == 0) { in setIssuerNames()
112 issuerNames = new ArrayList<String>(names.size()); in setIssuerNames()
113 for (Object name: names) { in setIssuerNames()
DX509CertSelector.java661 public void setSubjectAlternativeNames(Collection<List<?>> names) throws IOException { in setSubjectAlternativeNames() argument
663 if ((names == null) || (names.size() == 0)) { in setSubjectAlternativeNames()
666 for (List<?> name : names) { in setSubjectAlternativeNames()
928 public void setPathToNames(Collection<List<?>> names) throws IOException { in setPathToNames() argument
930 if ((names == null) || (names.size() == 0)) { in setPathToNames()
933 for (List<?> name : names) { in setPathToNames()
1056 List<GeneralName> names = subjectAltNames[i]; in toString() local
1057 if (names != null) { in toString()
1058 int size = names.size(); in toString()
1059 for (GeneralName generalName : names) { in toString()
/libcore/luni/src/main/java/java/util/prefs/
DFilePreferencesImpl.java95 String[] names = dir.list(new FilenameFilter() { in childrenNamesSpi() local
100 if (names == null) {// file is not a directory, exception case in childrenNamesSpi()
104 return names; in childrenNamesSpi()
DXMLParser.java198 String[] names = prefs.childrenNames(); in exportSubTree() local
199 if (names.length > 0) { in exportSubTree()
200 for (int i = 0; i < names.length; i++) { in exportSubTree()
201 Preferences child = prefs.node(names[i]); in exportSubTree()
202 flushStartTag("node", new String[] { "name" }, new String[] { names[i] }, out); in exportSubTree()
DAbstractPreferences.java355 String[] names = childrenNamesSpi(); in childrenNames() local
356 for (int i = 0; i < names.length; i++) { in childrenNames()
357 result.add(names[i]); in childrenNames()
561 String[] names = path.split("/"); in nodeImpl() local
564 for (String name : names) { in nodeImpl()
/libcore/json/src/test/java/org/json/
DJSONObjectTest.java44 assertNull(object.names()); in testEmptyObject()
533 JSONArray names = new JSONArray(); in testToJSONArray() local
534 names.put("baz"); in testToJSONArray()
535 names.put("quux"); in testToJSONArray()
536 names.put("foo"); in testToJSONArray()
538 JSONArray array = object.toJSONArray(names); in testToJSONArray()
553 JSONArray names = new JSONArray(); in testToJSONArrayMissingNames() local
554 names.put("bar"); in testToJSONArrayMissingNames()
555 names.put("foo"); in testToJSONArrayMissingNames()
556 names.put("quux"); in testToJSONArrayMissingNames()
[all …]
/libcore/json/src/main/java/org/json/
DJSONObject.java181 public JSONObject(JSONObject copyFrom, String[] names) throws JSONException { in JSONObject() argument
183 for (String name : names) { in JSONObject()
631 public JSONArray toJSONArray(JSONArray names) throws JSONException { in toJSONArray() argument
633 if (names == null) { in toJSONArray()
636 int length = names.length(); in toJSONArray()
641 String name = JSON.toString(names.opt(i)); in toJSONArray()
676 public JSONArray names() { in names() method in JSONObject
DJSONArray.java545 public JSONObject toJSONObject(JSONArray names) throws JSONException { in toJSONObject() argument
547 int length = Math.min(names.length(), values.size()); in toJSONObject()
552 String name = JSON.toString(names.opt(i)); in toJSONObject()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DReflectionTest.java265 assertTrue(names(fields).contains("field")); in testGetFieldsViaExtendsThenImplements()
270 assertTrue(names(fields).contains("field")); in testGetFieldsViaImplementsThenExtends()
285 assertTrue(names(methods).contains("method")); in testGetMethodsViaExtendsThenImplements()
290 assertTrue(names(methods).contains("method")); in testGetMethodsViaImplementsThenExtends()
295 assertEquals(1, count(names(methods), "method")); in testGetMethodsContainsNoDuplicates()
300 assertEquals(1, count(names(fields), "field")); in testGetFieldsContainsNoDuplicates()
405 private List<String> names(Member[] methods) { in names() method in ReflectionTest
/libcore/luni/src/main/java/java/util/logging/
DLogManager.java426 Enumeration<String> names = getLoggerNames(); in reset() local
427 while (names.hasMoreElements()) { in reset()
428 String name = names.nextElement(); in reset()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java903 Enumeration<?> names = parent.propertyNames(); in test_propertyNames() local
904 assertPropertyEnumeration(names, "parent.a.key", "parent.b.key"); in test_propertyNames()
910 names = current.propertyNames(); in test_propertyNames()
911 assertPropertyEnumeration(names, in test_propertyNames()
921 names = child.propertyNames(); in test_propertyNames()
922 assertPropertyEnumeration(names, in test_propertyNames()

12