/frameworks/base/graphics/java/android/graphics/ |
H A D | 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, argument 44 native_instance = nativeCreate(shape.readOnlyNI(), advance, phase,
|
/frameworks/ml/nn/common/ |
H A D | CpuExecutor.cpp | 95 // Updates the RunTimeOperandInfo with the newly calculated shape. 97 static bool setInfoAndAllocateIfNeeded(RunTimeOperandInfo* info, const Shape& shape) { argument 101 if (info->type != shape.type || 102 info->dimensions != shape.dimensions) { 107 (info->scale != shape.scale || info->zeroPoint != shape.offset)) { 112 info->type = shape.type; 113 info->dimensions = shape.dimensions; 114 info->scale = shape.scale; 115 info->zeroPoint = shape [all...] |
H A D | OperationsUtils.cpp | 48 uint32_t getNumberOfElements(const Shape& shape) { argument 50 for (size_t i = 0; i < shape.dimensions.size(); i++) { 51 count *= shape.dimensions[i]; 56 uint32_t getNumberOfDimensions(const Shape& shape) { argument 57 return shape.dimensions.size(); 60 uint32_t getSizeOfDimension(const Shape& shape, uint32_t dimensionIdx) { argument 61 if (dimensionIdx >= shape.dimensions.size()) { 65 return shape.dimensions[dimensionIdx];
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | PathShape.java | 43 * @param path a Path that defines the geometric paths for this shape 44 * @param stdWidth the standard width for the shape. Any changes to the 47 * @param stdHeight the standard height for the shape. Any changes to the 73 final PathShape shape = (PathShape) super.clone(); 74 shape.mPath = new Path(mPath); 75 return shape;
|
H A D | RectShape.java | 25 * Defines a rectangle shape. 62 final RectShape shape = (RectShape) super.clone(); 63 shape.mRect = new RectF(mRect); 64 return shape;
|
H A D | RoundRectShape.java | 28 * can be included (to make a sort of "O" shape). 132 final RoundRectShape shape = (RoundRectShape) super.clone(); 133 shape.mOuterRadii = mOuterRadii != null ? mOuterRadii.clone() : null; 134 shape.mInnerRadii = mInnerRadii != null ? mInnerRadii.clone() : null; 135 shape.mInset = new RectF(mInset); 136 shape.mInnerRect = new RectF(mInnerRect); 137 shape.mPath = new Path(mPath); 138 return shape;
|
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 71 memset(&shape, 0, sizeof(Shape)); 83 memset(&shape, 0, sizeof(Shape)); 94 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); 110 return compareWidthHeight(shape.rect, rhs.shape.rect); 112 return compareRoundRects(shape.roundRect, rhs.shape.roundRect); 114 return shape.circle.mRadius == rhs.shape.circle.mRadius; 116 return compareWidthHeight(shape [all...] |
H A D | TessellationCache.cpp | 45 memset(&shape, 0, sizeof(Shape)); 56 memset(&shape, 0, sizeof(Shape)); 68 const Shape::RoundRect& lRect = shape.roundRect; 69 const Shape::RoundRect& rRect = rhs.shape.roundRect; 85 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape)); 144 ATRACE_NAME("shape tessellation"); 423 SkRect rect = SkRect::MakeWH(description.shape.roundRect.width, 424 description.shape.roundRect.height); 425 float rx = description.shape.roundRect.rx; 426 float ry = description.shape [all...] |
H A D | PathCache.h | 165 } shape; member in struct:android::uirenderer::PathDescription 172 * A simple LRU shape cache. The cache has a maximum size expressed in bytes.
|
H A D | TessellationCache.h | 74 } shape; member in struct:android::uirenderer::TessellationCache::Description
|
/frameworks/ml/nn/common/operations/ |
H A D | EmbeddingLookup.cpp | 35 const int row_size = value_->shape().dimensions[0]; 39 for (uint32_t i = 0; i < lookup_->shape().dimensions[0]; i++) {
|
H A D | SVDF.cpp | 91 const Shape &inputShape = input->shape(); 107 const int batch_size = input_->shape().dimensions[0]; 108 const int input_size = input_->shape().dimensions[1]; 109 const int num_units = weights_feature_->shape().dimensions[0]; 110 const int memory_size = weights_time_->shape().dimensions[1]; 111 const int weights_feature_stride = weights_feature_->shape().dimensions[1]; 112 const int weights_time_stride = weights_time_->shape().dimensions[1];
|
H A D | RNN.cpp | 67 const Shape &inputShape = input->shape(); 83 const uint32_t batch_size = input_->shape().dimensions[0]; 84 const uint32_t num_units = weights_->shape().dimensions[0]; 85 const uint32_t input_size = input_->shape().dimensions[1]; 86 const uint32_t input_weights_stride = weights_->shape().dimensions[1]; 88 recurrent_weights_->shape().dimensions[1];
|
H A D | HashtableLookup.cpp | 45 const int num_rows = value_->shape().dimensions[0]; 49 for (int i = 0; i < static_cast<int>(lookup_->shape().dimensions[0]); i++) {
|
H A D | SimpleMath.cpp | 199 const Shape& shape) { 200 Dims<4> dim = convertShapeToDims(shape); 207 const Shape& shape) { 208 Dims<4> dim = convertShapeToDims(shape); 210 shape.offset, shape.scale, 197 floorFloat32(const float* inputData, float* outputData, const Shape& shape) argument 205 dequantizeQuant8ToFloat32(const uint8_t* inputData, float* outputData, const Shape& shape) argument
|
H A D | LSTM.cpp | 268 const Shape &inputShape = input->shape(); 303 const uint32_t n_batch = input_->shape().dimensions[0]; 304 const uint32_t n_input = input_->shape().dimensions[1]; 306 const uint32_t n_cell = input_to_output_weights_->shape().dimensions[0]; 307 const uint32_t n_output = recurrent_to_output_weights_->shape().dimensions[1];
|
/frameworks/ml/nn/common/operations/internal/ |
H A D | types.h | 35 inline Dims<4> convertShapeToDims(const Shape& shape) { argument 41 if (shape.dimensions.size() == 1) { 42 dims.sizes[0] = (int)getSizeOfDimension(shape, 0); 45 int src = (int)shape.dimensions.size()-i-1; 47 dims.sizes[i] = (int)getSizeOfDimension(shape, src);
|
/frameworks/ml/nn/common/include/ |
H A D | CpuExecutor.h | 57 Shape shape() const { function in struct:android::nn::RunTimeOperandInfo 136 return operand->shape().dimensions.size(); 140 return operand->shape().dimensions[i];
|
H A D | OperationsUtils.h | 59 // Sets out to the same shape as in. 64 uint32_t getNumberOfElements(const Shape& shape); 66 uint32_t getNumberOfDimensions(const Shape& shape); 68 uint32_t getSizeOfDimension(const Shape& shape, uint32_t dimensionIdx);
|
H A D | Operations.h | 57 const Shape& shape); 61 const Shape& shape);
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | ShadowBench.cpp | 73 const SkPath& shape, VertexBuffer* ambient, VertexBuffer* spot) { 75 opaque, &shape, &testData.casterTransformXY, 72 tessellateShadows(ShadowTestData& testData, bool opaque, const SkPath& shape, VertexBuffer* ambient, VertexBuffer* spot) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | PathEffect.cpp | 52 const SkPath* shape = reinterpret_cast<SkPath*>(shapeHandle); local 53 SkASSERT(shape != NULL); 54 SkPathEffect* effect = SkPath1DPathEffect::Make(*shape, advance, phase,
|
/frameworks/ml/nn/tools/test_generator/ |
H A D | test_generator.py | 139 def __init__(self, vt = None, shape = None): 141 self.__shape = shape 142 if vt is None or shape is None: 175 # Parse shape 179 shape = [int(x) for x in real_shape.split(",")] 193 # Parse shape 198 shape = [int(x) for x in real_shape.split(",")] 199 nr_elements = reduce((lambda x, y: x*y), shape) 243 def __init__(self, name, vt, shape, increase_next_number=True): 244 Operand.__init__(self, name, Type(vt, shape)) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
H A D | UserGridView.java | 271 GradientDrawable shape = new GradientDrawable(); 272 shape.setShape(GradientDrawable.RADIAL_GRADIENT); 273 shape.setGradientRadius(1.0f); 274 shape.setColor(getContext().getColor(R.color.car_user_switcher_no_user_image_bgcolor)); 275 shape.setBounds(0, 0, mPodImageAvatarWidth, mPodImageAvatarHeight); 276 shape.draw(canvas);
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 183 * @param clipShape the shape to use a the clip shape. 186 // because setClip is only guaranteed to work with rectangle shape, 194 * Clips the layer with the given shape. This performs an intersect between the current 195 * clip shape and the given shape. 196 * @param shape the new clip shape. 198 public void clip(Shape shape) { argument 199 mGraphics.clip(shape); 486 clip(Shape shape, int regionOp) argument [all...] |