/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | AbstractServerImplBuilderTest.java | 50 List<ServerStreamTracer.Factory> factories = builder.getTracerFactories(); in getTracerFactories_default() local 51 assertEquals(3, factories.size()); in getTracerFactories_default() 52 assertThat(factories.get(0)).isInstanceOf(CensusStatsModule.ServerTracerFactory.class); in getTracerFactories_default() 53 assertThat(factories.get(1)).isInstanceOf(CensusTracingModule.ServerTracerFactory.class); in getTracerFactories_default() 54 assertThat(factories.get(2)).isSameAs(DUMMY_USER_TRACER); in getTracerFactories_default() 61 List<ServerStreamTracer.Factory> factories = builder.getTracerFactories(); in getTracerFactories_disableStats() local 62 assertEquals(2, factories.size()); in getTracerFactories_disableStats() 63 assertThat(factories.get(0)).isInstanceOf(CensusTracingModule.ServerTracerFactory.class); in getTracerFactories_disableStats() 64 assertThat(factories.get(1)).isSameAs(DUMMY_USER_TRACER); in getTracerFactories_disableStats() 71 List<ServerStreamTracer.Factory> factories = builder.getTracerFactories(); in getTracerFactories_disableTracing() local [all …]
|
/external/tensorflow/tensorflow/stream_executor/ |
D | plugin_registry.cc | 71 std::map<PluginId, FACTORY_TYPE>* factories) { in RegisterFactoryInternal() argument 74 if (factories->find(plugin_id) != factories->end()) { in RegisterFactoryInternal() 82 (*factories)[plugin_id] = factory; in RegisterFactoryInternal() 89 PluginId plugin_id, const std::map<PluginId, FACTORY_TYPE>& factories, in GetFactoryInternal() argument 91 auto iter = factories.find(plugin_id); in GetFactoryInternal() 92 if (iter == factories.end()) { in GetFactoryInternal() 145 bool PluginRegistry::HasFactory(const PluginFactories& factories, in HasFactory() argument 150 return factories.blas.find(plugin_id) != factories.blas.end(); in HasFactory() 152 return factories.dnn.find(plugin_id) != factories.dnn.end(); in HasFactory() 154 return factories.fft.find(plugin_id) != factories.fft.end(); in HasFactory() [all …]
|
D | plugin_registry.h | 128 std::map<PluginId, FactoryT>* factories); 133 PluginId plugin_id, const std::map<PluginId, FactoryT>& factories, 139 bool HasFactory(const PluginFactories& factories, PluginKind plugin_kind,
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ICUServiceThreadTest.java | 211 List factories; field in ICUServiceThreadTest.UnregisterFactoryThread 217 factories = service.factories(); in UnregisterFactoryThread() 222 int s = factories.size(); in iterate() 224 factories = service.factories(); in iterate() 227 Factory f = (Factory)factories.remove(n); in iterate() 235 Factory[] factories; field in ICUServiceThreadTest.UnregisterFactoryListThread 238 … UnregisterFactoryListThread(String name, ICUService service, long delay, Factory[] factories) { in UnregisterFactoryListThread() argument 241 this.factories = factories; in UnregisterFactoryListThread() 246 if (n < factories.length) { in iterate() 247 Factory f = factories[n++]; in iterate() [all …]
|
D | ICUServiceTest.java | 142 List factories = service.factories(); in TestAPI() local 143 confirmIdentical("4) factory size", factories.size(), 2); in TestAPI() 149 confirmIdentical("5) factory size", factories.size(), 2); in TestAPI() 160 factories = service.factories(); in TestAPI() 161 confirmIdentical("9) factory size", factories.size(), 4); in TestAPI() 169 service.unregisterFactory((Factory)factories.get(0)); in TestAPI() 170 factories = service.factories(); in TestAPI() 171 confirmIdentical("11) factory size", factories.size(), 3); in TestAPI() 778 List factories = service.factories(); in TestLocale() local 779 Iterator iter = factories.iterator(); in TestLocale()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ICUServiceThreadTest.java | 208 List factories; field in ICUServiceThreadTest.UnregisterFactoryThread 214 factories = service.factories(); in UnregisterFactoryThread() 219 int s = factories.size(); in iterate() 221 factories = service.factories(); in iterate() 224 Factory f = (Factory)factories.remove(n); in iterate() 232 Factory[] factories; field in ICUServiceThreadTest.UnregisterFactoryListThread 235 … UnregisterFactoryListThread(String name, ICUService service, long delay, Factory[] factories) { in UnregisterFactoryListThread() argument 238 this.factories = factories; in UnregisterFactoryListThread() 243 if (n < factories.length) { in iterate() 244 Factory f = factories[n++]; in iterate() [all …]
|
D | ICUServiceTest.java | 139 List factories = service.factories(); in TestAPI() local 140 confirmIdentical("4) factory size", factories.size(), 2); in TestAPI() 146 confirmIdentical("5) factory size", factories.size(), 2); in TestAPI() 157 factories = service.factories(); in TestAPI() 158 confirmIdentical("9) factory size", factories.size(), 4); in TestAPI() 166 service.unregisterFactory((Factory)factories.get(0)); in TestAPI() 167 factories = service.factories(); in TestAPI() 168 confirmIdentical("11) factory size", factories.size(), 3); in TestAPI() 775 List factories = service.factories(); in TestLocale() local 776 Iterator iter = factories.iterator(); in TestLocale()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | device_factory.cc | 46 static std::unordered_map<string, FactoryItem>* factories = in device_factories() local 48 return *factories; in device_factories() 56 std::unordered_map<string, FactoryItem>& factories = device_factories(); in DevicePriority() local 57 auto iter = factories.find(device_type); in DevicePriority() 58 if (iter != factories.end()) { in DevicePriority() 70 std::unordered_map<string, FactoryItem>& factories = device_factories(); in Register() local 71 auto iter = factories.find(device_type); in Register() 72 if (iter == factories.end()) { in Register() 73 factories[device_type] = {std::move(factory_ptr), priority}; in Register()
|
/external/conscrypt/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/ |
D | AndroidEndpointFactory.java | 20 private final Factories factories; field in AndroidEndpointFactory 22 AndroidEndpointFactory(Factories factories) { in AndroidEndpointFactory() argument 23 this.factories = factories; in AndroidEndpointFactory() 30 factories.clientFactory, channelType, port, protocols, ciphers); in newClient() 36 return new ServerEndpoint(factories.serverFactory, factories.serverSocketFactory, in newServer()
|
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/ |
D | AndroidEndpointFactory.java | 18 private final Factories factories; field in AndroidEndpointFactory 20 AndroidEndpointFactory(Factories factories) { in AndroidEndpointFactory() argument 21 this.factories = factories; in AndroidEndpointFactory() 28 factories.clientFactory, channelType, port, protocols, ciphers); in newClient() 34 return new ServerEndpoint(factories.serverFactory, factories.serverSocketFactory, in newServer()
|
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/ |
D | OpenJdkEndpointFactory.java | 20 private final Factories factories; field in OpenJdkEndpointFactory 22 OpenJdkEndpointFactory(Factories factories) { in OpenJdkEndpointFactory() argument 23 this.factories = factories; in OpenJdkEndpointFactory() 30 factories.clientFactory, channelType, port, protocols, ciphers); in newClient() 36 return new ServerEndpoint(factories.serverFactory, factories.serverSocketFactory, in newServer()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | compiler.cc | 76 auto* factories = GetPlatformCompilerFactories(); in RegisterCompilerFactory() local 77 CHECK(factories->find(platform_id) == factories->end()) in RegisterCompilerFactory() 79 (*factories)[platform_id] = std::move(compiler_factory); in RegisterCompilerFactory() 98 auto* factories = GetPlatformCompilerFactories(); in GetForPlatform() local 99 auto it = factories->find(platform->id()); in GetForPlatform() 100 if (it == factories->end()) { in GetForPlatform()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | StatsTraceContext.java | 50 List<ClientStreamTracer.Factory> factories = callOptions.getStreamTracerFactories(); in newClientContext() local 51 if (factories.isEmpty()) { in newClientContext() 56 StreamTracer[] tracers = new StreamTracer[factories.size()]; in newClientContext() 58 tracers[i] = factories.get(i).newClientStreamTracer(callOptions, headers); in newClientContext() 67 List<ServerStreamTracer.Factory> factories, String fullMethodName, Metadata headers) { in newServerContext() argument 68 if (factories.isEmpty()) { in newServerContext() 71 StreamTracer[] tracers = new StreamTracer[factories.size()]; in newServerContext() 73 tracers[i] = factories.get(i).newServerStreamTracer(fullMethodName, headers); in newServerContext()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestIdentity.java | 28 List<Factory> factories = new ArrayList<Factory>(); in TestIdentityVsFilename() local 29 factories.add(testInfo.getFullCldrFactory()); in TestIdentityVsFilename() 31 factories.add(testInfo.getExemplarsFactory()); in TestIdentityVsFilename() 32 factories.add(testInfo.getCollationFactory()); in TestIdentityVsFilename() 33 factories.add(testInfo.getRBNFFactory()); in TestIdentityVsFilename() 34 factories.add(testInfo.getAnnotationsFactory()); in TestIdentityVsFilename() 36 for (Factory factory : factories) { in TestIdentityVsFilename()
|
D | TestIntMap.java | 30 Object[] factories = { new BasicIntMapFactory<String>(), in main() local 36 checkSamples(factories, samples); in main() 48 checkSamples(factories, samples); in main() 51 private static void checkSamples(Object[] factories, Set<String> samples) { in checkSamples() argument 59 for (Object factoryObject : factories) { in checkSamples()
|
/external/icu/icu4c/source/common/ |
D | serv.cpp | 341 , factories(NULL) in ICUService() 351 , factories(NULL) in ICUService() 363 delete factories; in ~ICUService() 364 factories = NULL; in ~ICUService() 471 int32_t limit = factories->size(); in getKey() 476 if (factory == (const ICUServiceFactory*)factories->elementAt(i)) { in getKey() 504 ICUServiceFactory* f = (ICUServiceFactory*)factories->elementAt(index++); in getKey() 668 } else if (factories != NULL) { in getVisibleIDMap() 669 for (int32_t pos = factories->size(); --pos >= 0;) { in getVisibleIDMap() 670 ICUServiceFactory* f = (ICUServiceFactory*)factories->elementAt(pos); in getVisibleIDMap() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUService.java | 125 private final List<Factory> factories = new ArrayList<Factory>(); field in ICUService 394 if (factories.size() == 0) { in getKey() 423 int limit = factories.size(); in getKey() 427 if (factory == factories.get(i)) { in getKey() 458 Factory f = factories.get(index++); in getKey() 590 ListIterator<Factory> lIter = factories.listIterator(factories.size()); in getVisibleIDMap() 759 public final List<Factory> factories() { in factories() method in ICUService 762 return new ArrayList<Factory>(factories); in factories() 798 factories.add(0, factory); in registerFactory() 821 if (factories.remove(factory)) { in unregisterFactory() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUService.java | 127 private final List<Factory> factories = new ArrayList<Factory>(); field in ICUService 399 if (factories.size() == 0) { in getKey() 428 int limit = factories.size(); in getKey() 432 if (factory == factories.get(i)) { in getKey() 463 Factory f = factories.get(index++); in getKey() 595 ListIterator<Factory> lIter = factories.listIterator(factories.size()); in getVisibleIDMap() 764 public final List<Factory> factories() { in factories() method in ICUService 767 return new ArrayList<Factory>(factories); in factories() 803 factories.add(0, factory); in registerFactory() 826 if (factories.remove(factory)) { in unregisterFactory() [all …]
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | ClassSanityTester.java | 310 List<? extends Invokable<?, ?>> factories = Lists.reverse(getFactories(TypeToken.of(cls))); in doTestEquals() local 311 if (factories.isEmpty()) { in doTestEquals() 314 int numberOfParameters = factories.get(0).getParameters().size(); in doTestEquals() 320 for (Invokable<?, ?> factory : factories) { in doTestEquals() 407 private final ImmutableList<Invokable<?, ?>> factories; field in ClassSanityTester.FactoryMethodReturnValueTester 413 ImmutableList<Invokable<?, ?>> factories, in FactoryMethodReturnValueTester() argument 416 this.factories = factories; in FactoryMethodReturnValueTester() 541 for (Invokable<?, ?> factory : factories) { in getFactoriesToTest() 685 List<Invokable<?, ? extends T>> factories = Lists.newArrayList(); in getFactories() local 694 factories.add(factory); in getFactories() [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/ |
D | TranscoderRegistry.java | 15 private final Map<MultiClassKey, ResourceTranscoder<?, ?>> factories = field in TranscoderRegistry 29 factories.put(new MultiClassKey(decodedClass, transcodedClass), transcoder); in register() 50 result = factories.get(GET_KEY); in get()
|
/external/apache-http/src/org/apache/commons/logging/ |
D | LogFactory.java | 289 protected static Hashtable factories = null; field in LogFactory 697 synchronized (factories) { in release() 704 LogFactory factory = (LogFactory) factories.get(classLoader); in release() 707 factories.remove(classLoader); in release() 728 synchronized (factories) { in releaseAll() 729 Enumeration elements = factories.elements(); in releaseAll() 734 factories.clear(); in releaseAll() 923 factory = (LogFactory) factories.get(contextClassLoader); 948 factories.put(classLoader, factory); 1740 factories = createFactoryStore();
|
/external/dagger2/producers/src/main/java/dagger/producers/monitoring/internal/ |
D | Monitors.java | 47 Collection<? extends ProductionComponentMonitor.Factory> factories) { in delegatingProductionComponentMonitorFactory() argument 48 if (factories.isEmpty()) { in delegatingProductionComponentMonitorFactory() 50 } else if (factories.size() == 1) { in delegatingProductionComponentMonitorFactory() 51 return new NonThrowingProductionComponentMonitor.Factory(Iterables.getOnlyElement(factories)); in delegatingProductionComponentMonitorFactory() 53 return new DelegatingProductionComponentMonitor.Factory(factories); in delegatingProductionComponentMonitorFactory()
|
/external/catch2/include/internal/ |
D | catch_list.cpp | 130 …IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactori… in listReporters() local 132 for( auto const& factoryKvp : factories ) in listReporters() 135 for( auto const& factoryKvp : factories ) { in listReporters() 147 return factories.size(); in listReporters()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/ |
D | StreamUrlLoader.java | 26 … public ModelLoader<URL, InputStream> build(Context context, GenericLoaderFactory factories) { in build() argument 27 … return new StreamUrlLoader(factories.buildModelLoader(GlideUrl.class, InputStream.class)); in build()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateBirth.java | 49 static final Factory[] factories = new Factory[VERSIONS.length]; field in GenerateBirth 87 list.toArray(factories); in main() 116 for (String fileName : factories[0].getAvailable()) { in main() 189 CLDRFile[] files = new CLDRFile[factories.length]; in Births() 190 for (int i = 0; i < factories.length; ++i) { in Births() 192 files[i] = factories[i].make(file, false); in Births()
|