/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
BoxShapeTest.cpp | 42 PassOwnPtr<Shape> createBoxShape(const LayoutSize& size, float shapeMargin, float shapePadding) 44 return Shape::createLayoutBoxShape(size, TopToBottomWritingMode, Length(shapeMargin, Fixed), Length(shapePadding, Fixed)); 72 OwnPtr<Shape> shape = createBoxShape(LayoutSize(100, 50), 10, 20); local 73 EXPECT_FALSE(shape->isEmpty()); 75 EXPECT_EQ(LayoutRect(-10, -10, 120, 70), shape->shapeMarginLogicalBoundingBox()); 76 EXPECT_EQ(LayoutRect(20, 20, 60, 10), shape->shapePaddingLogicalBoundingBox()); 82 EXPECT_TRUE(shape->lineOverlapsShapeMarginBounds(-9, 1)); 83 EXPECT_TRUE(shape->lineOverlapsShapeMarginBounds(-10, 0)); 84 EXPECT_TRUE(shape->lineOverlapsShapeMarginBounds(-10, 200)) [all...] |
/external/jmonkeyengine/engine/src/bullet-native/ |
com_jme3_bullet_collision_shapes_CapsuleCollisionShape.cpp | 51 btCollisionShape* shape; local 54 shape = new btCapsuleShapeX(radius, height); 57 shape = new btCapsuleShape(radius, height); 60 shape = new btCapsuleShapeZ(radius, height); 63 return reinterpret_cast<jlong>(shape);
|
com_jme3_bullet_collision_shapes_ConeCollisionShape.cpp | 51 btCollisionShape* shape; local 54 shape = new btConeShapeX(radius, height); 57 shape = new btConeShape(radius, height); 60 shape = new btConeShapeZ(radius, height); 63 return reinterpret_cast<jlong>(shape);
|
com_jme3_bullet_collision_shapes_CylinderCollisionShape.cpp | 53 btCollisionShape* shape; local 56 shape = new btCylinderShapeX(extents); 59 shape = new btCylinderShape(extents); 62 shape = new btCylinderShapeZ(extents); 65 return reinterpret_cast<jlong>(shape);
|
com_jme3_bullet_collision_shapes_CollisionShape.cpp | 50 btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId); local 51 if (shape == NULL) { 56 return shape->getMargin(); 66 btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId); local 67 if (shape == NULL) { 74 shape->setLocalScaling(scl); 84 btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId); local 85 if (shape == NULL) { 90 shape->setMargin(newMargin); 100 btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId) local [all...] |
com_jme3_bullet_collision_shapes_BoxCollisionShape.cpp | 53 btBoxShape* shape = new btBoxShape(extents); local 54 return reinterpret_cast<jlong>(shape);
|
com_jme3_bullet_collision_shapes_SphereCollisionShape.cpp | 51 btSphereShape* shape=new btSphereShape(radius); local 52 return reinterpret_cast<jlong>(shape);
|
com_jme3_bullet_collision_shapes_CompoundCollisionShape.cpp | 51 btCompoundShape* shape = new btCompoundShape(); local 52 return reinterpret_cast<jlong>(shape); 62 btCompoundShape* shape = reinterpret_cast<btCompoundShape*>(compoundId); local 63 if (shape == NULL) { 69 if (shape == NULL) { 78 shape->addChildShape(trans, child); 89 btCompoundShape* shape = reinterpret_cast<btCompoundShape*>(compoundId); local 90 if (shape == NULL) { 96 if (shape == NULL) { 101 shape->removeChildShape(child) [all...] |
com_jme3_bullet_collision_shapes_HullCollisionShape.cpp | 55 btConvexHullShape* shape = new btConvexHullShape(); local 61 shape->addPoint(vect); 64 return reinterpret_cast<jlong>(shape);
|
com_jme3_bullet_collision_shapes_PlaneCollisionShape.cpp | 54 btStaticPlaneShape* shape = new btStaticPlaneShape(norm, constant); local 55 return reinterpret_cast<jlong>(shape);
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
ShapeHolder.java | 22 import android.graphics.drawable.shapes.Shape; 26 * A data structure that holds a Shape and various properties that can be used to define 27 * how the shape is drawn. 31 private ShapeDrawable shape; field in class:ShapeHolder 57 shape = value; 60 return shape; 66 shape.getPaint().setColor(value); 78 shape.setAlpha((int)((alpha * 255f) + .5f)); 82 return shape.getShape().getWidth(); 85 Shape s = shape.getShape() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
AnimatableShapeValue.cpp | 40 if (m_shape->type() != ShapeValue::Shape || shapeValue->m_shape->type() != ShapeValue::Shape) 43 const BasicShape* fromShape = this->m_shape->shape(); 44 const BasicShape* toShape = shapeValue->m_shape->shape(); 54 const ShapeValue* shape = toAnimatableShapeValue(value)->m_shape.get(); local 55 return m_shape == shape || (m_shape && shape && *m_shape == *shape);
|
AnimatableShapeValue.h | 42 static PassRefPtr<AnimatableShapeValue> create(ShapeValue* shape) 44 return adoptRef(new AnimatableShapeValue(shape)); 52 AnimatableShapeValue(ShapeValue* shape) 53 : m_shape(shape)
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
world.js | 40 var shapeName = body['shape']; 67 function verifyShapeDescription(shape) { 68 if (shape['name'] == undefined) { 69 console.log('Shape needs a name.'); 73 var type = shape['type']; 79 console.log('Shape type - ' + type + ' not supported.'); 84 return verifyCubeDescription(shape); 88 return verifySphereDescription(shape); 92 return verifyCylinderDescription(shape); 96 return verifyConvexDescription(shape); [all...] |
/external/harfbuzz_ng/ |
Android.mk | 34 src/hb-fallback-shape.cc \ 38 src/hb-shape.cc \ 39 src/hb-shape-plan.cc \ 46 src/hb-ot-shape.cc \ 47 src/hb-ot-shape-complex-arabic.cc \ 48 src/hb-ot-shape-complex-default.cc \ 49 src/hb-ot-shape-complex-indic.cc \ 50 src/hb-ot-shape-complex-indic-table.cc \ 51 src/hb-ot-shape-complex-myanmar.cc \ 52 src/hb-ot-shape-complex-sea.cc [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
Layer.java | 29 GLShape shape = mShapes[i]; local 30 if (shape != null) { 31 shape.startAnimation(); 38 GLShape shape = mShapes[i]; local 39 if (shape != null) { 40 shape.endAnimation(); 84 GLShape shape = mShapes[i]; local 85 if (shape != null) { 86 shape.animateTransform(mTransform);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
RectShape.java | 24 * Defines a rectangle shape. 29 public class RectShape extends Shape { 56 final RectShape shape = (RectShape) super.clone(); local 57 shape.mRect = new RectF(mRect); 58 return shape;
|
RoundRectShape.java | 26 * can be included (to make a sort of "O" shape). 108 RoundRectShape shape = (RoundRectShape) super.clone(); local 109 shape.mOuterRadii = mOuterRadii != null ? mOuterRadii.clone() : null; 110 shape.mInnerRadii = mInnerRadii != null ? mInnerRadii.clone() : null; 111 shape.mInset = new RectF(mInset); 112 shape.mInnerRect = new RectF(mInnerRect); 113 shape.mPath = new Path(mPath); 114 return shape;
|
/frameworks/base/graphics/java/android/graphics/ |
PathDashPathEffect.java | 22 TRANSLATE(0), //!< translate the shape to each position 23 ROTATE(1), //!< rotate the shape about its center 33 * Dash the drawn path by stamping it with the specified shape. This only 37 * @param shape The path to stamp along 38 * @param advance spacing between each stamp of shape 39 * @param phase amount to offset before the first shape is stamped 40 * @param style how to transform the shape at each position as it is stamped 42 public PathDashPathEffect(Path shape, float advance, float phase, 44 native_instance = nativeCreate(shape.ni(), advance, phase,
|
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/collision/shapes/infos/ |
ChildCollisionShape.java | 22 public CollisionShape shape; field in class:ChildCollisionShape 27 public ChildCollisionShape(Vector3f location, Matrix3f rotation, CollisionShape shape) { 30 this.shape = shape; 37 capsule.write(shape, "shape", new BoxCollisionShape(new Vector3f(1, 1, 1))); 44 shape = (CollisionShape) capsule.readSavable("shape", new BoxCollisionShape(new Vector3f(1, 1, 1)));
|
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/ |
CompoundCollisionShape.java | 53 * to generate a more sophisticated shape. 65 * adds a child shape at the given local translation 66 * @param shape the child shape to add 67 * @param location the local location of the child shape 69 public void addChildShape(CollisionShape shape, Vector3f location) { 72 children.add(new ChildCollisionShape(location.clone(), new Matrix3f(), shape)); 73 ((CompoundShape) cShape).addChildShape(transA, shape.getCShape()); 77 * adds a child shape at the given local translation 78 * @param shape the child shape to ad [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ShapeTest.java | 27 import android.graphics.drawable.shapes.Shape; 79 Shape shape = new MockShape(); local 80 shape.resize(100f, 200f); 81 Shape clonedShape = shape.clone(); 82 assertEquals(100f, shape.getWidth()); 83 assertEquals(200f, shape.getHeight()); 85 assertNotSame(shape, clonedShape); 86 assertEquals(shape.getWidth(), clonedShape.getWidth()) 91 Shape shape = new MockShape(); local 96 Shape shape = new MockShape(); local [all...] |
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/ |
CompoundCollisionShape.java | 50 * to generate a more sophisticated shape. 59 Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId)); 63 * adds a child shape at the given local translation 64 * @param shape the child shape to add 65 * @param location the local location of the child shape 67 public void addChildShape(CollisionShape shape, Vector3f location) { 70 // children.add(new ChildCollisionShape(location.clone(), new Matrix3f(), shape)); 71 // ((CompoundShape) objectId).addChildShape(transA, shape.getObjectId()); 72 addChildShape(shape, location, new Matrix3f()) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
RenderSVGResourceSolidColor.cpp | 84 void RenderSVGResourceSolidColor::postApplyResource(RenderObject*, GraphicsContext*& context, unsigned short resourceMode, const Path* path, const RenderSVGShape* shape) 92 else if (shape) 93 shape->fillShape(context); 98 else if (shape) 99 shape->strokeShape(context);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageItemPreference.java | 59 ShapeDrawable shape = new ShapeDrawable(new RectShape()); local 60 shape.setIntrinsicHeight(height); 61 shape.setIntrinsicWidth(width); 62 shape.getPaint().setColor(color); 63 return shape;
|