/frameworks/base/libs/hwui/tests/unit/ |
D | RenderNodeTests.cpp | 42 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 46 [&child](RenderProperties& props, Canvas& canvas) { in TEST() 55 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 73 [&child](RenderProperties& props, Canvas& canvas) { in TEST() 89 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 105 TestUtils::recordNode(*child, [](Canvas& canvas) { in TEST() 113 [&child](Canvas& canvas) { canvas.drawRenderNode(child.get()); }); in TEST() 131 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 135 [&child](RenderProperties& props, Canvas& canvas) { in TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 48 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 53 RecordingCanvas canvas; in TEST() local 65 static void drawOrderedRect(Canvas* canvas, uint8_t expectedDrawOrder) { in drawOrderedRect() 72 static void drawOrderedNode(Canvas* canvas, uint8_t expectedDrawOrder, float z) { in drawOrderedNode() 75 [expectedDrawOrder, z](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() 83 Canvas* canvas, uint8_t expectedDrawOrder, in drawOrderedNode() 87 [expectedDrawOrder, setup](RenderProperties& props, SkiaRecordingCanvas& canvas) { in drawOrderedNode() 113 SkiaRecordingCanvas& canvas) { in TEST() 139 ZReorderCanvas canvas(100, 100); in TEST() local 147 SkCanvas& canvas = *surface->getCanvas(); in TEST() local [all …]
|
D | CanvasOpTests.cpp | 135 CallCountingCanvas canvas; in TEST() local 151 CallCountingCanvas canvas; in TEST() local 176 CallCountingCanvas canvas; in TEST() local 194 CallCountingCanvas canvas; in TEST() local 218 CallCountingCanvas canvas; in TEST() local 233 CallCountingCanvas canvas; in TEST() local 250 CallCountingCanvas canvas; in TEST() local 272 CallCountingCanvas canvas; in TEST() local 289 CallCountingCanvas canvas; in TEST() local 327 CallCountingCanvas canvas; in TEST() local [all …]
|
D | SkiaRenderPropertiesTests.cpp | 63 [propSetupCallback](RenderProperties& props, SkiaRecordingCanvas& canvas) { in testProperty() 70 PropertyTestCanvas canvas(opValidateCallback); in testProperty() local 83 [](const SkCanvas& canvas) { in TEST() 94 [](const SkCanvas& canvas) { in TEST() 105 [](const SkCanvas& canvas) { in TEST() 127 [](const SkCanvas& canvas) { in TEST()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | BatteryMeterDrawableTest.java | 59 final Canvas canvas = mock(Canvas.class); in testDrawImageButNoTextIfPluggedIn() local 69 final Canvas canvas = mock(Canvas.class); in testDrawTextIfNotPluggedIn() local 79 final Canvas canvas = mock(Canvas.class); in testDrawNoTextIfPowerSaveEnabled() local 90 final Canvas canvas = mock(Canvas.class); in testDrawTextWarningAtCriticalLevel() local 102 final Canvas canvas = mock(Canvas.class); in testDrawTextNoWarningAboveCriticalLevel() local
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | DisplayListCanvasBench.cpp | 50 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_empty() local 62 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_saverestore() local 78 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_translate() local 97 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_simpleBitmapView() local 123 sp<RenderNode> child = TestUtils::createNode(50, 50, 100, 100, [](auto& props, auto& canvas) { in BM_SkiaDisplayListCanvas_basicViewGroupDraw() 127 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_basicViewGroupDraw() local
|
D | CanvasOpBench.cpp | 38 CanvasFrontend<CanvasOpBuffer> canvas(100, 100); in BM_CanvasOpBuffer_record_saverestore() local 52 CanvasFrontend<CanvasOpBuffer> canvas(100, 100); in BM_CanvasOpBuffer_record_saverestoreWithReuse() local 66 CanvasFrontend<CanvasOpBuffer> canvas(100, 100); in BM_CanvasOpBuffer_record_simpleBitmapView() local
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifPatternDrawableTest.java | 51 final Canvas canvas = new Canvas(bitmap); in testDraw() local 68 final Canvas canvas = new Canvas(bitmap); in testDrawTwice() local 87 final Canvas canvas = new Canvas(); in testScaleToCanvasSquare() local 103 final Canvas canvas = new Canvas(); in testScaleToCanvasTall() local 120 final Canvas canvas = new Canvas(); in testScaleToCanvasWide() local 137 final Canvas canvas = new Canvas(); in testScaleToCanvasMaxSize() local
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | TvApp.cpp | 71 void createContent(int width, int height, Canvas& canvas) override { in createContent() 99 sp<RenderNode> createBitmapNode(Canvas& canvas, SkColor color, int left, int top, int width, in createBitmapNode() 103 [this, width, height, color](RenderProperties& props, Canvas& canvas) { in createBitmapNode() 111 sp<RenderNode> createSharedBitmapNode(Canvas& canvas, int left, int top, int width, int height, in createSharedBitmapNode() 114 [bitmap](RenderProperties& props, Canvas& canvas) { in createSharedBitmapNode() 119 sp<RenderNode> createInfoNode(Canvas& canvas, int left, int top, int width, int height, in createInfoNode() 122 [text, text2](RenderProperties& props, Canvas& canvas) { in createInfoNode() 137 sp<RenderNode> createColorNode(Canvas& canvas, int left, int top, int width, int height, in createColorNode() 140 [color](RenderProperties& props, Canvas& canvas) { in createColorNode() 155 Canvas& canvas) { in createCard() [all …]
|
D | PartialDamageAnimation.cpp | 33 void createContent(int width, int height, Canvas& canvas) override { in createContent() 45 [color](RenderProperties& props, Canvas& canvas) { in createContent() 59 TestUtils::recordNode(*cards[0], [curFrame](Canvas& canvas) { in doFrame()
|
D | StretchyListViewAnimation.cpp | 91 SkCanvas canvas(skBitmap); in createRandomCharIcon() local 119 SkCanvas canvas(skBitmap); in createBoxBitmap() local 131 void createListItem(RenderProperties& props, Canvas& canvas, int cardId, int itemWidth, in createListItem() 169 void createContent(int width, int height, Canvas& canvas) override { in createContent() 179 [this, id](RenderProperties& props, Canvas& canvas) { in createContent() 186 [this](RenderProperties& props, Canvas& canvas) { in createContent()
|
/frameworks/base/libs/hwui/apex/ |
D | android_canvas.cpp | 78 void ACanvas_destroyCanvas(ACanvas* canvas) { in ACanvas_destroyCanvas() 82 bool ACanvas_setBuffer(ACanvas* canvas, const ANativeWindow_Buffer* buffer, in ACanvas_setBuffer() 90 void ACanvas_clipRect(ACanvas* canvas, const ARect* clipRect, bool /*doAA*/) { in ACanvas_clipRect() 96 void ACanvas_clipOutRect(ACanvas* canvas, const ARect* clipRect, bool /*doAA*/) { in ACanvas_clipOutRect() 102 void ACanvas_drawRect(ACanvas* canvas, const ARect* rect, const APaint* paint) { in ACanvas_drawRect() 107 void ACanvas_drawBitmap(ACanvas* canvas, const ABitmap* bitmap, float left, float top, in ACanvas_drawBitmap()
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_DisplayListCanvas.cpp | 79 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_resetDisplayListCanvas() local 90 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_enableZ() local 96 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_finishRecording() local 102 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRenderNode() local 108 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawTextureLayer() local 116 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRoundRectProps() local 129 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawCircleProps() local 141 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRippleProps() local 160 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawWebViewFunctor() local
|
D | Picture.cpp | 51 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); in beginRecording() local 98 void Picture::draw(Canvas* canvas) { in draw() 114 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight); in makePartialCopy() local
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | BasicTexture.java | 57 protected BasicTexture(GLCanvas canvas, int id, int state) { in BasicTexture() 70 protected void setAssociatedCanvas(GLCanvas canvas) { in setAssociatedCanvas() 137 public void draw(GLCanvas canvas, int x, int y) { in draw() 142 public void draw(GLCanvas canvas, int x, int y, int w, int h) { in draw() 148 abstract protected boolean onBind(GLCanvas canvas); in onBind() 173 GLCanvas canvas = mCanvasRef; in freeResource() local
|
/frameworks/base/tests/Internal/src/android/app/ |
D | WallpaperColorsTest.java | 56 Canvas canvas = new Canvas(image); in whiteSurfaceColorHintsTest() local 99 Canvas canvas = new Canvas(image); in blackSurfaceColorHintsTest() local 116 Canvas canvas = new Canvas(image); in bitmapHintsTest() local 146 Canvas canvas = new Canvas(); in wallpaperRecycleBitmapTest() local
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | FramebufferBlendActivity.java | 64 protected void onDraw(Canvas canvas) { in onDraw() 87 private void drawBlendedBitmap(Canvas canvas, PorterDuff.Mode mode) { in drawBlendedBitmap() 99 private void drawBlendedBitmapInverse(Canvas canvas, PorterDuff.Mode mode) { in drawBlendedBitmapInverse()
|
D | BlurActivity.java | 92 Canvas canvas = mRenderNode.beginRecording(); in onLayout() local 105 protected void onDraw(Canvas canvas) { in onDraw() 138 Canvas canvas = mRenderNode.beginRecording(width, height); in onLayout() local 157 protected void onDraw(Canvas canvas) { in onDraw()
|
D | Lines2Activity.java | 75 private void drawLines(Canvas canvas, Paint p, float xOffset, float yOffset) { in drawLines() 89 private void drawVerticalLine(Canvas canvas, Paint p, float length, float x, float y) { in drawVerticalLine() 93 private void drawDiagonalLine(Canvas canvas, Paint p, float length, float x, float y) { in drawDiagonalLine() 98 protected void onDraw(Canvas canvas) { in onDraw()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | CircularBitmapDrawable.java | 93 protected void onDrawBitmap(final Canvas canvas, final Rect src, in onDrawBitmap() 95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f); in onDrawBitmap() local 99 protected void onDrawPlaceholderOrProgress(final Canvas canvas, in onDrawPlaceholderOrProgress() 122 protected void onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, in onDrawCircularBitmap() 131 protected void onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, in onDrawCircularBitmap()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/ |
D | Reporting.java | 25 void report(ReportCanvas canvas); in report() 30 void shortReport(ReportCanvas canvas); in shortReport()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestListViewSceneBase.cpp | 30 void TestListViewSceneBase::createContent(int width, int height, Canvas& canvas) { in createContent() 46 [this](RenderProperties& props, Canvas& canvas) { in createContent() 61 std::unique_ptr<Canvas> canvas(Canvas::create_recording_canvas( in doFrame() local
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/tree/ |
D | UsbDescriptorsTreeNode.java | 32 public void report(ReportCanvas canvas) { in report() 39 public void shortReport(ReportCanvas canvas) { in shortReport()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | DotIndicatorDecoration.java | 68 public void onDrawOver(Canvas canvas, RecyclerView recyclerView, RecyclerView.State state) { in onDrawOver() 116 private void drawSelectedDot(Canvas canvas, float progress) { in drawSelectedDot() 127 private void drawFadingUnselectedDot(Canvas canvas, float progress) { in drawFadingUnselectedDot() 138 private void drawUnselectedDot(Canvas canvas) { in drawUnselectedDot()
|
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/ |
D | BoundsInfoDrawHelper.java | 47 public static void draw(Canvas canvas, View inkView, int boundsInfoMode, in draw() 75 private static void drawEditorBoundsInfo(Canvas canvas, Matrix matrix, in drawEditorBoundsInfo() 105 private static void drawVisibleLineBounds(Canvas canvas, Matrix matrix, in drawVisibleLineBounds()
|