Home
last modified time | relevance | path

Searched refs:constraint (Results 1 – 25 of 814) sorted by relevance

12345678910>>...33

/external/guava/guava/src/com/google/common/collect/
DConstraints.java53 Collection<E> collection, Constraint<? super E> constraint) { in constrainedCollection() argument
54 return new ConstrainedCollection<E>(collection, constraint); in constrainedCollection()
60 private final Constraint<? super E> constraint; field in Constraints.ConstrainedCollection
63 Collection<E> delegate, Constraint<? super E> constraint) { in ConstrainedCollection() argument
65 this.constraint = checkNotNull(constraint); in ConstrainedCollection()
71 constraint.checkElement(element); in add()
75 return delegate.addAll(checkElements(elements, constraint)); in addAll()
92 Set<E> set, Constraint<? super E> constraint) { in constrainedSet() argument
93 return new ConstrainedSet<E>(set, constraint); in constrainedSet()
99 private final Constraint<? super E> constraint; field in Constraints.ConstrainedSet
[all …]
DMapConstraints.java85 Map<K, V> map, MapConstraint<? super K, ? super V> constraint) { in constrainedMap() argument
86 return new ConstrainedMap<K, V>(map, constraint); in constrainedMap()
106 Multimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) { in constrainedMultimap() argument
107 return new ConstrainedMultimap<K, V>(multimap, constraint); in constrainedMultimap()
128 MapConstraint<? super K, ? super V> constraint) { in constrainedListMultimap() argument
129 return new ConstrainedListMultimap<K, V>(multimap, constraint); in constrainedListMultimap()
149 MapConstraint<? super K, ? super V> constraint) { in constrainedSetMultimap() argument
150 return new ConstrainedSetMultimap<K, V>(multimap, constraint); in constrainedSetMultimap()
170 MapConstraint<? super K, ? super V> constraint) { in constrainedSortedSetMultimap() argument
171 return new ConstrainedSortedSetMultimap<K, V>(multimap, constraint); in constrainedSortedSetMultimap()
[all …]
/external/python/pyasn1/tests/type/
Dtest_constraint.py17 from pyasn1.type import constraint
24 self.c1 = constraint.SingleValueConstraint(1, 2)
25 self.c2 = constraint.SingleValueConstraint(3, 4)
52 self.c1 = constraint.ContainedSubtypeConstraint(
53 constraint.SingleValueConstraint(12)
74 self.c1 = constraint.ValueRangeConstraint(1, 4)
94 self.c1 = constraint.ValueSizeConstraint(1, 2)
113 self.c1 = constraint.PermittedAlphabetConstraint('A', 'B', 'C')
114 self.c2 = constraint.PermittedAlphabetConstraint('DEF')
134 self.c1 = constraint.ConstraintsIntersection(
[all …]
/external/python/pyasn1-modules/pyasn1_modules/
Drfc5280.py16 from pyasn1.type import constraint
75 Extensions.subtypeSpec = constraint.ValueSizeConstraint(1, MAX)
92 subtypeSpec=constraint.ValueSizeConstraint(1, ub_pds_parameter_length)))),
94 subtypeSpec=constraint.ValueSizeConstraint(1, ub_unformatted_address_length)))
106 subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
108 subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
110 subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
112 … char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
114 … char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name)))
134 subtypeSpec=constraint.ValueSizeConstraint(1, ub_postal_code_length))),
[all …]
Drfc3280.py16 from pyasn1.type import constraint
48 OrganizationalUnitName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organizational_unit_name_…
56 OrganizationalUnitNames.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organizational_units)
76 subtypeSpec=constraint.ValueSizeConstraint(1, ub_pds_parameter_length))),
78 subtypeSpec=constraint.ValueSizeConstraint(1, ub_pds_parameter_length)))
99 subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_defined_attribute_type_length))),
101 subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_defined_attribute_value_length)))
155 Extensions.subtypeSpec = constraint.ValueSizeConstraint(1, MAX)
222 RelativeDistinguishedName.subtypeSpec = constraint.ValueSizeConstraint(1, MAX)
281 TeletexOrganizationName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organization_name_length)
[all …]
Drfc2459.py17 from pyasn1.type import constraint
108 … char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
110 … char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
112 … char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
114 … char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
116 … char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name)))
126 subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
128 subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
130 subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
132 … char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
[all …]
Drfc1902.py12 from pyasn1.type import constraint
19 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
25 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
31 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueSizeConstraint(
40 subtypeSpec = univ.OctetString.subtypeSpec + constraint.ValueSizeConstraint(
49 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
58 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
67 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
76 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
91 subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint(
Drfc3412.py12 from pyasn1.type import constraint
37 … univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
39 … univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(484, 2147483647))),
40 …namedtype.NamedType('msgFlags', univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstra…
42 … univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(1, 2147483647)))
49 … univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
/external/v8/src/compiler/
Dregister-allocator-verifier.cc93 const OperandConstraint& constraint) { in VerifyInput() argument
94 CHECK_NE(kSameAsFirst, constraint.type_); in VerifyInput()
95 if (constraint.type_ != kImmediate && constraint.type_ != kExplicit) { in VerifyInput()
97 constraint.virtual_register_); in VerifyInput()
102 const OperandConstraint& constraint) { in VerifyTemp() argument
103 CHECK_NE(kSameAsFirst, constraint.type_); in VerifyTemp()
104 CHECK_NE(kImmediate, constraint.type_); in VerifyTemp()
105 CHECK_NE(kExplicit, constraint.type_); in VerifyTemp()
106 CHECK_NE(kConstant, constraint.type_); in VerifyTemp()
110 const OperandConstraint& constraint) { in VerifyOutput() argument
[all …]
/external/tensorflow/tensorflow/core/framework/
Dkernel_def_util.cc39 for (const auto& constraint : kernel_def.constraint()) { in KernelAttrsMatch() local
40 if (constraint.allowed_values().list().type_size() == 0) { in KernelAttrsMatch()
43 " has constraint on attr '", constraint.name(), in KernelAttrsMatch()
45 SummarizeAttrValue(constraint.allowed_values())); in KernelAttrsMatch()
48 const AttrValue* found = attrs.Find(constraint.name()); in KernelAttrsMatch()
51 if (!InTypeList(found->type(), constraint.allowed_values())) { in KernelAttrsMatch()
58 "' has constraint on attr '", constraint.name(), in KernelAttrsMatch()
67 constraint.allowed_values())) { in KernelAttrsMatch()
75 constraint.name(), "' not in NodeDef '", attrs.SummarizeNode(), in KernelAttrsMatch()
Dkernel_def_builder.cc39 auto* constraint = kernel_def_->add_constraint(); in TypeConstraint() local
40 constraint->set_name(attr_name); in TypeConstraint()
41 auto* allowed_values = constraint->mutable_allowed_values()->mutable_list(); in TypeConstraint()
50 auto* constraint = kernel_def_->add_constraint(); in TypeConstraint() local
51 constraint->set_name(attr_name); in TypeConstraint()
52 constraint->mutable_allowed_values()->mutable_list()->add_type(allowed); in TypeConstraint()
/external/webrtc/talk/app/webrtc/
Dvideosource.cc95 const MediaConstraintsInterface::Constraint& constraint, in SetUpperLimitFromConstraint() argument
97 if (constraint.key == MediaConstraintsInterface::kMaxWidth) { in SetUpperLimitFromConstraint()
98 int value = rtc::FromString<int>(constraint.value); in SetUpperLimitFromConstraint()
100 } else if (constraint.key == MediaConstraintsInterface::kMaxHeight) { in SetUpperLimitFromConstraint()
101 int value = rtc::FromString<int>(constraint.value); in SetUpperLimitFromConstraint()
128 const MediaConstraintsInterface::Constraint& constraint, in NewFormatWithConstraints() argument
135 if (constraint.key == MediaConstraintsInterface::kMinWidth) { in NewFormatWithConstraints()
136 int value = rtc::FromString<int>(constraint.value); in NewFormatWithConstraints()
138 } else if (constraint.key == MediaConstraintsInterface::kMaxWidth) { in NewFormatWithConstraints()
139 int value = rtc::FromString<int>(constraint.value); in NewFormatWithConstraints()
[all …]
/external/harfbuzz_ng/src/
Dgen-vowel-constraints.py61 def __init__ (self, constraint): argument
68 self._c = constraint
70 def add (self, constraint): argument
72 if not constraint:
74 first = constraint[0]
75 rest = constraint[1:]
77 if constraint == self._c[:len (constraint)]:
78 self._c = constraint
79 elif self._c != constraint[:len (self._c)]:
136 constraint = [int (cp, 16) for cp in line.split (';')[0].split ()] variable
[all …]
/external/python/pyasn1/docs/source/pyasn1/type/constraint/
Dcontents.rst2 .. _type.constraint:
30 /pyasn1/type/constraint/singlevalue
31 /pyasn1/type/constraint/containedsubtype
32 /pyasn1/type/constraint/valuerange
33 /pyasn1/type/constraint/valuesize
34 /pyasn1/type/constraint/permittedalphabet
41 this situation, individual constraint objects can be glued together
45 as the constraint objects do with the only difference that logic operators
46 are instantiated on the constraint and logic operator objects, not on the
65 /pyasn1/type/constraint/constraintsintersection
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DSimplexTableau.java182 LinearConstraint constraint = constraints.get(i); in createTableau() local
186 copyArray(constraint.getCoefficients().getData(), matrix.getDataRef()[row]); in createTableau()
191 getInvertedCoeffiecientSum(constraint.getCoefficients())); in createTableau()
195 matrix.setEntry(row, width - 1, constraint.getValue()); in createTableau()
198 if (constraint.getRelationship() == Relationship.LEQ) { in createTableau()
200 } else if (constraint.getRelationship() == Relationship.GEQ) { in createTableau()
205 if ((constraint.getRelationship() == Relationship.EQ) || in createTableau()
206 (constraint.getRelationship() == Relationship.GEQ)) { in createTableau()
223 for (LinearConstraint constraint : originalConstraints) { in normalizeConstraints()
224 normalized.add(normalize(constraint)); in normalizeConstraints()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dinlineasm-illegal-type.ll5 ; GCN: error: couldn't allocate output register for constraint 's'
6 ; GCN: error: couldn't allocate input reg for constraint 's'
13 ; GCN: error: couldn't allocate output register for constraint 'v'
14 ; GCN: error: couldn't allocate input reg for constraint 'v'
21 ; GCN: error: couldn't allocate output register for constraint 's'
22 ; GCN: error: couldn't allocate input reg for constraint 's'
29 ; SICI: error: couldn't allocate output register for constraint 's'
30 ; SICI: error: couldn't allocate input reg for constraint 's'
38 ; SICI: error: couldn't allocate output register for constraint 'v'
39 ; SICI: error: couldn't allocate input reg for constraint 'v'
[all …]
/external/tensorflow/tensorflow/python/ops/
Dvariable_scope.py297 constraint=None, argument
448 constraint=None, argument
473 constraint=constraint,
494 constraint=constraint,
517 constraint=constraint,
549 custom_getter_kwargs["constraint"] = constraint
565 constraint=constraint,
582 constraint=None, argument
781 constraint=constraint,
813 constraint=None, argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/
Dinlineasm.ll13 define float @t-constraint-int(i32 %i) {
14 ; CHECK-LABEL: t-constraint-int
20 define <2 x i32> @t-constraint-int-vector-64bit(<2 x float> %x) {
22 ; CHECK-LABEL: t-constraint-int-vector-64bit
28 define <4 x i32> @t-constraint-int-vector-128bit(<4 x float> %x) {
30 ; CHECK-LABEL: t-constraint-int-vector-128bit
36 define <2 x float> @t-constraint-float-vector-64bit(<2 x float> %a, <2 x float> %b) {
38 ; CHECK-LABEL: t-constraint-float-vector-64bit
44 define <4 x float> @t-constraint-float-vector-128bit(<4 x float> %a, <4 x float> %b) {
46 ; CHECK-LABEL: t-constraint-float-vector-128bit
/external/python/pyasn1/pyasn1/type/
Dconstraint.py177 for constraint in self._values:
178 if isinstance(constraint, AbstractConstraint):
179 constraint(value, idx)
354 constraint, status = self.__multipleTypeConstraint[idx]
357 constraint(value)
450 for constraint in values:
451 if constraint:
452 self._valueMap.add(constraint)
453 self._valueMap.update(constraint.getValueMap())
496 for constraint in self._values:
[all …]
/external/swiftshader/third_party/LLVM/test/CodeGen/Thumb/
Dinlineasm-imm-thumb.ll3 ; Test Thumb-mode "I" constraint, for ADD immediate.
9 ; Test Thumb-mode "J" constraint, for negated ADD immediates.
15 ; Test Thumb-mode "K" constraint, for compatibility with GCC's internal use.
21 ; Test Thumb-mode "L" constraint, for 3-operand ADD immediates.
27 ; Test Thumb-mode "M" constraint, for "ADD r = sp + imm".
33 ; Test Thumb-mode "N" constraint, for values between 0 and 31.
39 ; Test Thumb-mode "O" constraint, for "ADD sp = sp + imm".
/external/u-boot/cmd/
Dregulator.c111 static int constraint(const char *name, int val, const char *val_name) in constraint() function
164 constraint(" - min uV:", uc_pdata->min_uV, NULL); in do_info()
165 constraint(" - max uV:", uc_pdata->max_uV, NULL); in do_info()
166 constraint(" - min uA:", uc_pdata->min_uA, NULL); in do_info()
167 constraint(" - max uA:", uc_pdata->max_uA, NULL); in do_info()
168 constraint(" - always on:", uc_pdata->always_on, in do_info()
170 constraint(" - boot on:", uc_pdata->boot_on, in do_info()
174 constraint("* op modes:", mode_count, NULL); in do_info()
177 constraint(" - mode id:", modes->id, modes->name); in do_info()
192 constraint(" * enable:", enabled, enabled ? "true" : "false"); in do_status_detail()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Thumb/
Dinlineasm-imm-thumb.ll3 ; Test Thumb-mode "I" constraint, for ADD immediate.
9 ; Test Thumb-mode "J" constraint, for negated ADD immediates.
15 ; Test Thumb-mode "K" constraint, for compatibility with GCC's internal use.
21 ; Test Thumb-mode "L" constraint, for 3-operand ADD immediates.
27 ; Test Thumb-mode "M" constraint, for "ADD r = sp + imm".
33 ; Test Thumb-mode "N" constraint, for values between 0 and 31.
39 ; Test Thumb-mode "O" constraint, for "ADD sp = sp + imm".
/external/llvm/test/CodeGen/Thumb/
Dinlineasm-imm-thumb.ll3 ; Test Thumb-mode "I" constraint, for ADD immediate.
9 ; Test Thumb-mode "J" constraint, for negated ADD immediates.
15 ; Test Thumb-mode "K" constraint, for compatibility with GCC's internal use.
21 ; Test Thumb-mode "L" constraint, for 3-operand ADD immediates.
27 ; Test Thumb-mode "M" constraint, for "ADD r = sp + imm".
33 ; Test Thumb-mode "N" constraint, for values between 0 and 31.
39 ; Test Thumb-mode "O" constraint, for "ADD sp = sp + imm".
/external/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp177 SkCanvas::SrcRectConstraint constraint, sk_sp<GrTextureProxy> proxy, in draw_texture() argument
198 if (constraint != SkCanvas::kStrict_SrcRectConstraint && in draw_texture()
207 constraint = SkCanvas::kStrict_SrcRectConstraint; in draw_texture()
225 constraint == SkCanvas::kStrict_SrcRectConstraint ? &srcRect : nullptr, in draw_texture()
229 dstRect, aa, aaFlags, constraint, ctm, std::move(textureXform)); in draw_texture()
239 SkCanvas::SrcRectConstraint constraint, bool attemptDrawTexture) { in draw_texture_producer() argument
248 draw_texture(rtc, clip, ctm, paint, src, dst, dstClip, aa, aaFlags, constraint, in draw_texture_producer()
274 if (SkCanvas::kFast_SrcRectConstraint == constraint) { in draw_texture_producer()
359 SkCanvas::SrcRectConstraint constraint) { in drawImageQuad() argument
370 constraint = SkCanvas::kFast_SrcRectConstraint; in drawImageQuad()
[all …]
/external/selinux/mcstrans/src/
Dmcstrans.c464 sens_constraint_t *constraint = calloc(1, sizeof(sens_constraint_t)); in add_constraint() local
465 if (!constraint) { in add_constraint()
469 if (sscanf(raw,"s%u", &constraint->sens) != 1) { in add_constraint()
471 free(constraint); in add_constraint()
474 if (parse_ebitmap(&constraint->cat, &empty, tok) < 0) { in add_constraint()
476 free(constraint); in add_constraint()
479 if (asprintf(&constraint->text, "%s%c%s", raw, op, tok) < 0) { in add_constraint()
483 constraint->op = op; in add_constraint()
487 *p = constraint; in add_constraint()
490 cat_constraint_t *constraint = calloc(1, sizeof(cat_constraint_t)); in add_constraint() local
[all …]

12345678910>>...33