/aosp14/frameworks/base/tools/aapt2/compile/ |
H A D | Png.cpp | 936 image->outlineInsetsLeft, image->outlineInsetsTop, in getOutline() 937 image->outlineInsetsRight, image->outlineInsetsBottom, in getOutline() 938 image->outlineRadius, image->outlineAlpha); in getOutline() 994 image->info9Patch.paddingLeft = image->info9Patch.paddingRight = -1; in do9Patch() 995 image->info9Patch.paddingTop = image->info9Patch.paddingBottom = -1; in do9Patch() 996 image->layoutBoundsLeft = image->layoutBoundsRight = 0; in do9Patch() 997 image->layoutBoundsTop = image->layoutBoundsBottom = 0; in do9Patch() 1073 image->layoutBoundsLeft != 0 || image->layoutBoundsRight != 0 || in do9Patch() 1074 image->layoutBoundsTop != 0 || image->layoutBoundsBottom != 0; in do9Patch() 1079 image->layoutBoundsTop, image->layoutBoundsRight, in do9Patch() [all …]
|
H A D | PngCrunch.cpp | 538 for (int32_t y = 0; y < image->height; y++) { in WritePng() 539 const uint8_t* row = image->rows[y]; in WritePng() 540 for (int32_t x = 0; x < image->width; x++) { in WritePng() 593 image->width, image->height, grayscale, convertible_to_grayscale, in WritePng() 625 png_set_IHDR(write_ptr, write_info_ptr, image->width, image->height, 8, in WritePng() 650 for (int32_t y = 0; y < image->height; y++) { in WritePng() 651 png_const_bytep in_row = image->rows[y]; in WritePng() 652 for (int32_t x = 0; x < image->width; x++) { in WritePng() 675 for (int32_t y = 0; y < image->height; y++) { in WritePng() 676 png_const_bytep in_row = image->rows[y]; in WritePng() [all …]
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 565 image->info9Patch.paddingLeft = image->info9Patch.paddingRight = in do_9patch() 566 image->info9Patch.paddingTop = image->info9Patch.paddingBottom = -1; in do_9patch() 568 image->layoutBoundsLeft = image->layoutBoundsRight = in do_9patch() 569 image->layoutBoundsTop = image->layoutBoundsBottom = 0; in do_9patch() 639 image->haveLayoutBounds = image->layoutBoundsLeft != 0 in do_9patch() 647 image->layoutBoundsRight, image->layoutBoundsBottom); in do_9patch() 682 image->rows[i] = image->allocRows[i+1]; in do_9patch() 683 memmove(image->rows[i], image->rows[i]+4, (W-2)*4); in do_9patch() 685 image->width -= 2; in do_9patch() 686 W = image->width; in do_9patch() [all …]
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | ImageWriter.java | 497 if (image == null) { in queueInputImage() 523 image.close(); in queueInputImage() 528 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), image.getDataSpace(), in queueInputImage() 686 image.close(); in close() 737 if (image == null) { in attachAndQueueInputImage() 750 if (!image.isAttachable()) { in attachAndQueueInputImage() 762 hardwareBufferFormat, image.getTimestamp(), image.getDataSpace(), in attachAndQueueInputImage() 768 image.getTimestamp(), image.getDataSpace(), crop.left, crop.top, crop.right, in attachAndQueueInputImage() 769 crop.bottom, image.getTransform(), image.getScalingMode()); in attachAndQueueInputImage() 771 image.close(); in attachAndQueueInputImage() [all …]
|
H A D | ImageUtils.java | 285 private static Size getEffectivePlaneSizeForImage(Image image, int planeIdx) { in getEffectivePlaneSizeForImage() argument 286 switch (image.getFormat()) { in getEffectivePlaneSizeForImage() 292 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 294 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage() 298 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 300 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage() 318 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage() 326 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
|
H A D | ImageReader.java | 541 Image image = acquireNextImage(); in acquireLatestImage() local 542 if (image == null) { in acquireLatestImage() 549 Image result = image; in acquireLatestImage() 550 image = null; in acquireLatestImage() 553 image.close(); in acquireLatestImage() 554 image = next; in acquireLatestImage() 557 if (image != null) { in acquireLatestImage() 558 image.close(); in acquireLatestImage() 801 image.close(); in close() 886 if (image == null) { in detachImage() [all …]
|
/aosp14/frameworks/base/tests/Internal/src/android/app/ |
H A D | WallpaperColorsTest.java | 55 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in whiteSurfaceColorHintsTest() local 56 Canvas canvas = new Canvas(image); in whiteSurfaceColorHintsTest() 59 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in whiteSurfaceColorHintsTest() 69 supportsDarkText = (WallpaperColors.fromBitmap(image) in whiteSurfaceColorHintsTest() 99 Canvas canvas = new Canvas(image); in blackSurfaceColorHintsTest() 102 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in blackSurfaceColorHintsTest() 116 Canvas canvas = new Canvas(image); in bitmapHintsTest() 119 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in bitmapHintsTest() 145 WallpaperColors.fromBitmap(image); in wallpaperRecycleBitmapTest() 148 canvas.drawBitmap(image, 0, 0, new Paint()); in wallpaperRecycleBitmapTest() [all …]
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | BlingyNotification.kt | 33 private val image: Bitmap? 40 image = if (drawable is BitmapDrawable) { 49 val image = image ?: return super.onMeasure(widthMeasureSpec, heightMeasureSpec) regex 58 var height = image.height * width / image.width 87 val image = image ?: return regex 89 canvas.drawBitmap(image, null, bounds, null)
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | ImageSwitcher.java | 64 ImageView image = (ImageView)this.getNextView(); in setImageResource() local 65 image.setImageResource(resid); in setImageResource() 80 ImageView image = (ImageView)this.getNextView(); in setImageURI() local 81 image.setImageURI(uri); in setImageURI() 96 ImageView image = (ImageView)this.getNextView(); in setImageDrawable() local 97 image.setImageDrawable(drawable); in setImageDrawable()
|
/aosp14/frameworks/base/mime/java-res/ |
H A D | android.mime.types | 91 ?image/bmp bmp 92 ?image/gif gif 93 ?image/heic heic 95 ?image/heif heif hif 97 ?image/avif avif 98 ?image/ico cur 99 ?image/webp webp 101 ?image/x-fuji-raf raf 102 ?image/x-icon ico 151 image/jpeg jpg [all …]
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | SurfaceHolderTarget.java | 17 package androidx.media.filterpacks.image; 126 FrameImage2D image = getConnectedInputPort("image").pullFrame().asFrameImage2D(); in onProcess() local 131 renderGL(image); in onProcess() 133 renderCanvas(image); in onProcess() 143 private void renderGL(FrameImage2D image) { in renderGL() argument 148 Rect frameRect = new Rect(0, 0, image.getWidth(), image.getHeight()); in renderGL() 151 mShader.process(image.lockTextureSource(), in renderGL() 155 image.unlock(); in renderGL() 163 private void renderCanvas(FrameImage2D image) { in renderCanvas() argument 165 Bitmap bitmap = image.toBitmap(); in renderCanvas()
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | IfElseFilterTest.java | 51 FrameImage2D image = in testIfElseFilterTrue() local 63 image.setBitmap(imageBitmap); in testIfElseFilterTrue() 64 injectInputFrame("falseResult", image); in testIfElseFilterTrue() 82 FrameImage2D image = in testIfElseFilterFalse() local 94 image.setBitmap(imageBitmap); in testIfElseFilterFalse() 95 injectInputFrame("falseResult", image); in testIfElseFilterFalse() 109 assertEquals(outputImage, image); in testIfElseFilterFalse()
|
H A D | AvgBrightnessFilterTest.java | 43 FrameImage2D image = in testBrightnessFilter() local 48 image.setBitmap(bitmap); in testBrightnessFilter() 50 injectInputFrame("image", image); in testBrightnessFilter()
|
/aosp14/frameworks/base/libs/hwui/effects/ |
H A D | GainmapRenderer.cpp | 66 void DrawGainmapBitmap(SkCanvas* c, const sk_sp<const SkImage>& image, const SkRect& src, in DrawGainmapBitmap() argument 76 float sX = gainmapImage->width() / (float)image->width(); in DrawGainmapBitmap() 77 float sY = gainmapImage->height() / (float)image->height(); in DrawGainmapBitmap() 85 SkGainmapShader::Make(image, src, sampling, gainmapImage, gainmapSrc, sampling, in DrawGainmapBitmap() 91 c->drawImageRect(image.get(), src, dst, sampling, paint, constraint); in DrawGainmapBitmap() 259 explicit DeferredGainmapShader(const sk_sp<const SkImage>& image, in DeferredGainmapShader() argument 264 setupChildren(image, gainmapImage, tileModeX, tileModeY, sampling); in DeferredGainmapShader() 268 static sk_sp<SkShader> Make(const sk_sp<const SkImage>& image, in Make() argument 273 image, gainmapImage, gainmapInfo, tileModeX, tileModeY, sampling); in Make() 284 sk_sp<SkShader> MakeGainmapShader(const sk_sp<const SkImage>& image, in MakeGainmapShader() argument [all …]
|
/aosp14/frameworks/base/config/ |
H A D | README.md | 3 * boot-image-profile.txt: A list of methods from the boot classpath to be compiled by dex2oat. 8 * dirty-image-objects: List of objects in the boot image which are known to 9 become dirty. This helps binning objects in the image file. 10 * preloaded-classes: classes that will be allocated in the boot image, and
|
/aosp14/system/core/fs_mgr/libfiemap/ |
H A D | README.md | 11 create a `system_gsi` image to store Dynamic System Updates. 12 - Mapping the image as a block device while /data is mounted. This is fairly 14 - Mapping the image as a block device during first-stage init. This is simple 18 a large image may have to be split into multiple files. On Ext4 the limit is 20 where `<name>` is chosen by the process requesting the image. 24 partitions from the image files. It also tracks the canonical size of the image, 45 On these devices, a block device for an image will consist of a single 58 If an image was too large to store a single file on the underlying filesystem, 66 It's important that we know whether or not an image is currently in-use by a 69 an image, we create a property called `gsid.mapped_image.<name>` and set it to
|
/aosp14/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 471 BufferItem* buffer = Image_getBufferItem(env, image); in Image_unlockIfLocked() 512 BufferItem* buffer = Image_getBufferItem(env, image); in ImageReader_imageRelease() 520 Image_setBufferItem(env, image, NULL); in ImageReader_imageRelease() 628 Image_setBufferItem(env, image, buffer); in ImageReader_imageSetup() 665 Image_unlockIfLocked(env, image); in ImageReader_detachImage() 739 image->crop = buffer->mCrop; in Image_getLockedImage() 740 image->transform = buffer->mTransform; in Image_getLockedImage() 741 image->scalingMode = buffer->mScalingMode; in Image_getLockedImage() 742 image->timestamp = buffer->mTimestamp; in Image_getLockedImage() 743 image->dataSpace = buffer->mDataSpace; in Image_getLockedImage() [all …]
|
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
H A D | DynamicSystemInstallationService.java | 23 import static android.os.image.DynamicSystemClient.ACTION_START_INSTALL; 24 import static android.os.image.DynamicSystemClient.CAUSE_ERROR_EXCEPTION; 26 import static android.os.image.DynamicSystemClient.CAUSE_ERROR_IO; 29 import static android.os.image.DynamicSystemClient.CAUSE_NOT_SPECIFIED; 31 import static android.os.image.DynamicSystemClient.KEY_ONE_SHOT; 32 import static android.os.image.DynamicSystemClient.STATUS_IN_PROGRESS; 33 import static android.os.image.DynamicSystemClient.STATUS_IN_USE; 34 import static android.os.image.DynamicSystemClient.STATUS_NOT_STARTED; 35 import static android.os.image.DynamicSystemClient.STATUS_READY; 60 import android.os.image.DynamicSystemClient; [all …]
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | GLUtils.h | 59 image = eglCreateImageKHR(display, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, clientBuffer, in AutoEglImage() 64 if (image != EGL_NO_IMAGE_KHR) { in ~AutoEglImage() 65 eglDestroyImageKHR(mDisplay, image); in ~AutoEglImage() 69 EGLImageKHR image = EGL_NO_IMAGE_KHR; variable
|
/aosp14/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
H A D | CustomControlView.java | 78 final ImageView image = (i == 0) ? in createControls() 85 image.setLayoutParams(layoutParams); in createControls() 86 image.setBackgroundResource(R.drawable.animation); in createControls() 88 (AnimationDrawable)image.getBackground(); in createControls() 90 addView(image); in createControls()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 237 Image image = null; in onImageAvailable() local 241 if (image != null) { in onImageAvailable() 242 image.close(); in onImageAvailable() 262 Image image = null; in onImageAvailable() local 266 if (image != null) { in onImageAvailable() 268 image.close(); in onImageAvailable() 339 return image; in getImage() 350 image.close(); in drain() 845 int format = image.getFormat(); in getDataFromImage() 846 int width = image.getWidth(); in getDataFromImage() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
H A D | FakeImageCapture.kt | 27 var image: Bitmap? = null 32 return image 37 return image
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | Readback.cpp | 110 sk_sp<SkImage> image = in copySurfaceInto() local 113 if (!image.get()) { in copySurfaceInto() 247 tonemapPaint(image->imageInfo(), canvas->imageInfo(), kMaxLuminanceNits, paint); in copySurfaceInto() 249 canvas->drawImageRect(image, imageSrcRect, imageDstRect, sampling, &paint, constraint); in copySurfaceInto() 297 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto() argument 299 return copyImageInto(image, srcRect, bitmap); in copyImageInto() 302 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, const Rect& srcRect, in copyImageInto() argument 305 if (!image.get()) { in copyImageInto() 313 int imgWidth = image->width(); in copyImageInto() 314 int imgHeight = image->height(); in copyImageInto() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | AppWidgetHostViewTest.java | 81 assertNotNull(mHostView.findViewById(R.id.image)); in syncInflation() 90 assertNull(mHostView.findViewById(R.id.image)); in asyncInflation() 98 assertNotNull(mHostView.findViewById(R.id.image)); in asyncInflation() 108 assertNull(mHostView.findViewById(R.id.image)); in asyncInflation_cancelled() 119 assertNotNull(mHostView.findViewById(R.id.image)); in asyncInflation_cancelled()
|
/aosp14/frameworks/base/libs/hwui/canvas/ |
H A D | CanvasOps.h | 343 image(bitmap->makeImage()) { } 350 sk_sp<SkImage> image; 353 canvas->drawImage(image, left, top, SkSamplingOptions(filter), &paint); 372 image(bitmap->makeImage()) { } 379 sk_sp<SkImage> image; 382 canvas->drawImageRect(image, 406 image(bitmap->makeImage()), 413 const sk_sp<SkImage> image; 417 canvas->drawImageLattice(image.get(), lattice, dst, filter, &paint);
|