Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 999) sorted by relevance

12345678910>>...40

/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixUserPrincipals.java37 private static User createSpecial(String name) { return new User(-1, name); } in createSpecial() argument
46 private final String name; field in UnixUserPrincipals.User
48 private User(int id, boolean isGroup, String name) { in User() argument
51 this.name = name; in User()
54 User(int id, String name) { in User() argument
55 this(id, false, name); in User()
76 return name; in getName()
81 return name; in toString()
97 return this.name.equals(other.name); in equals()
104 return (id != -1) ? id : name.hashCode(); in hashCode()
[all …]
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java50 abstract Object create(Object name); in create() argument
59 abstract boolean hasName(Object ob, Object name); in hasName() argument
61 Object forName(Object name) { in forName() argument
71 if (hasName(ob, name)) { in forName()
80 Object ob = create(name); in forName()
89 boolean hasName(Object ob, Object name) {
90 if (name instanceof String)
91 return (((CharsetDecoder)ob).charset().name().equals(name));
92 if (name instanceof Charset)
93 return ((CharsetDecoder)ob).charset().equals(name);
[all …]
/libcore/json/src/main/java/org/json/
DJSONObject.java195 for (String name : names) { in JSONObject()
196 Object value = copyFrom.opt(name); in JSONObject()
198 nameValuePairs.put(name, value); in JSONObject()
216 @NonNull public JSONObject put(@NonNull String name, boolean value) throws JSONException { in put() argument
217 nameValuePairs.put(checkName(name), value); in put()
229 @NonNull public JSONObject put(@NonNull String name, double value) throws JSONException { in put() argument
230 nameValuePairs.put(checkName(name), JSON.checkDouble(value)); in put()
240 @NonNull public JSONObject put(@NonNull String name, int value) throws JSONException { in put() argument
241 nameValuePairs.put(checkName(name), value); in put()
251 @NonNull public JSONObject put(@NonNull String name, long value) throws JSONException { in put() argument
[all …]
/libcore/ojluni/src/main/java/java/lang/
DClassLoader.java311 public Class<?> loadClass(String name) throws ClassNotFoundException { in loadClass() argument
312 return loadClass(name, false); in loadClass()
359 protected Class<?> loadClass(String name, boolean resolve) in loadClass() argument
363 Class<?> c = findLoadedClass(name); in loadClass()
367 c = parent.loadClass(name, false); in loadClass()
369 c = findBootstrapClassOrNull(name); in loadClass()
379 c = findClass(name); in loadClass()
404 protected Class<?> findClass(String name) throws ClassNotFoundException { in findClass() argument
405 throw new ClassNotFoundException(name); in findClass()
514 protected final Class<?> defineClass(String name, byte[] b, int off, int len) in defineClass() argument
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DDNSName.java52 private String name; field in DNSName
65 name = derValue.getIA5String(); in DNSName()
74 public DNSName(String name) throws IOException { in DNSName() argument
75 if (name == null || name.length() == 0) in DNSName()
77 if (name.indexOf(' ') != -1) in DNSName()
79 if (name.charAt(0) == '.' || name.charAt(name.length() -1) == '.') in DNSName()
84 for (int endIndex,startIndex=0; startIndex < name.length(); startIndex = endIndex+1) { in DNSName()
85 endIndex = name.indexOf('.', startIndex); in DNSName()
87 endIndex = name.length(); in DNSName()
93 if (alpha.indexOf(name.charAt(startIndex)) < 0) in DNSName()
[all …]
DRFC822Name.java45 private String name; field in RFC822Name
54 name = derValue.getIA5String(); in RFC822Name()
55 parseName(name); in RFC822Name()
64 public RFC822Name(String name) throws IOException { in RFC822Name() argument
65 parseName(name); in RFC822Name()
66 this.name = name; in RFC822Name()
81 public void parseName(String name) throws IOException { in parseName() argument
82 if (name == null || name.length() == 0) { in parseName()
86 String domain = name.substring(name.indexOf('@')+1); in parseName()
110 return name; in getName()
[all …]
DGeneralName.java55 private GeneralNameInterface name = null; field in GeneralName
63 public GeneralName(GeneralNameInterface name) { in GeneralName() argument
64 if (name == null) { in GeneralName()
67 this.name = name; in GeneralName()
95 name = new OtherName(encName); in GeneralName()
104 name = new RFC822Name(encName); in GeneralName()
113 name = new DNSName(encName); in GeneralName()
122 name = (nameConstraint ? URIName.nameConstraint(encName) : in GeneralName()
132 name = new IPAddressName(encName); in GeneralName()
141 name = new OIDName(encName); in GeneralName()
[all …]
DKeyUsageExtension.java188 public void set(String name, Object obj) throws IOException { in set() argument
193 if (name.equalsIgnoreCase(DIGITAL_SIGNATURE)) { in set()
195 } else if (name.equalsIgnoreCase(NON_REPUDIATION)) { in set()
197 } else if (name.equalsIgnoreCase(KEY_ENCIPHERMENT)) { in set()
199 } else if (name.equalsIgnoreCase(DATA_ENCIPHERMENT)) { in set()
201 } else if (name.equalsIgnoreCase(KEY_AGREEMENT)) { in set()
203 } else if (name.equalsIgnoreCase(KEY_CERTSIGN)) { in set()
205 } else if (name.equalsIgnoreCase(CRL_SIGN)) { in set()
207 } else if (name.equalsIgnoreCase(ENCIPHER_ONLY)) { in set()
209 } else if (name.equalsIgnoreCase(DECIPHER_ONLY)) { in set()
[all …]
DIPAddressName.java73 private String name; field in IPAddressName
126 public IPAddressName(String name) throws IOException { in IPAddressName() argument
128 if (name == null || name.length() == 0) { in IPAddressName()
131 if (name.charAt(name.length() - 1) == '/') { in IPAddressName()
132 throw new IOException("Invalid IPAddress: " + name); in IPAddressName()
135 if (name.indexOf(':') >= 0) { in IPAddressName()
139 parseIPv6(name); in IPAddressName()
141 } else if (name.indexOf('.') >= 0) { in IPAddressName()
143 parseIPv4(name); in IPAddressName()
146 throw new IOException("Invalid IPAddress: " + name); in IPAddressName()
[all …]
DGeneralSubtree.java50 private GeneralName name; field in GeneralSubtree
63 public GeneralSubtree(GeneralName name, int min, int max) { in GeneralSubtree() argument
64 this.name = name; in GeneralSubtree()
78 name = new GeneralName(val.data.getDerValue(), true); in GeneralSubtree()
105 return name; in getName()
131 " GeneralName: " + ((name == null) ? "" : name.toString()) + in toString()
151 if (this.name == null) { in equals()
152 if (otherGS.name != null) { in equals()
156 if (!((this.name).equals(otherGS.name))) in equals()
174 if (name != null) { in hashCode()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DLevel.java72 private final String name; field in Level
191 protected Level(String name, int value) { in Level() argument
192 this(name, value, null); in Level()
206 protected Level(String name, int value, String resourceBundleName) { in Level() argument
207 this(name, value, resourceBundleName, true); in Level()
212 private Level(String name, int value, String resourceBundleName, boolean visible) { in Level() argument
213 if (name == null) { in Level()
216 this.name = name; in Level()
219 this.localizedLevelName = resourceBundleName == null ? name : null; in Level()
242 return name; in getName()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DDocumentBuilderFactoryImpl.java38 public Object getAttribute(String name) throws IllegalArgumentException { in getAttribute() argument
39 throw new IllegalArgumentException(name); in getAttribute()
43 public boolean getFeature(String name) throws ParserConfigurationException { in getFeature() argument
44 if (name == null) { in getFeature()
48 if (NAMESPACES.equals(name)) { in getFeature()
50 } else if (VALIDATION.equals(name)) { in getFeature()
53 throw new ParserConfigurationException(name); in getFeature()
84 public void setAttribute(String name, Object value) in setAttribute() argument
86 throw new IllegalArgumentException(name); in setAttribute()
90 public void setFeature(String name, boolean value) in setFeature() argument
[all …]
/libcore/ojluni/src/main/java/java/util/jar/
DAttributes.java96 public Object get(Object name) { in get() argument
97 return map.get(name); in get()
115 public String getValue(String name) { in getValue() argument
116 return (String)get(new Attributes.Name(name)); in getValue()
132 public String getValue(Name name) { in getValue() argument
133 return (String)get(name); in getValue()
147 public Object put(Object name, Object value) { in put() argument
148 return map.put((Attributes.Name)name, (String)value); in put()
167 public String putValue(String name, String value) { in putValue() argument
168 return (String)put(new Name(name), value); in putValue()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/
DLinkPermission.java68 private void checkName(String name) { in checkName() argument
69 if (!name.equals("hard") && !name.equals("symbolic")) { in checkName()
70 throw new IllegalArgumentException("name: " + name); in checkName()
83 public LinkPermission(String name) { in LinkPermission() argument
84 super(name); in LinkPermission()
85 checkName(name); in LinkPermission()
100 public LinkPermission(String name, String actions) { in LinkPermission() argument
101 super(name); in LinkPermission()
102 checkName(name); in LinkPermission()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatReader.java75 public boolean getFeature(String name) in getFeature() argument
77 if (name == null) { in getFeature()
81 if (name.equals(Feature.VALIDATION) in getFeature()
82 || name.equals(Feature.EXTERNAL_GENERAL_ENTITIES) in getFeature()
83 || name.equals(Feature.EXTERNAL_PARAMETER_ENTITIES)) { in getFeature()
87 if (name.equals(Feature.NAMESPACES)) { in getFeature()
91 if (name.equals(Feature.NAMESPACE_PREFIXES)) { in getFeature()
95 if (name.equals(Feature.STRING_INTERNING)) { in getFeature()
99 throw new SAXNotRecognizedException(name); in getFeature()
102 public void setFeature(String name, boolean value) in setFeature() argument
[all …]
/libcore/ojluni/src/main/java/java/beans/
DChangeListenerMap.java68 protected abstract L newProxy(String name, L listener); in newProxy() argument
77 public final synchronized void add(String name, L listener) { in add() argument
81 L[] array = this.map.get(name); in add()
91 this.map.put(name, clone); in add()
102 public final synchronized void remove(String name, L listener) { in remove() argument
104 L[] array = this.map.get(name); in remove()
113 this.map.put(name, clone); in remove()
116 this.map.remove(name); in remove()
134 public final synchronized L[] get(String name) { in get() argument
136 ? this.map.get(name) in get()
[all …]
/libcore/luni/src/test/resources/out_dh/
Dstaff.out45name$name^$position$position^$salary$salary^$gender$gender^$address$address^$employee$employee^$em…
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DSystemScope.java60 public SystemScope(String name) { in SystemScope() argument
61 super(name); in SystemScope()
67 public SystemScope(String name, IdentityScope scope) in SystemScope() argument
69 super(name, scope); in SystemScope()
82 public synchronized Identity getIdentity(String name) { in getIdentity() argument
83 if (name == null) { in getIdentity()
86 return (Identity) names.get(name); in getIdentity()
107 String name = identity.getName(); in addIdentity() local
108 if (names.containsKey(name)) { in addIdentity()
109 throw new KeyManagementException("name '" + name + "' is already used"); in addIdentity()
[all …]
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java174 public static <T> void setOption(Socket s, SocketOption<T> name, T value) throws IOException in setOption() argument
176 if (!isSupported(Socket.class, name)) { in setOption()
177 throw new UnsupportedOperationException(name.name()); in setOption()
179 invokeSet(siSetOption, s, name, value); in setOption()
202 public static <T> T getOption(Socket s, SocketOption<T> name) throws IOException in getOption() argument
204 if (!isSupported(Socket.class, name)) { in getOption()
205 throw new UnsupportedOperationException(name.name()); in getOption()
207 return invokeGet(siGetOption, s, name); in getOption()
232 … public static <T> void setOption(ServerSocket s, SocketOption<T> name, T value) throws IOException in setOption() argument
234 if (!isSupported(ServerSocket.class, name)) { in setOption()
[all …]
/libcore/luni/src/main/java/javax/xml/validation/
DValidatorHandler.java349 …public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException { in getFeature() argument
350 if (name == null) { in getFeature()
353 throw new SAXNotRecognizedException(name); in getFeature()
384 …public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupport… in setFeature() argument
385 if (name == null) { in setFeature()
388 throw new SAXNotRecognizedException(name); in setFeature()
415 …public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSuppor… in setProperty() argument
416 if (name == null) { in setProperty()
419 throw new SAXNotRecognizedException(name); in setProperty()
448 …public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { in getProperty() argument
[all …]
DValidator.java341 …public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException { in getFeature() argument
342 if (name == null) { in getFeature()
345 throw new SAXNotRecognizedException(name); in getFeature()
376 …public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupport… in setFeature() argument
377 if (name == null) { in setFeature()
380 throw new SAXNotRecognizedException(name); in setFeature()
406 …public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSuppor… in setProperty() argument
407 if (name == null) { in setProperty()
410 throw new SAXNotRecognizedException(name); in setProperty()
439 …public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { in getProperty() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMockHandler.java53 public void endElement(String name) throws SAXException { in endElement() argument
54 logger.add("endElement", name); in endElement()
57 public void endElement(String uri, String localName, String name) throws SAXException { in endElement() argument
58 logger.add("endElement", uri, localName, name); in endElement()
77 public void notationDecl(String name, String publicId, String systemId) throws SAXException { in notationDecl() argument
78 logger.add("notationDecl", name, publicId, systemId); in notationDecl()
89 public void skippedEntity(String name) throws SAXException { in skippedEntity() argument
90 logger.add("skippedEntity", name); in skippedEntity()
97 public void startElement(String name, AttributeList atts) throws SAXException { in startElement() argument
98 logger.add("startElement", name, atts); in startElement()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java78 public static <T> OfRef<T> ofArray(String name, T[] array) { in ofArray() argument
79 …return new AbstractTestData.RefTestData<>(name, array, Arrays::stream, a -> Arrays.stream(a).paral… in ofArray()
83 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { in ofCollection() argument
84 …return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parall… in ofCollection()
88 public static <T> OfRef<T> ofSpinedBuffer(String name, SpinedBuffer<T> buffer) { in ofSpinedBuffer() argument
89 return new AbstractTestData.RefTestData<>(name, buffer, in ofSpinedBuffer()
96 public static <T> OfRef<T> ofSupplier(String name, Supplier<Stream<T>> supplier) { in ofSupplier() argument
97 return new AbstractTestData.RefTestData<>(name, supplier, in ofSupplier()
104 public static <T> OfRef<T> ofRefNode(String name, Node<T> node) { in ofRefNode() argument
105 return new AbstractTestData.RefTestData<>(name, node, in ofRefNode()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java79 public static <T> OfRef<T> ofArray(String name, T[] array) { in ofArray() argument
80 …return new AbstractTestData.RefTestData<>(name, array, Arrays::stream, a -> Arrays.stream(a).paral… in ofArray()
84 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { in ofCollection() argument
85 …return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parall… in ofCollection()
89 public static <T> OfRef<T> ofSpinedBuffer(String name, SpinedBuffer<T> buffer) { in ofSpinedBuffer() argument
90 return new AbstractTestData.RefTestData<>(name, buffer, in ofSpinedBuffer()
97 public static <T> OfRef<T> ofSupplier(String name, Supplier<Stream<T>> supplier) { in ofSupplier() argument
98 return new AbstractTestData.RefTestData<>(name, supplier, in ofSupplier()
105 public static <T> OfRef<T> ofRefNode(String name, Node<T> node) { in ofRefNode() argument
106 return new AbstractTestData.RefTestData<>(name, node, in ofRefNode()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DResourceBundleTest.java43 String name = "tests.support.Support_TestResource"; in test_getBaseName() local
44 ResourceBundle bundle = ResourceBundle.getBundle(name); in test_getBaseName()
45 assertEquals(name, bundle.getBaseBundleName()); in test_getBaseName()
47 bundle = ResourceBundle.getBundle(name, Locale.getDefault()); in test_getBaseName()
48 assertEquals(name, bundle.getBaseBundleName()); in test_getBaseName()
59 String name = "tests.support.Support_TestResource"; in test_getBundleLjava_lang_StringLjava_util_Locale() local
63 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); in test_getBundleLjava_lang_StringLjava_util_Locale()
66 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "v1")); in test_getBundleLjava_lang_StringLjava_util_Locale()
69 bundle = ResourceBundle.getBundle(name, new Locale("fr", "US", "VAR")); in test_getBundleLjava_lang_StringLjava_util_Locale()
72 bundle = ResourceBundle.getBundle(name, new Locale("de", "FR", "VAR")); in test_getBundleLjava_lang_StringLjava_util_Locale()
[all …]

12345678910>>...40