/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
SlideshowPage.java | 21 import android.graphics.Bitmap; 68 public Bitmap bitmap; field in class:SlideshowPage.Slide 72 public Slide(MediaItem item, int index, Bitmap bitmap) { 73 this.bitmap = bitmap; 164 mSlideshowView.next(slide.bitmap, slide.item.getRotation());
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalImage.java | 23 import android.graphics.Bitmap; 174 public Job<Bitmap> requestImage(int type) { 190 public Bitmap onDecodeOriginal(JobContext jc, final int type) { 192 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 208 Bitmap bitmap = DecodeUtils.decodeIfBigEnough( local 210 if (bitmap != null) return bitmap;
|
/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/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 | 28 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/util/ |
TransitionImage.java | 50 * - {@link #setUnclippedRect(RectF)} bounds of original bitmap without clipping, the rect 100 public void setBitmap(BitmapDrawable bitmap) { 101 mBitmap = bitmap; 203 BitmapDrawable bitmap = null; local 208 bitmap = downloader.getLargestBitmapFromMemCache(key); 210 if (bitmap == null) { 212 bitmap = new BitmapDrawable(context.getResources(), 216 if (bitmap == null) { 231 setBitmap(bitmap); 297 * set bounds and bitmap [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
TelecomAccountRegistry.java | 22 import android.graphics.Bitmap; 207 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 208 Canvas canvas = new Canvas(bitmap); 212 icon = Icon.createWithBitmap(bitmap);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
NinePatchDrawableTest.java | 28 import android.graphics.Bitmap; 38 import android.graphics.Bitmap.Config; 83 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); 101 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888); 245 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 256 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 267 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 278 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 288 // Known failure: Bug 2834281 - Bitmap#hasAlpha seems to return true fo 333 Bitmap bitmap = Bitmap.createBitmap( local 626 Bitmap bitmap = getBitmapUnscaled(resId); local 634 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); local 641 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local [all...] |
VectorDrawableTest.java | 25 import android.graphics.Bitmap; 185 private Bitmap mBitmap; 194 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 234 // Setup VectorDrawable from xml file and draw into the bitmap. 263 Bitmap golden = BitmapFactory.decodeResource(mResources, goldenImages[i]); 274 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index, int[] stateSet) 296 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out) [all...] |
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
CallCardFragment.java | 24 import android.graphics.Bitmap; 949 Bitmap bitmap = drawableToBitmap(photo); local 985 Bitmap bitmap; local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherProvider.java | 43 import android.graphics.Bitmap; 731 Bitmap bitmap = Utilities.resampleIconBitmap( local 734 if (bitmap != null) { 736 data = ItemInfo.flattenBitmap(bitmap); 741 bitmap.recycle(); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
Utilities.java | 37 import android.graphics.Bitmap; 156 public static Bitmap createIconBitmap(Cursor c, int iconIndex, Context context) { 166 * Returns a bitmap suitable for the all apps view. If the package or the resource do not 169 public static Bitmap createIconBitmap(String packageName, String resourceName, 192 * Returns a bitmap which is of the appropriate size to be displayed as an icon 194 public static Bitmap createIconBitmap(Bitmap icon, Context context) { 203 * Returns a bitmap suitable for the all apps view. The icon is badged for {@param user}. 204 * The bitmap is also visually normalized with other icons. 207 public static Bitmap createBadgedIconBitmap 211 Bitmap bitmap = createIconBitmap(icon, context, scale); local 251 Bitmap bitmap = bitmapDrawable.getBitmap(); local 272 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/packages/providers/TvProvider/src/com/android/providers/tv/ |
TvProvider.java | 37 import android.graphics.Bitmap; 1256 Bitmap bitmap = BitmapFactory.decodeStream(is); local [all...] |
/art/runtime/gc/collector/ |
concurrent_copying.cc | 142 const char* bitmap_name = space->IsImageSpace() ? "cc image space bitmap" : 143 "cc zygote space bitmap"; 145 accounting::ContinuousSpaceBitmap* bitmap = local 147 cc_heap_bitmap_->AddContinuousSpaceBitmap(bitmap); 148 cc_bitmaps_.push_back(bitmap); 150 accounting::ContinuousSpaceBitmap* bitmap = local 151 accounting::ContinuousSpaceBitmap::Create("cc region space bitmap", 153 cc_heap_bitmap_->AddContinuousSpaceBitmap(bitmap); 154 cc_bitmaps_.push_back(bitmap); 155 region_space_bitmap_ = bitmap; [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PathTest.java | 21 import android.graphics.Bitmap; 408 Bitmap actualBitmap = drawAndGetBitmap(actual); 409 Bitmap expectedBitmap = drawAndGetBitmap(expected); 416 private static Bitmap drawAndGetBitmap(Path path) { 417 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); local 418 bitmap.eraseColor(Color.BLACK); 421 Canvas canvas = new Canvas(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/ |
ImageViewTest.java | 38 import android.graphics.Bitmap; 242 Bitmap.Config viewConfig = imageViewBitmap.getBitmap().getConfig(); 243 Bitmap testimageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( 274 final Bitmap bitmap = local 276 mImageView.setImageBitmap(bitmap); 281 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap());
|
/developers/build/prebuilts/gradle/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 24 import android.graphics.Bitmap; 102 private Bitmap mImageBitmap; 168 mImageBitmap = (Bitmap) extras.get("data"); 304 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 309 private static Asset toAsset(Bitmap bitmap) { 313 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; 102 private Bitmap mImageBitmap; 168 mImageBitmap = (Bitmap) extras.get("data"); 304 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 309 private static Asset toAsset(Bitmap bitmap) { 313 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));
|