/external/chromium-libpac/test/ |
D | proxy_resolver_v8_unittest.cc | 164 std::vector<std::string> proxies = string16ToProxyList(kResults); in TEST() local 165 EXPECT_EQ(proxies.size(), 1U); in TEST() 166 EXPECT_EQ("DIRECT",proxies[0]); in TEST() 182 std::vector<std::string> proxies = string16ToProxyList(kResults); in TEST() local 183 EXPECT_EQ(proxies.size(), 1U); in TEST() 184 EXPECT_EQ("DIRECT",proxies[0]); in TEST() 195 std::vector<std::string> proxies = string16ToProxyList(kResults); in TEST() local 196 EXPECT_EQ(proxies.size(), 0U); in TEST() 215 std::vector<std::string> proxies = string16ToProxyList(kResults); in TEST() local 216 EXPECT_EQ(1U, proxies.size()); in TEST() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 210 const sk_sp<GrTextureProxy>* proxies, in GrDistanceFieldA8TextGeoProc() argument 239 fAtlasSize = proxies[0]->isize(); in GrDistanceFieldA8TextGeoProc() 242 SkASSERT(proxies[i]); in GrDistanceFieldA8TextGeoProc() 243 SkASSERT(proxies[i]->isize() == fAtlasSize); in GrDistanceFieldA8TextGeoProc() 244 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in GrDistanceFieldA8TextGeoProc() 249 void GrDistanceFieldA8TextGeoProc::addNewProxies(const sk_sp<GrTextureProxy>* proxies, in addNewProxies() argument 255 fAtlasSize = proxies[0]->isize(); in addNewProxies() 259 SkASSERT(proxies[i]); in addNewProxies() 260 SkASSERT(proxies[i]->isize() == fAtlasSize); in addNewProxies() 262 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in addNewProxies() [all …]
|
D | GrBitmapTextGeoProc.cpp | 124 const sk_sp<GrTextureProxy>* proxies, in GrBitmapTextGeoProc() argument 152 fAtlasSize = proxies[0]->isize(); in GrBitmapTextGeoProc() 155 SkASSERT(proxies[i]); in GrBitmapTextGeoProc() 156 SkASSERT(proxies[i]->isize() == fAtlasSize); in GrBitmapTextGeoProc() 157 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in GrBitmapTextGeoProc() 162 void GrBitmapTextGeoProc::addNewProxies(const sk_sp<GrTextureProxy>* proxies, in addNewProxies() argument 168 fAtlasSize = proxies[0]->isize(); in addNewProxies() 172 SkASSERT(proxies[i]); in addNewProxies() 173 SkASSERT(proxies[i]->isize() == fAtlasSize); in addNewProxies() 176 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in addNewProxies() [all …]
|
D | GrDistanceFieldGeoProc.h | 61 const sk_sp<GrTextureProxy>* proxies, in Make() argument 66 caps, proxies, numActiveProxies, params, lum, flags, localMatrixIfUsesLocalCoords)); in Make() 70 const sk_sp<GrTextureProxy>* proxies, in Make() argument 75 caps, proxies, numActiveProxies, params, flags, localMatrixIfUsesLocalCoords)); in Make() 93 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 101 const sk_sp<GrTextureProxy>* proxies, 141 const sk_sp<GrTextureProxy>* proxies, in Make() argument 145 new GrDistanceFieldPathGeoProc(caps, matrix, wideColor, proxies, numActiveProxies, in Make() 170 const sk_sp<GrTextureProxy>* proxies, 215 const sk_sp<GrTextureProxy>* proxies, in Make() argument [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 210 const sk_sp<GrTextureProxy>* proxies, in GrDistanceFieldA8TextGeoProc() argument 239 fAtlasSize = proxies[0]->isize(); in GrDistanceFieldA8TextGeoProc() 242 SkASSERT(proxies[i]); in GrDistanceFieldA8TextGeoProc() 243 SkASSERT(proxies[i]->isize() == fAtlasSize); in GrDistanceFieldA8TextGeoProc() 244 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in GrDistanceFieldA8TextGeoProc() 249 void GrDistanceFieldA8TextGeoProc::addNewProxies(const sk_sp<GrTextureProxy>* proxies, in addNewProxies() argument 255 fAtlasSize = proxies[0]->isize(); in addNewProxies() 259 SkASSERT(proxies[i]); in addNewProxies() 260 SkASSERT(proxies[i]->isize() == fAtlasSize); in addNewProxies() 262 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in addNewProxies() [all …]
|
D | GrBitmapTextGeoProc.cpp | 125 const sk_sp<GrTextureProxy>* proxies, in GrBitmapTextGeoProc() argument 153 fAtlasSize = proxies[0]->isize(); in GrBitmapTextGeoProc() 156 SkASSERT(proxies[i]); in GrBitmapTextGeoProc() 157 SkASSERT(proxies[i]->isize() == fAtlasSize); in GrBitmapTextGeoProc() 158 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in GrBitmapTextGeoProc() 163 void GrBitmapTextGeoProc::addNewProxies(const sk_sp<GrTextureProxy>* proxies, in addNewProxies() argument 169 fAtlasSize = proxies[0]->isize(); in addNewProxies() 173 SkASSERT(proxies[i]); in addNewProxies() 174 SkASSERT(proxies[i]->isize() == fAtlasSize); in addNewProxies() 177 fTextureSamplers[i].reset(proxies[i]->textureType(), proxies[i]->config(), params); in addNewProxies() [all …]
|
D | GrDistanceFieldGeoProc.h | 61 const sk_sp<GrTextureProxy>* proxies, in Make() argument 66 caps, proxies, numActiveProxies, params, lum, flags, localMatrixIfUsesLocalCoords)); in Make() 70 const sk_sp<GrTextureProxy>* proxies, in Make() argument 75 caps, proxies, numActiveProxies, params, flags, localMatrixIfUsesLocalCoords)); in Make() 93 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&); 101 const sk_sp<GrTextureProxy>* proxies, 141 const sk_sp<GrTextureProxy>* proxies, in Make() argument 145 new GrDistanceFieldPathGeoProc(caps, matrix, wideColor, proxies, numActiveProxies, in Make() 170 const sk_sp<GrTextureProxy>* proxies, 215 const sk_sp<GrTextureProxy>* proxies, in Make() argument [all …]
|
/external/libbrillo/brillo/http/ |
D | http_proxy_unittest.cc | 98 std::vector<std::string> proxies; in TEST_F() local 102 EXPECT_FALSE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 106 std::vector<std::string> proxies; in TEST_F() local 110 EXPECT_FALSE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 114 std::vector<std::string> proxies; in TEST_F() local 117 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 118 EXPECT_THAT(proxies, ElementsAre(kDirectProxy)); in TEST_F() 123 std::vector<std::string> proxies; in TEST_F() local 126 EXPECT_TRUE(GetChromeProxyServers(bus_, kTestUrl, &proxies)); in TEST_F() 127 EXPECT_THAT(proxies, ElementsAre("http://example.com", "socks5://foo.com", in TEST_F() [all …]
|
/external/apache-http/src/org/apache/http/conn/routing/ |
D | HttpRoute.java | 101 HttpHost target, HttpHost[] proxies, in HttpRoute() argument 108 if ((tunnelled == TunnelType.TUNNELLED) && (proxies == null)) { in HttpRoute() 121 this.proxyChain = proxies; in HttpRoute() 141 public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, in HttpRoute() argument 143 this(local, target, toChain(proxies), secure, tunnelled, layered); in HttpRoute() 243 private static HttpHost[] toChain(HttpHost[] proxies) { in toChain() argument 244 if ((proxies == null) || (proxies.length < 1)) in toChain() 247 for (HttpHost proxy : proxies) { in toChain() 254 HttpHost[] result = new HttpHost[proxies.length]; in toChain() 255 System.arraycopy(proxies, 0, result, 0, proxies.length); in toChain()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | RouteSelector.java | 49 private List<Proxy> proxies = Collections.emptyList(); field in RouteSelector 118 proxies = Collections.singletonList(proxy); in resetNextProxy() 122 proxies = new ArrayList<>(); in resetNextProxy() 124 if (selectedProxies != null) proxies.addAll(selectedProxies); in resetNextProxy() 126 proxies.removeAll(Collections.singleton(Proxy.NO_PROXY)); in resetNextProxy() 127 proxies.add(Proxy.NO_PROXY); in resetNextProxy() 134 return nextProxyIndex < proxies.size(); in hasNextProxy() 141 + "; exhausted proxy configurations: " + proxies); in nextProxy() 143 Proxy result = proxies.get(nextProxyIndex++); in nextProxy()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | RouteSelector.java | 47 private List<Proxy> proxies = Collections.emptyList(); field in RouteSelector 115 proxies = Collections.singletonList(proxy); in resetNextProxy() 119 proxies = new ArrayList<>(); in resetNextProxy() 121 if (selectedProxies != null) proxies.addAll(selectedProxies); in resetNextProxy() 123 proxies.removeAll(Collections.singleton(Proxy.NO_PROXY)); in resetNextProxy() 124 proxies.add(Proxy.NO_PROXY); in resetNextProxy() 131 return nextProxyIndex < proxies.size(); in hasNextProxy() 138 + "; exhausted proxy configurations: " + proxies); in nextProxy() 140 Proxy result = proxies.get(nextProxyIndex++); in nextProxy()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | RecordingOkAuthenticator.java | 27 public final List<Proxy> proxies = new ArrayList<>(); field in RecordingOkAuthenticator 40 if (proxies.size() != 1) throw new IllegalStateException(); in onlyProxy() 41 return proxies.get(0); in onlyProxy() 46 proxies.add(proxy); in authenticate() 54 proxies.add(proxy); in authenticateProxy()
|
/external/python/cpython2/Lib/ |
D | urllib.py | 72 def urlopen(url, data=None, proxies=None, context=None): argument 79 if proxies is not None or context is not None: 80 opener = FancyURLopener(proxies=proxies, context=context) 133 def __init__(self, proxies=None, context=None, **x509): argument 134 if proxies is None: 135 proxies = getproxies() 136 assert hasattr(proxies, 'has_key'), "proxies must be a mapping" 137 self.proxies = proxies 196 if urltype in self.proxies: 197 proxy = self.proxies[urltype] [all …]
|
/external/apache-http/src/org/apache/http/impl/conn/ |
D | ProxySelectorRoutePlanner.java | 208 List<Proxy> proxies = psel.select(targetURI); in determineProxy() local 210 Proxy p = chooseProxy(proxies, target, request, context); in determineProxy() 266 protected Proxy chooseProxy(List<Proxy> proxies, in chooseProxy() argument 271 if ((proxies == null) || proxies.isEmpty()) { in chooseProxy() 279 for (int i=0; (result == null) && (i < proxies.size()); i++) { in chooseProxy() 281 Proxy p = proxies.get(i); in chooseProxy()
|
/external/skia/src/gpu/ops/ |
D | GrAtlasTextOp.cpp | 293 const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &numActiveProxies); in onPrepareDraws() local 294 if (!proxies) { in onPrepareDraws() 298 SkASSERT(proxies[0]); in onPrepareDraws() 306 fixedDynamicState->fPrimitiveProcessorTextures[i] = proxies[i].get(); in onPrepareDraws() 315 proxies, numActiveProxies); in onPrepareDraws() 320 *target->caps().shaderCaps(), this->color(), false, proxies, numActiveProxies, in onPrepareDraws() 409 const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &numActiveProxies); in flush() local 410 SkASSERT(proxies); in flush() 415 flushInfo->fFixedDynamicState->fPrimitiveProcessorTextures[i] = proxies[i].get(); in flush() 420 proxies, numActiveProxies, GrSamplerState::ClampBilerp()); in flush() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrAtlasTextOp.cpp | 290 const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &numActiveProxies); in onPrepareDraws() local 291 if (!proxies) { in onPrepareDraws() 295 SkASSERT(proxies[0]); in onPrepareDraws() 305 pipe.fFixedDynamicState->fPrimitiveProcessorTextures[i] = proxies[i].get(); in onPrepareDraws() 315 proxies, numActiveProxies); in onPrepareDraws() 320 *target->caps().shaderCaps(), this->color(), false, proxies, numActiveProxies, in onPrepareDraws() 403 const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &numActiveProxies); in flush() local 404 SkASSERT(proxies); in flush() 409 flushInfo->fFixedDynamicState->fPrimitiveProcessorTextures[i] = proxies[i].get(); in flush() 414 proxies, numActiveProxies, GrSamplerState::ClampBilerp()); in flush() [all …]
|
/external/chromium-libpac/src/ |
D | proxy_resolver_v8_wrapper.cc | 36 std::u16string proxies; in ProxyResolverV8Handle_GetProxyForURL() local 37 int code = proxyResolver->GetProxyForURL(specStr, hostStr, &proxies); in ProxyResolverV8Handle_GetProxyForURL() 41 auto len = proxies.length(); in ProxyResolverV8Handle_GetProxyForURL() 46 proxies.copy(result, len); in ProxyResolverV8Handle_GetProxyForURL()
|
/external/skqp/gm/ |
D | yuvtorgbeffect.cpp | 89 sk_sp<GrTextureProxy> proxies[3]; in onDraw() local 92 proxies[i] = proxyProvider->createTextureProxy(fImage[i], kNone_GrSurfaceFlags, 1, in onDraw() 94 if (!proxies[i]) { in onDraw() 123 GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw() 216 sk_sp<GrTextureProxy> proxies[2]; in onDraw() local 219 proxies[i] = proxyProvider->createTextureProxy(fImage[i], kNone_GrSurfaceFlags, 1, in onDraw() 221 if (!proxies[i]) { in onDraw() 247 auto fp = GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw()
|
/external/skia/gm/ |
D | yuvtorgbeffect.cpp | 79 sk_sp<GrTextureProxy> proxies[3]; in onDraw() local 82 proxies[i] = proxyProvider->createTextureProxy(fImage[i], kNone_GrSurfaceFlags, 1, in onDraw() 84 if (!proxies[i]) { in onDraw() 110 GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw() 198 sk_sp<GrTextureProxy> proxies[2]; in onDraw() local 201 proxies[i] = proxyProvider->createTextureProxy(fImage[i], kNone_GrSurfaceFlags, 1, in onDraw() 203 if (!proxies[i]) { in onDraw() 226 auto fp = GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw()
|
/external/skqp/tests/ |
D | ProcessorTest.cpp | 79 static std::unique_ptr<GrFragmentProcessor> Make(const SkTArray<sk_sp<GrTextureProxy>>& proxies, in Make() argument 81 return std::unique_ptr<GrFragmentProcessor>(new TestFP(proxies, buffers)); in Make() 96 TestFP(const SkTArray<sk_sp<GrTextureProxy>>& proxies, const SkTArray<sk_sp<GrBuffer>>& buffers) in TestFP() argument 98 for (const auto& proxy : proxies) { in TestFP() 187 SkTArray<sk_sp<GrTextureProxy>> proxies; in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 189 proxies.push_back(proxy1); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 190 auto fp = TestFP::Make(std::move(proxies), std::move(buffers)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 282 sk_sp<GrTextureProxy> proxies[2]) { in init_test_textures() 299 proxies[0] = proxyProvider->createTextureProxy(img, kNone_GrSurfaceFlags, 1, in init_test_textures() 316 proxies[1] = proxyProvider->createTextureProxy(img, kNone_GrSurfaceFlags, 1, in init_test_textures() [all …]
|
/external/skia/tests/ |
D | ProcessorTest.cpp | 82 static std::unique_ptr<GrFragmentProcessor> Make(const SkTArray<sk_sp<GrTextureProxy>>& proxies, in Make() argument 84 return std::unique_ptr<GrFragmentProcessor>(new TestFP(proxies, buffers)); in Make() 99 TestFP(const SkTArray<sk_sp<GrTextureProxy>>& proxies, in TestFP() argument 102 for (const auto& proxy : proxies) { in TestFP() 191 SkTArray<sk_sp<GrTextureProxy>> proxies; in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 193 proxies.push_back(proxy1); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 194 auto fp = TestFP::Make(std::move(proxies), std::move(buffers)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 289 sk_sp<GrTextureProxy> proxies[2]) { in init_test_textures() 306 proxies[0] = proxyProvider->createTextureProxy(img, kNone_GrSurfaceFlags, 1, in init_test_textures() 323 proxies[1] = proxyProvider->createTextureProxy(img, kNone_GrSurfaceFlags, 1, in init_test_textures() [all …]
|
/external/skia/src/gpu/ |
D | GrProcessorUnitTest.h | 54 sk_sp<GrTextureProxy> proxies[2]) in GrProcessorTestData() 58 SkASSERT(proxies[0] && proxies[1]); in GrProcessorTestData() 59 fProxies[0] = proxies[0]; in GrProcessorTestData() 60 fProxies[1] = proxies[1]; in GrProcessorTestData()
|
/external/skqp/src/gpu/ |
D | GrProcessorUnitTest.h | 54 sk_sp<GrTextureProxy> proxies[2]) in GrProcessorTestData() 58 SkASSERT(proxies[0] && proxies[1]); in GrProcessorTestData() 59 fProxies[0] = proxies[0]; in GrProcessorTestData() 60 fProxies[1] = proxies[1]; in GrProcessorTestData()
|
/external/python/cpython3/Lib/urllib/ |
D | request.py | 797 def __init__(self, proxies=None): argument 798 if proxies is None: 799 proxies = getproxies() 800 assert hasattr(proxies, 'keys'), "proxies must be a mapping" 801 self.proxies = proxies 802 for type, url in proxies.items(): 1676 def __init__(self, proxies=None, **x509): argument 1680 if proxies is None: 1681 proxies = getproxies() 1682 assert hasattr(proxies, 'keys'), "proxies must be a mapping" [all …]
|
/external/autotest/client/common_lib/ |
D | file_utils.py | 134 proxies = {} 138 proxies[name[:-6]] = value 140 if proxies: 141 proxy_handler = urllib2.ProxyHandler(proxies)
|