/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixUserPrincipals.java | 37 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/ |
D | ThreadLocalCoders.java | 50 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/ |
D | JSONObject.java | 195 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/ |
D | ClassLoader.java | 311 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/ |
D | DNSName.java | 52 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 …]
|
D | RFC822Name.java | 45 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 …]
|
D | GeneralName.java | 55 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 …]
|
D | KeyUsageExtension.java | 188 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 …]
|
D | IPAddressName.java | 73 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 …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | Level.java | 72 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/ |
D | DocumentBuilderFactoryImpl.java | 38 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/lang/constant/ |
D | ConstantUtils.java | 52 static String validateBinaryClassName(String name) { in validateBinaryClassName() argument 53 for (int i=0; i<name.length(); i++) { in validateBinaryClassName() 54 char ch = name.charAt(i); in validateBinaryClassName() 56 throw new IllegalArgumentException("Invalid class name: " + name); in validateBinaryClassName() 58 return name; in validateBinaryClassName() 68 public static String validateMemberName(String name, boolean method) { in validateMemberName() argument 69 requireNonNull(name); in validateMemberName() 70 if (name.length() == 0) in validateMemberName() 72 for (int i=0; i<name.length(); i++) { in validateMemberName() 73 char ch = name.charAt(i); in validateMemberName() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatReader.java | 75 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/ |
D | ChangeListenerMap.java | 68 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/ojluni/src/main/java/java/nio/file/ |
D | LinkPermission.java | 72 private void checkName(String name) { in checkName() argument 73 if (!name.equals("hard") && !name.equals("symbolic")) { in checkName() 74 throw new IllegalArgumentException("name: " + name); in checkName() 87 public LinkPermission(String name) { in LinkPermission() argument 88 super(name); in LinkPermission() 89 checkName(name); in LinkPermission() 104 public LinkPermission(String name, String actions) { in LinkPermission() argument 105 super(name); in LinkPermission() 106 checkName(name); in LinkPermission()
|
/libcore/luni/src/test/resources/out_dh/ |
D | staff.out | 45 …name$name^$position$position^$salary$salary^$gender$gender^$address$address^$employee$employee^$em…
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 174 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/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SystemScope.java | 60 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/java/util/jar/ |
D | Attributes.java | 104 public Object get(Object name) { in get() argument 105 return map.get(name); in get() 123 public String getValue(String name) { in getValue() argument 124 return (String)get(Name.of(name)); in getValue() 140 public String getValue(Name name) { in getValue() argument 141 return (String)get(name); in getValue() 155 public Object put(Object name, Object value) { in put() argument 156 return map.put((Attributes.Name)name, (String)value); in put() 175 public String putValue(String name, String value) { in putValue() argument 176 return (String)put(Name.of(name), value); in putValue() [all …]
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | ValidatorHandler.java | 349 …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 …]
|
D | Validator.java | 341 …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/ojluni/src/main/java/java/lang/invoke/ |
D | ConstantBootstraps.java | 92 public static Object nullConstant(MethodHandles.Lookup lookup, String name, Class<?> type) { in nullConstant() argument 111 public static Class<?> primitiveClass(MethodHandles.Lookup lookup, String name, Class<?> type) { in primitiveClass() argument 112 requireNonNull(name); in primitiveClass() 117 if (name.length() != 1) { in primitiveClass() 118 throw new IllegalArgumentException(String.format("not primitive: %s", name)); in primitiveClass() 121 return Wrapper.forPrimitiveType(name.charAt(0)).primitiveType(); in primitiveClass() 144 …public static <E extends Enum<E>> E enumConstant(MethodHandles.Lookup lookup, String name, Class<E… in enumConstant() argument 146 requireNonNull(name); in enumConstant() 150 return Enum.valueOf(type, name); in enumConstant() 168 public static Object getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, in getStaticFinal() argument [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
D | MockHandler.java | 53 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/ |
D | TestData.java | 78 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/ |
D | TestData.java | 79 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 …]
|