Searched defs:name (Results 176 - 200 of 266) sorted by relevance

1234567891011

/libcore/luni/src/main/java/java/util/jar/
H A DManifest.java49 private static Field getByteArrayInputStreamField(String name) { argument
51 Field f = ByteArrayInputStream.class.getDeclaredField(name);
132 * {@code name}.
134 * @param name
135 * the name of the entry to obtain {@code Attributes} from.
139 public Attributes getAttributes(String name) { argument
140 return getEntries().get(name);
175 * Writes this {@code Manifest}'s name/attributes pairs to the given {@code OutputStream}.
187 * Merges name/attribute pairs read from the input stream {@code is} into this manifest.
279 Chunk getChunk(String name) { argument
337 writeEntry(OutputStream os, Attributes.Name name, String value, CharsetEncoder encoder, ByteBuffer bBuf) argument
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DPreferences.java33 * Every node has one name and one unique absolute path following the same
35 * name is "", and other node name strings cannot contain the slash character
38 * absolute path> + "/" + <node's name>. Since the set of nodes forms a
92 * Maximum size in characters allowed for a preferences name.
469 * Returns the name of this node.
471 * @return the name of this node.
473 public abstract String name(); method in class:Preferences
476 * Returns the preference node with the given path name. The path name ca
[all...]
/libcore/luni/src/main/java/java/util/zip/
H A DZipEntry.java34 * An entry has attributes such as its name (which is actually a path) and the uncompressed size
40 String name; field in class:ZipEntry
68 * Constructs a new {@code ZipEntry} with the specified name. The name is actually a path,
72 * if the name length is outside the range (> 0xFFFF).
74 public ZipEntry(String name) { argument
75 if (name == null) {
76 throw new NullPointerException("name == null");
78 if (name.length() > 0xFFFF) {
79 throw new IllegalArgumentException("Name too long: " + name
[all...]
H A DZipFile.java40 * {@link #getEntry} to look up multiple files by name, you get the benefit of this index.
122 public ZipFile(String name) throws IOException { argument
123 this(new File(name), OPEN_READ);
203 * need random-access entry lookup by name, you should probably use {@link ZipInputStream}
238 * Returns the zip entry with the given name, or null if there is no such entry.
266 // Make sure this ZipEntry is in this Zip file. We run it through the name lookup.
294 // Offset 26 has the file name length, and offset 28 has the extra field length.
301 // Skip the variable-size file name and extra field data.
316 * Gets the file name of this {@code ZipFile}.
318 * @return the file name o
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationAccess.java268 public static int getFieldIndex(Class<?> declaringClass, Class<?> type, String name) { argument
272 int nameIndex = dex.findStringIndex(name);
277 public static int getMethodIndex(Class<?> declaringClass, String name, int protoIndex) { argument
280 int nameIndex = dex.findStringIndex(name);
481 * @InnerClass(accessFlags=0x01,name="Foo")
496 * @InnerClass(accessFlags=0x01,name="Foo")
507 reader.readAnnotationName(); // name
515 * @InnerClass(accessFlags=0x01,name="Foo")
526 reader.readAnnotationName(); // name
565 // TODO: is it better to compute the index of the annotation name i
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java95 private ZoneInfo(String name, int[] transitions, byte[] types, int[] gmtOffsets, byte[] isDsts) { argument
99 setID(name);
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DGeneralName.java113 // ASN1 encoders/decoders for name choices
128 /** the tag of the name type */
130 /** the name value (can be String or byte array) */
131 private Object name; field in class:GeneralName
139 * well established string representation of the name value.
151 * @param tag is an integer which value corresponds to the name type.
152 * @param name is a name value corresponding to the tag.
154 public GeneralName(int tag, String name) throws IOException { argument
155 if (name
194 GeneralName(OtherName name) argument
199 GeneralName(ORAddress name) argument
204 GeneralName(Name name) argument
209 GeneralName(EDIPartyName name) argument
223 GeneralName(byte[] name) argument
235 GeneralName(int tag, byte[] name) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatReader.java67 public boolean getFeature(String name) argument
69 if (name == null) {
70 throw new NullPointerException("name == null");
73 if (name.equals(Feature.VALIDATION)
74 || name.equals(Feature.EXTERNAL_GENERAL_ENTITIES)
75 || name.equals(Feature.EXTERNAL_PARAMETER_ENTITIES)) {
79 if (name.equals(Feature.NAMESPACES)) {
83 if (name.equals(Feature.NAMESPACE_PREFIXES)) {
87 if (name.equals(Feature.STRING_INTERNING)) {
91 throw new SAXNotRecognizedException(name);
94 setFeature(String name, boolean value) argument
133 getProperty(String name) argument
146 setProperty(String name, Object value) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDOMConfigurationImpl.java330 public boolean canSetParameter(String name, Object value) { argument
331 Parameter parameter = PARAMETERS.get(name);
335 public void setParameter(String name, Object value) throws DOMException { argument
336 Parameter parameter = PARAMETERS.get(name);
338 throw new DOMException(DOMException.NOT_FOUND_ERR, "No such parameter: " + name);
344 "Null not allowed for " + name);
347 "Invalid type for " + name + ": " + value.getClass());
351 public Object getParameter(String name) throws DOMException { argument
352 Parameter parameter = PARAMETERS.get(name);
354 throw new DOMException(DOMException.NOT_FOUND_ERR, "No such parameter: " + name);
[all...]
H A DElementImpl.java54 ElementImpl(DocumentImpl document, String name) { argument
56 setName(this, name);
59 private int indexOfAttribute(String name) { argument
62 if (Objects.equal(name, attr.getNodeName())) {
82 public String getAttribute(String name) { argument
83 Attr attr = getAttributeNode(name);
102 public AttrImpl getAttributeNode(String name) { argument
103 int i = indexOfAttribute(name);
132 Element getElementById(String name) { argument
134 if (attr.isId() && name
161 getElementsByTagName(String name) argument
203 hasAttribute(String name) argument
216 removeAttribute(String name) argument
246 setAttribute(String name, String value) argument
330 indexOfItem(String name) argument
338 getNamedItem(String name) argument
350 removeNamedItem(String name) argument
393 setIdAttribute(String name, boolean isId) argument
[all...]
/libcore/luni/src/main/java/org/w3c/dom/
H A DDocument.java69 * <br>To create an element with a qualified name and namespace URI, use
71 * @param tagName The name of the element type to instantiate. For XML,
74 * name is mapped to the canonical form of that markup by the DOM
81 * INVALID_CHARACTER_ERR: Raised if the specified name is not an XML
82 * name according to the XML version in use specified in the
121 * name and data strings.
125 * checking is done on the target name. Applications should invoke
128 * target name is namespace well-formed.
133 * name according to the XML version in use specified in the
142 * Creates an <code>Attr</code> of the given name
157 createAttribute(String name) argument
185 createEntityReference(String name) argument
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DXMLFilterImpl.java144 * @param name The feature name.
149 * parent recognizes the feature name but argument
152 public void setFeature (String name, boolean value)
156 parent.setFeature(name, value);
158 throw new SAXNotRecognizedException("Feature: " + name);
168 * @param name The feature name.
173 * parent recognizes the feature name but argument
176 public boolean getFeature (String name)
197 setProperty(String name, Object value) argument
219 getProperty(String name) argument
397 notationDecl(String name, String publicId, String systemId) argument
416 unparsedEntityDecl(String name, String publicId, String systemId, String notationName) argument
610 skippedEntity(String name) argument
[all...]
H A DXMLReaderAdapter.java322 * @param localName The Namespace local name.
323 * @param qName The qualified (prefixed) name.
344 * @param localName The Namespace local name.
345 * @param qName The qualified (prefixed) name.
415 * @param name The name of the skipped entity.
419 public void skippedEntity (String name)
477 * Return the qualified (prefixed) name of an attribute by position.
479 * @return The qualified name.
513 * Return the type of an attribute by qualified (prefixed) name
417 skippedEntity(String name) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DClassLoaderReflectionTest.java159 private void assertTypeVariable(TypeVariable actual, String name, Type... bounds) { argument
160 assertEquals(name, actual.getName());
/libcore/luni/src/test/java/libcore/java/net/
H A DCookiesTest.java581 public HttpCookie getCookie(String name) { argument
583 if (cookie.getName().equals(name)) {
587 throw new IllegalArgumentException("No cookie " + name + " in " + cookies);
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CRLTest.java75 private final X509Certificate getCertificate(CertificateFactory f, String name) argument
77 final InputStream is = Support_Resources.getStream(name);
78 assertNotNull("File does not exist: " + name, is);
91 private final X509CRL getCRL(CertificateFactory f, String name) throws Exception { argument
92 final InputStream is = Support_Resources.getStream(name);
93 assertNotNull("File does not exist: " + name, is);
106 private byte[] getResourceAsBytes(String name) throws Exception { argument
107 final InputStream ris = Support_Resources.getStream(name);
121 private Map<String, Date> getCrlDates(String name) throws Exception { argument
125 final InputStream ris = Support_Resources.getStream(name);
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DOldAttributedStringTest.java199 public TestAttributedCharacterIteratorAttribute(String name) { argument
200 super(name);
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DDefaultHostnameVerifierTest.java317 public StubX509Certificate addSubjectAlternativeName(int type, String name) { argument
323 entry.add(name);
/libcore/luni/src/test/java/libcore/xml/
H A DPullParserDtdTest.java367 private int indexOfAttributeWithName(XmlPullParser parser, String name) { argument
369 if (parser.getAttributeName(i).equals(name)) {
H A DSaxTest.java232 @Override public void notationDecl(String name, String publicId, String systemId) { argument
236 String name, String publicId, String systemId, String notationName) {
261 @Override public void skippedEntity(String name) { argument
235 unparsedEntityDecl( String name, String publicId, String systemId, String notationName) argument
H A DXsltXPathConformanceTestSuite.java84 * "Couldn't open file" errors due to a mismatch in file name casing.
95 /** Orders element attributes by optional URI and name. */
210 String name = category + "." + id;
232 return new MisspecifiedTest("Unexpected element at " + name);
242 + "principal=data and principal-stylesheet elements at " + name);
253 return new MisspecifiedTest("Expected <scenario> to have principal element at " + name);
266 return new MisspecifiedTest(e.getMessage() + " at " + name);
275 private File findFile(File directory, String name) throws FileNotFoundException { argument
276 File file = new File(directory, name);
282 if (child.equalsIgnoreCase(name)) {
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherThread.java40 CipherThread(String name, int[] keys, String[] modes, String[] paddings) { argument
41 algName = name;
138 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode +
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DAlgorithmParametersTest.java685 MyProvider(String name, double version, String info) { argument
686 super(name, version, info);
H A DIdentity2Test.java129 public IdentitySubclass(String name) { argument
130 super(name);
133 public IdentitySubclass(String name, IdentityScope scope) argument
135 super(name, scope);
170 String[] str = {"test", "", "!@#$%^&*()", "identity name"};
171 IdentityScopeSubclass iss = new IdentityScopeSubclass("name");
225 String name = "test";
226 IdentitySubclass sub = new IdentitySubclass(name,
228 assertEquals("Wrong Name returned", name, sub.getName());
309 IdentitySubclass sub3 = new IdentitySubclass("identity name",
[all...]
H A DKeyStore3Test.java269 MyProvider(String name, double version, String info) { argument
270 super(name, version, info);

Completed in 310 milliseconds

1234567891011