/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 105 SkBitmap bitmap; 107 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode); 112 // bitmap will go out of scope when we return from this method. 113 bitmap.lockPixels(); 115 const int w = bitmap.width(); 116 const int h = bitmap.height(); 117 const void* p = bitmap.getPixels(); 126 switch (bitmap.getConfig()) { 159 SkBitmap bitmap; local 164 codec->decode(&stream, &bitmap, [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 122 * at the time the bitmap is loaded). 132 private FastBitmapDrawable(Bitmap bitmap) { argument 133 mBitmap = bitmap; 134 mWidth = bitmap.getWidth(); 135 mHeight = bitmap.getHeight(); 398 * do match the bitmap bounds, which should not be typical), doesn't 468 * Change the current system wallpaper to the bitmap in the given resource. 476 * @param resid The bitmap to save. 508 * Change the current system wallpaper to a bitmap. The given bitmap i 520 setBitmap(Bitmap bitmap) argument [all...] |
H A D | ContextImpl.java | 914 public void setWallpaper(Bitmap bitmap) throws IOException { argument 915 getWallpaperManager().setBitmap(bitmap);
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20RecordingCanvas.java | 96 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument 97 super.drawPatch(bitmap, chunks, dst, paint); 98 mDisplayList.mBitmaps.add(bitmap); 103 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 104 super.drawBitmap(bitmap, left, top, paint); 105 mDisplayList.mBitmaps.add(bitmap); 110 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 111 super.drawBitmap(bitmap, matrix, paint); 112 mDisplayList.mBitmaps.add(bitmap); 117 public void drawBitmap(Bitmap bitmap, Rec argument 124 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 145 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | TransportControlView.java | 108 if (mMetadata.bitmap != null) { 109 mMetadata.bitmap.recycle(); 111 mMetadata.bitmap = (Bitmap) msg.obj; 112 mAlbumArt.setImageBitmap(mMetadata.bitmap); 168 public void setArtwork(int generationId, Bitmap bitmap) { argument 171 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget(); 175 public void setAllMetadata(int generationId, Bundle metadata, Bitmap bitmap) { argument 179 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget(); 248 // Log.v(TAG, "setting max bitmap size: " + dim + "x" + dim); 256 private Bitmap bitmap; field in class:TransportControlView.Metadata [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 225 SkBitmap bitmap;
local 227 bitmap.setConfig(config, width, height);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
236 0, 0, width, height, bitmap);
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
254 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) {
argument 257 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
261 delete bitmap;
264 static jboolean Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) {
argument 267 return android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument 323 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument 327 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument 331 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument 335 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument 339 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument 343 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument 347 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument 351 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument 356 Bitmap_hasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap) argument 360 Bitmap_setHasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasMipMap) argument 391 SkBitmap* bitmap = new SkBitmap; local 432 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument 512 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument 530 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument 557 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument 573 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument 580 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument 593 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument 653 Bitmap_prepareToDraw(JNIEnv* env, jobject, SkBitmap* bitmap) argument [all...] |
H A D | Shader.cpp | 85 static SkShader* BitmapShader_constructor(JNIEnv* env, jobject o, const SkBitmap* bitmap, argument 88 SkShader* s = SkShader::CreateBitmapShader(*bitmap, 97 SkBitmap* bitmap, int tileModeX, int tileModeY) { 99 SkiaShader* skiaShader = new SkiaBitmapShader(bitmap, shader, 96 BitmapShader_postConstructor(JNIEnv* env, jobject o, SkShader* shader, SkBitmap* bitmap, int tileModeX, int tileModeY) argument
|
H A D | BitmapFactory.cpp | 139 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStream* stream, argument 144 if (bitmap->getSize() >= 32 * 1024) { 145 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize); 147 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize); 150 bitmap->setPixelRef(pr)->unref(); 151 pr->isOpaque(bitmap); 197 return nullObjectReturn("Cannot pre-scale a reused bitmap"); 212 SkBitmap* bitmap; local 214 bitmap = new SkBitmap; 217 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap wit 398 jobject bitmap = NULL; local [all...] |
H A D | Graphics.cpp | 284 SkBitmap* GraphicsJNI::getNativeBitmap(JNIEnv* env, jobject bitmap) { argument 286 SkASSERT(bitmap); 287 SkASSERT(env->IsInstanceOf(bitmap, gBitmap_class)); 288 SkBitmap* b = (SkBitmap*)env->GetIntField(bitmap, gBitmap_nativeInstanceID); 347 jobject GraphicsJNI::createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, argument 351 SkASSERT(bitmap); 352 SkASSERT(bitmap->pixelRef()); 354 static_cast<jint>(reinterpret_cast<uintptr_t>(bitmap)), 360 jobject GraphicsJNI::createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, argument 363 return createBitmap(env, bitmap, NUL 367 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument 481 allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument 518 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | ShapeCache.h | 339 PathTexture* addTexture(const Entry& entry, SkBitmap* bitmap); 340 void addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture); 348 void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height); 369 * Generates the texture from a bitmap into the specified texture structure. 371 void generateTexture(SkBitmap& bitmap, Texture* texture); 525 // Don't even try to cache a bitmap that's bigger than the cache 534 void ShapeCache<Entry>::initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument 535 bitmap.setConfig(SkBitmap::kA8_Config, width, height); 536 bitmap.allocPixels(); 537 bitmap 575 SkBitmap bitmap; local 592 addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture) argument 615 generateTexture(SkBitmap& bitmap, Texture* texture) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 63 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 85 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 104 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 126 bitmap[bY * bitmapW + bX] = tempCol; 187 int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 188 if (bitmap != NULL && bitmapW > 0 && bitmapH > 0) { 189 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap, 285 int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, 322 bitmap, bitmapW, bitmapH, bounds, positions); 361 bitmap, bitmap 62 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 84 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 103 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 186 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 284 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | KeyguardTransportControlView.java | 104 if (mMetadata.bitmap != null) { 105 mMetadata.bitmap.recycle(); 107 mMetadata.bitmap = (Bitmap) msg.obj; 108 mAlbumArt.setImageBitmap(mMetadata.bitmap); 165 public void setArtwork(int generationId, Bitmap bitmap) { argument 168 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget(); 172 public void setAllMetadata(int generationId, Bundle metadata, Bitmap bitmap) { argument 176 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget(); 267 private Bitmap bitmap; field in class:KeyguardTransportControlView.Metadata 323 mAlbumArt.setImageBitmap(mMetadata.bitmap); [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
H A D | UserManagerService.java | 250 public void setUserIcon(int userId, Bitmap bitmap) { argument 258 writeBitmapLocked(info, bitmap); 364 private void writeBitmapLocked(UserInfo info, Bitmap bitmap) { argument 376 if (bitmap.compress(Bitmap.CompressFormat.PNG, 100, os = new FileOutputStream(file))) {
|
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | MediaItem.java | 411 * or if the bitmap is not specified or if the dimensions of the 412 * bitmap do not match the dimensions of the media item 436 final Bitmap bitmap = frame.getBitmap(); 437 if (bitmap == null) { 438 throw new IllegalArgumentException("Overlay bitmap not specified"); 451 * The dimensions of the overlay bitmap must be the same as the 454 if (bitmap.getWidth() != scaledWidth || bitmap.getHeight() != scaledHeight) { 580 public void onThumbnail(Bitmap bitmap, int index); argument 595 public void onThumbnail(Bitmap bitmap, in [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 226 public void setBitmap(Bitmap bitmap) { argument 229 if (getFormat().getWidth() != bitmap.getWidth() || 230 getFormat().getHeight() != bitmap.getHeight()) { 233 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap); 235 throw new RuntimeException("Could not set GL frame bitmap data!"); 248 throw new RuntimeException("Could not get bitmap data from GL frame!"); 392 private native boolean setNativeBitmap(Bitmap bitmap, int size); argument 394 private native boolean getNativeBitmap(Bitmap bitmap); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 332 // Load bitmap if it is not yet loaded or if it was loaded at a different size 335 Log.d(TAG, "Reloading bitmap: mBackground, bgw, bgh, dw, dh = " + 344 Log.d(TAG, "Unable to load bitmap"); 350 Log.d(TAG, "Surface != bitmap dimensions: surface w/h, bitmap w/h: " + 391 // the loaded bitmap. Yay! 392 // hw-accelerated path retains bitmap for faster rotation 527 private int loadTexture(Bitmap bitmap) { argument 544 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
|
/frameworks/base/core/java/android/content/ |
H A D | ContextWrapper.java | 268 public void setWallpaper(Bitmap bitmap) throws IOException { argument 269 mBase.setWallpaper(bitmap);
|
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 364 bitmap.setIsOpaque(true) on the resulting SkBitmap (as an accelerator) 414 SkBitmap bitmap; local 416 bitmap.setConfig(convertPixelFormat(info.format), info.w, info.h, bpr); 418 bitmap.setIsOpaque(true); 421 bitmap.setPixels(info.bits); 423 // be safe with an empty bitmap. 424 bitmap.setPixels(NULL); 426 nativeCanvas->setBitmapDevice(bitmap); 504 SkBitmap* bitmap = new SkBitmap(); local 505 bitmap [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
H A D | LockPatternKeyguardView.java | 1153 private FastBitmapDrawable(Bitmap bitmap) { argument 1154 mBitmap = bitmap;
|
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockContext.java | 238 public void setWallpaper(Bitmap bitmap) throws IOException { argument
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | CarouselController.java | 368 * @param bitmap the bitmap image to show 370 public void setTextureForItem(int n, Bitmap bitmap) { argument 375 mRenderScript.setTexture(n, bitmap); 392 * @param bitmap the bitmap to show as the detail 395 Bitmap bitmap) { 398 mRenderScript.setDetailTexture(n, offx, offy, loffx, loffy, bitmap); 438 * Sets the bitmap to show on a card when the card draws the very first time. 439 * Generally, this bitmap wil 394 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument 445 setDefaultBitmap(Bitmap bitmap) argument 460 setLoadingBitmap(Bitmap bitmap) argument 489 setBackgroundBitmap(Bitmap bitmap) argument 502 setDetailLoadingBitmap(Bitmap bitmap) argument 516 setDetailLineBitmap(Bitmap bitmap) argument [all...] |
H A D | CarouselView.java | 347 * @param bitmap the bitmap image to show 349 public void setTextureForItem(int n, Bitmap bitmap) { argument 350 mController.setTextureForItem(n, bitmap); 365 * @param bitmap the bitmap to show as the detail 368 Bitmap bitmap) { 369 mController.setDetailTextureForItem(n, offx, offy, loffx, loffy, bitmap); 373 * Sets the bitmap to show on a card when the card draws the very first time. 374 * Generally, this bitmap wil 367 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument 380 setDefaultBitmap(Bitmap bitmap) argument 392 setLoadingBitmap(Bitmap bitmap) argument 415 setBackgroundBitmap(Bitmap bitmap) argument 425 setDetailLoadingBitmap(Bitmap bitmap) argument 436 setDetailLineBitmap(Bitmap bitmap) argument [all...] |
/frameworks/rs/ |
H A D | rsFont.cpp | 112 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) { 132 bitmap[bY * bitmapW + bX] = tempCol; 162 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 206 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); 250 FT_Bitmap *bitmap = &mFace->glyph->bitmap; local 252 // Now copy the bitmap into the cache texture 256 // Let the font state figure out where to put the bitmap 258 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY); 264 uint32_t endX = startX + bitmap 111 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 159 renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t start, int32_t numGlyphs, RenderMode mode, Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 410 cacheBitmap(FT_Bitmap *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument 745 renderText(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t startIndex, int32_t numGlyphs, Font::RenderMode mode, Font::Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 839 fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | RemoteControlClient.java | 484 * @param key the identifier of the bitmap to set. The only valid value is 486 * @param bitmap The bitmap for the artwork, or null if there isn't any. 492 public synchronized MetadataEditor putBitmap(int key, Bitmap bitmap) argument 502 mEditorArtwork = scaleBitmapIfTooBig(bitmap, 506 mEditorArtwork = bitmap; 763 * Cache for the artwork bitmap. 765 * Artwork and metadata are not kept in one Bundle because the bitmap sometimes needs to be 1012 // send the bitmap, there might be newer and smaller expected dimensions, so we have 1027 // send the bitmap, ther 1117 scaleBitmapIfTooBig(Bitmap bitmap, int maxWidth, int maxHeight) argument [all...] |
/frameworks/av/media/libstagefright/mp4/ |
H A D | FragmentedMP4Parser.cpp | 153 bitmap = (char*) calloc(1, allocSize); 157 free(bitmap); 163 bitmap[i/8] |= (0x80 >> (i & 7)); 172 char *cur = bitmap; 186 char *bitmap; member in struct:android::ReadTracker
|