/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | RGBZ.java | 26 import com.android.rs.refocus.image.RangeInverseDepthTransform; 31 * An RGBZ image, where Z stands for depth, i.e. a color+depth image. 32 * The RGBZ always has a preview image, which represents the latest rendering of the RGBZ. 66 * Creates an RGBZ from uris to an image and a depthmap. 68 * @param uriImage The uri name of the image 85 public RGBZ(Bitmap image, DepthImage depthImage) { argument 86 preview = image; 96 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); 97 if (image [all...] |
H A D | DepthImage.java | 23 import com.android.rs.refocus.image.RangeInverseDepthTransform; 24 import com.android.rs.refocus.image.RangeLinearDepthTransform; 58 public static DepthImage createFromXMPMetadata(Context context, Uri image) argument 60 InputStream input = context.getContentResolver().openInputStream(image);
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 37 float[] mPointsXY; // polygon point in original image coordnates 38 int mCutOffsetX; // image coords of the cut (mPointsXY - mPasteOffX + mCutOffsetX) 39 int mCutOffsetY; // image coords of the cut (mPointsXY - mPasteOffY + mCutOffsetY) 74 * @param image 76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) { argument 85 Bitmap dest_bitmap = createMutableBitmap(image, mRoiBounds.left, mRoiBounds.top, 88 Bitmap src_bitmap = createMutableBitmap(image, mCutOffsetX, mCutOffsetY, 107 c.drawBitmap(image, 0, 0, null); 110 heal_orig(healing, rs, image, output); 120 * @param image 122 heal_orig(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) argument 189 createMutableBitmap(Bitmap image, int x, int y, int width, int height) argument [all...] |
H A D | FindRegion.java | 34 float[] mPointsXY; // polygon point in original image coordnates 36 int mCutOffsetX; // image coords of the cut (mPointsXY - mPasteOffX + mCutOffsetX) 37 int mCutOffsetY; // image coords of the cut (mPointsXY - mPasteOffY + mCutOffsetY) 50 throw new RuntimeException("ROI to close to the edge of the image"); 75 public Rect findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) { argument 81 Allocation aImage = Allocation.createFromBitmap(mRs, image); 84 findRegion.invoke_findRegion(border_coords, aImage, image.getWidth(), image.getHeight(), ret);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | PngCrunch.cpp | 173 // Create and initialize the memory for image header and data. 206 // Extract image meta-data from the various chunk headers. 212 // When the image is read, expand it so that it is in RGBA 8888 format 213 // so that image handling is uniform. 248 // 9-patch uses int32_t to index images, so we cap the image dimensions to 253 << "PNG image dimensions are too large: " << width << "x" << height); 264 // Allocate one large block to hold the image. 273 // Actually read the image pixels. 276 // Finish reading. This will read any other chunks after the image data. 288 // Pick a color type by which to encode the image, base 478 WritePng(IAaptContext* context, const Image* image, const NinePatch* nine_patch, io::OutputStream* out, const PngOptions& options) argument [all...] |
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/ |
H A D | MusicTrack.java | 44 * @param image 50 String image, int trackNumber, int totalTrackCount, int duration) { 56 this.mImage = image; 49 MusicTrack(String title, String album, String artist, String genre, String source, String image, int trackNumber, int totalTrackCount, int duration) argument
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | AppWidgetHostViewTest.java | 80 assertNotNull(mHostView.findViewById(R.id.image)); 89 assertNull(mHostView.findViewById(R.id.image)); 97 assertNotNull(mHostView.findViewById(R.id.image)); 107 assertNull(mHostView.findViewById(R.id.image)); 118 assertNotNull(mHostView.findViewById(R.id.image));
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BaseCanvas_Delegate.java | 34 import java.awt.image.BufferedImage; 35 import java.awt.image.ColorModel; 36 import java.awt.image.DataBuffer; 58 mSnapshot = GcSnapshot.createDefaultSnapshot(null /*image*/); 86 BufferedImage image = bitmapDelegate.getImage(); 87 float right = left + image.getWidth(); 88 float bottom = top + image.getHeight(); 91 0, 0, image.getWidth(), image.getHeight(), 115 final BufferedImage image 692 fixAlpha8Bitmap(final BufferedImage image, @Nullable java.awt.Paint javaPaint) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | TextGammaActivity.java | 55 ImageView image = new ImageView(TextGammaActivity.this); 56 image.setImageBitmap(b); 58 layout.addView(image, new LinearLayout.LayoutParams(
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 223 * Dummy listener that release the image immediately once it is available. 226 * It can be used for the case where we don't care the image data at all. 232 Image image = null; 234 image = reader.acquireNextImage(); 236 if (image != null) { 237 image.close(); 244 * Image listener that release the image immediately after validating the image 257 Image image = null; 259 image 783 checkImage(Image image, int width, int height, int format) argument 806 getDataFromImage(Image image) argument 894 checkAndroidImageFormat(Image image) argument 1297 validateImage(Image image, int width, int height, int format, String filePath) argument 1749 basicValidateJpegImage(Image image, Size expectedSize) argument 1778 verifyJpegKeys(Image image, CaptureResult captureResult, Size expectedSize, Size expectedThumbnailSize, ExifTestData expectedExifData, StaticMetadata staticInfo, CameraErrorCollector collector) argument [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkImageReaderPriv.h | 69 media_status_t acquireNextImage(/*out*/AImage** image, /*out*/int* fenceFd); 70 media_status_t acquireLatestImage(/*out*/AImage** image, /*out*/int* fenceFd); 86 media_status_t acquireImageLocked(/*out*/AImage** image, /*out*/int* fenceFd); 88 // Called by AImage to close image 89 void releaseImageLocked(AImage* image, int releaseFenceFd);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | Artistic1.java | 17 package com.android.rs.image;
|
H A D | Mirror.java | 17 package com.android.rs.image;
|
H A D | WhiteBalance.java | 17 package com.android.rs.image;
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/ |
H A D | RangeInverseDepthTransform.java | 1 package com.android.rs.refocus.image;
|
H A D | RangeLinearDepthTransform.java | 1 package com.android.rs.refocus.image;
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | HwBitmapInCompositeShader.cpp | 80 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(skBitmap, kNever_SkCopyPixelsMode); local 81 return image->makeShader(SkShader::TileMode::kClamp_TileMode,
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageView.java | 46 * Shows an image using {@link TiledImageRenderer} using either {@link GLSurfaceView} 71 TiledImageRenderer image; field in class:TiledImageView.ImageRendererWrapper 97 mRenderer.image = new TiledImageRenderer(this); 130 mRenderer.image.freeTextures(); 289 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); 295 mRenderer.image.setViewSize(width, height); 304 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); 305 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY, 308 boolean complete = mRenderer.image.draw(mCanvas);
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/ |
H A D | ImageBuffersForRenderScriptF32.java | 15 * A class that manages the image buffers that interface between Java and Render 35 * @param image an input (padded) RGBD image 41 public ImageBuffersForRenderScriptF32(Bitmap image, int margin, argument 43 super(image, margin, renderScript); 63 * sets up the input image. 79 // At this point, {@code inAllocation} contains input RGBD image in Java. 80 // {@code g_sharp_image} is a global pointer that points the focus image in
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 37 float[] mPointsXY; // polygon point in original image coordnates 38 int mCutOffsetX; // image coords of the cut (mPointsXY - mPasteOffX + mCutOffsetX) 39 int mCutOffsetY; // image coords of the cut (mPointsXY - mPasteOffY + mCutOffsetY) 74 * @param image 76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) { argument 90 Bitmap destBitmap = createMutableBitmap(image, mRoiBounds.left, mRoiBounds.top, 95 Bitmap src = createMutableBitmap(image, mCutOffsetX, mCutOffsetY, 140 c.drawBitmap(image, 0, 0, null); 145 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) { argument 146 Bitmap ret = Bitmap.createBitmap(image, [all...] |
H A D | Region.java | 43 int mCutOffsetX; // image coords of the cut (mPointsXY - mPasteOffX + mCutOffsetX)
44 int mCutOffsetY; // image coords of the cut (mPointsXY - mPasteOffY + mCutOffsetY)
48 float[] mPointsXY; // polygon point in original image coordnates
110 public Drawable findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) {
argument 111 Rect mRoiBounds = mFindRegion.findMatch(findRegion, mRs, image);
156 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) {
argument 157 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);
166 * @param image
168 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) {
argument 174 h.heal(healing, rs, image, outpu [all...] |
H A D | find_region.rs | 21 rs_allocation image; 28 This takes a float2 polygon and an image and searches a best fit polygon in the image 30 int2 __attribute__((invoke_cpu)) findBestFit(rs_allocation poly, rs_allocation image) { 34 int width = rsAllocationGetDimX(image); 35 int height = rsAllocationGetDimY(image); 45 forEach_bordercorrelation(image); 50 void findRegion(rs_allocation coord, rs_allocation image) { 52 int width = rsAllocationGetDimX(image); 53 int height = rsAllocationGetDimY(image); [all...] |
/frameworks/support/transition/src/android/support/transition/ |
H A D | ChangeImageTransform.java | 198 * Calculates the image transformation matrix for an ImageView with ScaleType FIT_XY. This 202 final Drawable image = view.getDrawable(); 205 ((float) view.getWidth()) / image.getIntrinsicWidth(), 206 ((float) view.getHeight()) / image.getIntrinsicHeight()); 211 * Calculates the image transformation matrix for an ImageView with ScaleType CENTER_CROP. This 215 final Drawable image = view.getDrawable(); 216 final int imageWidth = image.getIntrinsicWidth(); 220 final int imageHeight = image.getIntrinsicHeight();
|
/frameworks/base/tools/aapt2/cmd/ |
H A D | Compile.cpp | 494 std::unique_ptr<Image> image = ReadPng(context, path_data.source, &png_chunk_filter); local 495 if (!image) { 502 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); 513 image->width -= 2; 514 image->height -= 2; 515 memmove(image->rows.get(), image->rows.get() + 1, image [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 280 static BufferItem* Image_getBufferItem(JNIEnv* env, jobject image) argument 283 env->GetLongField(image, gSurfaceImageClassInfo.mNativeBuffer)); 441 static sp<Fence> Image_unlockIfLocked(JNIEnv* env, jobject image) { argument 443 BufferItem* buffer = Image_getBufferItem(env, image); 454 planes = env->GetObjectField(image, gSurfaceImageClassInfo.mPlanes); 469 ALOGV("Successfully unlocked the image"); 474 static void ImageReader_imageRelease(JNIEnv* env, jobject thiz, jobject image) argument 484 BufferItem* buffer = Image_getBufferItem(env, image); 486 // Release an already closed image is harmless. 490 sp<Fence> releaseFence = Image_unlockIfLocked(env, image); 497 ImageReader_imageSetup(JNIEnv* env, jobject thiz, jobject image) argument 601 ImageReader_detachImage(JNIEnv* env, jobject thiz, jobject image) argument 662 Image_getLockedImage(JNIEnv* env, jobject thiz, LockedImage *image) argument [all...] |