/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 57 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 …]
|
D | DamageAccumulator.cpp | 91 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() 140 static inline void applyMatrix(const SkMatrix* transform, SkRect* rect) { in applyMatrix() argument 141 if (transform && !transform->isIdentity()) { in applyMatrix() 142 if (CC_LIKELY(!transform->hasPerspective())) { in applyMatrix() 143 transform->mapRect(rect); in applyMatrix()
|
D | RenderProperties.cpp | 189 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/native/libs/ui/ |
D | Transform.cpp | 190 vec2 Transform::transform(const vec2& v) const { in transform() function in android::ui::Transform 198 vec3 Transform::transform(const vec3& v) const { in transform() function in android::ui::Transform 207 vec2 Transform::transform(int x, int y) const in transform() function in android::ui::Transform 209 return transform(vec2(x,y)); in transform() 214 return transform( Rect(w, h) ); in makeBounds() 217 Rect Transform::transform(const Rect& bounds, bool roundOutwards) const in transform() function in android::ui::Transform 225 lt = transform(lt); in transform() 226 rt = transform(rt); in transform() 227 lb = transform(lb); in transform() 228 rb = transform(rb); in transform() [all …]
|
/frameworks/base/native/webview/plat_support/ |
D | draw_functor.cpp | 77 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()
|
D | draw_gl_functor.cpp | 68 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/native/libs/ui/include/ui/ |
D | Transform.h | 83 vec2 transform(int x, int y) const; 84 Region transform(const Region& reg) const; 85 Rect transform(const Rect& bounds, 87 FloatRect transform(const FloatRect& bounds) const; 91 vec2 transform(const vec2& v) const; 92 vec3 transform(const vec3& v) const;
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Transform.h | 83 vec2 transform(int x, int y) const; 84 Region transform(const Region& reg) const; 85 Rect transform(const Rect& bounds, 87 FloatRect transform(const FloatRect& bounds) const; 91 vec2 transform(const vec2& v) const; 92 vec3 transform(const vec3& v) const;
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.cpp | 30 static int InvertTransform(int transform) { in InvertTransform() argument 31 switch (transform) { in InvertTransform() 43 static SkMatrix GetPreTransformMatrix(SkISize windowSize, int transform) { in GetPreTransformMatrix() argument 47 switch (transform) { in GetPreTransformMatrix() 57 LOG_ALWAYS_FATAL("Unsupported Window Transform (%d)", transform); in GetPreTransformMatrix() 168 outWindowInfo->transform = query_value; in InitializeWindowInfoStruct() 171 if (outWindowInfo->transform & ANATIVEWINDOW_TRANSFORM_ROTATE_90) { in InitializeWindowInfoStruct() 176 GetPreTransformMatrix(outWindowInfo->size, outWindowInfo->transform); in InitializeWindowInfoStruct() 287 err = native_window_set_buffers_transform(window, InvertTransform(windowInfo.transform)); in UpdateWindow() 291 windowInfo.transform, strerror(-err), err); in UpdateWindow() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
D | MoSerializer.java | 30 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/ |
D | CameraUtils.cpp | 32 /*out*/int32_t* transform) { in getRotationTransform() argument 35 if (transform == NULL) { in getRotationTransform() 40 *transform = 0; in getRotationTransform() 54 int32_t& flags = *transform; in getRotationTransform()
|
/frameworks/native/libs/gui/ |
D | GLConsumerUtils.cpp | 28 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/ |
D | PdfRenderer.java | 388 @Nullable Matrix transform, @RenderMode int renderMode) { in render() argument 407 if (transform != null && !transform.isAffine()) { in render() 427 if (transform == null) { in render() 431 transform = new Matrix(); in render() 432 transform.postScale((float)clipWidth / getWidth(), in render() 434 transform.postTranslate(contentLeft, contentTop); in render() 437 final long transformPtr = transform.native_instance; in render()
|
D | PdfEditor.java | 129 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/opengl/tests/hwc/ |
D | hwcRects.cpp | 145 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/native/services/surfaceflinger/ |
D | LayerProtoHelper.cpp | 97 void LayerProtoHelper::writeToProto(const ui::Transform& transform, in writeToProto() argument 99 const uint32_t type = transform.getType() | (transform.getOrientation() << 8); in writeToProto() 106 transformProto->set_dsdx(transform[0][0]); in writeToProto() 107 transformProto->set_dtdx(transform[0][1]); in writeToProto() 108 transformProto->set_dsdy(transform[1][0]); in writeToProto() 109 transformProto->set_dtdy(transform[1][1]); in writeToProto()
|
D | BufferStateLayer.cpp | 174 bool BufferStateLayer::setTransform(uint32_t transform) { in setTransform() argument 175 if (mCurrentState.transform == transform) return false; in setTransform() 176 mCurrentState.transform = transform; in setTransform() 228 if (mCurrentState.active.transform.tx() == x && mCurrentState.active.transform.ty() == y && in setFrame() 236 mCurrentState.active.transform.set(x, y); in setFrame() 541 if (s.transform & ui::Transform::ROT_90) { in updateTexImage() 694 mBufferInfo.mTransform = s.transform; in gatherBufferInfo() 744 parentState.cropRect = t.transform(parentState.cropRect); in getRoundedCornerState() 757 return RoundedCornerState(FloatRect(static_cast<float>(s.active.transform.tx()), in getRoundedCornerState() 758 static_cast<float>(s.active.transform.ty()), in getRoundedCornerState() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 477 public void setTransform(AffineTransform transform) { in setTransform() argument 480 layer.getGraphics().setTransform(transform); in setTransform() 486 mTransform.setTransform(transform); in setTransform() 616 private static Rectangle transformRect(Rectangle rect, AffineTransform transform) { in transformRect() argument 626 transform.transform(coords, 0, coords, 8, 4); in transformRect() 657 AffineTransform transform = originalGraphics.getTransform(); in drawInLayer() local 666 imgRect = transformRect(clipBounds, transform); in drawInLayer() 667 transform = new AffineTransform( in drawInLayer() 668 transform.getScaleX(), in drawInLayer() 669 transform.getShearY(), in drawInLayer() [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | DepthImage.java | 81 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()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 84 activeCropFloat = layerTransform.transform(activeCropFloat); in calculateInitialCrop() 87 activeCropFloat = inverseLayerTransform.transform(activeCropFloat); in calculateInitialCrop() 160 activeCrop.transform(invTransform, bufferSize.getWidth(), bufferSize.getHeight()); in calculateOutputSourceCrop() 191 activeCrop = layerTransform.transform(activeCrop); in calculateOutputDisplayFrame() 195 activeCrop = inverseLayerTransform.transform(activeCrop, true); in calculateOutputDisplayFrame() 217 layerTransform.transform(reduce(layerState.geomLayerBounds, activeTransparentRegion))}; in calculateOutputDisplayFrame() 221 const ui::Transform displayTransform{outputState.transform}; in calculateOutputDisplayFrame() 223 return displayTransform.transform(frame); in calculateOutputDisplayFrame() 239 const ui::Transform displayTransform{outputState.transform}; in calculateOutputRelativeBufferTransform() 241 ui::Transform transform(displayTransform * layerTransform * bufferTransform); in calculateOutputRelativeBufferTransform() local [all …]
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraDeviceInfo.java | 188 Matrix transform = new Matrix(); in getPreviewTransform() local 189 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL); in getPreviewTransform() 190 return transform; in getPreviewTransform()
|
/frameworks/base/core/java/android/view/ |
D | TextureView.java | 495 public void setTransform(@Nullable Matrix transform) { in setTransform() argument 496 mMatrix.set(transform); in setTransform() 512 public @NonNull Matrix getTransform(@Nullable Matrix transform) { in getTransform() argument 513 if (transform == null) { in getTransform() 514 transform = new Matrix(); in getTransform() 517 transform.set(mMatrix); in getTransform() 519 return transform; in getTransform()
|
/frameworks/native/services/surfaceflinger/layerproto/ |
D | LayerProtoParser.cpp | 101 layer.transform = generateTransform(layerProto.transform()); in generateLayer() 153 LayerProtoParser::Transform transform; in generateTransform() local 154 transform.dsdx = transformProto.dsdx(); in generateTransform() 155 transform.dtdx = transformProto.dtdx(); in generateTransform() 156 transform.dsdy = transformProto.dsdy(); in generateTransform() 157 transform.dtdy = transformProto.dtdy(); in generateTransform() 159 return transform; in generateTransform() 298 StringAppendF(&result, "tr=%s", transform.to_string().c_str()); in to_string()
|
/frameworks/base/core/java/android/net/ |
D | IpSecManager.java | 360 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform() argument 364 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform() local 397 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform() argument 398 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform() local 444 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform() argument 448 mService.applyTransportModeTransform(pfd, direction, transform.getResourceId()); in applyTransportModeTransform() 529 public void removeTunnelModeTransform(Network net, IpSecTransform transform) {} in removeTunnelModeTransform() argument 921 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTunnelModeTransform() argument 925 transform.getResourceId(), mContext.getOpPackageName()); in applyTunnelModeTransform()
|
/frameworks/av/media/libstagefright/ |
D | SurfaceUtils.cpp | 62 int transform = 0; in setNativeWindowSizeFormatAndUsage() local 65 case 1: transform = HAL_TRANSFORM_ROT_90; break; in setNativeWindowSizeFormatAndUsage() 66 case 2: transform = HAL_TRANSFORM_ROT_180; break; in setNativeWindowSizeFormatAndUsage() 67 case 3: transform = HAL_TRANSFORM_ROT_270; break; in setNativeWindowSizeFormatAndUsage() 68 default: transform = 0; break; in setNativeWindowSizeFormatAndUsage() 72 err = native_window_set_buffers_transform(nativeWindow, transform); in setNativeWindowSizeFormatAndUsage()
|