Searched refs:picture (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/core/jni/
H A Dandroid_graphics_Picture.cpp35 Picture* picture = NULL; local
38 picture = Picture::CreateFromStream(strm);
41 return reinterpret_cast<jlong>(picture);
45 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); local
46 SkASSERT(picture);
47 delete picture;
53 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); local
55 SkASSERT(picture);
56 picture->draw(canvas);
61 Picture* picture local
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java27 * Drawable subclass that wraps a Picture, allowing the picture to be used
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) { argument
41 mPicture = picture;
45 * Return the picture associated with the drawable. May be null.
47 * @return the picture associated with the drawable, or null.
54 * Associate a picture wit
58 setPicture(Picture picture) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserInfoController.java26 public void onUserInfoChanged(String name, Drawable picture, String userAccount); argument
H A DUserSwitcherController.java159 * @param forcePictureLoadForId forces the picture of the given user to be reloaded.
177 if (r == null || r.picture == null || r.info == null || forceAllUsers
181 bitmaps.put(r.info.id, r.picture);
211 guestRecord = new UserRecord(info, null /* picture */,
215 Bitmap picture = bitmaps.get(info.id);
216 if (picture == null) {
217 picture = mUserManager.getUserIcon(info.id);
219 if (picture != null) {
222 picture = Bitmap.createScaledBitmap(
223 picture, avatarSiz
710 public final Bitmap picture; field in class:UserSwitcherController.UserRecord
720 UserRecord(UserInfo info, Bitmap picture, boolean isGuest, boolean isCurrent, boolean isAddUser, boolean isRestricted, boolean isSwitchToEnabled) argument
[all...]
H A DKeyguardUserSwitcher.java279 if (item.picture == null) {
282 v.bind(name, item.picture, item.info.id);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDrawIntoHwBitmapActivity.java51 Picture picture = new Picture();
52 Canvas canvas = picture.beginRecording(500, 500);
61 picture.endRecording();
62 return Bitmap.createBitmap(picture);
/frameworks/base/graphics/java/android/graphics/
H A DPicture.java26 * 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
41 * Creates an empty picture that is ready to record.
48 * Create a picture by making a copy of what has already been recorded in
50 * changes will not be reflected in this picture.
74 * To record a picture, call beginRecording() and then draw into the Canvas
92 * Call endRecording when the picture is built. After this call, the picture
106 * Get the width of the picture a
225 drawPicture(Picture picture) argument
[all...]
H A DCanvas.java1202 * Save the canvas state, draw the picture, and restore the canvas state.
1203 * This differs from picture.draw(canvas), which does not perform any
1207 * <strong>Note:</strong> This forces the picture to internally call
1210 * @param picture The picture to be drawn
1212 public void drawPicture(@NonNull Picture picture) { argument
1213 picture.endRecording();
1215 picture.draw(this);
1220 * Draw the picture, stretched to fit into the dst rectangle.
1222 public void drawPicture(@NonNull Picture picture, argument
1235 drawPicture(@onNull Picture picture, @NonNull Rect dst) argument
[all...]
/frameworks/base/native/webview/plat_support/
H A Ddraw_sw.h48 typedef jobject (AwCreatePictureFunction)(JNIEnv* env, SkPicture* picture);
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java130 final Picture picture = new Picture();
131 final Canvas canvas = picture.beginRecording(width, height);
141 picture.endRecording();
142 return Bitmap.createBitmap(picture);
183 final Picture picture = new Picture();
184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
187 picture.endRecording();
188 bitmap = Bitmap.createBitmap(picture);
/frameworks/base/libs/hwui/tests/unit/
H A DSkiaCanvasTests.cpp49 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
51 canvas.asSkCanvas()->drawPicture(picture);
109 // Test picture recording.
114 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); local
117 canvas.asSkCanvas()->drawPicture(picture);
140 // Create a picture canvas.
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DUserDetailItemView.java93 public void bind(String name, Bitmap picture, int userId) { argument
95 mAvatar.setAvatarWithBadge(picture, userId);
98 public void bind(String name, Drawable picture, int userId) { argument
100 mAvatar.setDrawableWithBadge(picture, userId);
H A DUserDetailView.java83 if (item.picture == null) {
86 v.bind(name, item.picture, item.info.id);
H A DUserTile.java104 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { argument
105 mLastUpdate = new Pair<>(name, picture);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/car/
H A DCarQSFooter.java92 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { argument
93 mMultiUserAvatar.setImageDrawable(picture);
/frameworks/base/core/jni/android/graphics/
H A DAnimatedImageDrawable.cpp82 sk_sp<SkPicture> picture; local
93 picture = recorder.finishRecordingAsPicture();
94 bytesUsed += picture->approximateBytesUsed();
100 std::move(picture));
/frameworks/support/transition/src/main/java/androidx/transition/
H A DTransitionUtils.java122 final Picture picture = new Picture();
123 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
126 picture.endRecording();
127 bitmap = Bitmap.createBitmap(picture);
/frameworks/base/core/java/android/view/
H A DRecordingCanvas.java289 public final void drawPicture(@NonNull Picture picture) { argument
290 picture.endRecording();
292 picture.draw(this);
297 public final void drawPicture(@NonNull Picture picture, @NonNull Rect dst) { argument
300 if (picture.getWidth() > 0 && picture.getHeight() > 0) {
301 scale((float) dst.width() / picture.getWidth(),
302 (float) dst.height() / picture.getHeight());
304 drawPicture(picture);
309 public final void drawPicture(@NonNull Picture picture, argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DUserManagerHelper.java401 Bitmap picture = mUserManager.getUserIcon(userInfo.id);
403 if (picture == null) {
407 return picture;
/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/
H A DAutoFocusStateMachine.java200 * Lock the lens from moving. Typically used before taking a picture.
240 * Unlock the lens, allowing it to move again. Typically used after taking a picture.
325 * the lens before taking a picture. Once a picture is taken, use {@link #unlockAutoFocus}
332 * @param picture True for still capture AF, false for video AF.
334 public synchronized void setPassiveAutoFocus(boolean picture, argument
336 if (VERBOSE_LOGGING) Log.v(TAG, "setPassiveAutoFocus - picture " + picture);
338 if (picture) {
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java297 public void drawPicture(Picture picture) { argument
301 public void drawPicture(Picture picture, RectF dst) { argument
305 public void drawPicture(Picture picture, Rect dst) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSFooterImpl.java387 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { argument
388 if (picture != null &&
390 !(picture instanceof UserIconDrawable)) {
391 picture = picture.getConstantState().newDrawable(mContext.getResources()).mutate();
392 picture.setColorFilter(
396 mMultiUserAvatar.setImageDrawable(picture);
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
H A DCameraTooTest.java180 File picture = newFiles.iterator().next();
181 FileInputStream istream = new FileInputStream(picture);
187 assertTrue(picture.delete());
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp299 sk_sp<SkPicture> picture = mRecorder->finishRecordingAsPicture(); local
300 surface->getCanvas()->drawPicture(picture);
301 if (picture->approximateOpCount() > 0) {
302 auto data = picture->serialize();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockIcon.java87 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { argument
88 mUserAvatarIcon = picture;

Completed in 1861 milliseconds

12