Searched refs:constraint (Results 1 - 25 of 153) sorted by relevance

1234567

/external/guava/guava/src/com/google/common/collect/
H A DConstraints.java42 * constraint. Any operations that add new elements to the collection will
43 * call the provided constraint. However, this method does not verify that
44 * existing elements satisfy the constraint.
49 * @param constraint the constraint that validates added elements
53 Collection<E> collection, Constraint<? super E> constraint) {
54 return new ConstrainedCollection<E>(collection, constraint);
60 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedCollection
63 Collection<E> delegate, Constraint<? super E> constraint) {
65 this.constraint
52 constrainedCollection( Collection<E> collection, Constraint<? super E> constraint) argument
62 ConstrainedCollection( Collection<E> delegate, Constraint<? super E> constraint) argument
91 constrainedSet( Set<E> set, Constraint<? super E> constraint) argument
99 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedSet
101 ConstrainedSet(Set<E> delegate, Constraint<? super E> constraint) argument
129 constrainedSortedSet( SortedSet<E> sortedSet, Constraint<? super E> constraint) argument
137 final Constraint<? super E> constraint; field in class:Constraints.ConstrainedSortedSet
139 ConstrainedSortedSet( SortedSet<E> delegate, Constraint<? super E> constraint) argument
179 constrainedList( List<E> list, Constraint<? super E> constraint) argument
190 final Constraint<? super E> constraint; field in class:Constraints.ConstrainedList
192 ConstrainedList(List<E> delegate, Constraint<? super E> constraint) argument
234 ConstrainedRandomAccessList( List<E> delegate, Constraint<? super E> constraint) argument
249 constrainedListIterator( ListIterator<E> listIterator, Constraint<? super E> constraint) argument
257 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedListIterator
259 ConstrainedListIterator( ListIterator<E> delegate, Constraint<? super E> constraint) argument
278 constrainedTypePreservingCollection( Collection<E> collection, Constraint<E> constraint) argument
296 checkElements( Collection<E> elements, Constraint<? super E> constraint) argument
[all...]
H A DMapConstraints.java50 * Returns a constraint that verifies that neither the key nor the value is
74 * constraint. Any operations that add new mappings will call the provided
75 * constraint. However, this method does not verify that existing mappings
76 * satisfy the constraint.
81 * @param constraint the constraint that validates added entries
85 Map<K, V> map, MapConstraint<? super K, ? super V> constraint) {
86 return new ConstrainedMap<K, V>(map, constraint);
91 * constraint. Any operations that add new mappings will call the provided
92 * constraint
84 constrainedMap( Map<K, V> map, MapConstraint<? super K, ? super V> constraint) argument
105 constrainedMultimap( Multimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
126 constrainedListMultimap( ListMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
147 constrainedSetMultimap( SetMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
168 constrainedSortedSetMultimap( SortedSetMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
183 constrainedEntry( final Entry<K, V> entry, final MapConstraint<? super K, ? super V> constraint) argument
209 constrainedAsMapEntry( final Entry<K, Collection<V>> entry, final MapConstraint<? super K, ? super V> constraint) argument
243 constrainedAsMapEntries( Set<Entry<K, Collection<V>>> entries, MapConstraint<? super K, ? super V> constraint) argument
261 constrainedEntries( Collection<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
284 constrainedEntrySet( Set<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
293 final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedMap
296 ConstrainedMap( Map<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
332 constrainedBiMap( BiMap<K, V> map, MapConstraint<? super K, ? super V> constraint) argument
354 ConstrainedBiMap(BiMap<K, V> delegate, @Nullable BiMap<V, K> inverse, MapConstraint<? super K, ? super V> constraint) argument
386 final MapConstraint<? super V, ? super K> constraint; field in class:MapConstraints.InverseConstraint
388 InverseConstraint(MapConstraint<? super V, ? super K> constraint) argument
400 final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedMultimap
405 ConstrainedMultimap(Multimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
570 final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedEntries
573 ConstrainedEntries(Collection<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
622 ConstrainedEntrySet(Set<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
641 private final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedAsMapEntries
644 ConstrainedAsMapEntries(Set<Entry<K, Collection<V>>> entries, MapConstraint<? super K, ? super V> constraint) argument
707 ConstrainedListMultimap(ListMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
725 ConstrainedSetMultimap(SetMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
746 ConstrainedSortedSetMultimap(SortedSetMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
766 checkValues(K key, Iterable<? extends V> values, MapConstraint<? super K, ? super V> constraint) argument
776 checkMap(Map<? extends K, ? extends V> map, MapConstraint<? super K, ? super V> constraint) argument
[all...]
/external/trappy/tests/
H A Dtest_constraint.py39 """Test that the constraint manager works with one constraint"""
47 constraint = iter(c_mgr).next()
48 series = constraint.result[AttrConf.PIVOT_VAL]
53 """Test that the constraint manager works with multiple traces and no pivots"""
59 for constraint, orig_dfr in zip(c_mgr, self.dfrs):
60 series = constraint.result[AttrConf.PIVOT_VAL]
65 """Test the constraint manager with multiple columns and traces zipped"""
71 for constraint, orig_dfr, col in zip(c_mgr, self.dfrs, self.cols):
72 series = constraint
[all...]
/external/v8/src/compiler/
H A Dregister-allocator-verifier.cc93 const OperandConstraint& constraint) {
94 CHECK_NE(kSameAsFirst, constraint.type_);
95 if (constraint.type_ != kImmediate && constraint.type_ != kExplicit) {
97 constraint.virtual_register_);
102 const OperandConstraint& constraint) {
103 CHECK_NE(kSameAsFirst, constraint.type_);
104 CHECK_NE(kImmediate, constraint.type_);
105 CHECK_NE(kExplicit, constraint.type_);
106 CHECK_NE(kConstant, constraint
92 VerifyInput( const OperandConstraint& constraint) argument
101 VerifyTemp( const OperandConstraint& constraint) argument
109 VerifyOutput( const OperandConstraint& constraint) argument
143 BuildConstraint(const InstructionOperand* op, OperandConstraint* constraint) argument
210 CheckConstraint( const InstructionOperand* op, const OperandConstraint* constraint) argument
[all...]
H A Dloop-variable-optimizer.cc175 // this loop if they are involved in the constraint.
177 for (const Constraint* constraint = limits->head(); constraint != nullptr;
178 constraint = constraint->next()) {
179 if (constraint->left()->opcode() == IrOpcode::kPhi &&
180 NodeProperties::GetControlInput(constraint->left()) == loop) {
181 auto var = induction_vars_.find(constraint->left()->id());
183 var->second->AddUpperBound(constraint->right(), constraint
[all...]
H A Dregister-allocator-verifier.h233 static void VerifyInput(const OperandConstraint& constraint);
234 static void VerifyTemp(const OperandConstraint& constraint);
235 static void VerifyOutput(const OperandConstraint& constraint);
238 OperandConstraint* constraint);
240 const OperandConstraint* constraint);
/external/webrtc/talk/app/webrtc/
H A Dvideosource.cc51 // Default resolution. If no constraint is specified, this is the resolution we
91 // Updates |format_upper_limit| from |constraint|.
92 // If constraint.maxFoo is smaller than format_upper_limit.foo,
93 // set format_upper_limit.foo to constraint.maxFoo.
95 const MediaConstraintsInterface::Constraint& constraint,
97 if (constraint.key == MediaConstraintsInterface::kMaxWidth) {
98 int value = rtc::FromString<int>(constraint.value);
100 } else if (constraint.key == MediaConstraintsInterface::kMaxHeight) {
101 int value = rtc::FromString<int>(constraint.value);
124 // Returns true if |constraint| i
94 SetUpperLimitFromConstraint( const MediaConstraintsInterface::Constraint& constraint, cricket::VideoFormat* format_upper_limit) argument
127 NewFormatWithConstraints( const MediaConstraintsInterface::Constraint& constraint, const cricket::VideoFormat& format_in, bool mandatory, cricket::VideoFormat* format_out) argument
191 FilterFormatsByConstraint( const MediaConstraintsInterface::Constraint& constraint, bool mandatory, std::vector<cricket::VideoFormat>* formats) argument
[all...]
H A Dlocalaudiosource.cc74 for (const auto& constraint : constraints) {
76 if (!rtc::FromString(constraint.value, &value))
80 if (constraint.key.compare(entry.name) == 0)
/external/trappy/tests/trappy/plotter/
H A DBarPlot.py100 for i, (constraint, pivot) in enumerate(series_list):
101 result = constraint.result
118 axis.set_title(self.make_title(constraint, pivot, permute, concat))
120 self.add_to_legend(i, line_2d_list[0], constraint, pivot, concat, permute)
H A DLinePlot.py158 for i, (constraint, pivot) in enumerate(series_list):
159 result = constraint.result
170 axis.set_title(self.make_title(constraint, pivot, permute, concat))
172 self.add_to_legend(i, line_2d_list[0], constraint, pivot, concat, permute)
H A DStaticPlot.py185 def make_title(self, constraint, pivot, permute, concat):
188 return str(constraint)
191 return constraint.get_data_name()
197 def add_to_legend(self, series_index, handle, constraint, pivot, concat, permute):
214 legend_labels[series_index] = constraint._template.name + ":" + constraint.column
216 legend_labels[series_index] = str(constraint)
235 # Determine what constraint to plot and the corresponding pivot value
259 for i, (constraint, pivot) in enumerate(cp_pairs):
260 axis = self._layout.get_axis(constraint
[all...]
H A DILinePlot.py224 for constraint in self.c_mgr:
227 if constraint.trace_index != trace_idx:
229 legend = constraint._template.name + ":" + constraint.column
232 legend = str(constraint)
234 result = constraint.result
263 for constraint in self.c_mgr:
264 result = constraint.result
265 title = str(constraint)
H A DConstraint.py18 constraint application.
78 :param trace_index: The index of the trace/data in the overall constraint
85 :param window: A time window to apply to the constraint.
86 E.g. window=(5, 20) will constraint to events that happened
259 meet the following criteria for constraint
310 creates one constraint for the first trace and first column, the
312 creates a constraint for every combination of traces and columns
319 constraint = Constraint(trace, self._pivot, col, template,
321 self._constraints.append(constraint)
323 def get_column_index(self, constraint)
[all...]
/external/trappy/trappy/plotter/
H A DBarPlot.py100 for i, (constraint, pivot) in enumerate(series_list):
101 result = constraint.result
118 axis.set_title(self.make_title(constraint, pivot, permute, concat))
120 self.add_to_legend(i, line_2d_list[0], constraint, pivot, concat, permute)
H A DLinePlot.py158 for i, (constraint, pivot) in enumerate(series_list):
159 result = constraint.result
170 axis.set_title(self.make_title(constraint, pivot, permute, concat))
172 self.add_to_legend(i, line_2d_list[0], constraint, pivot, concat, permute)
H A DStaticPlot.py185 def make_title(self, constraint, pivot, permute, concat):
188 return str(constraint)
191 return constraint.get_data_name()
197 def add_to_legend(self, series_index, handle, constraint, pivot, concat, permute):
214 legend_labels[series_index] = constraint._template.name + ":" + constraint.column
216 legend_labels[series_index] = str(constraint)
235 # Determine what constraint to plot and the corresponding pivot value
259 for i, (constraint, pivot) in enumerate(cp_pairs):
260 axis = self._layout.get_axis(constraint
[all...]
H A DILinePlot.py224 for constraint in self.c_mgr:
227 if constraint.trace_index != trace_idx:
229 legend = constraint._template.name + ":" + constraint.column
232 legend = str(constraint)
234 result = constraint.result
263 for constraint in self.c_mgr:
264 result = constraint.result
265 title = str(constraint)
H A DConstraint.py18 constraint application.
78 :param trace_index: The index of the trace/data in the overall constraint
85 :param window: A time window to apply to the constraint.
86 E.g. window=(5, 20) will constraint to events that happened
259 meet the following criteria for constraint
310 creates one constraint for the first trace and first column, the
312 creates a constraint for every combination of traces and columns
319 constraint = Constraint(trace, self._pivot, col, template,
321 self._constraints.append(constraint)
323 def get_column_index(self, constraint)
[all...]
/external/skia/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/
H A DOptionAdapter.java31 protected FilterResults performFiltering(CharSequence constraint) { argument
32 final String pattern = constraint.toString().toLowerCase();
47 protected void publishResults(CharSequence constraint, FilterResults results) { argument
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
H A DSimplexTableau.java48 * 0 0 1 0 0 1 0 0 2 &lt;= constraint 1
49 * 0 0 0 1 0 0 1 0 3 &lt;= constraint 2
50 * 0 0 1 1 0 0 0 1 4 &lt;= constraint 3
178 // initialize the constraint rows
182 LinearConstraint constraint = constraints.get(i);
186 copyArray(constraint.getCoefficients().getData(), matrix.getDataRef()[row]);
191 getInvertedCoeffiecientSum(constraint.getCoefficients()));
195 matrix.setEntry(row, width - 1, constraint.getValue());
198 if (constraint.getRelationship() == Relationship.LEQ) {
200 } else if (constraint
234 normalize(final LinearConstraint constraint) argument
[all...]
/external/selinux/libsepol/src/
H A Dconstraint.c21 #include <sepol/policydb/constraint.h>
/external/libchrome/base/numerics/
H A Dsafe_conversions.h75 const RangeConstraint constraint) {
76 return constraint == RANGE_VALID
78 : (constraint == RANGE_UNDERFLOW
80 : (constraint == RANGE_OVERFLOW
82 : (constraint == RANGE_INVALID
74 saturated_cast_impl(const Src value, const RangeConstraint constraint) argument
/external/selinux/mcstrans/src/
H A Dmcstrans.c464 sens_constraint_t *constraint = calloc(1, sizeof(sens_constraint_t)); local
465 if (!constraint) {
469 if (sscanf(raw,"s%u", &constraint->sens) != 1) {
471 free(constraint);
474 if (parse_ebitmap(&constraint->cat, &empty, tok) < 0) {
476 free(constraint);
479 if (asprintf(&constraint->text, "%s%c%s", raw, op, tok) < 0) {
483 constraint->op = op;
487 *p = constraint;
490 cat_constraint_t *constraint local
567 destroy_sens_constraint(sens_constraint_t **list, sens_constraint_t *constraint) argument
584 destroy_cat_constraint(cat_constraint_t **list, cat_constraint_t *constraint) argument
[all...]
/external/libcups/cups/
H A Dppd.c451 ppd_const_t *constraint; /* Current constraint */ local
1737 constraint = calloc(2, sizeof(ppd_const_t));
1739 constraint = realloc(ppd->consts, (size_t)(ppd->num_consts + 2) * sizeof(ppd_const_t));
1741 if (constraint == NULL)
1748 ppd->consts = constraint;
1749 constraint += ppd->num_consts;
1752 switch (sscanf(string, "%40s%40s%40s%40s", constraint->option1,
1753 constraint->choice1, constraint
[all...]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DConstraintManager.h33 /// Construct a ConditionTruthVal indicating the constraint is constrained
35 ConditionTruthVal(bool constraint) : Val(constraint) {} argument
37 /// Construct a ConstraintVal indicating the constraint is underconstrained.
40 /// Return true if the constraint is perfectly constrained to 'true'.
45 /// Return true if the constraint is perfectly constrained to 'false'.
56 /// if the constraint is true of value.

Completed in 739 milliseconds

1234567