Home
last modified time | relevance | path

Searched refs:transform (Results 1 – 25 of 261) sorted by relevance

1234567891011

/frameworks/base/libs/hwui/
DCanvasTransform.cpp57 static SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor() argument
58 switch (transform) { in transformColor()
68 static void applyColorTransform(ColorTransform transform, SkPaint& paint) { in applyColorTransform() argument
69 if (transform == ColorTransform::None) return; in applyColorTransform()
71 SkColor newColor = transformColor(transform, paint.getColor()); in applyColorTransform()
87 info.fColors[i] = transformColor(transform, info.fColors[i]); in applyColorTransform()
104 color = transformColor(transform, color); in applyColorTransform()
126 bool transformPaint(ColorTransform transform, SkPaint* paint) { in transformPaint() argument
128 applyColorTransform(transform, *paint); in transformPaint()
132 bool transformPaint(ColorTransform transform, SkPaint* paint, BitmapPalette palette) { in transformPaint() argument
[all …]
DDamageAccumulator.cpp91 void DamageAccumulator::pushTransform(const RenderNode* transform) { in pushTransform() argument
94 mHead->renderNode = transform; in pushTransform()
97 void DamageAccumulator::pushTransform(const Matrix4* transform) { in pushTransform() argument
100 mHead->matrix4 = transform; in pushTransform()
142 const SkMatrix* transform = props.getTransformMatrix(); in mapRect() local
144 if (transform && !transform->isIdentity()) { in mapRect()
145 if (CC_LIKELY(!transform->hasPerspective())) { in mapRect()
146 transform->mapRect(&temp); in mapRect()
DRenderProperties.cpp189 SkMatrix* transform = mComputedFields.mTransformMatrix; in updateMatrix() local
190 transform->reset(); in updateMatrix()
192 transform->setTranslate(getTranslationX(), getTranslationY()); in updateMatrix()
193 transform->preRotate(getRotation(), getPivotX(), getPivotY()); in updateMatrix()
194 transform->preScale(getScaleX(), getScaleY(), getPivotX(), getPivotY()); in updateMatrix()
198 transform->preScale(getScaleX(), getScaleY(), getPivotX(), getPivotY()); in updateMatrix()
206 transform->postConcat(transform3D); in updateMatrix()
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeSaPayloadTest.java205 Transform transform = Transform.readFrom(inputBuffer); in testDecodeEncryptionTransform() local
206 assertTrue(transform instanceof EncryptionTransform); in testDecodeEncryptionTransform()
207 assertEquals(Transform.TRANSFORM_TYPE_ENCR, transform.type); in testDecodeEncryptionTransform()
208 assertEquals(SaProposal.ENCRYPTION_ALGORITHM_AES_CBC, transform.id); in testDecodeEncryptionTransform()
209 assertTrue(transform.isSupported); in testDecodeEncryptionTransform()
268 Transform transform = Transform.readFrom(inputBuffer); in testDecodePrfTransform() local
269 assertTrue(transform instanceof PrfTransform); in testDecodePrfTransform()
270 assertEquals(Transform.TRANSFORM_TYPE_PRF, transform.type); in testDecodePrfTransform()
271 assertEquals(SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1, transform.id); in testDecodePrfTransform()
272 assertTrue(transform.isSupported); in testDecodePrfTransform()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DRecentsTransitionComposer.java58 TaskView taskView, TaskViewTransform transform, boolean addHeaderBitmap) { in composeAnimationSpec() argument
61 b = composeHeaderBitmap(taskView, transform); in composeAnimationSpec()
68 transform.rect.round(taskRect); in composeAnimationSpec()
138 public static Bitmap composeTaskBitmap(TaskView taskView, TaskViewTransform transform) { in composeTaskBitmap() argument
139 float scale = transform.scale; in composeTaskBitmap()
140 int fromWidth = (int) (transform.rect.width() * scale); in composeTaskBitmap()
141 int fromHeight = (int) (transform.rect.height() * scale); in composeTaskBitmap()
144 " at transform: " + transform); in composeTaskBitmap()
159 TaskViewTransform transform) { in composeHeaderBitmap() argument
160 float scale = transform.scale; in composeHeaderBitmap()
[all …]
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp30 static bool IsTransformSupported(int transform) { in IsTransformSupported() argument
34 return transform == 0 || transform == NATIVE_WINDOW_TRANSFORM_ROT_90 || in IsTransformSupported()
35 transform == NATIVE_WINDOW_TRANSFORM_ROT_180 || in IsTransformSupported()
36 transform == NATIVE_WINDOW_TRANSFORM_ROT_270; in IsTransformSupported()
39 static int InvertTransform(int transform) { in InvertTransform() argument
40 switch (transform) { in InvertTransform()
52 static int ConvertVkTransformToNative(VkSurfaceTransformFlagsKHR transform) { in ConvertVkTransformToNative() argument
53 switch (transform) { in ConvertVkTransformToNative()
67 static SkMatrix GetPreTransformMatrix(SkISize windowSize, int transform) { in GetPreTransformMatrix() argument
71 switch (transform) { in GetPreTransformMatrix()
[all …]
/frameworks/native/libs/ui/include/ui/
DTransform.h81 vec2 transform(int x, int y) const;
82 Region transform(const Region& reg) const;
83 Rect transform(const Rect& bounds,
85 FloatRect transform(const FloatRect& bounds) const;
89 vec2 transform(const vec2& v) const;
90 vec3 transform(const vec3& v) const;
/frameworks/native/libs/ui/include_vndk/ui/
DTransform.h81 vec2 transform(int x, int y) const;
82 Region transform(const Region& reg) const;
83 Rect transform(const Rect& bounds,
85 FloatRect transform(const FloatRect& bounds) const;
89 vec2 transform(const vec2& v) const;
90 vec3 transform(const vec3& v) const;
/frameworks/native/libs/ui/
DTransform.cpp181 vec2 Transform::transform(const vec2& v) const { in transform() function in android::ui::Transform
189 vec3 Transform::transform(const vec3& v) const { in transform() function in android::ui::Transform
198 vec2 Transform::transform(int x, int y) const in transform() function in android::ui::Transform
200 return transform(vec2(x,y)); in transform()
205 return transform( Rect(w, h) ); in makeBounds()
208 Rect Transform::transform(const Rect& bounds, bool roundOutwards) const in transform() function in android::ui::Transform
216 lt = transform(lt); in transform()
217 rt = transform(rt); in transform()
218 lb = transform(lb); in transform()
219 rb = transform(rb); in transform()
[all …]
/frameworks/base/native/webview/plat_support/
Ddraw_functor.cpp77 COMPILE_ASSERT(NELEM(params.transform) == NELEM(draw_gl_params.transform), in draw_gl()
79 for (int i = 0; i < NELEM(params.transform); ++i) { in draw_gl()
80 params.transform[i] = draw_gl_params.transform[i]; in draw_gl()
150 COMPILE_ASSERT(NELEM(params.transform) == NELEM(draw_vk_params.transform), in drawVk()
152 for (int i = 0; i < NELEM(params.transform); ++i) { in drawVk()
153 params.transform[i] = draw_vk_params.transform[i]; in drawVk()
Ddraw_gl_functor.cpp68 COMPILE_ASSERT(NELEM(aw_info.transform) == NELEM(gl_info->transform), in operator ()()
70 for (int i = 0; i < NELEM(aw_info.transform); ++i) { in operator ()()
71 aw_info.transform[i] = gl_info->transform[i]; in operator ()()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMoSerializer.java30 import javax.xml.transform.OutputKeys;
31 import javax.xml.transform.Transformer;
32 import javax.xml.transform.TransformerException;
33 import javax.xml.transform.TransformerFactory;
34 import javax.xml.transform.dom.DOMSource;
35 import javax.xml.transform.stream.StreamResult;
70 transformer.transform(new DOMSource(doc), new StreamResult(writer)); in serialize()
/frameworks/av/camera/
DCameraUtils.cpp31 /*out*/int32_t* transform) { in getRotationTransform() argument
34 if (transform == NULL) { in getRotationTransform()
39 *transform = 0; in getRotationTransform()
53 int32_t& flags = *transform; in getRotationTransform()
/frameworks/native/services/surfaceflinger/
DLayerStats.h48 static const char* layerTransform(int32_t transform);
60 static bool isRotated(int32_t transform);
62 static bool isVFlipped(int32_t transform);
64 static bool isHFlipped(int32_t transform);
DLayerProtoHelper.cpp93 void LayerProtoHelper::writeToProto(const ui::Transform& transform, in writeToProto() argument
95 const uint32_t type = transform.getType() | (transform.getOrientation() << 8); in writeToProto()
102 transformProto->set_dsdx(transform[0][0]); in writeToProto()
103 transformProto->set_dtdx(transform[0][1]); in writeToProto()
104 transformProto->set_dsdy(transform[1][0]); in writeToProto()
105 transformProto->set_dtdy(transform[1][1]); in writeToProto()
DLayerStats.cpp157 const char* LayerStats::layerTransform(int32_t transform) { in layerTransform() argument
158 return getTransformName(static_cast<hwc_transform_t>(transform)); in layerTransform()
221 bool LayerStats::isRotated(int32_t transform) { in isRotated() argument
222 return transform & HWC_TRANSFORM_ROT_90; in isRotated()
225 bool LayerStats::isVFlipped(int32_t transform) { in isVFlipped() argument
226 return transform & HWC_TRANSFORM_FLIP_V; in isVFlipped()
229 bool LayerStats::isHFlipped(int32_t transform) { in isHFlipped() argument
230 return transform & HWC_TRANSFORM_FLIP_H; in isHFlipped()
DLayer.cpp91 mCurrentState.active_legacy.transform.set(0, 0); in Layer()
101 mCurrentState.active.transform.set(0, 0); in Layer()
102 mCurrentState.transform = 0; in Layer()
302 bounds = t.transform(bounds); in getScreenBounds()
362 return bufferScaleTransform.inverse().transform(mBounds); in getBoundsPreScaling()
372 parentBounds = getActiveTransform(s).inverse().transform(parentBounds); in computeBounds()
386 mScreenBounds = mEffectiveTransform.transform(mBounds); in computeBounds()
498 Rect frame(getTransform().transform(bounds)); in updateCursorPosition()
501 auto position = displayTransform.transform(frame); in updateCursorPosition()
539 const ui::Transform transform = getTransform(); in prepareClientLayer() local
[all …]
/frameworks/native/libs/gui/
DGLConsumerUtils.cpp28 const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, in computeTransformMatrix() argument
51 if (transform & NATIVE_WINDOW_TRANSFORM_FLIP_H) { in computeTransformMatrix()
54 if (transform & NATIVE_WINDOW_TRANSFORM_FLIP_V) { in computeTransformMatrix()
57 if (transform & NATIVE_WINDOW_TRANSFORM_ROT_90) { in computeTransformMatrix()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfRenderer.java386 @Nullable Matrix transform, @RenderMode int renderMode) { in render() argument
405 if (transform != null && !transform.isAffine()) { in render()
425 if (transform == null) { in render()
429 transform = new Matrix(); in render()
430 transform.postScale((float)clipWidth / getWidth(), in render()
432 transform.postTranslate(contentLeft, contentTop); in render()
435 final long transformPtr = transform.native_instance; in render()
DPdfEditor.java129 public void setTransformAndClip(int pageIndex, @Nullable Matrix transform, in setTransformAndClip() argument
133 throwIfNotNullAndNotAfine(transform); in setTransformAndClip()
134 if (transform == null) { in setTransformAndClip()
135 transform = Matrix.IDENTITY_MATRIX; in setTransformAndClip()
142 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
147 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp110 activeCropFloat = layerTransform.transform(activeCropFloat); in calculateInitialCrop()
113 activeCropFloat = inverseLayerTransform.transform(activeCropFloat); in calculateInitialCrop()
186 activeCrop.transform(invTransform, bufferSize.getWidth(), bufferSize.getHeight()); in calculateOutputSourceCrop()
217 activeCrop = layerTransform.transform(activeCrop); in calculateOutputDisplayFrame()
221 activeCrop = inverseLayerTransform.transform(activeCrop, true); in calculateOutputDisplayFrame()
243 layerTransform.transform(reduce(layerState.geomLayerBounds, activeTransparentRegion))}; in calculateOutputDisplayFrame()
247 const ui::Transform displayTransform{outputState.transform}; in calculateOutputDisplayFrame()
249 return displayTransform.transform(frame); in calculateOutputDisplayFrame()
266 ui::Transform transform(displayTransform * layerTransform * bufferTransform); in calculateOutputRelativeBufferTransform() local
285 transform = ui::Transform(invTransform) * displayTransform * bufferTransform; in calculateOutputRelativeBufferTransform()
[all …]
DOutput.cpp63 void Output::setProjection(const ui::Transform& transform, int32_t orientation, const Rect& frame, in setProjection() argument
65 mState.transform = transform; in setProjection()
91 void Output::setColorTransform(const mat4& transform) { in setColorTransform() argument
92 if (mState.colorTransformMat == transform) { in setColorTransform()
96 const bool isIdentity = (transform == mat4()); in setColorTransform()
101 mState.colorTransformMat = transform; in setColorTransform()
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp145 Rectangle() : format(defaultFormat), transform(defaultTransform), in Rectangle()
152 uint32_t transform; member in Rectangle
320 layer->transform = it->transform; in main()
421 rect.transform = 0; in parseRect()
423 rect.transform = HWC_TRANSFORM_FLIP_H; in parseRect()
425 rect.transform = HWC_TRANSFORM_FLIP_V; in parseRect()
427 rect.transform = HWC_TRANSFORM_ROT_90; in parseRect()
429 rect.transform = HWC_TRANSFORM_ROT_180; in parseRect()
431 rect.transform = HWC_TRANSFORM_ROT_270; in parseRect()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraDeviceInfo.java188 Matrix transform = new Matrix(); in getPreviewTransform() local
189 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL); in getPreviewTransform()
190 return transform; in getPreviewTransform()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DDepthImage.java81 DepthTransform transform = new RangeInverseDepthTransform((float)near, (float)far); in createFromDepthmap() local
91 transform); in createFromDepthmap()
131 DepthTransform transform = new RangeInverseDepthTransform(near, far); in createFromPFM() local
141 int value = transform.quantize(floatPixels[i]) & 0xFF; in createFromPFM()
167 transform); in createFromPFM()

1234567891011