Home
last modified time | relevance | path

Searched refs:Cardinality (Results 1 – 25 of 117) sorted by relevance

12345

/external/llvm-project/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-cardinalities.h85 class GTEST_API_ Cardinality {
89 Cardinality() {} in Cardinality() function
92 explicit Cardinality(const CardinalityInterface* impl) : impl_(impl) {} in Cardinality() function
128 GTEST_API_ Cardinality AtLeast(int n);
131 GTEST_API_ Cardinality AtMost(int n);
134 GTEST_API_ Cardinality AnyNumber();
137 GTEST_API_ Cardinality Between(int min, int max);
140 GTEST_API_ Cardinality Exactly(int n);
143 inline Cardinality MakeCardinality(const CardinalityInterface* c) { in MakeCardinality()
144 return Cardinality(c); in MakeCardinality()
/external/python/parse_type/tests/
Dtest_cardinality.py9 from parse_type import Cardinality, TypeBuilder, build_type_dict
20 assert Cardinality.optional is Cardinality.zero_or_one
21 assert Cardinality.many0 is Cardinality.zero_or_more
22 assert Cardinality.many is Cardinality.one_or_more
25 expected_pattern = Cardinality.one.make_pattern(pattern)
30 expected_pattern = Cardinality.zero_or_one.schema % pattern
35 expected_pattern = Cardinality.zero_or_more.make_pattern(pattern)
40 expected_pattern = Cardinality.one_or_more.make_pattern(pattern)
45 expected = Cardinality.optional.make_pattern(pattern)
50 expected = Cardinality.many0.make_pattern(pattern)
[all …]
Dtest_cardinality_field.py23 from parse_type import Cardinality
54 self.assertEqual(actual, ("Color", Cardinality.optional))
55 self.assertEqual(actual, ("Color", Cardinality.zero_or_one))
58 self.assertEqual(actual, ("Color", Cardinality.many))
59 self.assertEqual(actual, ("Color", Cardinality.one_or_more))
62 self.assertEqual(actual, ("Color", Cardinality.many0))
63 self.assertEqual(actual, ("Color", Cardinality.zero_or_more))
77 self.assertEqual(actual, ("Color", Cardinality.one))
81 expected = (type_name, Cardinality.one)
88 type_name = CardinalityField.make_type("Number", Cardinality.one)
[all …]
/external/googletest/googlemock/test/
Dgmock-cardinalities_test.cc46 using testing::Cardinality;
63 Cardinality c; in TEST()
69 Cardinality c = Exactly(1); in TEST()
82 const Cardinality c = AtMost(5); in TEST()
92 Cardinality::DescribeActualCallCountTo(0, &ss0); in TEST()
96 Cardinality::DescribeActualCallCountTo(1, &ss1); in TEST()
100 Cardinality::DescribeActualCallCountTo(2, &ss2); in TEST()
104 Cardinality::DescribeActualCallCountTo(3, &ss3); in TEST()
110 const Cardinality c = AnyNumber(); in TEST()
127 const Cardinality c = AnyNumber(); in TEST()
[all …]
/external/googletest/googlemock/include/gmock/
Dgmock-cardinalities.h89 class GTEST_API_ Cardinality {
93 Cardinality() {} in Cardinality() function
96 explicit Cardinality(const CardinalityInterface* impl) : impl_(impl) {} in Cardinality() function
134 GTEST_API_ Cardinality AtLeast(int n);
137 GTEST_API_ Cardinality AtMost(int n);
140 GTEST_API_ Cardinality AnyNumber();
143 GTEST_API_ Cardinality Between(int min, int max);
146 GTEST_API_ Cardinality Exactly(int n);
149 inline Cardinality MakeCardinality(const CardinalityInterface* c) { in MakeCardinality()
150 return Cardinality(c); in MakeCardinality()
/external/grpc-grpc/src/python/grpcio/grpc/framework/interfaces/face/
Dutilities.py52 return _MethodImplementation(cardinality.Cardinality.UNARY_UNARY,
68 return _MethodImplementation(cardinality.Cardinality.UNARY_STREAM,
84 return _MethodImplementation(cardinality.Cardinality.STREAM_UNARY,
100 return _MethodImplementation(cardinality.Cardinality.STREAM_STREAM,
116 return _MethodImplementation(cardinality.Cardinality.UNARY_UNARY,
132 return _MethodImplementation(cardinality.Cardinality.UNARY_STREAM,
149 return _MethodImplementation(cardinality.Cardinality.STREAM_UNARY,
166 return _MethodImplementation(cardinality.Cardinality.STREAM_STREAM,
/external/python/parse_type/parse_type/
Dcardinality.py23 class Cardinality(Enum): class
48 return ((self is Cardinality.zero_or_more) or
49 (self is Cardinality.one_or_more))
63 if self is Cardinality.one:
65 elif self is Cardinality.zero_or_one:
106 if cardinality is Cardinality.one:
110 if cardinality is Cardinality.zero_or_one:
124 cardinality = Cardinality.zero_or_one
151 cardinality = Cardinality.zero_or_more
179 cardinality = Cardinality.one_or_more
Dcardinality_field.py13 from parse_type.cardinality import Cardinality, TypeBuilder
33 '?': Cardinality.zero_or_one,
34 '*': Cardinality.zero_or_more,
35 '+': Cardinality.one_or_more,
60 cardinality = Cardinality.one
72 if cardinality is Cardinality.one:
/external/googletest/googlemock/src/
Dgmock-cardinalities.cc129 void Cardinality::DescribeActualCallCountTo(int actual_call_count, in DescribeActualCallCountTo()
139 GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); } in AtLeast()
142 GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); } in AtMost()
145 GTEST_API_ Cardinality AnyNumber() { return AtLeast(0); } in AnyNumber()
148 GTEST_API_ Cardinality Between(int min, int max) { in Between()
149 return Cardinality(new BetweenCardinalityImpl(min, max)); in Between()
153 GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); } in Exactly()
/external/llvm-project/llvm/utils/unittest/googlemock/src/
Dgmock-cardinalities.cc130 void Cardinality::DescribeActualCallCountTo(int actual_call_count, in DescribeActualCallCountTo()
140 GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); } in AtLeast()
143 GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); } in AtMost()
146 GTEST_API_ Cardinality AnyNumber() { return AtLeast(0); } in AnyNumber()
149 GTEST_API_ Cardinality Between(int min, int max) { in Between()
150 return Cardinality(new BetweenCardinalityImpl(min, max)); in Between()
154 GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); } in Exactly()
/external/icing/icing/schema/
Dsection-manager_test.cc98 subject->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in CreateEmailTypeConfig()
107 text->set_cardinality(PropertyConfigProto::Cardinality::OPTIONAL); in CreateEmailTypeConfig()
114 attachment->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in CreateEmailTypeConfig()
119 recipients->set_cardinality(PropertyConfigProto::Cardinality::REPEATED); in CreateEmailTypeConfig()
135 name->set_cardinality(PropertyConfigProto::Cardinality::OPTIONAL); in CreateConversationTypeConfig()
142 emails->set_cardinality(PropertyConfigProto::Cardinality::REPEATED); in CreateConversationTypeConfig()
174 property->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in TEST_F()
346 int_property->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in TEST_F()
356 double_property->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in TEST_F()
366 boolean_property->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in TEST_F()
[all …]
Dschema-util.cc47 PropertyConfigProto::Cardinality::Code_Name(old_property.cardinality()), in IsCardinalityCompatible()
49 PropertyConfigProto::Cardinality::Code_Name( in IsCardinalityCompatible()
362 PropertyConfigProto::Cardinality::Code cardinality, in ValidateCardinality()
366 if (cardinality == PropertyConfigProto::Cardinality::UNKNOWN) { in ValidateCardinality()
416 PropertyConfigProto::Cardinality::REQUIRED) { in ParsePropertyConfigs()
470 PropertyConfigProto::Cardinality::REQUIRED) { in ComputeCompatibilityDelta()
/external/grpc-grpc/src/python/grpcio/grpc/beta/
D_server_adaptations.py260 if implementation.cardinality is cardinality.Cardinality.UNARY_UNARY:
266 elif implementation.cardinality is cardinality.Cardinality.UNARY_STREAM:
272 elif implementation.cardinality is cardinality.Cardinality.STREAM_UNARY:
278 elif implementation.cardinality is cardinality.Cardinality.STREAM_STREAM:
285 if implementation.cardinality is cardinality.Cardinality.UNARY_UNARY:
291 elif implementation.cardinality is cardinality.Cardinality.UNARY_STREAM:
297 elif implementation.cardinality is cardinality.Cardinality.STREAM_UNARY:
303 elif implementation.cardinality is cardinality.Cardinality.STREAM_STREAM:
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs67 …Types.Kind), typeof(global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality) }, null, null), in TypeReflection()
428 …obuf.WellKnownTypes.Field.Types.Cardinality cardinality_ = global::Google.Protobuf.WellKnownTypes.…
433 public global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality Cardinality { property in Google.Protobuf.WellKnownTypes.Field
567 if (Cardinality != other.Cardinality) return false; in Equals()
583 …if (Cardinality != global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality.Unknown) hash ^=… in GetHashCode()
609 if (Cardinality != global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality.Unknown) { in WriteTo()
611 output.WriteEnum((int) Cardinality); in WriteTo()
653 if (Cardinality != global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality.Unknown) { in CalculateSize()
654 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Cardinality); in CalculateSize()
692 … if (other.Cardinality != global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality.Unknown) { in MergeFrom()
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_beta_features_test.py155 _UNARY_UNARY: cardinality.Cardinality.UNARY_UNARY,
156 _UNARY_STREAM: cardinality.Cardinality.UNARY_STREAM,
157 _STREAM_UNARY: cardinality.Cardinality.STREAM_UNARY,
158 _STREAM_STREAM: cardinality.Cardinality.STREAM_STREAM,
286 _UNARY_UNARY: cardinality.Cardinality.UNARY_UNARY,
287 _UNARY_STREAM: cardinality.Cardinality.UNARY_STREAM,
288 _STREAM_UNARY: cardinality.Cardinality.STREAM_UNARY,
289 _STREAM_STREAM: cardinality.Cardinality.STREAM_STREAM,
/external/protobuf/php/src/Google/Protobuf/Field/
DCardinality.php14 class Cardinality class
69 class_alias(Cardinality::class, \Google\Protobuf\Field_Cardinality::class);
/external/flatbuffers/tests/MyGame/Example/
Dmonster_test_grpc_fb.py233 'GetMaxHitPoint': cardinality.Cardinality.STREAM_UNARY,
234 'GetMinMaxHitPoints': cardinality.Cardinality.UNARY_UNARY,
235 'Retrieve': cardinality.Cardinality.UNARY_STREAM,
236 'Store': cardinality.Cardinality.UNARY_UNARY,
/external/tensorflow/tensorflow/core/kernels/data/
Drepeat_dataset_op_test.cc141 if (dataset_->Cardinality() == kInfiniteCardinality) { in TEST_P()
316 bool end_of_sequence = dataset_->Cardinality() == 0; in TEST_P()
342 if (dataset_->Cardinality() == kInfiniteCardinality && in TEST_P()
348 if (breakpoint >= dataset_->Cardinality()) { in TEST_P()
349 if (dataset_->Cardinality() == kInfiniteCardinality) { in TEST_P()
Dconcatenate_dataset_op.cc76 int64 Cardinality() const override { in Cardinality() function in tensorflow::data::ConcatenateDatasetOp::Dataset
77 int64 n1 = input_->Cardinality(); in Cardinality()
78 int64 n2 = to_concatenate_->Cardinality(); in Cardinality()
Dbatch_dataset_op.cc77 if (drop_remainder_ || input_->Cardinality() == kInfiniteCardinality) {
112 int64 Cardinality() const override { in Cardinality() function in tensorflow::data::BatchDatasetOp::Dataset
113 int64 n = input_->Cardinality(); in Cardinality()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dchoose_fastest_dataset_op.cc95 int64 cardinality = inputs[0]->Cardinality(); in MakeDataset()
98 cardinality = inputs[i]->Cardinality(); in MakeDataset()
102 inputs[i]->Cardinality() == cardinality || in MakeDataset()
103 inputs[i]->Cardinality() == kUnknownCardinality, in MakeDataset()
107 i, " has cardinality: ", inputs[i]->Cardinality(), in MakeDataset()
159 int64 Cardinality() const override { return cardinality_; } in Cardinality() function in tensorflow::data::experimental::__anon7579638e0111::ChooseFastestDatasetOp::Dataset
Dstats_dataset_ops.cc79 int64 Cardinality() const override { return input_->Cardinality(); } in Cardinality() function in tensorflow::data::experimental::__anon8343b5b60111::LatencyStatsDatasetOp::Dataset
202 int64 Cardinality() const override { return input_->Cardinality(); } in Cardinality() function in tensorflow::data::experimental::__anon8343b5b60111::BytesProducedStatsDatasetOp::Dataset
Dthreadpool_dataset_op.cc174 int64 Cardinality() const override { return input_->Cardinality(); } in Cardinality() function in tensorflow::data::experimental::__anon3c251a260111::ThreadPoolDatasetOp::Dataset
304 int64 Cardinality() const override { return input_->Cardinality(); } in Cardinality() function in tensorflow::data::experimental::__anon3c251a260111::MaxIntraOpParallelismDatasetOp::Dataset
429 int64 Cardinality() const override { return input_->Cardinality(); } in Cardinality() function in tensorflow::data::experimental::__anon3c251a260111::PrivateThreadPoolDatasetOp::Dataset
Dnon_serializable_dataset_op.cc90 int64 Cardinality() const override { return input_->Cardinality(); } in Cardinality() function in tensorflow::data::experimental::__anon5926aa950111::NonSerializableDatasetOp::Dataset
/external/tensorflow/tensorflow/core/data/service/
Dtask_runner.h36 virtual int64 Cardinality() const = 0;
48 int64 Cardinality() const override;

12345