HomeSort by relevance Sort by last modified time
    Searched refs:Picture (Results 1 - 25 of 92) sorted by null

1 2 3 4

  /external/v4l2_codec2/vda/
picture.cc 6 #include "picture.h"
24 Picture::Picture(int32_t picture_buffer_id,
33 Picture::Picture(const Picture& other) = default;
35 Picture::~Picture() = default;
picture.h 19 // A picture buffer that has size and pixel format information.
45 // A decoded picture frame.
46 class Picture {
48 Picture(int32_t picture_buffer_id,
52 Picture(const Picture&);
53 ~Picture();
55 // Returns the id of the picture buffer where this picture is contained.
65 // Returns the visible rectangle of the picture. Its size may be smalle
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowPictureTest.java 5 import android.graphics.Picture;
15 Picture picture = new Picture(); local
16 picture.beginRecording(100, 100);
17 assertThat(picture.getHeight()).isEqualTo(100);
18 assertThat(picture.getWidth()).isEqualTo(100);
23 Picture originalPicture = new Picture();
26 Picture copiedPicture = new Picture(originalPicture)
    [all...]
  /frameworks/base/core/jni/
android_graphics_Picture.cpp 19 #include "Picture.h"
29 const Picture* src = reinterpret_cast<Picture*>(srcHandle);
30 return reinterpret_cast<jlong>(new Picture(src));
35 Picture* picture = NULL; local
38 picture = Picture::CreateFromStream(strm);
41 return reinterpret_cast<jlong>(picture);
45 Picture* picture = reinterpret_cast<Picture*>(pictureHandle) local
53 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); local
61 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); local
    [all...]
  /frameworks/support/core/ktx/src/main/java/androidx/core/graphics/
Picture.kt 21 import android.graphics.Picture
24 * Creates a new [Canvas] to record commands in this [Picture], executes the specified
25 * [block] on the newly created canvas and returns this [Picture]. Example:
35 inline fun Picture.record(width: Int, height: Int, block: Canvas.() -> Unit): Picture {
  /frameworks/base/core/jni/android/graphics/
Picture.h 37 class Picture {
39 explicit Picture(const Picture* src = NULL);
49 static Picture* CreateFromStream(SkStream* stream);
61 // Make a copy of a picture that is in the midst of being recorded. The
62 // resulting picture will have balanced saves and restores.
Picture.cpp 17 #include "Picture.h"
25 Picture::Picture(const Picture* src) {
40 Canvas* Picture::beginRecording(int width, int height) {
49 void Picture::endRecording() {
56 int Picture::width() const {
60 int Picture::height() const {
64 Picture* Picture::CreateFromStream(SkStream* stream)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Picture.java 23 * A Picture records drawing calls (via the canvas returned by beginRecording)
24 * and can then play them back into Canvas (via {@link Picture#draw(Canvas)} or
25 * {@link Canvas#drawPicture(Picture)}).For most content (e.g. text, lines, rectangles),
26 * drawing a sequence from a picture can be faster than the equivalent API
27 * calls, since the picture performs its playback without incurring any
30 * <p class="note"><strong>Note:</strong> Prior to API level 23 a picture cannot
33 public class Picture {
41 * Creates an empty picture that is ready to record.
43 public Picture() {
48 * Create a picture by making a copy of what has already been recorded i
    [all...]
  /frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
PictureTest.kt 20 import android.graphics.Picture
26 val p = Picture().record(1, 1) {
  /frameworks/base/graphics/java/android/graphics/drawable/
PictureDrawable.java 22 import android.graphics.Picture;
27 * Drawable subclass that wraps a Picture, allowing the picture to be used
32 private Picture mPicture;
35 * Construct a new drawable referencing the specified picture. The picture
38 * @param picture The picture to associate with the drawable. May be null.
40 public PictureDrawable(Picture picture) {
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowPicture.java 5 import android.graphics.Picture;
9 @Implements(Picture.class)
25 public void __constructor__(Picture src) {
  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
BitmapRenderer.java 21 import android.graphics.Picture;
42 Picture picture = new Picture(); local
43 renderer.draw(picture.beginRecording(width, height));
44 picture.endRecording();
45 return Bitmap.createBitmap(picture);
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
PictureTest.java 22 import android.graphics.Picture;
40 private static Picture greenSquare() {
43 Picture pic = new Picture();
57 Picture pic = greenSquare();
69 Picture pic = greenSquare();
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
PictureDrawableTest.java 26 import android.graphics.Picture;
41 assertNotNull((new PictureDrawable(new Picture())).getPicture());
48 // Create Picture for drawing
49 Picture picture = new Picture(); local
50 Canvas recodingCanvas = picture.beginRecording(100, 200);
52 picture.endRecording();
53 pictureDrawable.setPicture(picture);
74 // Test with null Picture objec
78 Picture picture = new Picture(); local
124 Picture picture = new Picture(); local
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
PictureTest.java 29 import android.graphics.Picture;
48 // This method tests out some edge cases w.r.t. Picture creation.
50 // the created picture (effectively) has balanced saves and restores:
51 // - copy constructed picture from actively recording picture
52 // - writeToStream/createFromStream created picture from actively recording picture
53 // - actively recording picture after draw call
56 Picture original = new Picture();
120 Picture picture = new Picture(); local
154 Picture picture = new Picture(); local
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
CanvasClientView.java 22 import android.graphics.Picture;
67 Picture picture = new Picture(); local
68 Canvas pictureCanvas = picture.beginRecording(ActivityTestBase.TEST_WIDTH,
72 picture.endRecording();
73 picture.draw(canvas);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Pictures.java 37 private Picture mPicture;
56 mPicture = new Picture();
77 canvas.drawPicture(Picture.createFromStream(is));
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DrawIntoHwBitmapActivity.java 30 import android.graphics.Picture;
51 Picture picture = new Picture(); local
52 Canvas canvas = picture.beginRecording(500, 500);
61 picture.endRecording();
62 return Bitmap.createBitmap(picture);
  /external/pdfium/xfa/fxfa/parser/
cxfa_bind.cpp 16 const CXFA_Node::PropertyData kPropertyData[] = {{XFA_Element::Picture, 1, 0},
51 GetChild<CXFA_Picture>(0, XFA_Element::Picture, false);
cxfa_format.cpp 14 const CXFA_Node::PropertyData kPropertyData[] = {{XFA_Element::Picture, 1, 0},
cxfa_picture.cpp 22 constexpr wchar_t kName[] = L"picture";
32 XFA_Element::Picture,
cxfa_transform.cpp 14 {XFA_Element::Picture, 1, 0}, {XFA_Element::NameAttr, 1, 0},
  /external/skia/include/core/
SkPictureRecorder.h 17 class Picture;
44 @param bounds the cull rect used when recording this picture. Any drawing the falls outside
70 * The returned picture is immutable. If during recording drawables were added to the canvas,
71 * these will have been "drawn" into a recording canvas, so that this resulting picture will
84 * @return the picture containing the recorded content.
94 * Unlike finishRecordingAsPicture(), which returns an immutable picture, the returned drawable
97 * it is drawn or a new picture is snapped from it (by calling drawable->newPictureSnapshot()).
108 friend class android::Picture;
  /external/skqp/include/core/
SkPictureRecorder.h 17 class Picture;
44 @param bounds the cull rect used when recording this picture. Any drawing the falls outside
70 * The returned picture is immutable. If during recording drawables were added to the canvas,
71 * these will have been "drawn" into a recording canvas, so that this resulting picture will
84 * @return the picture containing the recorded content.
94 * Unlike finishRecordingAsPicture(), which returns an immutable picture, the returned drawable
97 * it is drawn or a new picture is snapped from it (by calling drawable->newPictureSnapshot()).
108 friend class android::Picture;
  /frameworks/base/core/java/android/transition/
TransitionUtils.java 25 import android.graphics.Picture;
130 final Picture picture = new Picture(); local
131 final Canvas canvas = picture.beginRecording(width, height);
141 picture.endRecording();
142 return Bitmap.createBitmap(picture);
183 final Picture picture = new Picture(); local
    [all...]

Completed in 1987 milliseconds

1 2 3 4