Home
last modified time | relevance | path

Searched refs:s_context (Results 1 – 25 of 80) sorted by relevance

1234

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.TypeConverter/tests/
H A DTypeConverterTests.cs14 public static ITypeDescriptorContext s_context = new MyTypeDescriptorContext(); field in System.ComponentModel.Tests.TypeConverterTests
28 TypeConverterTests.s_context, typeof(string))); in CanConvertFrom_string_WithContext()
41 TypeConverterTests.s_context, typeof(string))); in CanConvertTo_string_WithContext()
52 … () => TypeConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "1")); in ConvertFrom_Negative()
73 … () => TypeConverterTests.s_converter.ConvertFromString(TypeConverterTests.s_context, null, "1")); in ConvertFromString_WithContext()
91 …() => TypeConverterTests.s_converter.ConvertTo(TypeConverterTests.s_context, null, TypeConverterTe… in ConvertTo_WithContext()
97 … TypeConverterTests.s_context, null, TypeConverterTests.c_conversionInputValue, typeof(string)); in ConvertTo_WithContext()
101 …TypeConverterTests.s_context, CultureInfo.CurrentCulture, TypeConverterTests.c_conversionInputValu… in ConvertTo_WithContext()
105 …TypeConverterTests.s_context, CultureInfo.InvariantCulture, TypeConverterTests.c_conversionInputVa… in ConvertTo_WithContext()
109 …TypeConverterTests.s_context, CultureInfo.InvariantCulture, new FormattableClass(), typeof(string)… in ConvertTo_WithContext()
[all …]
H A DConverterTestBase.cs19 … Assert.Equal(result, converter.CanConvertTo(TypeConverterTests.s_context, destinationType)); in CanConvertTo_WithContext()
26 () => converter.ConvertTo(TypeConverterTests.s_context, null, "", null)); in ConvertTo_WithContext()
34 …Assert.Equal(expected, converter.ConvertTo(TypeConverterTests.s_context, culture, source, expected… in ConvertTo_WithContext()
44 … Assert.Equal(expected, converter.CanConvertFrom(TypeConverterTests.s_context, sourceType)); in CanConvertFrom_WithContext()
55 … Assert.Equal(expected, converter.ConvertFrom(TypeConverterTests.s_context, culture, source)); in ConvertFrom_WithContext()
H A DEnumConverterTest.cs59 …> EnumConverterTests.s_someEnumConverter.ConvertFrom(TypeConverterTests.s_context, null, "<random … in ConvertFrom_WithContext_Negative()
71 …l = EnumConverterTests.s_someEnumConverter.ConvertTo(TypeConverterTests.s_context, CultureInfo.Inv… in ConvertTo_WithContext()
84 …numConverterTests.s_someFlagsEnumConverter.ConvertTo(TypeConverterTests.s_context, CultureInfo.Inv… in ConvertTo_WithContext_Flags()
87 …numConverterTests.s_someFlagsEnumConverter.ConvertTo(TypeConverterTests.s_context, null, SomeFlags… in ConvertTo_WithContext_Flags()
94 … => EnumConverterTests.s_someEnumConverter.ConvertTo(TypeConverterTests.s_context, null, 3, typeof… in ConvertTo_WithContext_Negative()
95 …pe", () => new EnumConverter(typeof(Enum)).ConvertTo(TypeConverterTests.s_context, null, SomeFlags… in ConvertTo_WithContext_Negative()
H A DUriTypeConverterTests.cs40 … () => UriTypeConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, null)); in ConvertFrom_WithContext_Negative()
42 …() => UriTypeConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "mailto:Us… in ConvertFrom_WithContext_Negative()
H A DCharConverterTests.cs53 … () => CharConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "aaa")); in ConvertFrom_WithContext_Negative()
56 … () => CharConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, null)); in ConvertFrom_WithContext_Negative()
H A DDateTimeConverterTests.cs42 … () => DateTimeConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, 1)); in ConvertFrom_WithContext_Negative()
45 … () => DateTimeConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "aaa")); in ConvertFrom_WithContext_Negative()
H A DDateTimeOffsetConverterTests.cs42 …() => DateTimeOffsetConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, 1)); in ConvertFrom_WithContext_Negative()
45 …> DateTimeOffsetConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "aaa")); in ConvertFrom_WithContext_Negative()
H A DBooleanConverterTests.cs40 … () => BooleanConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "1")); in ConvertFrom_WithContext_Negative()
H A DTimeSpanConverterTests.cs39 …() => TimeSpanConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "random s… in ConvertFrom_WithContext_Negative()
H A DTypeListConverterTests.cs51 …() => TypeListConverterTests.s_converter.ConvertTo(TypeConverterTests.s_context, null, 3, typeof(s… in ConvertTo_WithContext_Negative()
H A DSingleConverterTests.cs29 … () => SingleConverterTests.s_converter.ConvertFrom(TypeConverterTests.s_context, null, "0x8")); in ConvertFrom_WithContext_Negative()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Annotations/tests/
H A DCompareAttributeTests.cs19 …private static ValidationContext s_context = new ValidationContext(new CompareObject("a")) { Displ… field in System.ComponentModel.DataAnnotations.Tests.CompareAttributeTests
22 … new TestCase(new CompareAttribute(nameof(CompareObject.CompareProperty)), "b", s_context), in InvalidValues()
23 …stCase(new CompareAttribute(nameof(CompareObject.ComparePropertyWithDisplayName)), "b", s_context), in InvalidValues()
24 new TestCase(new CompareAttribute("NoSuchProperty"), "b", s_context), in InvalidValues()
50 Assert.Throws<TargetParameterCountException>(() => attribute.Validate("b", s_context)); in Validate_Indexer_ThrowsTargetParameterCountException_Netfx()
58 … AssertExtensions.Throws<ArgumentException>(null, () => attribute.Validate("b", s_context)); in Validate_Indexer_ThrowsArgumentException_Netcoreapp()
65 … AssertExtensions.Throws<ArgumentException>(null, () => attribute.Validate("b", s_context)); in Validate_SetOnlyProperty_ThrowsArgumentException()
72 Assert.NotNull(attribute.GetValidationResult("b", s_context).ErrorMessage); in Validate_LowerAndUpperPropertyName_Success()
73 Assert.Equal(ValidationResult.Success, attribute.GetValidationResult(null, s_context)); in Validate_LowerAndUpperPropertyName_Success()
81 Assert.Throws<ValidationException>(() => attribute.Validate("b", s_context)); in Validate_PrivateProperty_ThrowsArgumentException()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/
H A DLicenseManager.cs25 private static volatile LicenseContext s_context; field in System.ComponentModel.LicenseManager
48 if (s_context == null)
52 if (s_context == null)
54 s_context = new System.ComponentModel.Design.RuntimeLicenseContext();
58 return s_context;
68 s_context = value;
82 if (s_context != null)
84 return s_context.UsageMode;
/dports/audio/kmix/kmix-21.12.3/backends/
H A Dmixer_pulse.cpp53 static pa_context *s_context = NULL; variable
83 if (s_context != c) { in dec_outstanding()
563 Q_ASSERT(c == s_context); in ext_stream_restore_subscribe_cb()
572 Q_ASSERT(c == s_context); in subscribe_cb()
636 if (s_context == c) { in context_state_callback()
679 if (s_context != c) { in context_state_callback()
683 s_context = NULL; in context_state_callback()
943 Q_ASSERT(NULL == s_context); in connectToDaemon()
954 Q_ASSERT(s_context); in connectToDaemon()
958 s_context = NULL; in connectToDaemon()
[all …]
/dports/multimedia/audacious-plugins/audacious-plugins-4.1/src/glspectrum/
H A Dgl-spectrum.cc87 static GLXContext s_context; variable
252 if (! s_context) in draw_cb()
318 s_context = glXCreateContext (s_display, xvinfo, 0, true); in widget_realized()
319 g_return_if_fail (s_context); in widget_realized()
323 glXMakeCurrent (s_display, s_xwindow, s_context); in widget_realized()
380 if (s_context) in widget_destroyed()
383 glXDestroyContext (s_display, s_context); in widget_destroyed()
384 s_context = nullptr; in widget_destroyed()
/dports/lang/lafontaine/lafontaine-0.4/src/
H A Dcontext.c50 struct s_context *context = _XNEW0(struct s_context, 1); in context_save()
92 struct s_context *context = in context_restore()
93 (struct s_context *) g_slist_nth_data(proc->contexts, 0); in context_restore()
/dports/converters/wkhtmltopdf/qt-5db36ec/src/3rdparty/phonon/phonon/
H A Dpulsesupport.cpp137 static pa_context *s_context = NULL; variable
194 if (s_context != c) in ext_device_manager_read_cb()
324 if (s_context != c) in ext_device_manager_read_cb()
561 if (s_context == c) { in context_state_callback()
575 if (s_context == c) { in context_state_callback()
592 if (s_context != c) in context_state_callback()
604 if (s_context != c) in context_state_callback()
612 if (s_context != c) in context_state_callback()
726 if (s_context) { in ~PulseSupport()
727 pa_context_disconnect(s_context); in ~PulseSupport()
[all …]
/dports/x11-wm/plasma5-kwin/kwin-5.23.5/src/libinput/
H A Dconnection.cpp83 static Context *s_context = nullptr; variable
114 if (!s_context) { in create()
116 if (!s_context->isValid()) { in create()
118 delete s_context; in create()
119 s_context = nullptr; in create()
125 delete s_context; in create()
126 s_context = nullptr; in create()
130 s_self = new Connection(s_context); in create()
157 delete s_context; in ~Connection()
158 s_context = nullptr; in ~Connection()
[all …]
/dports/multimedia/phonon-designerplugin/phonon-4.11.1/phonon/
H A Dpulsesupport.cpp148 static pa_context *s_context = NULL; variable
302 if (s_context != c) { in ext_device_manager_read_cb()
438 if (s_context != c) in ext_device_manager_read_cb()
686 if (s_context == c) { in context_state_callback()
725 if (s_context == c) { in context_state_callback()
737 if (s_context != c) { in context_state_callback()
752 if (s_context != c) { in context_state_callback()
765 if (s_context != c) in context_state_callback()
769 s_context = NULL; in context_state_callback()
907 if (s_context) { in ~PulseSupport()
[all …]
/dports/multimedia/phonon/phonon-4.11.1/phonon/
H A Dpulsesupport.cpp148 static pa_context *s_context = NULL; variable
302 if (s_context != c) { in ext_device_manager_read_cb()
438 if (s_context != c) in ext_device_manager_read_cb()
686 if (s_context == c) { in context_state_callback()
725 if (s_context == c) { in context_state_callback()
737 if (s_context != c) { in context_state_callback()
752 if (s_context != c) { in context_state_callback()
765 if (s_context != c) in context_state_callback()
769 s_context = NULL; in context_state_callback()
907 if (s_context) { in ~PulseSupport()
[all …]
/dports/net/kea/kea-2.0.1/src/lib/yang/tests/
H A Dtranslator_control_socket_unittests.cc84 S_Val s_context(new Val("{ \"foo\": 1 }")); in TEST_F() local
85 EXPECT_NO_THROW(sess_->set_item(xcontext.c_str(), s_context)); in TEST_F()
157 S_Val s_context(new Val("{ \"foo\": 1 }")); in TEST_F() local
158 EXPECT_NO_THROW(sess_->set_item(xcontext.c_str(), s_context)); in TEST_F()
/dports/security/snort3/snort3-3.1.19.0/src/search_engines/
H A Dsearch_tool.h39 void add(const char* pattern, unsigned len, void* s_context, bool no_case = true);
42 void add(const uint8_t* pattern, unsigned len, void* s_context, bool no_case = true);
/dports/x11-wm/plasma5-kwin/kwin-5.23.5/src/
H A Dftrace.h76 static QAtomicInteger<quint32> s_context = 0; in FTraceDuration() local
80 m_context = ++s_context; in FTraceDuration()
/dports/editors/quilter/quilter-2.2.3/src/Widgets/
H A DSideBar.vala75 var s_context = stackswitcher.get_style_context ();
76 s_context.add_class ("linked");
87 s_context.add_class ("dark-switcher");
89 s_context.remove_class ("dark-switcher");
94 s_context.add_class ("dark-switcher");
96 s_context.remove_class ("dark-switcher");
/dports/lang/lafontaine/lafontaine-0.4/include/
H A Dcontext.h17 struct s_context { struct

1234