Home
last modified time | relevance | path

Searched refs:Proxy (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/tests/CoreTests/android/core/
DProxyTest.java22 import android.net.Proxy;
38 String proxyHost = Proxy.getHost(mContext); in setUp()
39 int proxyPort = Proxy.getPort(mContext); in setUp()
54 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, null)); in testProxyGetPreferredHttpHost_UrlBad()
55 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "")); in testProxyGetPreferredHttpHost_UrlBad()
56 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:")); in testProxyGetPreferredHttpHost_UrlBad()
57 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad")); in testProxyGetPreferredHttpHost_UrlBad()
58 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:\\")); in testProxyGetPreferredHttpHost_UrlBad()
59 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad://#")); in testProxyGetPreferredHttpHost_UrlBad()
60 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "://#")); in testProxyGetPreferredHttpHost_UrlBad()
[all …]
/frameworks/base/core/java/android/net/
DPacProxySelector.java29 import java.net.Proxy;
30 import java.net.Proxy.Type;
43 private final List<Proxy> mDefaultList;
52 mDefaultList = Lists.newArrayList(java.net.Proxy.NO_PROXY); in PacProxySelector()
56 public List<Proxy> select(URI uri) { in select()
63 return Lists.newArrayList(java.net.Proxy.NO_PROXY); in select()
84 private static List<Proxy> parseResponse(String response) { in parseResponse()
86 List<Proxy> ret = Lists.newArrayList(); in parseResponse()
90 ret.add(java.net.Proxy.NO_PROXY); in parseResponse()
100 ret.add(new Proxy(Type.HTTP, InetSocketAddress.createUnresolved(host, port))); in parseResponse()
[all …]
DProxy.java44 public final class Proxy { class
100 public static final java.net.Proxy getProxy(Context ctx, String url) { in getProxy()
112 if (sConnectivityManager == null) return java.net.Proxy.NO_PROXY; in getProxy()
122 return java.net.Proxy.NO_PROXY; in getProxy()
136 java.net.Proxy proxy = getProxy(ctx, null); in getHost()
137 if (proxy == java.net.Proxy.NO_PROXY) return null; in getHost()
153 java.net.Proxy proxy = getProxy(ctx, null); in getPort()
154 if (proxy == java.net.Proxy.NO_PROXY) return -1; in getPort()
208 java.net.Proxy prefProxy = getProxy(context, url); in getPreferredHttpHost()
209 if (prefProxy.equals(java.net.Proxy.NO_PROXY)) { in getPreferredHttpHost()
[all …]
DProxyProperties.java145 Proxy.validate(mHost == null ? "" : mHost, mPort == 0 ? "" : Integer.toString(mPort), in isValid()
153 public java.net.Proxy makeProxy() { in makeProxy()
154 java.net.Proxy proxy = java.net.Proxy.NO_PROXY; in makeProxy()
158 proxy = new java.net.Proxy(java.net.Proxy.Type.HTTP, inetSocketAddress); in makeProxy()
DLinkSocket.java61 public LinkSocket(LinkSocketNotifier notifier, Proxy proxy) { in LinkSocket()
/frameworks/base/core/java/android/os/storage/
DIMountShutdownObserver.java52 return new IMountShutdownObserver.Stub.Proxy(obj); in asInterface()
79 private static class Proxy implements IMountShutdownObserver { class in IMountShutdownObserver.Stub
82 Proxy(IBinder remote) { in Proxy() method in IMountShutdownObserver.Stub.Proxy
DIObbActionListener.java53 return new IObbActionListener.Stub.Proxy(obj); in asInterface()
84 private static class Proxy implements IObbActionListener { class in IObbActionListener.Stub
87 Proxy(IBinder remote) { in Proxy() method in IObbActionListener.Stub.Proxy
DIMountServiceListener.java53 return new IMountServiceListener.Stub.Proxy(obj); in asInterface()
92 private static class Proxy implements IMountServiceListener { class in IMountServiceListener.Stub
95 Proxy(IBinder remote) { in Proxy() method in IMountServiceListener.Stub.Proxy
DIMountService.java36 private static class Proxy implements IMountService { class in IMountService.Stub
39 Proxy(IBinder remote) { in Proxy() method in IMountService.Stub.Proxy
844 return new IMountService.Stub.Proxy(obj); in asInterface()
/frameworks/av/include/private/media/
DAudioTrackShared.h82 friend class Proxy; member
148 class Proxy : public RefBase {
150 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
152 virtual ~Proxy() { } in ~Proxy()
179 class ClientProxy : public Proxy {
346 class ServerProxy : public Proxy {
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DDynamicProxy.java22 import java.lang.reflect.Proxy;
60 return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class<?>[] { clazz }, invoke); in dynamicProxy()
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java30 import java.net.Proxy;
108 List<Proxy> list = Lists.newArrayList(); in run()
115 for (Proxy proxy : list) { in run()
117 if (!proxy.equals(Proxy.NO_PROXY)) { in run()
DProxyService.java20 import android.net.Proxy;
/frameworks/base/services/java/com/android/server/location/
DGpsXtraDownloader.java20 import android.net.Proxy;
82 String proxyHost = Proxy.getHost(mContext); in downloadXtraData()
83 int proxyPort = Proxy.getPort(mContext); in downloadXtraData()
/frameworks/base/core/java/android/net/http/
DRequestQueue.java30 import android.net.Proxy;
239 new IntentFilter(Proxy.PROXY_CHANGE_ACTION)); in enablePlatformNotifications()
267 String host = Proxy.getHost(mContext); in setProxyConfig()
273 mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http"); in setProxyConfig()
/frameworks/base/core/java/android/hardware/camera2/utils/
DDecorator.java62 return (T)java.lang.reflect.Proxy.newProxyInstance( in newInstance()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java40 import java.net.Proxy;
1119 public ComponentName setGlobalProxy(ComponentName admin, Proxy proxySpec, in setGlobalProxy()
1128 if (proxySpec.equals(Proxy.NO_PROXY)) { in setGlobalProxy()
1132 if (!proxySpec.type().equals(Proxy.Type.HTTP)) { in setGlobalProxy()
1156 android.net.Proxy.validate(hostName, Integer.toString(port), exclSpec); in setGlobalProxy()
/frameworks/base/
Dpreloaded-classes18 android.accounts.IAccountManager$Stub$Proxy
156 android.app.IAlarmManager$Stub$Proxy
162 android.app.INotificationManager$Stub$Proxy
165 android.app.ISearchManager$Stub$Proxy
252 android.content.IContentService$Stub$Proxy
257 android.content.IIntentSender$Stub$Proxy
262 android.content.ISyncContext$Stub$Proxy
288 android.content.pm.IPackageManager$Stub$Proxy
361 android.database.IContentObserver$Stub$Proxy
539 android.hardware.display.IDisplayManager$Stub$Proxy
[all …]
/frameworks/base/services/java/com/android/server/connectivity/
DPacManager.java27 import android.net.Proxy;
204 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get()
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp37 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, in Proxy() function in android::Proxy
49 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), mEpoch(0) in ClientProxy()
504 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), in ServerProxy()
DAudioRecord.cpp572 Proxy::Buffer buffer; in obtainBuffer()
635 Proxy::Buffer buffer; in releaseBuffer()
DAudioTrack.cpp1153 Proxy::Buffer buffer; in obtainBuffer()
1229 Proxy::Buffer buffer; in releaseBuffer()
/frameworks/base/docs/html/training/backward-compatible-ui/
Dnew-implementation.jd69 // Proxy to new ActionBar.newTab API
74 // Proxy to new ActionBar.Tab.setText API
/frameworks/base/core/java/android/security/
DIKeystoreService.java33 private static class Proxy implements IKeystoreService { class in IKeystoreService.Stub
36 Proxy(IBinder remote) { in Proxy() method in IKeystoreService.Stub.Proxy
521 return new IKeystoreService.Stub.Proxy(obj); in asInterface()
/frameworks/base/media/java/android/media/
DMediaPlayer.java25 import android.net.Proxy;
2750 filter.addAction(Proxy.PROXY_CHANGE_ACTION); in setupProxyListener()
2778 (ProxyProperties)intent.getExtra(Proxy.EXTRA_PROXY_INFO); in handleProxyBroadcast()
2790 if (intent.getAction().equals(Proxy.PROXY_CHANGE_ACTION)) { in onReceive()

12