List of usage examples for android.net ProxyInfo getPacFileUrl
public Uri getPacFileUrl()
From source file:android.net.ProxyInfo.java
@Override public boolean equals(Object o) { if (!(o instanceof ProxyInfo)) return false; ProxyInfo p = (ProxyInfo) o; // If PAC URL is present in either then they must be equal. // Other parameters will only be for fall back. if (!Uri.EMPTY.equals(mPacFileUrl)) { return mPacFileUrl.equals(p.getPacFileUrl()) && mPort == p.mPort; }//from w w w .j av a 2 s .c om if (!Uri.EMPTY.equals(p.mPacFileUrl)) { return false; } if (mExclusionList != null && !mExclusionList.equals(p.getExclusionListAsString())) { return false; } if (mHost != null && p.getHost() != null && mHost.equals(p.getHost()) == false) { return false; } if (mHost != null && p.mHost == null) return false; if (mHost == null && p.mHost != null) return false; if (mPort != p.mPort) return false; return true; }