Home
last modified time | relevance | path

Searched refs:DefaultValue (Results 1 – 25 of 92) sorted by relevance

1234

/external/google-breakpad/src/testing/test/
Dgmock-actions_test.cc60 using testing::DefaultValue;
222 EXPECT_FALSE(DefaultValue<int>::IsSet()); in TEST()
223 EXPECT_FALSE(DefaultValue<const UserType>::IsSet()); in TEST()
228 EXPECT_TRUE(DefaultValue<int>::Exists()); in TEST()
229 EXPECT_FALSE(DefaultValue<const UserType>::Exists()); in TEST()
231 DefaultValue<int>::Set(1); in TEST()
232 DefaultValue<const UserType>::Set(UserType()); in TEST()
234 EXPECT_EQ(1, DefaultValue<int>::Get()); in TEST()
235 EXPECT_EQ(0, DefaultValue<const UserType>::Get().value); in TEST()
237 EXPECT_TRUE(DefaultValue<int>::Exists()); in TEST()
[all …]
/external/googletest/googlemock/test/
Dgmock-actions_test.cc63 using testing::DefaultValue;
256 EXPECT_FALSE(DefaultValue<int>::IsSet()); in TEST()
257 EXPECT_FALSE(DefaultValue<MyDefaultConstructible>::IsSet()); in TEST()
258 EXPECT_FALSE(DefaultValue<const MyNonDefaultConstructible>::IsSet()); in TEST()
263 EXPECT_TRUE(DefaultValue<int>::Exists()); in TEST()
264 EXPECT_FALSE(DefaultValue<const MyNonDefaultConstructible>::Exists()); in TEST()
266 DefaultValue<int>::Set(1); in TEST()
267 DefaultValue<const MyNonDefaultConstructible>::Set( in TEST()
270 EXPECT_EQ(1, DefaultValue<int>::Get()); in TEST()
271 EXPECT_EQ(42, DefaultValue<const MyNonDefaultConstructible>::Get().value()); in TEST()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DFieldCodecTest.cs86 public void DefaultValue(ICodecTestData codec) in DefaultValue() method in Google.Protobuf.FieldCodecTest
161 codec.WriteTagAndValue(codedOutput, codec.DefaultValue); in TestDefaultValue()
164 Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue)); in TestDefaultValue()
167 Assert.AreEqual(default(T), codec.DefaultValue); in TestDefaultValue()
171 if (codec.DefaultValue != null) // This part isn't appropriate for message types. in TestDefaultValue()
174 codec.ValueWriter(codedOutput, codec.DefaultValue); in TestDefaultValue()
177 Assert.AreEqual(stream.Position, codec.ValueSizeCalculator(codec.DefaultValue)); in TestDefaultValue()
180 Assert.AreEqual(codec.DefaultValue, codec.ValueReader(codedInput)); in TestDefaultValue()
/external/clang/lib/StaticAnalyzer/Core/
DAnalyzerOptions.cpp268 int DefaultValue = 0; in getMaxInlinableSize() local
274 DefaultValue = 4; in getMaxInlinableSize()
277 DefaultValue = 50; in getMaxInlinableSize()
281 MaxInlinableSize = getOptionAsInteger("max-inlinable-size", DefaultValue); in getMaxInlinableSize()
307 int DefaultValue = 0; in getMaxNodesPerTopLevelFunction() local
313 DefaultValue = 75000; in getMaxNodesPerTopLevelFunction()
316 DefaultValue = 150000; in getMaxNodesPerTopLevelFunction()
319 MaxNodesPerTopLevelFunction = getOptionAsInteger("max-nodes", DefaultValue); in getMaxNodesPerTopLevelFunction()
/external/compiler-rt/lib/esan/
Desan_flags.cpp27 #define ESAN_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in setDefaults() argument
33 #define ESAN_FLAG(Type, Name, DefaultValue, Description) \ in registerEsanFlags() argument
/external/compiler-rt/lib/scudo/
Dscudo_flags.cpp25 #define SCUDO_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in setDefaults() argument
31 #define SCUDO_FLAG(Type, Name, DefaultValue, Description) \ in RegisterScudoFlags() argument
Dscudo_flags.h20 #define SCUDO_FLAG(Type, Name, DefaultValue, Description) Type Name; argument
/external/compiler-rt/lib/ubsan/
Dubsan_flags.cc30 #define UBSAN_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in SetDefaults() argument
36 #define UBSAN_FLAG(Type, Name, DefaultValue, Description) \ in RegisterUbsanFlags() argument
/external/compiler-rt/lib/tsan/rtl/
Dtsan_flags.cc39 #define TSAN_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in SetDefaults() argument
47 #define TSAN_FLAG(Type, Name, DefaultValue, Description) \ in RegisterTsanFlags() argument
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_flags.cc39 #define COMMON_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in SetDefaults() argument
121 #define COMMON_FLAG(Type, Name, DefaultValue, Description) \ in RegisterCommonFlags() argument
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs496 public string DefaultValue { property in Google.Protobuf.WellKnownTypes.Field
523 if (DefaultValue != other.DefaultValue) return false; in Equals()
538 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); in GetHashCode()
580 if (DefaultValue.Length != 0) { in WriteTo()
582 output.WriteString(DefaultValue); in WriteTo()
613 if (DefaultValue.Length != 0) { in CalculateSize()
614 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); in CalculateSize()
648 if (other.DefaultValue.Length != 0) { in MergeFrom()
649 DefaultValue = other.DefaultValue; in MergeFrom()
697 DefaultValue = input.ReadString(); in MergeFrom()
/external/compiler-rt/lib/asan/
Dasan_flags.cc46 #define ASAN_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in SetDefaults() argument
52 #define ASAN_FLAG(Type, Name, DefaultValue, Description) \ in RegisterAsanFlags() argument
Dasan_flags.h33 #define ASAN_FLAG(Type, Name, DefaultValue, Description) Type Name; argument
/external/clang/test/SemaTemplate/
Dalias-templates.cpp172 template <typename T> struct DefaultValue { const T value=0;}; struct
174 template <typename ... Args> using Zero = tuple<DefaultValue<Args> ...>;
183 template <template<int x> class temp> struct DefaultValue { const temp<0> value; }; struct
185 template <template<int x> class... Args> using Zero = tuple<DefaultValue<Args> ...>;
/external/protobuf/src/google/protobuf/compiler/java/
Djava_map_field_lite.cc94 (*variables)["key_default_value"] = DefaultValue(key, true, name_resolver); in SetMessageVariables()
101 DefaultValue(value, true, name_resolver) + ".getNumber()"; in SetMessageVariables()
112 DefaultValue(value, true, name_resolver); in SetMessageVariables()
119 DefaultValue(value, true, name_resolver); in SetMessageVariables()
Djava_map_field.cc94 (*variables)["key_default_value"] = DefaultValue(key, true, name_resolver); in SetMessageVariables()
101 DefaultValue(value, true, name_resolver) + ".getNumber()"; in SetMessageVariables()
112 DefaultValue(value, true, name_resolver); in SetMessageVariables()
119 DefaultValue(value, true, name_resolver); in SetMessageVariables()
/external/tensorflow/tensorflow/core/kernels/
Ddecode_proto_op.cc66 struct DefaultValue { struct
91 Status InitDefaultValue(DataType dtype, const T value, DefaultValue* result) { in InitDefaultValue()
132 DefaultValue* result) { in InitDefaultValue()
151 DefaultValue* result) { in InitDefaultValueFromFieldDescriptor()
199 DefaultValue def_value) in FieldInfo()
232 DefaultValue default_value;
480 DenseCollector(uint8* datap, DefaultValue default_value, int max_repeat_count) in DenseCollector()
591 const DefaultValue default_value_;
696 DefaultValue default_value; in DecodeProtoOp()
926 const DefaultValue default_value = field_info->default_value; in AccumulateFields()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dknobs_init.h99 auto knobValue = knob.DefaultValue(); in InitKnob()
106 knob.Value(knob.DefaultValue()); in InitKnob()
/external/libchrome/base/task_scheduler/
Dtask_traits_details.h112 template <typename ArgType, ArgType DefaultValue>
116 constexpr ValueType GetDefaultValue() const { return DefaultValue; }
/external/protobuf/python/google/protobuf/internal/
Dtype_checkers.py118 def DefaultValue(self): member in TypeCheckerWithDefault
141 def DefaultValue(self): member in IntValueChecker
161 def DefaultValue(self): member in EnumValueChecker
189 def DefaultValue(self): member in UnicodeValueChecker
/external/protobuf/csharp/src/Google.Protobuf/
DFieldCodec.cs299 T value = codec.DefaultValue; in Read()
407 internal T DefaultValue { get; } property in Google.Protobuf.FieldCodec
440 DefaultValue = defaultValue; in FieldCodec()
471 private bool IsDefault(T value) => EqualityComparer<T>.Default.Equals(value, DefaultValue);
/external/sl4a/Docs/
Dgenerate_api_from_javadoc.py150 class DefaultValue(object): class
279 default = DefaultValue(match.group('default_value'))
281 default = DefaultValue(None)
/external/compiler-rt/lib/dfsan/
Ddfsan.cc345 #define DFSAN_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue; in SetDefaults() argument
351 #define DFSAN_FLAG(Type, Name, DefaultValue, Description) \ in RegisterDfsanFlags() argument
/external/libxml2/os400/libxmlrpg/
Dglobals.rpgle514 d DefaultValue')
519 d DefaultValue')
524 d DefaultValue')
529 d DefaultValue')
534 d DefaultValue')
539 d DefaultValue')
/external/compiler-rt/lib/msan/
Dmsan_flags.h19 #define MSAN_FLAG(Type, Name, DefaultValue, Description) Type Name; argument

1234