Home
last modified time | relevance | path

Searched refs:registry (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cc35 static void CheckThreadQuantity(ThreadRegistry *registry, uptr exp_total, in CheckThreadQuantity() argument
38 registry->GetNumberOfThreads(&total, &running, &alive); in CheckThreadQuantity()
67 static void TestRegistry(ThreadRegistry *registry, bool has_quarantine) { in TestRegistry() argument
69 EXPECT_EQ(0U, registry->CreateThread(get_uid(0), true, -1, 0)); in TestRegistry()
70 registry->StartThread(0, 0, 0); in TestRegistry()
73 EXPECT_EQ(i, registry->CreateThread(get_uid(i), is_detached(i), 0, 0)); in TestRegistry()
75 CheckThreadQuantity(registry, 11, 1, 11); in TestRegistry()
78 registry->StartThread(i, 0, 0); in TestRegistry()
80 CheckThreadQuantity(registry, 11, 6, 11); in TestRegistry()
83 registry->FinishThread(i); in TestRegistry()
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dsync_handle_registry_unittest.cc19 const scoped_refptr<SyncHandleRegistry>& registry() { return registry_; } in registry() function in mojo::SyncHandleRegistryTest
36 registry()->RegisterEvent(&e, callback1); in TEST_F()
37 registry()->RegisterEvent(&e, callback2); in TEST_F()
40 registry()->Wait(stop_flags, 2); in TEST_F()
44 registry()->UnregisterEvent(&e, callback1); in TEST_F()
49 registry()->Wait(stop_flags, 2); in TEST_F()
54 registry()->UnregisterEvent(&e, callback2); in TEST_F()
66 scoped_refptr<SyncHandleRegistry> registry, bool* called) { in TEST_F() argument
67 registry->UnregisterEvent(e, other_callback); in TEST_F()
70 &e, callback1, registry(), &called2); in TEST_F()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/
DMutableHandlerRegistryTest.java46 private MutableHandlerRegistry registry = new MutableHandlerRegistry(); field in MutableHandlerRegistryTest
111 assertNull(registry.addService(basicServiceDefinition)); in simpleLookup()
112 ServerMethodDefinition<?, ?> method = registry.lookupMethod("basic/flow"); in simpleLookup()
115 assertNull(registry.lookupMethod("/basic/flow")); in simpleLookup()
116 assertNull(registry.lookupMethod("basic/basic")); in simpleLookup()
117 assertNull(registry.lookupMethod("flow/flow")); in simpleLookup()
118 assertNull(registry.lookupMethod("completely/random")); in simpleLookup()
131 assertNull(registry.addService(bindableService)); in simpleLookupWithBindable()
133 ServerMethodDefinition<?, ?> method = registry.lookupMethod("basic/flow"); in simpleLookupWithBindable()
139 assertNull(registry.addService(basicServiceDefinition)); in multiServiceLookup()
[all …]
/external/deqp/external/openglcts/modules/
DglcTestPackageRegistry.cpp254 tcu::TestPackageRegistry* registry = tcu::TestPackageRegistry::getSingleton(); in registerPackages() local
256 registry->registerPackage("CTS-Configs", createConfigPackage); in registerPackages()
259 registry->registerPackage("dEQP-EGL", createdEQPEGLPackage); in registerPackages()
261 registry->registerPackage("KHR-GLES2", createES2Package); in registerPackages()
263 registry->registerPackage("dEQP-GLES2", createdEQPES2Package); in registerPackages()
267 registry->registerPackage("GTF-GLES2", createES2GTFPackage); in registerPackages()
270 registry->registerPackage("KHR-GLES3", createES30Package); in registerPackages()
272 registry->registerPackage("dEQP-GLES3", createdEQPES30Package); in registerPackages()
276 registry->registerPackage("GTF-GLES3", createES30GTFPackage); in registerPackages()
280 registry->registerPackage("dEQP-GLES31", createdEQPES31Package); in registerPackages()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DTypeRegistryTest.cs45 … var registry = TypeRegistry.FromFiles(DurationReflection.Descriptor, StructReflection.Descriptor); in CreateWithFileDescriptor()
46 AssertDescriptorPresent(registry, Duration.Descriptor); in CreateWithFileDescriptor()
47 AssertDescriptorPresent(registry, ListValue.Descriptor); in CreateWithFileDescriptor()
48 AssertDescriptorAbsent(registry, Timestamp.Descriptor); in CreateWithFileDescriptor()
55 var registry = TypeRegistry.FromMessages(TestAllTypes.Types.NestedMessage.Descriptor); in TypesFromSameFile()
57 AssertDescriptorPresent(registry, TestFieldOrderings.Descriptor); in TypesFromSameFile()
59 AssertDescriptorPresent(registry, TestFieldOrderings.Types.NestedMessage.Descriptor); in TypesFromSameFile()
65 var registry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in DependenciesAreIncluded()
67 AssertDescriptorPresent(registry, ImportMessage.Descriptor); in DependenciesAreIncluded()
69 AssertDescriptorPresent(registry, PublicImportMessage.Descriptor); in DependenciesAreIncluded()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_op_registry.cc110 XlaOpRegistry& registry = Instance(); in RegisterCompilationDevice() local
111 mutex_lock lock(registry.mutex_); in RegisterCompilationDevice()
113 registry.compilation_devices_.emplace(device_name, registration); in RegisterCompilationDevice()
121 XlaOpRegistry& registry = Instance(); in RegisterBackend() local
122 mutex_lock lock(registry.mutex_); in RegisterBackend()
123 auto result = registry.backends_.emplace(compilation_device_name, Backend()); in RegisterBackend()
133 XlaOpRegistry& registry = Instance(); in GetCompilationDevice() local
137 static void* registration_init = [&registry]() { in GetCompilationDevice()
142 mutex_lock lock(registry.mutex_); in GetCompilationDevice()
145 registry.compilation_devices_[DEVICE_CPU]; in GetCompilationDevice()
[all …]
/external/deqp/scripts/opengl/
Dsrc_util.py30 import khr_util.registry
149 registry = getGLRegistry()
150 glFeatures = registry.getFeatures('gl')
151 esFeatures = registry.getFeatures('gles2')
152 spec = khr_util.registry.InterfaceSpec()
154 for feature in registry.getFeatures('gl'):
157 for feature in registry.getFeatures('gles2'):
161 extension = registry.extensions[extName]
166 iface = khr_util.registry.createInterface(registry, spec, 'gles2')
180 def getInterface (registry, api, version=None, profile=None, **kwargs): argument
[all …]
/external/deqp/scripts/egl/
Dlibrary.py25 import khr_util.registry
60 def getExtOnlyIface (registry, api, extensions): argument
61 spec = khr_util.registry.InterfaceSpec()
63 for extension in registry.extensions:
64 if not khr_util.registry.getExtensionName(extension) in extensions:
67 if not khr_util.registry.extensionSupports(extension, api):
72 return khr_util.registry.createInterface(registry, spec, api)
77 def genStaticLibrary (registry): argument
78 genCommandLists(registry, commandLibraryEntry,
84 def gen (registry): argument
[all …]
Dproc_address_tests.py30 import khr_util.registry
72 def getExtensionList (registry, api): argument
75 for extension in registry.extensions:
76 if not khr_util.registry.extensionSupports(extension, api):
79 spec = khr_util.registry.InterfaceSpec()
81 iface = khr_util.registry.createInterface(registry, spec, api)
86 exts.append((khr_util.registry.getExtensionName(extension),
102 def getInterfaceExactVersion (registry, api, version): argument
103 spec = khr_util.registry.InterfaceSpec()
107 for feature in registry.getFeatures(api, check):
[all …]
Dcommon.py33 import khr_util.registry
92 def getInterface (registry, api, version=None, profile=None, **kwargs): argument
93 spec = khr_util.registry.spec(registry, api, version, profile, **kwargs)
94 return khr_util.registry.createInterface(registry, spec, api)
115 def genCommandLists (registry, renderCommand, check, directory, filePattern, align=False): argument
116 for eFeature in registry.features:
124 iface = getInterface(registry, api, version=version, profile=profile)
/external/tensorflow/tensorflow/core/framework/
Dop_registration_test.cc27 void Register(const string& op_name, OpRegistry* registry) { in Register() argument
28 registry->Register([op_name](OpRegistrationData* op_reg_data) -> Status { in Register()
37 std::unique_ptr<OpRegistry> registry(new OpRegistry); in TEST() local
38 Register("Foo", registry.get()); in TEST()
40 registry->Export(true, &op_list); in TEST()
46 std::unique_ptr<OpRegistry> registry(new OpRegistry); in TEST() local
47 Register("Foo", registry.get()); in TEST()
48 Status s = registry->ProcessRegistrations(); in TEST()
52 registry->SetWatcher([](const Status& s, const OpDef& op_def) -> Status { in TEST()
56 Register("Foo", registry.get()); in TEST()
[all …]
/external/python/cpython2/Python/
D_warnings.c67 PyObject *registry; in get_once_registry() local
69 registry = get_warnings_attr("onceregistry"); in get_once_registry()
70 if (registry == NULL) { in get_once_registry()
75 if (!PyDict_Check(registry)) { in get_once_registry()
78 Py_DECREF(registry); in get_once_registry()
82 _once_registry = registry; in get_once_registry()
83 return registry; in get_once_registry()
175 already_warned(PyObject *registry, PyObject *key, int should_set) in already_warned() argument
182 already_warned = PyDict_GetItem(registry, key); in already_warned()
191 return PyDict_SetItem(registry, key, Py_True); in already_warned()
[all …]
/external/vulkan-validation-layers/build-android/
Dandroid-generate.sh26 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
27 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
28 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
29 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
30 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
31 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
32 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
33 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
34 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
35 ( cd generated/include; python3 ../../../scripts/lvl_genvk.py -registry $HEADERS_REGISTRY_PATH/vk.x…
[all …]
Dandroid-generate.bat22 set HEADERS_REGISTRY_PATH=%CD%/third_party/Vulkan-Headers/registry
25 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
26 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
27 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
28 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
29 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
30 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
31 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
32 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
33 py -3 ../../../scripts/lvl_genvk.py -registry %HEADERS_REGISTRY_PATH%/vk.xml -scripts %HEADERS_REGI…
[all …]
/external/perfetto/ui/src/common/
Dregistry_unittest.ts24 const registry = new Registry<Registrant>(); constant
28 registry.register(a);
29 registry.register(b);
31 expect(registry.get('a')).toBe(a);
32 expect(registry.get('b')).toBe(b);
36 const registry = new Registry<Registrant>(); constant
41 registry.register(a1);
42 expect(() => registry.register(a2)).toThrow();
46 const registry = new Registry<Registrant>(); constant
47 expect(() => registry.get('foo')).toThrow();
Dregistry.ts18 private registry: Map<string, T>; property in Registry
21 this.registry = new Map<string, T>();
26 if (this.registry.has(kind)) {
29 this.registry.set(kind, registrant);
33 return this.registry.has(kind);
37 const registrant = this.registry.get(kind);
45 this.registry.clear();
/external/ImageMagick/MagickCore/
Dregistry.c75 *registry = (SplayTreeInfo *) NULL; variable
155 if (registry == (void *) NULL) in DeleteImageRegistry()
157 return(DeleteNodeFromSplayTree(registry,key)); in DeleteImageRegistry()
198 if (registry == (void *) NULL) in GetImageRegistry()
200 registry_info=(RegistryInfo *) GetValueFromSplayTree(registry,key); in GetImageRegistry()
272 if (registry == (void *) NULL) in GetNextImageRegistry()
274 return((char *) GetNextKeyInSplayTree(registry)); in GetNextImageRegistry()
327 if (registry != (void *) NULL) in RegistryComponentTerminus()
328 registry=DestroySplayTree(registry); in RegistryComponentTerminus()
360 if (registry == (void *) NULL) in RemoveImageRegistry()
[all …]
/external/tensorflow/tensorflow/python/debug/cli/
Ddebugger_cli_common_test.py319 registry = debugger_cli_common.CommandHandlerRegistry()
324 registry.register_command_handler("", self._noop_handler, "")
327 registry = debugger_cli_common.CommandHandlerRegistry()
328 registry.register_command_handler("noop", self._noop_handler, "")
330 self.assertTrue(registry.is_registered("noop"))
331 self.assertFalse(registry.is_registered("beep"))
333 cmd_output = registry.dispatch_command("noop", [])
339 registry.dispatch_command("beep", [])
343 registry.dispatch_command("", [])
348 registry = debugger_cli_common.CommandHandlerRegistry()
[all …]
/external/python/cpython3/Python/
D_warnings.c99 PyObject *registry; in get_once_registry() local
102 registry = get_warnings_attr(&PyId_onceregistry, 0); in get_once_registry()
103 if (registry == NULL) { in get_once_registry()
109 if (!PyDict_Check(registry)) { in get_once_registry()
113 Py_TYPE(registry)->tp_name); in get_once_registry()
114 Py_DECREF(registry); in get_once_registry()
117 Py_SETREF(_PyRuntime.warnings.once_registry, registry); in get_once_registry()
118 return registry; in get_once_registry()
248 already_warned(PyObject *registry, PyObject *key, int should_set) in already_warned() argument
256 version_obj = _PyDict_GetItemId(registry, &PyId_version); in already_warned()
[all …]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/
DPlotTest.java195 …ass<SeriesRenderer>, SeriesAndFormatterList<MockSeries,MockFormatter1>> registry = Deencapsulation… in testAddSeries() local
196 assertEquals(1, registry.size()); in testAddSeries()
197 assertEquals(1, registry.get(cl).size()); in testAddSeries()
202 assertEquals(1, registry.size()); in testAddSeries()
203 assertEquals(1, registry.get(cl).size()); in testAddSeries()
210 assertEquals(1, registry.size()); in testAddSeries()
213 assertEquals(2, registry.get(cl).size()); in testAddSeries()
219 assertEquals(2, registry.size()); in testAddSeries()
227 …ass<SeriesRenderer>, SeriesAndFormatterList<MockSeries,MockFormatter1>> registry = Deencapsulation… in testRemoveSeries() local
243 assertEquals(2, registry.size()); in testRemoveSeries()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Reflection.Tests/
DSymbolRegistryTest.cs29 …SymbolRegistry registry = SymbolRegistry.FromFiles(new[] { ReflectionReflection.Descriptor, Google… field in Grpc.Reflection.Tests.SymbolRegistryTest
34 …Assert.AreSame(Google.Protobuf.WellKnownTypes.Duration.Descriptor.File, registry.FileByName("googl… in FileByName()
35 Assert.IsNull(registry.FileByName("somepackage/nonexistent.proto")); in FileByName()
41 …Assert.AreSame(Google.Protobuf.WellKnownTypes.Duration.Descriptor.File, registry.FileContainingSym… in FileContainingSymbol()
42 …Assert.AreSame(ReflectionReflection.Descriptor, registry.FileContainingSymbol("grpc.reflection.v1a… in FileContainingSymbol()
43 …Assert.AreSame(ReflectionReflection.Descriptor, registry.FileContainingSymbol("grpc.reflection.v1a… in FileContainingSymbol()
44 …Assert.AreSame(ReflectionReflection.Descriptor, registry.FileContainingSymbol("grpc.reflection.v1a… in FileContainingSymbol()
45 Assert.IsNull(registry.FileContainingSymbol("somepackage.Nonexistent")); in FileContainingSymbol()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DICUServiceTestSample.java112 private static ICUService registry; field in ICUServiceTestSample.HelloService
133 private static ICUService registry() { in registry() method in ICUServiceTestSample.HelloService
134 if (registry == null) { in registry()
137 return registry; in registry()
141 registry = new ICULocaleService() { in initRegistry()
170 registry().addListener(l); in addListener()
177 registry().removeListener(l); in removeListener()
184 return (HelloService)registry().get(id); in get()
188 return registry().getVisibleIDs(); in getVisibleIDs()
192 return getDisplayNames(registry(), locale); in getDisplayNames()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DICUServiceTestSample.java115 private static ICUService registry; field in ICUServiceTestSample.HelloService
136 private static ICUService registry() { in registry() method in ICUServiceTestSample.HelloService
137 if (registry == null) { in registry()
140 return registry; in registry()
144 registry = new ICULocaleService() { in initRegistry()
173 registry().addListener(l); in addListener()
180 registry().removeListener(l); in removeListener()
187 return (HelloService)registry().get(id); in get()
191 return registry().getVisibleIDs(); in getVisibleIDs()
195 return getDisplayNames(registry(), locale); in getDisplayNames()
[all …]
/external/catch2/projects/SelfTest/IntrospectiveTests/
DTagAlias.tests.cpp15 Catch::TagAliasRegistry registry; variable
17 registry.add( "[@zzz]", "[one][two]", Catch::SourceLineInfo( "file", 2 ) );
22 registry.add( "[@zzz]", "[one][two]", Catch::SourceLineInfo( "file", 10 ) );
38 CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) );
39 …CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) …
40 …CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 )…
41 …CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )…
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DDecompressorRegistryTest.java39 private DecompressorRegistry registry = DecompressorRegistry.emptyInstance(); field in DecompressorRegistryTest
65 assertTrue(registry.getAdvertisedMessageEncodings().isEmpty()); in getAdvertisedMessageEncodings_noEncodingsAdvertised()
70 registry = registry.with(dummyDecompressor, true); in registerDecompressor_advertisedDecompressor()
72 assertTrue(registry.getAdvertisedMessageEncodings() in registerDecompressor_advertisedDecompressor()
78 registry = registry.with(dummyDecompressor, false); in registerDecompressor_nonadvertisedDecompressor()
80 assertFalse(registry.getAdvertisedMessageEncodings() in registerDecompressor_nonadvertisedDecompressor()

12345678910>>...18