Lines Matching refs:flags
49 public static final int FLAG_NONE = 0x00; // No flags
105 * Returns the scheme for the specified flags.
107 public static String getSchemeString(String protocol, int flags) {
108 return getSchemeString(protocol, flags, null);
115 public static String getSchemeString(String protocol, int flags, String clientAlias) {
117 switch (flags & USER_CONFIG_MASK) {
147 * Returns the flags for the specified scheme.
151 int flags = HostAuth.FLAG_NONE;
155 flags |= HostAuth.FLAG_SSL;
157 flags |= HostAuth.FLAG_TLS;
162 flags |= HostAuth.FLAG_TRUST_ALL;
166 return flags;
241 public void setConnection(String protocol, String address, int port, int flags) {
242 setConnection(protocol, address, port, flags, null);
250 * @param flags flags indicating the security and type of the connection
253 * that flags indicates use of a secure connection
256 int port, int flags, String clientCertAlias) {
257 // Set protocol, security, and additional flags based on uri scheme
261 mFlags |= (flags & USER_CONFIG_MASK);
263 boolean useSecureConnection = (flags & (FLAG_SSL | FLAG_TLS)) != 0;
335 public void writeToParcel(Parcel dest, int flags) {
427 int flags = getSchemeFlags(scheme);
438 setConnection(protocol, host, port, flags, clientCertAlias);