Enhance http proxy support
Make it read proxys the correct way from CS so it works for all network types. Add utility class for apache http client support. bug:2700664 Change-Id: If81917b19b5f0636247a6519a1ec78bd8dbf3596
This commit is contained in:
parent
978f509cea
commit
9f0ee4fcde
2 changed files with 55 additions and 0 deletions
|
|
@ -264,6 +264,24 @@ public class ConnectivityManager
|
|||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public LinkProperties getActiveLinkProperties() {
|
||||
try {
|
||||
return mService.getActiveLinkProperties();
|
||||
} catch (RemoteException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public LinkProperties getLinkProperties(int networkType) {
|
||||
try {
|
||||
return mService.getLinkProperties(networkType);
|
||||
} catch (RemoteException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
public boolean setRadios(boolean turnOn) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package android.net;
|
||||
|
||||
import android.net.LinkProperties;
|
||||
import android.net.NetworkInfo;
|
||||
import android.os.IBinder;
|
||||
|
||||
|
|
@ -36,6 +37,10 @@ interface IConnectivityManager
|
|||
|
||||
NetworkInfo[] getAllNetworkInfo();
|
||||
|
||||
LinkProperties getActiveLinkProperties();
|
||||
|
||||
LinkProperties getLinkProperties(int networkType);
|
||||
|
||||
boolean setRadios(boolean onOff);
|
||||
|
||||
boolean setRadio(int networkType, boolean turnOn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue