| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
| ImageLoader.java | 24 import android.graphics.Bitmap; 202 * Takes an orientation and a bitmap, and returns the bitmap transformed 205 public static Bitmap orientBitmap(Bitmap bitmap, int ori) { 207 int w = bitmap.getWidth(); 208 int h = bitmap.getHeight(); 243 return bitmap; 245 return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth() 279 Bitmap bitmap = decoder.decodeRegion(imageBounds, options); local 471 Bitmap bitmap = loadBitmapWithBackouts(context, sourceUri, sampleSize); local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
| ImageCrop.java | 21 import android.graphics.Bitmap; 232 Bitmap image = master.getFiltersOnlyImage(); 257 Bitmap bitmap = MasterImage.getImage().getFiltersOnlyImage(); local 258 if (bitmap == null) { 261 if (!mValidDraw || bitmap == null) { 265 mImageBounds.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); 270 bitmap.getWidth(), bitmap.getHeight(), canvas.getWidth(), canvas.getHeight()) [all...] |
| ImageDraw.java | 6 import android.graphics.Bitmap; 45 private Bitmap mBitmap; 199 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); local 200 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); 215 public Bitmap getBrush(int brushid) { 216 Bitmap bitmap; local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
| CachingPipeline.java | 21 import android.graphics.Bitmap; 44 private static final Bitmap.Config BITMAP_CONFIG = Bitmap.Config.ARGB_8888; 49 private volatile Bitmap mOriginalBitmap = null; 50 private volatile Bitmap mResizedOriginalBitmap = null; 101 mOriginalBitmap = null; // just a reference to the bitmap in ImageLoader 177 public void setOriginal(Bitmap bitmap) { 178 mOriginalBitmap = bitmap; 179 Log.v(LOGTAG,"setOriginal, size " + bitmap.getWidth() + " x " + bitmap.getHeight()) 222 Bitmap bitmap = MasterImage.getImage().getOriginalBitmapHighres(); local 247 Bitmap bitmap = MasterImage.getImage().getOriginalBitmapHighres(); local 269 Bitmap bitmap = MasterImage.getImage().getOriginalBitmapHighres(); local 301 Bitmap bitmap = request.getBitmap(); local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
| TiledTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 35 // This class is similar to BitmapTexture, except the bitmap is 37 // upload the whole bitmap but we reduce the time of uploading each tile 52 private static Bitmap sUploadBitmap; 115 public Bitmap bitmap; field in class:TiledTexture.Tile 131 protected Bitmap onGetBitmap() { 132 // make a local copy of the reference to the bitmap, 134 Bitmap localBitmapRef = bitmap [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
| AlbumSlidingWindow.java | 19 import android.graphics.Bitmap; 298 protected Future<Bitmap> submitBitmapTask(FutureListener<Bitmap> l) { 304 protected void onLoadComplete(Bitmap bitmap) { 309 Bitmap bitmap = getBitmap(); local 310 if (bitmap == null) return; // error or recycled 312 entry.bitmapTexture = new TiledTexture(bitmap);
|
| /packages/apps/Launcher3/src/com/android/launcher3/ |
| Utilities.java | 34 import android.graphics.Bitmap; 83 public static FastBitmapDrawable createIconDrawable(Bitmap icon) { 115 * Returns a bitmap suitable for the all apps view. If the package or the resource do not 118 static Bitmap createIconBitmap(String packageName, String resourceName, IconCache cache, 136 * Returns a bitmap which is of the appropriate size to be displayed as an icon 138 static Bitmap createIconBitmap(Bitmap icon, Context context) { 151 * Returns a bitmap suitable for the all apps view. 153 public static Bitmap createIconBitmap(Drawable icon, Context context) { 167 // Ensure the bitmap has a density 169 Bitmap bitmap = bitmapDrawable.getBitmap(); local 190 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
| LauncherProvider.java | 40 import android.graphics.Bitmap; 1010 Bitmap bitmap = Utilities.createIconBitmap( local [all...] |
| /packages/apps/Mms/src/com/android/mms/ui/ |
| UriImage.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 300 Bitmap b = null; 348 // Scale the bitmap using Bitmap library. 354 "Bitmap.createScaledBitmap: w=" + scaledWidth + 358 b = Bitmap.createScaledBitmap(b, scaledWidth, scaledHeight, false); 361 Log.v(TAG, "Bitmap.createScaledBitmap returned NULL!"); 418 // Rotate the final bitmap if we need to. 432 b.recycle(); // done with the bitmap, release the memor [all...] |
| /packages/apps/Music/src/com/android/music/ |
| TouchInterceptor.java | 22 import android.graphics.Bitmap; 71 private Bitmap mDragBitmap; 135 Bitmap bitmap = Bitmap.createBitmap(item.getDrawingCache()); local 136 startDragging(bitmap, x, y); 368 private void startDragging(Bitmap bm, int x, int y) {
|
| /packages/apps/Settings/src/com/android/settings/ |
| ActivityPicker.java | 33 import android.graphics.Bitmap; 367 // Ensure the bitmap has a density. 369 Bitmap bitmap = bitmapDrawable.getBitmap(); local 370 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) { 387 final Bitmap.Config c = icon.getOpacity() != PixelFormat.OPAQUE ? 388 Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565; 389 final Bitmap thumb = Bitmap.createBitmap(mIconWidth, mIconHeight, c) [all...] |
| /packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
| RestrictedProfileActivity.java | 34 import android.graphics.Bitmap; 213 Bitmap bitmap = createBitmapFromDrawable(R.drawable.ic_avatar_default); 214 mUserManager.setUserIcon(userId, bitmap); 469 private Bitmap createBitmapFromDrawable(int resId) { 472 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), local 473 Bitmap.Config.ARGB_8888); 474 icon.draw(new Canvas(bitmap)); [all...] |
| /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
| TransitionImage.java | 50 * - {@link #setUnclippedRect(RectF)} bounds of original bitmap without clipping, the rect 101 public void setBitmap(BitmapDrawable bitmap) { 102 mBitmap = bitmap; 204 BitmapDrawable bitmap = null; local 211 bitmap = ((BitmapDrawable) d); 214 if (bitmap == null) { 216 bitmap = new BitmapDrawable(context.getResources(), 220 if (bitmap == null) { 235 setBitmap(bitmap); 301 * set bounds and bitmap [all...] |
| /frameworks/base/services/core/java/com/android/server/am/ |
| TaskPersister.java | 23 import android.graphics.Bitmap; 122 Bitmap mImage; 123 ImageWriteQueueItem(String filename, Bitmap image) { 246 void saveImage(Bitmap image, String filename) { 254 // replace the Bitmap with the new one. 277 Bitmap getTaskDescriptionIcon(String filename) { 279 final Bitmap icon = getImageFromWriteQueue(filename); 286 Bitmap getImageFromWriteQueue(String filename) { 486 static Bitmap restoreImage(String filename) { 1015 final Bitmap bitmap = imageWriteQueueItem.mImage; local [all...] |
| /packages/apps/Launcher2/src/com/android/launcher2/ |
| LauncherProvider.java | 42 import android.graphics.Bitmap; 672 Bitmap bitmap = Utilities.resampleIconBitmap( local 675 if (bitmap != null) { 677 data = ItemInfo.flattenBitmap(bitmap); 682 bitmap.recycle(); [all...] |
| /packages/providers/TvProvider/src/com/android/providers/tv/ |
| TvProvider.java | 37 import android.graphics.Bitmap; 906 Bitmap bitmap = BitmapFactory.decodeStream(is); local [all...] |
| /art/runtime/gc/collector/ |
| mark_sweep.cc | 130 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap. 278 // Recursively mark all the non-image bits set in the mark bitmap. 305 accounting::ContinuousSpaceBitmap* bitmap = space->GetMarkBitmap(); local 307 if (bitmap != nullptr && 309 current_space_bitmap_ = bitmap; 316 CHECK(current_space_bitmap_ != nullptr) << "Could not find a default mark bitmap\n" 476 // See if the root is on any space bitmap. 683 accounting::ContinuousSpaceBitmap* bitmap, 687 bitmap_(bitmap), [all...] |
| /cts/tests/tests/openglperf/src/android/openglperf/cts/ |
| PlanetsRenderer.java | 21 import android.graphics.Bitmap; 353 Bitmap bitmap = BitmapFactory.decodeStream(in); local 360 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
|
| /cts/tests/tests/widget/src/android/widget/cts/ |
| RemoteViewsTest.java | 30 import android.graphics.Bitmap; 190 Bitmap imageViewBitmap = ((BitmapDrawable) image.getDrawable()).getBitmap(); 191 Bitmap expectedBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( 363 Bitmap bitmap = local 365 mRemoteViews.setImageViewBitmap(R.id.remoteView_image, bitmap); 368 WidgetTestUtils.assertEquals(bitmap, ((BitmapDrawable) image.getDrawable()).getBitmap()); 370 mRemoteViews.setImageViewBitmap(R.id.remoteView_absolute, bitmap); 383 Bitmap bitmap local [all...] |
| /developers/build/prebuilts/gradle/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 98 private Bitmap mImageBitmap; 136 mImageBitmap = (Bitmap) extras.get("data"); 410 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 415 private static Asset toAsset(Bitmap bitmap) { 419 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
|
| /developers/samples/android/wearable/wear/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 98 private Bitmap mImageBitmap; 136 mImageBitmap = (Bitmap) extras.get("data"); 410 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 415 private static Asset toAsset(Bitmap bitmap) { 419 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
|
| /development/apps/GestureBuilder/src/com/android/gesture/builder/ |
| GestureBuilderActivity.java | 43 import android.graphics.Bitmap; 353 final Bitmap bitmap = gesture.toBitmap(mThumbnailSize, mThumbnailSize, local 359 mAdapter.addBitmap(namedGesture.gesture.getID(), bitmap); local 417 void addBitmap(Long id, Bitmap bitmap) { 418 mThumbnails.put(id, new BitmapDrawable(bitmap));
|
| /development/ndk/platforms/android-3/include/linux/raid/ |
| md_k.h | 160 struct bitmap *bitmap; member in struct:mddev_s
|
| /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
| AccelerometerPlayActivity.java | 21 import android.graphics.Bitmap; 128 private Bitmap mBitmap; 129 private Bitmap mWood; 356 Bitmap ball = BitmapFactory.decodeResource(getResources(), R.drawable.ball); 359 mBitmap = Bitmap.createScaledBitmap(ball, dstWidth, dstHeight, true); 363 opts.inPreferredConfig = Bitmap.Config.RGB_565; 370 // the bitmap 438 final Bitmap bitmap = mBitmap; local 449 canvas.drawBitmap(bitmap, x, y, null) [all...] |
| /development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 98 private Bitmap mImageBitmap; 136 mImageBitmap = (Bitmap) extras.get("data"); 410 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 415 private static Asset toAsset(Bitmap bitmap) { 419 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
|