Home
last modified time | relevance | path

Searched refs:picture (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/jni/
Dandroid_graphics_Picture.cpp35 Picture* picture = NULL; in android_graphics_Picture_deserialize() local
38 picture = Picture::CreateFromStream(strm); in android_graphics_Picture_deserialize()
41 return reinterpret_cast<jlong>(picture); in android_graphics_Picture_deserialize()
45 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); in android_graphics_Picture_killPicture() local
46 SkASSERT(picture); in android_graphics_Picture_killPicture()
47 delete picture; in android_graphics_Picture_killPicture()
53 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); in android_graphics_Picture_draw() local
55 SkASSERT(picture); in android_graphics_Picture_draw()
56 picture->draw(canvas); in android_graphics_Picture_draw()
61 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); in android_graphics_Picture_serialize() local
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPictureCaptureDemo.java61 Picture picture = new Picture(); in onCreate() local
62 Canvas canvas = picture.beginRecording(100, 100); in onCreate()
68 picture.endRecording(); in onCreate()
71 iv1.setImageBitmap(Bitmap.createBitmap(picture, 100, 100, Bitmap.Config.ARGB_8888)); in onCreate()
77 iv2.setImageBitmap(Bitmap.createBitmap(picture, 100, 100, Bitmap.Config.HARDWARE)); in onCreate()
102 mCaptureThread, (picture) -> { in onCreate()
113 canvas.drawPicture(picture); in onCreate()
115 picture.close(); in onCreate()
DDrawIntoHwBitmapActivity.java39 Picture picture = new Picture(); in createBitmap() local
40 Canvas canvas = picture.beginRecording(500, 500); in createBitmap()
49 picture.endRecording(); in createBitmap()
50 return Bitmap.createBitmap(picture); in createBitmap()
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java40 public PictureDrawable(Picture picture) { in PictureDrawable() argument
41 mPicture = picture; in PictureDrawable()
58 public void setPicture(Picture picture) { in setPicture() argument
59 mPicture = picture; in setPicture()
/frameworks/base/core/java/android/transition/
DTransitionUtils.java130 final Picture picture = new Picture(); in createDrawableBitmap() local
131 final Canvas canvas = picture.beginRecording(width, height); in createDrawableBitmap()
141 picture.endRecording(); in createDrawableBitmap()
142 return Bitmap.createBitmap(picture); in createDrawableBitmap()
183 final Picture picture = new Picture(); in createViewBitmap() local
184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight); in createViewBitmap()
187 picture.endRecording(); in createViewBitmap()
188 bitmap = Bitmap.createBitmap(picture); in createViewBitmap()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DRecentsTransition.java109 final Picture picture = new Picture();
110 final Canvas canvas = picture.beginRecording(width, height);
112 picture.endRecording();
113 return Bitmap.createBitmap(picture);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailItemView.java89 public void bind(String name, Bitmap picture, int userId) { in bind() argument
91 mAvatar.setAvatarWithBadge(picture, userId); in bind()
94 public void bind(String name, Drawable picture, int userId) { in bind() argument
96 mAvatar.setDrawableWithBadge(picture, userId); in bind()
DUserTile.java103 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { in onUserInfoChanged() argument
104 mLastUpdate = new Pair<>(name, picture); in onUserInfoChanged()
DUserDetailView.java83 if (item.picture == null) { in createUserDetailItemView()
86 v.bind(name, item.picture, item.info.id); in createUserDetailItemView()
/frameworks/base/graphics/java/android/graphics/
DPicture.java260 public void drawPicture(Picture picture) { in drawPicture() argument
261 if (mPicture == picture) { in drawPicture()
264 super.drawPicture(picture); in drawPicture()
DBaseRecordingCanvas.java291 public final void drawPicture(@NonNull Picture picture) { in drawPicture() argument
292 picture.endRecording(); in drawPicture()
294 picture.draw(this); in drawPicture()
299 public final void drawPicture(@NonNull Picture picture, @NonNull Rect dst) { in drawPicture() argument
302 if (picture.getWidth() > 0 && picture.getHeight() > 0) { in drawPicture()
303 scale((float) dst.width() / picture.getWidth(), in drawPicture()
304 (float) dst.height() / picture.getHeight()); in drawPicture()
306 drawPicture(picture); in drawPicture()
311 public final void drawPicture(@NonNull Picture picture, @NonNull RectF dst) { in drawPicture() argument
314 if (picture.getWidth() > 0 && picture.getHeight() > 0) { in drawPicture()
[all …]
DCanvas.java1286 public void drawPicture(@NonNull Picture picture) { in drawPicture() argument
1287 picture.endRecording(); in drawPicture()
1289 picture.draw(this); in drawPicture()
1296 public void drawPicture(@NonNull Picture picture, @NonNull RectF dst) { in drawPicture() argument
1299 if (picture.getWidth() > 0 && picture.getHeight() > 0) { in drawPicture()
1300 scale(dst.width() / picture.getWidth(), dst.height() / picture.getHeight()); in drawPicture()
1302 drawPicture(picture); in drawPicture()
1309 public void drawPicture(@NonNull Picture picture, @NonNull Rect dst) { in drawPicture() argument
1312 if (picture.getWidth() > 0 && picture.getHeight() > 0) { in drawPicture()
1313 scale((float) dst.width() / picture.getWidth(), in drawPicture()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java180 if (r == null || r.picture == null || r.info == null || forceAllUsers in refreshUsers()
184 bitmaps.put(r.info.id, r.picture); in refreshUsers()
218 Bitmap picture = bitmaps.get(info.id); in refreshUsers() local
219 if (picture == null) { in refreshUsers()
220 picture = mUserManager.getUserIcon(info.id); in refreshUsers()
222 if (picture != null) { in refreshUsers()
225 picture = Bitmap.createScaledBitmap( in refreshUsers()
226 picture, avatarSize, avatarSize, true); in refreshUsers()
230 records.add(index, new UserRecord(info, picture, false /* isGuest */, in refreshUsers()
717 public final Bitmap picture; field in UserSwitcherController.UserRecord
[all …]
DUserInfoController.java26 public void onUserInfoChanged(String name, Drawable picture, String userAccount); in onUserInfoChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSFooterImpl.java392 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { in onUserInfoChanged() argument
393 if (picture != null && in onUserInfoChanged()
395 !(picture instanceof UserIconDrawable)) { in onUserInfoChanged()
396 picture = picture.getConstantState().newDrawable(mContext.getResources()).mutate(); in onUserInfoChanged()
397 picture.setColorFilter( in onUserInfoChanged()
401 mMultiUserAvatar.setImageDrawable(picture); in onUserInfoChanged()
/frameworks/base/core/jni/android/graphics/
DAnimatedImageDrawable.cpp81 sk_sp<SkPicture> picture; in AnimatedImageDrawable_nCreate() local
92 picture = recorder.finishRecordingAsPicture(); in AnimatedImageDrawable_nCreate()
93 bytesUsed += picture->approximateBytesUsed(); in AnimatedImageDrawable_nCreate()
99 std::move(picture)); in AnimatedImageDrawable_nCreate()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/
DAutoFocusStateMachine.java334 public synchronized void setPassiveAutoFocus(boolean picture, in setPassiveAutoFocus() argument
336 if (VERBOSE_LOGGING) Log.v(TAG, "setPassiveAutoFocus - picture " + picture); in setPassiveAutoFocus()
338 if (picture) { in setPassiveAutoFocus()
/frameworks/base/libs/hwui/tests/unit/
DSkiaCanvasTests.cpp78 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); in TEST() local
81 canvas.asSkCanvas()->drawPicture(picture); in TEST()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/qs/car/
DCarQSFooter.java95 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { in onUserInfoChanged() argument
96 mMultiUserAvatar.setImageDrawable(picture); in onUserInfoChanged()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java297 public void drawPicture(Picture picture) { in drawPicture() argument
301 public void drawPicture(Picture picture, RectF dst) { in drawPicture() argument
305 public void drawPicture(Picture picture, Rect dst) { in drawPicture() argument
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
DCameraTooTest.java180 File picture = newFiles.iterator().next(); in capturedImageSaver() local
181 FileInputStream istream = new FileInputStream(picture); in capturedImageSaver()
187 assertTrue(picture.delete()); in capturedImageSaver()
/frameworks/base/native/webview/plat_support/
Ddraw_sw.h48 typedef jobject (AwCreatePictureFunction)(JNIEnv* env, SkPicture* picture);
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp269 sk_sp<SkPicture> picture = mRecorder->finishRecordingAsPicture(); in endCapture() local
270 if (picture->approximateOpCount() > 0) { in endCapture()
273 auto data = picture->serialize(); in endCapture()
285 std::invoke(mPictureCapturedCallback, std::move(picture)); in endCapture()
/frameworks/base/libs/hwui/
DRecordingCanvas.cpp281 DrawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) in DrawPicture()
282 : picture(sk_ref_sp(picture)) { in DrawPicture()
291 sk_sp<const SkPicture> picture; member
296 c->drawPicture(picture.get(), &matrix, has_paint ? &paint : nullptr); in draw()
609 void DisplayListData::drawPicture(const SkPicture* picture, const SkMatrix* matrix, in drawPicture() argument
611 this->push<DrawPicture>(0, picture, matrix, paint); in drawPicture()
876 void RecordingCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, in onDrawPicture() argument
878 fDL->drawPicture(picture, matrix, paint); in onDrawPicture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java167 Bitmap picture = generateAdjustedHwBitmap(data.image, previewWidth, previewHeight, matrix, in SaveImageInBackgroundTask() local
183 .bigPicture(picture.createAshmemBitmap()); in SaveImageInBackgroundTask()
231 Picture picture = new Picture(); in generateAdjustedHwBitmap() local
232 Canvas canvas = picture.beginRecording(width, height); in generateAdjustedHwBitmap()
235 picture.endRecording(); in generateAdjustedHwBitmap()
236 return Bitmap.createBitmap(picture); in generateAdjustedHwBitmap()

12