/frameworks/native/libs/input/ |
H A D | Input.cpp | 356 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) { argument 358 float newX = matrix[0] * x + matrix[1] * y + matrix[2]; 359 float newY = matrix[3] * x + matrix[4] * y + matrix[5]; 360 float newZ = matrix[6] * x + matrix[7] * y + matrix[ 368 transformAngle(const float matrix[9], float angleRadians, float originX, float originY) argument 388 transform(const float matrix[9]) argument [all...] |
/frameworks/native/libs/math/include/math/ |
H A D | TMatHelpers.h | 67 namespace matrix { namespace in namespace:android::details 128 // 2x2 matrix inverse is easy. 133 // Assuming the input matrix is: 160 // From the Wikipedia article on matrix inversion's section on fast 3x3 161 // matrix inversion: 167 // Assuming the input matrix is: 228 * Inversion function which switches on the matrix size. 229 * @warning This function assumes the matrix is invertible. The result is 231 * make sure the matrix is not singular. 234 inline constexpr MATRIX PURE inverse(const MATRIX& matrix) { argument 429 inverse(const BASE<T>& matrix) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceInterceptor.cpp | 225 const layer_state_t::matrix22_t& matrix) 229 matrixChange->set_dsdx(matrix.dsdx); 230 matrixChange->set_dtdx(matrix.dtdx); 231 matrixChange->set_dsdy(matrix.dsdy); 232 matrixChange->set_dtdy(matrix.dtdy); 341 addMatrixLocked(transaction, layerId, state.matrix); 224 addMatrixLocked(Transaction* transaction, int32_t layerId, const layer_state_t::matrix22_t& matrix) argument
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | ViewStructureImpl.java | 111 public void setTransformation(Matrix matrix) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityTransitionCoordinator.java | 572 Matrix matrix = new Matrix(); 574 parent.transformMatrixToLocal(matrix); 575 matrix.postTranslate(parent.getScrollX(), parent.getScrollY()); 577 mSharedElementParentMatrices.add(matrix); 581 private void getSharedElementParentMatrix(View view, Matrix matrix) { argument 585 matrix.reset(); 590 parent.transformMatrixToLocal(matrix); 591 matrix.postTranslate(parent.getScrollX(), parent.getScrollY()); 597 matrix.set(parentMatrix); 822 float[] matrix [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RecordingCanvas.java | 85 public final void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, argument 87 nDrawBitmapMatrix(mNativeCanvasWrapper, bitmap, matrix.ni(),
|
H A D | RenderNode.java | 378 * Set the static matrix on the display list. The specified matrix is combined with other 381 * @param matrix A transform matrix to apply to this display list 383 public boolean setStaticMatrix(Matrix matrix) { argument 384 return nSetStaticMatrix(mNativeRenderNode, matrix.native_instance); 388 * Set the Animation matrix on the display list. This matrix exists if an Animation is 390 * the Animation finishes, the matrix should be cleared by sending <code>null</code> 391 * for the matrix paramete 395 setAnimationMatrix(Matrix matrix) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 202 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 203 obj->addPath(*src, *matrix); 219 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 221 obj->transform(*matrix, dst); 226 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 227 obj->transform(*matrix);
|
/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 717 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local 729 matrix->get9(m);
|
H A D | android_view_RenderNode.cpp | 106 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local 107 return SET_AND_DIRTY(setStaticMatrix, matrix, RenderNode::GENERIC); 111 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local 112 return SET_AND_DIRTY(setAnimationMatrix, matrix, RenderNode::GENERIC); 386 // load transform matrix
|
H A D | android_graphics_Canvas.cpp | 58 // optionally copying canvas matrix & clip state. 121 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 122 get_canvas(canvasHandle)->getMatrix(matrix); 126 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 127 get_canvas(canvasHandle)->setMatrix(matrix ? *matrix : SkMatrix::I()); 131 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 132 get_canvas(canvasHandle)->concat(*matrix); 411 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 414 get_canvas(canvasHandle)->drawBitmap(bitmap, *matrix, pain [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BaseCanvas.java | 109 public void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) { argument 111 nDrawBitmapMatrix(mNativeCanvasWrapper, bitmap, matrix.ni(),
|
H A D | Path.java | 691 * Add a copy of src to the path, transformed by matrix 695 public void addPath(Path src, Matrix matrix) { argument 697 nAddPath(mNativePath, src.mNativePath, matrix.native_instance); 748 * Transform the points in this path by matrix, and write the answer 751 * @param matrix The matrix to apply to the path 755 public void transform(Matrix matrix, Path dst) { argument 761 nTransform(mNativePath, matrix.native_instance, dstNative); 765 * Transform the points in this path by matrix. 767 * @param matrix Th 769 transform(Matrix matrix) argument 853 nAddPath(long nPath, long src, long matrix) argument 856 nTransform(long nPath, long matrix, long dst_path) argument 857 nTransform(long nPath, long matrix) argument [all...] |
H A D | Canvas.java | 165 * Prior to API level {@value Build.VERSION_CODES#O} the current matrix and 313 * Restore the current matrix when restore() is called. 316 * {@link #saveLayerAlpha(RectF, int)}. For saveLayer() calls the matrix 376 * Saves the current matrix and clip onto a private stack. 390 * Based on saveFlags, can save the current matrix and clip onto a private 394 * disabling the saving of matrix or clip with this method. 569 * modifications to the matrix/clip state since the last save call. It is 580 * Returns the number of matrix/clip states on the Canvas' private stack. 614 * Preconcat the current matrix with the specified translation 625 * Preconcat the current matrix wit 691 concat(@ullable Matrix matrix) argument 708 setMatrix(@ullable Matrix matrix) argument 1485 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument [all...] |
H A D | ColorSpace.java | 749 * <p>Given an adaptation matrix \(A\), the conversion from XYZ to 755 * <p>The complete von Kries transform \(T\) uses a diagonal matrix 765 * D &= \left[ \begin{matrix} \frac{L_2}{L_1} & 0 & 0 \\ 767 * 0 & 0 & \frac{S_2}{S_1} \end{matrix} \right] \\ 771 * <p>As an example, the resulting matrix \(T\) can then be used to 1281 * {@link Adaptation#BRADFORD} matrix.</p> 1315 * @param adaptation The adaptation matrix 1386 * <p>The color transform matrix is assumed to target the CIE XYZ space 1389 * @param toXYZD50 3x3 column-major transform matrix from RGB to the profile 1619 * Inverts a 3x3 matrix 1772 chromaticAdaptation(@onNull @ize9) float[] matrix, @NonNull @Size(3) float[] srcWhitePoint, @NonNull @Size(3) float[] dstWhitePoint) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 556 void FontRenderer::setFont(const SkPaint* paint, const SkMatrix& matrix) { argument 557 mCurrentFont = Font::create(this, paint, matrix); 642 const SkMatrix& matrix) { 643 Font* font = Font::create(this, paint, matrix); 641 precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkMatrix& matrix) argument
|
H A D | RecordingCanvas.cpp | 120 // force matrix/clip isolation for layer 475 void RecordingCanvas::drawBitmap(Bitmap& bitmap, const SkMatrix& matrix, argument 477 if (matrix.isIdentity()) { 479 } else if (!(matrix.getType() & ~(SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask)) 480 && MathUtils::isPositive(matrix.getScaleX()) 481 && MathUtils::isPositive(matrix.getScaleY())) { 486 matrix.mapRect(&dst, src); 491 concat(matrix);
|
H A D | SkiaCanvasProxy.cpp | 239 void SkiaCanvasProxy::didConcat(const SkMatrix& matrix) { argument 240 mCanvas->concat(matrix); 243 void SkiaCanvasProxy::didSetMatrix(const SkMatrix& matrix) { argument 244 mCanvas->setMatrix(matrix); 393 const SkMatrix* matrix, const SkPaint& origPaint) { 461 SkMatrix matrix; local 462 mCanvas->getMatrix(&matrix); 463 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix); 392 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& origPaint) argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | ScreenRotationAnimation.java | 312 private void setSnapshotTransformInTransaction(Matrix matrix, float alpha) { argument 314 matrix.getValues(mTmpFloats); 330 matrix.mapPoints(dstPnts, srcPnts); 364 // Compute the transformation matrix that must be applied 554 // Compute the transformation matrix that must be applied 585 // Compute the transformation matrix that must be applied
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ImageShader.java | 434 public void setSourceTransform(float[] matrix) { argument 435 if (matrix.length != 16) { 436 throw new IllegalArgumentException("Expected 4x4 matrix for source transform!"); 439 matrix[12], 440 matrix[13], 442 matrix[0] + matrix[12], 443 matrix[1] + matrix[13], 445 matrix[ 485 setTargetTransform(float[] matrix) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 418 /*package*/ static void nAddPath(long nPath, long src, long matrix) { argument 419 Matrix_Delegate matrixDelegate = Matrix_Delegate.getDelegate(matrix); 449 /*package*/ static void nTransform(long nPath, long matrix, argument 456 Matrix_Delegate matrixDelegate = Matrix_Delegate.getDelegate(matrix); 468 /*package*/ static void nTransform(long nPath, long matrix) { argument 469 nTransform(nPath, matrix, 0); 869 * Transform the points in this path by matrix, and write the answer 872 * @param matrix The matrix to apply to the path 876 public void transform(Matrix_Delegate matrix, Path_Delegat argument [all...] |
/frameworks/native/services/vr/hardware_composer/impl/ |
H A D | vr_hwc.cpp | 220 void HwcDisplay::SetColorTransform(const float* matrix, int32_t hint) { argument 222 if (matrix) 223 memcpy(color_transform_, matrix, sizeof(color_transform_)); 443 Error VrHwc::setColorTransform(Display display, const float* matrix, argument 450 display_ptr->SetColorTransform(matrix, hint);
|
/frameworks/opt/net/wifi/libwifi_hal/ |
H A D | hal_tool.cpp | 41 int max_size, feature_set* matrix, 40 wifi_get_concurrency_matrix_stub(wifi_interface_handle handle, int max_size, feature_set* matrix, int* size) argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 120 ConstantState(Bitmap bitmap, Matrix matrix) { argument 122 mMatrix = matrix != null ? matrix : new Matrix(); 156 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { argument 157 mState = new ConstantState(bitmap, matrix); 910 Matrix matrix = null; 927 matrix = new Matrix(); 928 matrix.setScale(scale, scale); 929 matrix.preTranslate(-dx, 0); 937 BitmapDrawable bitmapDrawable = new BitmapDrawable(mContext.getResources(), bitmap, matrix); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 233 //need inflate syntax/reader for matrix 270 // updates the matrix, which is dependent on the bounds 749 * Scale using the image matrix when drawing. The image matrix can be set using 751 * <code>android:scaleType="matrix"</code>. 836 /** Returns the view's optional matrix. This is applied to the 837 view's drawable when it is drawn. If there is no matrix, 838 this method will return an identity matrix. 839 Do not change this matrix in place but make a copy. 840 If you want a different matrix applie 857 setImageMatrix(Matrix matrix) argument 1320 animateTransform(Matrix matrix) argument [all...] |