/frameworks/base/core/jni/ |
H A D | android_graphics_Picture.cpp | 35 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 D | PictureDrawable.java | 27 * 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 D | UserInfoController.java | 26 public void onUserInfoChanged(String name, Drawable picture, String userAccount); argument
|
H A D | UserSwitcherController.java | 159 * @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 D | KeyguardUserSwitcher.java | 279 if (item.picture == null) { 282 v.bind(name, item.picture, item.info.id);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DrawIntoHwBitmapActivity.java | 51 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 D | Picture.java | 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 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 D | Canvas.java | 1202 * 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 D | draw_sw.h | 48 typedef jobject (AwCreatePictureFunction)(JNIEnv* env, SkPicture* picture);
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionUtils.java | 130 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 D | SkiaCanvasTests.cpp | 49 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 D | UserDetailItemView.java | 93 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 D | UserDetailView.java | 83 if (item.picture == null) { 86 v.bind(name, item.picture, item.info.id);
|
H A D | UserTile.java | 104 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 D | CarQSFooter.java | 92 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { argument 93 mMultiUserAvatar.setImageDrawable(picture);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | AnimatedImageDrawable.cpp | 82 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 D | TransitionUtils.java | 122 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 D | RecordingCanvas.java | 289 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 D | UserManagerHelper.java | 401 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 D | AutoFocusStateMachine.java | 200 * 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 D | NopCanvas.java | 297 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 D | QSFooterImpl.java | 387 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 D | CameraTooTest.java | 180 File picture = newFiles.iterator().next(); 181 FileInputStream istream = new FileInputStream(picture); 187 assertTrue(picture.delete());
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaPipeline.cpp | 299 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 D | LockIcon.java | 87 public void onUserInfoChanged(String name, Drawable picture, String userAccount) { argument 88 mUserAvatarIcon = picture;
|