/libcore/ojluni/src/main/java/java/security/ |
H A D | PolicySpi.java | 50 * @param domain the ProtectionDomain to check. 53 * specified domain. 55 * @return boolean true if the permission is granted to the domain. 58 (ProtectionDomain domain, Permission permission); 104 * @param domain the ProtectionDomain to which the returned 115 (ProtectionDomain domain) { 57 engineImplies(ProtectionDomain domain, Permission permission) argument 114 engineGetPermissions(ProtectionDomain domain) argument
|
H A D | Policy.java | 87 public PermissionCollection getPermissions(ProtectionDomain domain) { argument 91 public boolean implies(ProtectionDomain domain, Permission permission) { argument
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | InMemoryCookieStore.java | 40 // b/26456024 Add targetSdkVersion based compatibility for domain matching 59 // the cookies are indexed by its domain and associated uri (if present) 112 * 1) given uri domain-matches with, or, associated with 242 * domain contains a dot ('.'). 243 * I.E.: RFC 2965 section 3.3.2 says that if host is x.y.domain.com 244 * and the cookie domain is .domain.com, then it should be rejected. 250 private boolean netscapeDomainMatches(String domain, String host) argument 252 if (domain == null || host == null) { 256 // if there's no embedded dot in domain an [all...] |
H A D | HttpCookie.java | 67 RESERVED_NAMES.add("domain"); // Netscape RFC 2109 RFC 2965 RFC 6265 88 private String domain; // Domain=VALUE ... domain that sees cookie field in class:HttpCookie 371 * Specifies the domain within which this cookie should be presented. 373 * <p> The form of the domain name is specified by RFC 2965. A domain 381 * a {@code String} containing the domain name within which this 388 domain = pattern.toLowerCase(); 390 domain = pattern; 394 * Returns the domain nam 660 domainMatches(String domain, String host) argument [all...] |
H A D | Inet6AddressImpl.java | 248 int domain = isIPv4 ? AF_INET : AF_INET6; 250 fd = IoBridge.socket(domain, SOCK_DGRAM, icmpProto);
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | RFC822Name.java | 72 * [local-part@]domain 75 * but the domain at least must be non-empty. Case is not 85 // See if domain is a valid domain name 86 String domain = name.substring(name.indexOf('@')+1); 87 if (domain.length() == 0) { 92 if (domain.startsWith(".")) { 93 if (domain.length() == 1) 94 throw new IOException("RFC822Name domain may not be just ."); 172 * addr-spec has the form "local-part@domain" [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | BlockGuardOs.java | 107 private static boolean isInetDomain(int domain) { argument 108 return (domain == AF_INET) || (domain == AF_INET6); 310 @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { argument 311 final FileDescriptor fd = os.socket(domain, type, protocol); 312 if (isInetDomain(domain)) { 318 @Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { argument 319 os.socketpair(domain, type, protocol, fd1, fd2); 320 if (isInetDomain(domain)) {
|
H A D | Os.java | 165 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument 166 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
|
H A D | ForwardingOs.java | 178 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } argument 179 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); } argument
|
H A D | Linux.java | 252 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument 253 public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
|
H A D | IoBridge.java | 637 public static FileDescriptor socket(int domain, int type, int protocol) throws SocketException { argument 640 fd = Libcore.os.socket(domain, type, protocol);
|
/libcore/ojluni/src/main/native/ |
H A D | Net.c | 238 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; local 240 int domain = AF_INET; local 243 fd = socket(domain, type, 0); 251 if (domain == AF_INET6) { 279 int level = (domain == AF_INET6) ? IPPROTO_IPV6 : IPPROTO_IP; 293 if (domain == AF_INET6 && type == SOCK_DGRAM) {
|
H A D | jvm.h | 1206 JVM_Socket(jint domain, jint type, jint protocol);
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 549 public static FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return Libcore.os.socket(domain, type, protocol); } argument 554 public static void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { Libcore.os.socketpair(domain, type, protocol, fd1, fd2); } argument
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_Linux.cpp | 2290 static jobject Linux_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { argument 2291 if (domain == AF_PACKET) { 2294 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol))); 2298 static void Linux_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject javaFd1, jobject javaFd2) { argument 2300 int rc = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds)));
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | AbstractCookiesTest.java | 100 + "domain=" + server.getCookieDomain() + "; " 243 cookieHeaders("a=android;domain=google.com")); 251 cookieHeaders("a=android;domain=.android.com")); 475 * fully-qualified domain names. 2965 says two equal strings always match. We're testing for 635 // the host/domain but not handling other cookie rules: it ignores the scheme (e.g. "secure" 654 // Deliberately not setting the cookie domain or path. 657 // CookieStoreImpl must ignore the port during retrieval when domain is not set. 687 // HttpCookie.equals() is implemented so that it only checks name, path and domain 829 * Creates a well-formed cookie. The behavior when domain is unset varies between 833 private static HttpCookie createCookie(String name, String value, String domain, Strin argument [all...] |