/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | Trace.java | 17 package com.android.bitmap.util;
|
/frameworks/opt/bitmap/src/com/android/bitmap/view/ |
H A D | BitmapDrawableImageView.java | 17 package com.android.bitmap.view; 27 import com.android.bitmap.drawable.BasicBitmapDrawable;
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequenceJNI.cpp | 17 #include <android/bitmap.h> 113 jobject bitmap, jint previousFrameNr) { 119 if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { 126 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { 136 AndroidBitmap_unlockPixels(env, bitmap); 111 nativeGetFrame( JNIEnv* env, jobject clazz, jlong frameSequenceStateLong, jint frameNr, jobject bitmap, jint previousFrameNr) argument
|
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/ |
H A D | FrameSequenceTest.java | 39 Bitmap bitmap = 41 mBitmaps.add(bitmap); 42 return bitmap; 46 public void releaseBitmap(Bitmap bitmap) { argument 47 if (!mBitmaps.contains(bitmap)) throw new IllegalStateException(); 48 mBitmaps.remove(bitmap); 49 bitmap.recycle();
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequenceDrawable.java | 81 public abstract void releaseBitmap(Bitmap bitmap); argument 91 public void releaseBitmap(Bitmap bitmap) {} 165 Bitmap bitmap; 173 bitmap = mBackBitmap; 177 long invalidateTimeMs = mFrameSequenceState.getFrame(nextFrame, bitmap, lastFrame); 199 // destroy the bitmap here, since there's no safe way to get back to 217 Bitmap bitmap = bitmapProvider.acquireBitmap(minWidth, minHeight); 219 if (bitmap.getWidth() < minWidth 220 || bitmap.getHeight() < minHeight 221 || bitmap [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 66 void Bitmap::drawGlyph(const android::GlyphBitmap& bitmap, int x, int y) { argument 67 int bmw = bitmap.width; 68 int bmh = bitmap.height; 69 x += bitmap.left; 70 y -= bitmap.top; 75 const unsigned char* src = bitmap.buffer + (y0 - y) * bmw + (x0 - x);
|
H A D | MinikinFontFreeType.cpp | 87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; local 88 result->buffer = bitmap.buffer; 89 result->width = bitmap.width; 90 result->height = bitmap.rows;
|
/frameworks/minikin/sample/ |
H A D | example_skia.cpp | 131 SkBitmap bitmap; local 132 bitmap.allocN32Pixels(width, height); 133 SkCanvas canvas(bitmap); 144 SkImageEncoder::EncodeFile("/data/local/tmp/foo.png", bitmap, SkImageEncoder::kPNG_Type, 100);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AssetAtlasService.java | 117 // Describes how bitmaps are placed in the atlas. Each bitmap is 119 // long0: SkBitmap*, the native bitmap object 154 // The comparator will sort the bitmap by width first, then by height 237 * Renders a list of bitmaps into the atlas. The position of each bitmap 249 // Use a Source blend mode to improve performance, the target bitmap 254 // We always render the atlas into a bitmap. This bitmap is then 271 final Bitmap bitmap = mBitmaps.get(i); 272 if (atlas.pack(bitmap.getWidth(), bitmap 333 nUploadAtlas(GraphicBuffer buffer, Bitmap bitmap) argument [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerService.java | 963 public void setUserIcon(int userId, Bitmap bitmap) { argument 969 mLocalService.setUserIcon(userId, bitmap); 1568 private void writeBitmapLP(UserInfo info, Bitmap bitmap) { argument 1581 if (bitmap.compress(Bitmap.CompressFormat.PNG, 100, os = new FileOutputStream(tmp)) 3310 public void setUserIcon(int userId, Bitmap bitmap) { argument 3319 writeBitmapLP(userData.info, bitmap);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppTransition.java | 321 return spec != null ? spec.bitmap : null; 676 Bitmap bitmap) { 678 bitmap, new Rect(left, top, left + width, top + height)); 1683 rect.width(), rect.height(), spec.bitmap); 675 putDefaultNextAppTransitionCoordinates(int left, int top, int width, int height, Bitmap bitmap) argument
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 67 SkBitmap bitmap; local 68 GraphicsJNI::getSkBitmap(env, bitmapHandle, &bitmap); 69 SkAutoLockPixels alp(bitmap); 71 // The goal of this method is to copy the bitmap into the GraphicBuffer 160 // Upload the content of the bitmap in the GraphicBuffer 161 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap.bytesPerPixel()); 162 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bitmap.width(), bitmap.height(), 163 GL_RGBA, GL_UNSIGNED_BYTE, bitmap.getPixels());
|
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockContext.java | 288 public void setWallpaper(Bitmap bitmap) throws IOException { argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameImage2D.java | 51 * Assigns the pixel data of the specified bitmap. 53 * The RGBA pixel data will be extracted from the bitmap and assigned to the frame data. Note, 58 * @param bitmap The bitmap pixels to assign. 60 public void setBitmap(Bitmap bitmap) { argument 61 bitmap = convertToFrameType(bitmap, mBackingStore.getFrameType()); 62 validateBitmapSize(bitmap, mBackingStore.getDimensions()); 64 backing.setData(bitmap); 116 private static Bitmap convertToFrameType(Bitmap bitmap, FrameTyp argument 136 validateBitmapSize(Bitmap bitmap, int[] dimensions) argument [all...] |
H A D | GLToolbox.java | 107 public static void setTexturePixels(int texId, int target, Bitmap bitmap) { argument 109 GLUtils.texImage2D(target, 0, bitmap, 0);
|
H A D | TextureSource.java | 75 public void allocateWithBitmapPixels(Bitmap bitmap) { argument 77 GLToolbox.setTexturePixels(mTexId, mTarget, bitmap);
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 89 addLabelToRoot(root, "Prescaled bitmap in drawable"); 96 addLabelToRoot(root, "Autoscaled bitmap in drawable"); 118 addLabelToRoot(root, "Prescaled bitmap"); 125 addLabelToRoot(root, "Autoscaled bitmap"); 165 Bitmap bitmap; 166 bitmap = loadAndPrintDpi(resource, scale); 170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 191 Bitmap bitmap; 192 bitmap = loadAndPrintDpi(resource, scale); 194 ScaledBitmapView view = new ScaledBitmapView(this, bitmap); 229 ScaledBitmapView(Context context, Bitmap bitmap) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 94 public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) { argument 96 return bitmap == null ? null : getDelegate(bitmap.refSkPixelRef()); 102 * @param input the file from which to read the bitmap content 103 * @param isMutable whether the bitmap is mutable 104 * @param density the density associated with the bitmap 117 * @param input the file from which to read the bitmap content 118 * @param density the density associated with the bitmap 150 * @param input the stream from which to read the bitmap content 151 * @param isMutable whether the bitmap i [all...] |
H A D | Canvas_Delegate.java | 123 /*package*/ static long initRaster(@Nullable Bitmap bitmap) { argument 125 if (bitmap != null) { 126 nativeBitmapOrZero = bitmap.refSkPixelRef(); 132 // create a new Canvas_Delegate with the given bitmap and return its new native int. 145 public static void native_setBitmap(long canvas, Bitmap bitmap) { argument 147 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 814 public static void native_drawBitmap(Canvas thisCanvas, long nativeCanvas, Bitmap bitmap, argument 821 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 836 public static void native_drawBitmap(Canvas thisCanvas, long nativeCanvas, Bitmap bitmap, argument 841 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 877 nativeDrawBitmapMatrix(long nCanvas, Bitmap bitmap, long nMatrix, long nPaint) argument 918 nativeDrawBitmapMesh(long nCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nPaint) argument 1086 Canvas_Delegate(Bitmap_Delegate bitmap) argument 1146 drawBitmap( long nativeCanvas, Bitmap_Delegate bitmap, long nativePaintOrZero, final int sleft, final int stop, final int sright, final int sbottom, final int dleft, final int dtop, final int dright, final int dbottom) argument 1190 getImageToDraw(Bitmap_Delegate bitmap, Paint_Delegate paint, boolean[] forceSrcMode) argument [all...] |
H A D | NinePatch_Delegate.java | 174 /*package*/ static long nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location) { argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 201 protected void throwIfCannotDraw(Bitmap bitmap) { argument 213 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 217 public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { argument 221 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { argument 235 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 239 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 91 * This contains graphics, bitmap and layer information. 106 * Creates a layer with a graphics and a bitmap. This is only used to create 110 * @param bitmap the bitmap 112 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { argument 114 mBitmap = bitmap; 202 * Creates the root snapshot associating it with a given bitmap. 204 * If <var>bitmap</var> is null, then {@link GcSnapshot#setBitmap(Bitmap_Delegate)} must be 208 * @param bitmap the image to associate to the snapshot or null. 211 public static GcSnapshot createDefaultSnapshot(Bitmap_Delegate bitmap) { argument 397 setBitmap(Bitmap_Delegate bitmap) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardUpdateMonitorCallback.java | 145 * @param bitmap 147 public void onSetBackground(Bitmap bitmap) { argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | BitmapSerializeUtils.java | 24 * use case of having the same bitmap on both ends and just 38 * Reads a bitmap pixels from a file descriptor. 40 * @param bitmap A bitmap whose pixels to populate. 43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) { argument 44 nativeReadBitmapPixels(bitmap, source.getFd()); 48 * Writes a bitmap pixels to a file descriptor. 50 * @param bitmap The bitmap. 53 public static void writeBitmapPixels(Bitmap bitmap, ParcelFileDescripto argument 57 nativeReadBitmapPixels(Bitmap bitmap, int fd) argument 59 nativeWriteBitmapPixels(Bitmap bitmap, int fd) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 360 // Load bitmap if it is not yet loaded 363 Log.d(TAG, "Reloading bitmap: mBackground, bgw, bgh, dw, dh = " + 427 // the loaded bitmap. Yay! 428 // hw-accelerated renderer retains bitmap for faster rotation 560 // add a filter bitmap? 642 private int loadTexture(Bitmap bitmap) { argument 659 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
|