Searched refs:bm (Results 1 - 16 of 16) sorted by relevance

/packages/apps/Mms/src/com/android/mms/model/
H A DImageModel.java165 Bitmap bm = mFullSizeBitmapCache.get();
166 if (bm == null) {
168 bm = createBitmap(Math.max(width, height), getUri());
169 if (bm != null) {
170 mFullSizeBitmapCache = new SoftReference<Bitmap>(bm);
177 return bm;
/packages/apps/Browser/src/com/android/browser/
H A DWallpaperHandler.java161 Bitmap bm = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
162 Canvas canvas = new Canvas(bm);
167 wm.setBitmap(bm);
H A DBookmarkUtils.java83 Bitmap bm = Bitmap.createBitmap(iconDimension, iconDimension, Bitmap.Config.ARGB_8888);
84 Canvas canvas = new Canvas(bm);
85 Rect iconBounds = new Rect(0, 0, bm.getWidth(), bm.getHeight());
108 return bm;
H A DBookmarks.java133 private static byte[] bitmapToBytes(Bitmap bm) { argument
134 if (bm == null) {
139 bm.compress(Bitmap.CompressFormat.PNG, 100, os);
H A DXLargeUi.java123 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id);
124 if (bm != null) {
125 bm.setVisible(false);
H A DPhoneUi.java174 MenuItem bm = menu.findItem(R.id.bookmarks_menu_id);
175 if (bm != null) {
176 bm.setVisible(!showingNavScreen());
H A DController.java2023 final Bitmap bm = createScreenshot(view, getDesiredThumbnailWidth(mActivity),
2025 if (bm == null) {
2040 bm.compress(Bitmap.CompressFormat.PNG, 100, os);
/packages/apps/Gallery2/src/com/android/photos/shims/
H A DBitmapJobDrawable.java140 Bitmap bm = mBitmap;
141 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ?
/packages/apps/Music/src/com/android/music/
H A DMusicUtils.java1000 Bitmap bm = getArtworkFromFile(context, song_id, -1);
1001 if (bm != null) {
1002 return bm;
1021 Bitmap bm = getArtworkFromFile(context, song_id, album_id);
1022 if (bm != null) {
1023 if (bm.getConfig() == null) {
1024 bm = bm.copy(Bitmap.Config.RGB_565, false);
1025 if (bm == null && allowdefault) {
1030 bm
1270 setBackground(View v, Bitmap bm) argument
[all...]
H A DTouchInterceptor.java368 private void startDragging(Bitmap bm, int x, int y) { argument
392 v.setImageBitmap(bm);
393 mDragBitmap = bm;
H A DMediaPlaybackActivity.java1335 Bitmap bm = MusicUtils.getArtwork(MediaPlaybackActivity.this, songid, albumid, false);
1336 if (bm == null) {
1337 bm = MusicUtils.getArtwork(MediaPlaybackActivity.this, songid, -1);
1340 if (bm != null) {
1341 numsg = mHandler.obtainMessage(ALBUM_ART_DECODED, bm);
H A DTrackBrowserActivity.java427 Bitmap bm = MusicUtils.getArtwork(TrackBrowserActivity.this, -1, albumid, false);
428 if (bm != null) {
429 MusicUtils.setBackground(mTrackList, bm);
/packages/apps/Gallery2/src/com/android/photos/drawables/
H A DAutoThumbnailDrawable.java205 Bitmap bm = mBitmap;
206 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ?
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
H A DMailboxTests.java149 Mailbox bm = ProviderTestUtils.setupMailbox("b2", a.mId, true, c, Mailbox.TYPE_MAIL);
152 assertEquals(Mailbox.TYPE_MAIL, Mailbox.getMailboxType(c, bm.mId));
161 Mailbox bm = ProviderTestUtils.setupMailbox("b2", a.mId, true, c, Mailbox.TYPE_MAIL);
164 assertEquals("b2", Mailbox.getDisplayName(c, bm.mId));
173 Mailbox bm = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_MAIL);
178 assertTrue(Mailbox.isRefreshable(c, bm.mId));
195 Mailbox bm = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_MAIL);
200 assertTrue(bm.canHaveMessagesMoved());
/packages/apps/Settings/src/com/android/settings/
H A DBandMode.java103 public BandListItem(int bm) { argument
104 mBandMode = bm;
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java4899 boolean need_to_recompress, Uri out, byte[] compressed, Bitmap bm) throws IOException {
4909 if (!bm.compress(Bitmap.CompressFormat.JPEG, 85, outstream)) {
4936 Bitmap bm = null;
4963 bm = BitmapFactory.decodeByteArray(compressed, 0, compressed.length, opts);
4965 if (bm != null && bm.getConfig() == null) {
4966 Bitmap nbm = bm.copy(Bitmap.Config.RGB_565, false);
4967 if (nbm != null && nbm != bm) {
4968 bm.recycle();
4969 bm
4898 writeAlbumArt( boolean need_to_recompress, Uri out, byte[] compressed, Bitmap bm) argument
[all...]

Completed in 138 milliseconds