Home
last modified time | relevance | path

Searched refs:domain (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java271 private boolean netscapeDomainMatches(String domain, String host) in netscapeDomainMatches() argument
273 if (domain == null || host == null) { in netscapeDomainMatches()
278 boolean isLocalDomain = ".local".equalsIgnoreCase(domain); in netscapeDomainMatches()
279 int embeddedDotInDomain = domain.indexOf('.'); in netscapeDomainMatches()
281 embeddedDotInDomain = domain.indexOf('.', 1); in netscapeDomainMatches()
283 … if (!isLocalDomain && (embeddedDotInDomain == -1 || embeddedDotInDomain == domain.length() - 1)) { in netscapeDomainMatches()
293 int domainLength = domain.length(); in netscapeDomainMatches()
297 return host.equalsIgnoreCase(domain); in netscapeDomainMatches()
306 if (applyMCompatibility && !domain.startsWith(".")) { in netscapeDomainMatches()
310 return (D.equalsIgnoreCase(domain)); in netscapeDomainMatches()
[all …]
DHttpCookie.java88 private String domain; // Domain=VALUE ... domain that sees cookie field in HttpCookie
388 domain = pattern.toLowerCase(); in setDomain()
390 domain = pattern; in setDomain()
402 return domain; in getDomain()
660 public static boolean domainMatches(String domain, String host) { in domainMatches() argument
661 if (domain == null || host == null) in domainMatches()
665 boolean isLocalDomain = ".local".equalsIgnoreCase(domain); in domainMatches()
666 int embeddedDotInDomain = domain.indexOf('.'); in domainMatches()
668 embeddedDotInDomain = domain.indexOf('.', 1); in domainMatches()
671 embeddedDotInDomain == domain.length() - 1)) in domainMatches()
[all …]
DInet6AddressImpl.java247 int domain = isIPv4 ? AF_INET : AF_INET6; in icmpEcho() local
249 fd = IoBridge.socket(domain, SOCK_DGRAM, icmpProto); in icmpEcho()
/libcore/ojluni/src/main/java/java/security/
DPolicySpi.java58 (ProtectionDomain domain, Permission permission); in engineImplies() argument
115 (ProtectionDomain domain) { in engineGetPermissions() argument
DPolicy.java87 public PermissionCollection getPermissions(ProtectionDomain domain) { in getPermissions() argument
91 public boolean implies(ProtectionDomain domain, Permission permission) { in implies() argument
/libcore/ojluni/src/main/java/sun/security/x509/
DRFC822Name.java86 String domain = name.substring(name.indexOf('@')+1); in parseName() local
87 if (domain.length() == 0) { in parseName()
92 if (domain.startsWith(".")) { in parseName()
93 if (domain.length() == 1) in parseName()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java117 private static boolean isInetDomain(int domain) { in isInetDomain() argument
118 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
371 … @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { in socket() argument
372 final FileDescriptor fd = super.socket(domain, type, protocol); in socket()
373 if (isInetDomain(domain)) { in socket()
379 …@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescr… in socketpair() argument
380 super.socketpair(domain, type, protocol, fd1, fd2); in socketpair()
381 if (isInetDomain(domain)) { in socketpair()
DForwardingOs.java216 …public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os… in socket() argument
217 …id socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws E… in socketpair() argument
DOs.java184 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; in socket() argument
185 …public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2)… in socketpair() argument
DLinux.java257 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; in socket() argument
258 …public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescript… in socketpair() argument
DIoBridge.java651 public static FileDescriptor socket(int domain, int type, int protocol) throws SocketException { in socket() argument
654 fd = Libcore.os.socket(domain, type, protocol); in socket()
/libcore/ojluni/src/main/native/
DNet.c244 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0() local
246 int domain = AF_INET; in Java_sun_nio_ch_Net_socket0() local
249 fd = socket(domain, type, 0); in Java_sun_nio_ch_Net_socket0()
257 if (domain == AF_INET6) { in Java_sun_nio_ch_Net_socket0()
285 int level = (domain == AF_INET6) ? IPPROTO_IPV6 : IPPROTO_IP; in Java_sun_nio_ch_Net_socket0()
299 if (domain == AF_INET6 && type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
Djvm.h1206 JVM_Socket(jint domain, jint type, jint protocol);
/libcore/ojluni/annotations/hiddenapi/java/net/
DHttpCookie.java147 public static boolean domainMatches(java.lang.String domain, java.lang.String host) { in domainMatches() argument
250 private java.lang.String domain; field in HttpCookie
/libcore/luni/src/main/java/android/system/
DOs.java641 …static FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return Li… in socket() argument
646 …ocketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws Errno… in socketpair() argument
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp2398 static jobject Linux_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { in Linux_socket() argument
2399 if (domain == AF_PACKET) { in Linux_socket()
2402 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol))); in Linux_socket()
2406 static void Linux_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject j… in Linux_socketpair() argument
2415 TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds))); in Linux_socketpair()
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java833 private static HttpCookie createCookie(String name, String value, String domain, String path) { in createCookie() argument
835 cookie.setDomain(domain); in createCookie()