Home | History | Annotate | Download | only in service

Lines Matching refs:protocol

89     public static void killService(Context context, String protocol) {
90 EmailServiceInfo info = getServiceInfo(context, protocol);
99 * Starts an EmailService by protocol
101 public static void startService(Context context, String protocol) {
102 EmailServiceInfo info = getServiceInfo(context, protocol);
140 EmailServiceUtils.getService(context, info.protocol);
155 public static boolean isServiceAvailable(Context context, String protocol) {
156 EmailServiceInfo info = getServiceInfo(context, protocol);
184 public String protocol;
219 StringBuilder sb = new StringBuilder("Protocol: ");
220 sb.append(protocol);
229 public static EmailServiceProxy getService(Context context, String protocol) {
232 if (protocol != null) {
233 info = getServiceInfo(context, protocol);
236 LogUtils.w(LogUtils.TAG, "Returning NullService for %s", protocol);
253 String protocol = Account.getProtocol(context, accountId);
254 return getServiceInfo(context, protocol);
257 public static EmailServiceInfo getServiceInfo(Context context, String protocol) {
258 return getServiceMap(context).get(protocol);
305 * @param hostAuth HostAuth that identifies the protocol and password for this account.
363 // Change the HostAuth to reference the new protocol; this has to be done before
366 hostValues.put(HostAuthColumns.PROTOCOL, newProtocol);
564 info.protocol = ta.getString(R.styleable.EmailServiceInfo_protocol);
642 builder.put(info.protocol, info);
656 * Resolves a service name into a protocol name, or null if ambiguous
659 * @return protocol name or null
667 String protocol = null;
670 if (!TextUtils.isEmpty(protocol) && !TextUtils.equals(protocol, info.protocol)) {
671 // More than one protocol matches
674 protocol = info.protocol;
677 return protocol;