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

123

/external/chromium_org/third_party/WebKit/public/platform/
H A DWebLayerPositionConstraint.h45 WebLayerPositionConstraint constraint; local
46 constraint.isFixedPosition = true;
47 constraint.isFixedToRightEdge = fixedToRightEdge;
48 constraint.isFixedToBottomEdge = fixedToBottomEdge;
49 return constraint;
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/joints/
H A DSliderJoint.java48 * The slider constraint allows the body to rotate around one axis and translate along this axis.
83 return ((SliderConstraint) constraint).getLowerLinLimit();
87 ((SliderConstraint) constraint).setLowerLinLimit(lowerLinLimit);
91 return ((SliderConstraint) constraint).getUpperLinLimit();
95 ((SliderConstraint) constraint).setUpperLinLimit(upperLinLimit);
99 return ((SliderConstraint) constraint).getLowerAngLimit();
103 ((SliderConstraint) constraint).setLowerAngLimit(lowerAngLimit);
107 return ((SliderConstraint) constraint).getUpperAngLimit();
111 ((SliderConstraint) constraint).setUpperAngLimit(upperAngLimit);
115 return ((SliderConstraint) constraint)
[all...]
H A DHingeJoint.java46 * Hinge constraint, or revolute joint restricts two additional angular degrees of freedom,
77 ((HingeConstraint) constraint).enableAngularMotor(enable, targetVelocity, maxMotorImpulse);
81 ((HingeConstraint) constraint).setLimit(low, high);
88 ((HingeConstraint) constraint).setLimit(low, high, _softness, _biasFactor, _relaxationFactor);
92 return ((HingeConstraint) constraint).getUpperLimit();
96 return ((HingeConstraint) constraint).getLowerLimit();
101 ((HingeConstraint) constraint).setAngularOnly(angularOnly);
105 return ((HingeConstraint) constraint).getHingeAngle();
116 capsule.write(((HingeConstraint) constraint).getLowerLimit(), "lowerLimit", 1e30f);
117 capsule.write(((HingeConstraint) constraint)
[all...]
H A DPoint2PointJoint.java46 * Point to point constraint, also known as ball socket joint limits the translation
48 * A chain of rigidbodies can be connected using this constraint.
66 ((Point2PointConstraint) constraint).setting.damping = value;
70 ((Point2PointConstraint) constraint).setting.impulseClamp = value;
74 ((Point2PointConstraint) constraint).setting.tau = value;
78 return ((Point2PointConstraint) constraint).setting.damping;
82 return ((Point2PointConstraint) constraint).setting.impulseClamp;
86 return ((Point2PointConstraint) constraint).setting.tau;
109 constraint = new Point2PointConstraint(nodeA.getObjectId(), nodeB.getObjectId(), Converter.convert(pivotA), Converter.convert(pivotB));
H A DPhysicsJoint.java46 protected TypedConstraint constraint; field in class:PhysicsJoint
70 return constraint.getAppliedImpulse();
74 * @return the constraint
77 return constraint;
H A DConeJoint.java48 * To create ragdolls, the conve twist constraint is very useful for limbs like the upper arm.
49 * It is a special point to point constraint that adds cone and twist axis limits.
90 ((ConeTwistConstraint) constraint).setLimit(swingSpan1, swingSpan2, twistSpan);
95 ((ConeTwistConstraint) constraint).setAngularOnly(value);
134 constraint = new ConeTwistConstraint(nodeA.getObjectId(), nodeB.getObjectId(), transA, transB);
135 ((ConeTwistConstraint) constraint).setLimit(swingSpan1, swingSpan2, twistSpan);
136 ((ConeTwistConstraint) constraint).setAngularOnly(angularOnly);
H A DSixDofJoint.java52 * This generic constraint can emulate a variety of standard constraints,
90 constraint = new Generic6DofConstraint(nodeA.getObjectId(), nodeB.getObjectId(), transA, transB, useLinearReferenceFrameA);
108 constraint = new Generic6DofConstraint(nodeA.getObjectId(), nodeB.getObjectId(), transA, transB, useLinearReferenceFrameA);
114 RotationalLimitMotor rmot = new RotationalLimitMotor(((Generic6DofConstraint) constraint).getRotationalLimitMotor(i));
117 translationalMotor = new TranslationalLimitMotor(((Generic6DofConstraint) constraint).getTranslationalLimitMotor());
141 ((Generic6DofConstraint) constraint).setLinearUpperLimit(Converter.convert(vector));
146 ((Generic6DofConstraint) constraint).setLinearLowerLimit(Converter.convert(vector));
151 ((Generic6DofConstraint) constraint).setAngularUpperLimit(Converter.convert(vector));
156 ((Generic6DofConstraint) constraint).setAngularLowerLimit(Converter.convert(vector));
169 constraint
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DConstraints.java59 * Returns a constraint that verifies that the element is not null. If the
70 * constraint. Any operations that add new elements to the collection will
71 * call the provided constraint. However, this method does not verify that
72 * existing elements satisfy the constraint.
77 * @param constraint the constraint that validates added elements
81 Collection<E> collection, Constraint<? super E> constraint) {
82 return new ConstrainedCollection<E>(collection, constraint);
88 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedCollection
91 Collection<E> delegate, Constraint<? super E> constraint) {
80 constrainedCollection( Collection<E> collection, Constraint<? super E> constraint) argument
90 ConstrainedCollection( Collection<E> delegate, Constraint<? super E> constraint) argument
119 constrainedSet( Set<E> set, Constraint<? super E> constraint) argument
127 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedSet
129 ConstrainedSet(Set<E> delegate, Constraint<? super E> constraint) argument
157 constrainedSortedSet( SortedSet<E> sortedSet, Constraint<? super E> constraint) argument
165 final Constraint<? super E> constraint; field in class:Constraints.ConstrainedSortedSet
167 ConstrainedSortedSet( SortedSet<E> delegate, Constraint<? super E> constraint) argument
207 constrainedList( List<E> list, Constraint<? super E> constraint) argument
218 final Constraint<? super E> constraint; field in class:Constraints.ConstrainedList
220 ConstrainedList(List<E> delegate, Constraint<? super E> constraint) argument
262 ConstrainedRandomAccessList( List<E> delegate, Constraint<? super E> constraint) argument
277 constrainedListIterator( ListIterator<E> listIterator, Constraint<? super E> constraint) argument
285 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedListIterator
287 ConstrainedListIterator( ListIterator<E> delegate, Constraint<? super E> constraint) argument
306 constrainedTypePreservingCollection( Collection<E> collection, Constraint<E> constraint) argument
331 constrainedMultiset( Multiset<E> multiset, Constraint<? super E> constraint) argument
339 private final Constraint<? super E> constraint; field in class:Constraints.ConstrainedMultiset
341 ConstrainedMultiset( Multiset<E> delegate, Constraint<? super E> constraint) argument
374 checkElements( Collection<E> elements, Constraint<? super E> constraint) argument
[all...]
H A DMapConstraints.java49 * Returns a constraint that verifies that neither the key nor the value is
73 * constraint. Any operations that add new mappings will call the provided
74 * constraint. However, this method does not verify that existing mappings
75 * satisfy the constraint.
80 * @param constraint the constraint that validates added entries
84 Map<K, V> map, MapConstraint<? super K, ? super V> constraint) {
85 return new ConstrainedMap<K, V>(map, constraint);
90 * constraint. Any operations that add new mappings will call the provided
91 * constraint
83 constrainedMap( Map<K, V> map, MapConstraint<? super K, ? super V> constraint) argument
104 constrainedMultimap( Multimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
125 constrainedListMultimap( ListMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
146 constrainedSetMultimap( SetMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
167 constrainedSortedSetMultimap( SortedSetMultimap<K, V> multimap, MapConstraint<? super K, ? super V> constraint) argument
182 constrainedEntry( final Entry<K, V> entry, final MapConstraint<? super K, ? super V> constraint) argument
208 constrainedAsMapEntry( final Entry<K, Collection<V>> entry, final MapConstraint<? super K, ? super V> constraint) argument
242 constrainedAsMapEntries( Set<Entry<K, Collection<V>>> entries, MapConstraint<? super K, ? super V> constraint) argument
260 constrainedEntries( Collection<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
283 constrainedEntrySet( Set<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
292 final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedMap
295 ConstrainedMap( Map<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
331 constrainedBiMap( BiMap<K, V> map, MapConstraint<? super K, ? super V> constraint) argument
353 ConstrainedBiMap(BiMap<K, V> delegate, @Nullable BiMap<V, K> inverse, MapConstraint<? super K, ? super V> constraint) argument
385 final MapConstraint<? super V, ? super K> constraint; field in class:MapConstraints.InverseConstraint
387 InverseConstraint(MapConstraint<? super V, ? super K> constraint) argument
399 final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedMultimap
404 ConstrainedMultimap(Multimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
569 final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedEntries
572 ConstrainedEntries(Collection<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
621 ConstrainedEntrySet(Set<Entry<K, V>> entries, MapConstraint<? super K, ? super V> constraint) argument
640 private final MapConstraint<? super K, ? super V> constraint; field in class:MapConstraints.ConstrainedAsMapEntries
643 ConstrainedAsMapEntries(Set<Entry<K, Collection<V>>> entries, MapConstraint<? super K, ? super V> constraint) argument
706 ConstrainedListMultimap(ListMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
724 ConstrainedSetMultimap(SetMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
745 ConstrainedSortedSetMultimap(SortedSetMultimap<K, V> delegate, MapConstraint<? super K, ? super V> constraint) argument
765 checkValues(K key, Iterable<? extends V> values, MapConstraint<? super K, ? super V> constraint) argument
775 checkMap(Map<? extends K, ? extends V> map, MapConstraint<? super K, ? super V> constraint) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/testing/runner/
H A DMockConstraints.cpp41 bool isSupported(const WebString& constraint) argument
43 return constraint == "valid_and_supported_1" || constraint == "valid_and_supported_2";
46 bool isValid(const WebString& constraint) argument
48 return isSupported(constraint) || constraint == "valid_but_unsupported_1" || constraint == "valid_but_unsupported_2";
/external/chromium_org/third_party/WebKit/Source/web/tests/
H A DScrollingCoordinatorChromiumTest.cpp177 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
178 ASSERT_TRUE(constraint.isFixedPosition);
179 ASSERT_TRUE(!constraint.isFixedToRightEdge && !constraint.isFixedToBottomEdge);
186 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
187 ASSERT_TRUE(constraint.isFixedPosition);
188 ASSERT_TRUE(constraint.isFixedToRightEdge && !constraint.isFixedToBottomEdge);
195 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
196 ASSERT_TRUE(constraint
204 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
213 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
222 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
231 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
240 WebLayerPositionConstraint constraint = layer->positionConstraint(); local
[all...]
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
H A Dlocalvideosource.cc70 // Default resolution. If no constraint is specified, this is the resolution we
110 // Updates |format_upper_limit| from |constraint|.
111 // If constraint.maxFoo is smaller than format_upper_limit.foo,
112 // set format_upper_limit.foo to constraint.maxFoo.
114 const MediaConstraintsInterface::Constraint& constraint,
116 if (constraint.key == MediaConstraintsInterface::kMaxWidth) {
117 int value = talk_base::FromString<int>(constraint.value);
119 } else if (constraint.key == MediaConstraintsInterface::kMaxHeight) {
120 int value = talk_base::FromString<int>(constraint.value);
143 // Returns true if |constraint| i
113 SetUpperLimitFromConstraint( const MediaConstraintsInterface::Constraint& constraint, cricket::VideoFormat* format_upper_limit) argument
146 NewFormatWithConstraints( const MediaConstraintsInterface::Constraint& constraint, const cricket::VideoFormat& format_in, bool mandatory, cricket::VideoFormat* format_out) argument
216 FilterFormatsByConstraint( const MediaConstraintsInterface::Constraint& constraint, bool mandatory, std::vector<cricket::VideoFormat>* formats) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/mediastream/
H A DMediaConstraintsImpl.cpp97 Dictionary constraint; local
98 ok = optionalConstraints.get(i, constraint);
99 if (!ok || constraint.isUndefinedOrNull())
102 constraint.getOwnPropertyNames(localNames);
107 ok = constraint.get(key, value);
/external/libsepol/src/
H A Dconstraint.c21 #include <sepol/policydb/constraint.h>
H A Dservices.c116 * Return the boolean value of a constraint expression
314 constraint_node_t *constraint; local
381 * Remove any permissions prohibited by a constraint (this includes
384 constraint = tclass_datum->constraints;
385 while (constraint) {
386 if ((constraint->permissions & (avd->allowed)) &&
388 constraint->expr)) {
390 (avd->allowed) & ~(constraint->permissions);
392 constraint = constraint
435 constraint_node_t *constraint; local
[all...]
/external/chromium_org/webkit/renderer/compositor_bindings/
H A Dweb_layer_impl.cc326 const cc::LayerPositionConstraint& constraint) {
328 web_constraint.isFixedPosition = constraint.is_fixed_position();
329 web_constraint.isFixedToRightEdge = constraint.is_fixed_to_right_edge();
330 web_constraint.isFixedToBottomEdge = constraint.is_fixed_to_bottom_edge();
336 cc::LayerPositionConstraint constraint; local
337 constraint.set_is_fixed_position(web_constraint.isFixedPosition);
338 constraint.set_is_fixed_to_right_edge(web_constraint.isFixedToRightEdge);
339 constraint.set_is_fixed_to_bottom_edge(web_constraint.isFixedToBottomEdge);
340 return constraint;
344 const WebKit::WebLayerPositionConstraint& constraint) {
325 ToWebLayerPositionConstraint( const cc::LayerPositionConstraint& constraint) argument
343 setPositionConstraint( const WebKit::WebLayerPositionConstraint& constraint) argument
[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.
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
H A DConstraintHelper.java19 * This class should be used for constraint calculations.
72 * the structure we read constraint's for
117 for (Structure constraint : constraints) {
118 String constraintName = constraint.getFieldValue("name").toString();
122 float enforce = ((Number) constraint.getFieldValue("enforce")).floatValue();
125 constraintsList.add(this.createConstraint(constraint, boneOMA, ipo, blenderContext));
135 for(Structure constraint : constraints) {
136 String constraintName = constraint.getFieldValue("name").toString();
142 float enforce = ((Number) constraint.getFieldValue("enforce")).floatValue();
145 constraintsList.add(this.createConstraint(constraint, objectStructur
[all...]
/external/chromium_org/chrome/browser/extensions/api/tab_capture/
H A Dtab_capture_api.cc126 base::DictionaryValue* constraint = &(*it)->mandatory.additional_properties; local
127 constraint->SetString(kMediaStreamSource, kMediaStreamSourceTab);
128 constraint->SetString(kMediaStreamSourceId, device_id);
/external/chromium_org/third_party/ocmock/OCMock/
H A DOCMConstraint.h11 + (id)constraint;
/external/jmonkeyengine/engine/src/bullet-native/
H A Dcom_jme3_bullet_PhysicsSpace.cpp321 btTypedConstraint* constraint = reinterpret_cast<btTypedConstraint*>(objectId); local
327 if (constraint == NULL) {
329 env->ThrowNew(newExc, "The constraint object does not exist.");
332 space->getDynamicsWorld()->addConstraint(constraint);
343 btTypedConstraint* constraint = reinterpret_cast<btTypedConstraint*>(objectId); local
349 if (constraint == NULL) {
351 env->ThrowNew(newExc, "The constraint object does not exist.");
354 space->getDynamicsWorld()->removeConstraint(constraint);
/external/libsepol/
H A DAndroid.mk10 src/constraint.c \
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowArrayAdapter.java26 protected FilterResults performFiltering(CharSequence constraint) {
31 protected void publishResults(CharSequence constraint, FilterResults results) {
H A DShadowCursorAdapter.java331 * Runs a query with the specified constraint. This query is requested
344 * Contract: when constraint is null or empty, the original results,
347 * @param constraint the constraint with which the query must be filtered
354 public Cursor runQueryOnBackgroundThread(CharSequence constraint) { argument
356 return mFilterQueryProvider.runQuery(constraint);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
H A DPKIXNameConstraintValidator.java601 * <code>constraint</code>.
604 * @param constraint The constraint. This is an IP address concatenated with
609 private boolean isIPConstrained(byte ip[], byte[] constraint) argument
613 if (ipLength != (constraint.length / 2))
619 System.arraycopy(constraint, ipLength, subnetMask, 0, ipLength);
628 permittedSubnetAddress[i] = (byte)(constraint[i] & subnetMask[i]);
635 private boolean emailIsConstrained(String email, String constraint) argument
639 if (constraint.indexOf('@') != -1)
641 if (email.equalsIgnoreCase(constraint))
1404 isUriConstrained(String uri, String constraint) argument
[all...]

Completed in 531 milliseconds

123