Searched refs:matrix (Results 151 - 175 of 195) sorted by relevance

12345678

/frameworks/base/core/java/android/view/
H A DSurfaceControl.java910 * Sets the transform and position of a {@link SurfaceControl} from a 3x3 transformation matrix.
912 * @param matrix The matrix to apply.
913 * @param float9 An array of 9 floats to be used to extract the values from the matrix.
915 public void setMatrix(Matrix matrix, float[] float9) { argument
917 matrix.getValues(float9);
1440 public Transaction setMatrix(SurfaceControl sc, Matrix matrix, float[] float9) { argument
1441 matrix.getValues(float9);
1539 * arrives. As transform matrix and size are already frozen in this fashion,
H A DMotionEvent.java1568 private static native void nativeTransform(long nativePtr, long matrix); argument
2967 * Applies a transformation matrix to all of the points in the event.
2969 * @param matrix The transformation matrix to apply.
2971 public final void transform(Matrix matrix) { argument
2972 if (matrix == null) {
2973 throw new IllegalArgumentException("matrix must not be null");
2976 nativeTransform(mNativePtr, matrix.native_instance);
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp552 void FontRenderer::setFont(const SkPaint* paint, const SkMatrix& matrix) { argument
553 mCurrentFont = Font::create(this, paint, matrix);
639 const SkMatrix& matrix) {
640 Font* font = Font::create(this, paint, matrix);
638 precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkMatrix& matrix) argument
H A DRenderNode.h171 void applyViewPropertyTransforms(mat4& matrix, bool true3dTransform = false) const;
H A DSnapshot.cpp132 // store the inverse drawing matrix
135 state->matrix.loadInverse(roundRectDrawingMatrix);
H A DGlopBuilder.cpp284 float* colorMatrix = mOutGlop->fill.filter.matrix.matrix;
292 float* colorVector = mOutGlop->fill.filter.matrix.vector;
509 // snap by adjusting the model view matrix
537 // snap by adjusting the model view matrix
629 // so the shader matrix must reverse this
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java239 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
/frameworks/native/libs/math/include/math/
H A Dmat4.h45 * A 4x4 column-major matrix class.
47 * Conceptually a 4x4 matrix is a an array of 4 column double4:
80 * m[n] is the \f$ n^{th} \f$ column of the matrix and is a double4.
202 // construct from another matrix of the same size
256 * construct from a 3x3 matrix
259 explicit CONSTEXPR TMat44(const TMat33<U>& matrix);
262 * construct from a 3x3 matrix and 3d translation
265 CONSTEXPR TMat44(const TMat33<U>& matrix, const TVec3<V>& translation);
268 * construct from a 3x3 matrix and 4d last column.
271 CONSTEXPR TMat44(const TMat33<U>& matrix, cons
[all...]
H A Dmat2.h37 * A 2x2 column-major matrix class.
39 * Conceptually a 2x2 matrix is a an array of 2 column vec2:
68 * m[n] is the \f$ n^{th} \f$ column of the matrix and is a vec2.
188 * construct from another matrix of the same size
246 // Since the matrix code could become pretty big quickly, we don't inline most
270 // of values in the constructor is the transpose of the matrix
320 // matrix * column-vector, result is a vector of the same type than the input vector
331 // row-vector * matrix, result is a vector of the same type than the input vector
341 // matrix * scalar, result is a matrix o
[all...]
/frameworks/native/services/surfaceflinger/
H A DSurfaceInterceptor.h141 const layer_state_t::matrix22_t& matrix);
/frameworks/native/services/surfaceflinger/tests/
H A DSurfaceInterceptor_test.cpp456 bool hasSx((float)change.matrix().dsdx() == (float)M_SQRT1_2);
457 bool hasTx((float)change.matrix().dtdx() == (float)M_SQRT1_2);
458 bool hasSy((float)change.matrix().dsdy() == (float)-M_SQRT1_2);
459 bool hasTy((float)change.matrix().dtdy() == (float)M_SQRT1_2);
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java102 /** The matrix used for drawing; this may be {@code null} */
104 /** A matrix to apply the scaling of the photo */
106 /** The original matrix for this image; used to reset any transformations applied by the user */
173 /** Array to store a copy of the matrix values */
499 // Reset mMinScale to ensure the bounds / matrix are recalculated
531 // Reset mMinScale to ensure the bounds / matrix are recalculated
635 final Matrix matrix = new Matrix(mDrawMatrix);
636 matrix.postTranslate(-mCropRect.left, -mCropRect.top);
637 matrix.postScale(scaleWidth, scaleHeight);
641 croppedCanvas.concat(matrix);
[all...]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DQuaternion.java133 void matrix() { method in class:Quaternion
/frameworks/native/services/vr/hardware_composer/impl/
H A Dvr_hwc.cpp224 void HwcDisplay::SetColorTransform(const float* matrix, int32_t hint) { argument
226 if (matrix)
227 memcpy(color_transform_, matrix, sizeof(color_transform_));
482 Error VrHwc::setColorTransform(Display display, const float* matrix, argument
489 display_ptr->SetColorTransform(matrix, hint);
/frameworks/base/core/java/android/app/assist/
H A DAssistStructure.java1587 public void setTransformation(Matrix matrix) { argument
1588 if (matrix == null) {
1591 mNode.mMatrix = new Matrix(matrix);
2112 Matrix matrix = node.getTransformation();
2113 if (matrix != null) {
2114 Log.i(TAG, prefix + " Transformation: " + matrix);
/frameworks/native/opengl/libagl/
H A Dcontext.h422 matrixx_t matrix; member in struct:android::gl::transform_t
479 matrixf_t matrix; member in struct:android::gl::vp_transform_t
H A Dvertex.cpp24 #include "matrix.h"
70 const GLfixed* const m = c->transforms.vpt.transform.matrix.m;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DComposerHal.h138 virtual Error setColorTransform(Display display, const float* matrix, ColorTransform hint) = 0;
335 Error setColorTransform(Display display, const float* matrix, ColorTransform hint) override;
H A DHWComposer.cpp762 mat4 matrix; local
764 &matrix);
766 return matrix;
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DFakeComposerClient.h93 Error setColorTransform(Display display, const float* matrix, int32_t hint) override;
H A DSFFakeHwc_test.cpp766 float matrix[4]; member in struct:__anon1887::matrixTestData
771 // The matrix operates on the display frame and is applied before
794 ts.setMatrix(mFGSurfaceControl, xform.matrix[0], xform.matrix[1],
795 xform.matrix[2], xform.matrix[3]);
/frameworks/base/core/java/android/provider/
H A DMediaStore.java925 // create the matrix to scale it
926 Matrix matrix = new Matrix();
931 matrix.setScale(scaleX, scaleY);
935 source.getHeight(), matrix,
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java303 private void setSnapshotTransform(SurfaceControl.Transaction t, Matrix matrix, float alpha) { argument
305 matrix.getValues(mTmpFloats);
321 matrix.mapPoints(dstPnts, srcPnts);
354 // Compute the transformation matrix that must be applied
538 // Compute the transformation matrix that must be applied
560 // Compute the transformation matrix that must be applied
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayManagerService.java721 float[] matrix = (level == 1.0f ? null : computeSaturationMatrix(level));
723 dtm.setColorMatrix(DisplayTransformManager.LEVEL_COLOR_MATRIX_SATURATION, matrix);
729 float[] matrix = {
735 return matrix;
/frameworks/native/include/input/
H A DInput.h585 // Apply 3x3 perspective matrix transformation.
587 void transform(const float matrix[9]);

Completed in 614 milliseconds

12345678