Lines Matching defs:bm
280 Bitmap bm = null;
284 bm = decodeStream(stream, null, opts);
287 If the exception happened on open, bm will be null.
298 return bm;
352 Bitmap bm = null;
359 bm = decodeResourceStream(res, value, is, null, opts);
362 If the exception happened on open, bm will be null.
363 If it happened on close, bm is still valid.
373 return bm;
457 Bitmap bm;
460 bm = nativeDecodeAsset(((AssetManager.AssetInputStream) is).getAssetInt(),
470 bm = nativeDecodeStream(is, tempStorage, outPadding, opts);
473 return finishDecode(bm, outPadding, opts);
476 private static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) {
477 if (bm == null || opts == null) {
478 return bm;
483 return bm;
486 bm.setDensity(density);
489 return bm;
492 byte[] np = bm.getNinePatchChunk();
497 final Bitmap oldBitmap = bm;
498 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
499 (int) (bm.getHeight() * scale + 0.5f), true);
504 bm.setNinePatchChunk(np);
506 bm.setDensity(targetDensity);
509 return bm;
548 Bitmap bm = decodeStream(is, outPadding, opts);
549 return finishDecode(bm, outPadding, opts);
555 Bitmap bm = nativeDecodeFileDescriptor(fd, outPadding, opts);
556 return finishDecode(bm, outPadding, opts);