/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 530 const SkBitmap& bitmap(*nativeBitmap); 532 bitmap.lockPixels(); 533 const void* ptr = bitmap.getPixels(); 536 ptr, bitmap.getSize(), usage); 537 bitmap.unlockPixels(); 546 const SkBitmap& bitmap(*nativeBitmap); 548 bitmap.lockPixels(); 549 const void* ptr = bitmap.getPixels(); 552 ptr, bitmap.getSize(), usage); 553 bitmap [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | SerializedFrame.java | 242 public void setBitmap(Bitmap bitmap) { argument 244 setGenericObjectValue(bitmap);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | NinePatch_Delegate.java | 152 /*package*/ static void validateNinePatchChunk(int bitmap, byte[] chunk) { argument 177 /*package*/ static int nativeGetTransparentRegion(int bitmap, byte[] chunk, Rect location) { argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GLTextureViewActivity.java | 271 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); 273 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); 276 bitmap.recycle();
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Movie.cpp | 76 const SkBitmap& b = m->bitmap();
|
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
|
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Vpn.java | 193 // Load the icon and convert it into a bitmap. 195 Bitmap bitmap = null; 202 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 203 Canvas c = new Canvas(bitmap); 247 showNotification(config, label, bitmap);
|
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 1478 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument 1479 const float right = left + bitmap->width(); 1480 const float bottom = top + bitmap->height(); 1487 Texture* texture = mCaches.textureCache.get(bitmap); 1491 if (CC_UNLIKELY(bitmap->getConfig() == SkBitmap::kA8_Config)) { 1500 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { argument 1501 Rect r(0.0f, 0.0f, bitmap->width(), bitmap->height()); 1510 Texture* texture = mCaches.textureCache.get(bitmap); 1518 drawTextureRect(0.0f, 0.0f, bitmap 1524 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 1541 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 1627 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 1684 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, SkPaint* paint) argument [all...] |
H A D | FontRenderer.cpp | 100 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 122 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 141 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 163 bitmap[bY * bitmapW + bX] = tempCol; 224 int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 225 if (bitmap != NULL && bitmapW > 0 && bitmapH > 0) { 226 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap, 301 int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, 338 bitmap, bitmapW, bitmapH, bounds, positions); 377 bitmap, bitmap 99 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 121 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 140 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 223 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 300 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...] |
H A D | SkiaShader.cpp | 87 SkiaBitmapShader::SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, argument 89 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) {
|
H A D | SkiaShader.h | 141 * A shader that draws a bitmap. 144 ANDROID_API SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX,
|
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViews.java | 759 Bitmap bitmap; field in class:RemoteViews.BitmapReflectionAction 762 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) { argument 763 this.bitmap = bitmap; 766 bitmapId = mBitmapCache.getBitmapId(bitmap); 773 bitmap = mBitmapCache.getBitmapForId(bitmapId); 788 bitmap); 794 bitmapId = bitmapCache.getBitmapId(bitmap); 1377 // We only store a bitmap cache in the root of the RemoteViews. 1523 * Recursively sets BitmapCache in the hierarchy and update the bitmap id 1703 setImageViewBitmap(int viewId, Bitmap bitmap) argument [all...] |
H A D | StackView.java | 1415 Bitmap bitmap = Bitmap.createBitmap(v.getMeasuredWidth(), v.getMeasuredHeight(), 1417 mCanvas.setBitmap(bitmap); 1433 drawOutline(mCanvas, bitmap); 1435 return bitmap;
|
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | MediaArtistNativeHelper.java | 1949 Bitmap bitmap = null; 1959 if ((bitmap = overlay.getBitmap()) != null) { 1970 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888) 1972 else if (bitmap.getConfig() == Bitmap.Config.ARGB_4444) 1974 else if (bitmap.getConfig() == Bitmap.Config.RGB_565) 1976 else if (bitmap.getConfig() == Bitmap.Config.ALPHA_8) 1979 effectSettings.width = bitmap.getWidth(); 1980 effectSettings.height = bitmap.getHeight(); 1987 bitmap.getPixels(effectSettings.framingBuffer, 0, 2015 effectSettings.width = bitmap [all...] |
H A D | MediaImageItem.java | 925 * Resize a bitmap to the specified width and height 931 * @return The resized bitmap 972 * Create the bitmap from file 994 * Create the canvas bitmap 996 final Bitmap bitmap = Bitmap.createBitmap((int)bitmapWidth, 999 final Canvas canvas = new Canvas(bitmap); 1006 * Release the source bitmap 1009 return bitmap;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 284 // If we don't yet know the size of the wallpaper bitmap, 331 // the loaded bitmap. Yay! 465 private int loadTexture(Bitmap bitmap) { argument 482 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); 485 bitmap.recycle();
|
/frameworks/base/core/java/android/content/ |
H A D | ContextWrapper.java | 260 public void setWallpaper(Bitmap bitmap) throws IOException { argument 261 mBase.setWallpaper(bitmap);
|
H A D | Context.java | 820 public abstract void setWallpaper(Bitmap bitmap) throws IOException; argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | VideoEditorHelper.java | 280 Bitmap bitmap, long startTimeMs, long durationMs) { 282 overLayFrame = new OverlayFrame(mediaItem, overlayId, bitmap, 279 createOverlay(MediaItem mediaItem, String overlayId, Bitmap bitmap, long startTimeMs, long durationMs) argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | WaveView.java | 87 private float mRingRadius = 182.0f; // Radius of bitmap ring. Used to snap halo to it 397 Bitmap bitmap = BitmapFactory.decodeResource(res, resId); 398 return new BitmapDrawable(res, bitmap);
|
H A D | LockPatternView.java | 280 // bitmaps have the size of the largest bitmap in this group 284 for (Bitmap bitmap : bitmaps) { 285 mBitmapWidth = Math.max(mBitmapWidth, bitmap.getWidth()); 286 mBitmapHeight = Math.max(mBitmapHeight, bitmap.getHeight()); 1003 // offsets for centering the bitmap in the cell 1009 // coincident with the circle bitmap's top edge. 1014 // the up arrow bitmap is at 12:00, so find the rotation from x axis and add 90 degrees.
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 1933 Bitmap bitmap = null; 1949 bitmap = BitmapFactory.decodeStream(is, padding, null); 1951 bitmap = BitmapFactory.decodeStream(is); 1954 mEST.getContext().getResources(), bitmap); 2627 Bitmap bitmap = null; 2646 bitmap = BitmapFactory.decodeStream(is, padding, null); 2648 bitmap = BitmapFactory.decodeStream(is); 2650 mDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewDebug.java | 519 final Bitmap bitmap = metrics != null ? 522 final Canvas canvas = bitmap != null ? new Canvas(bitmap) : null; 524 bitmap, canvas 677 Log.w("View", "Failed to create capture bitmap!"); 707 Log.w("View", "Out of memory for bitmap");
|
H A D | View.java | 839 * <p>Indicates this view is caching its drawing into a bitmap.</p> 3154 * by a bitmap and causes the view to be rendered using Android's software 5806 * offscreen bitmap. Some views, like an ImageView, must be able to 5807 * bypass this mechanism if they already draw a single bitmap, to avoid 12219 * bitmap. Calling {@link #draw(android.graphics.Canvas)} will not draw from the cache when 12221 * calling {@link #getDrawingCache()} and draw it on screen if the returned bitmap is not 12233 * a bitmap copy of this view, by setting the flag to <code>true</code> and calling 12467 * @return A non-scaled bitmap representing this view or null if cache is disabled. 12476 * <p>Returns the bitmap in which this view drawing is cached. The returned bitmap [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockContext.java | 234 public void setWallpaper(Bitmap bitmap) throws IOException { argument
|