Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java36 public static Bitmap scaleBitmap(Bitmap bm, int width, int height) { in scaleBitmap() argument
37 if (bm == null || (bm.getHeight() == height && bm.getWidth() == width)) { in scaleBitmap()
38 return bm; in scaleBitmap()
42 if (bm.getHeight() > height) { in scaleBitmap()
43 heightScale = (float) height / bm.getHeight(); in scaleBitmap()
46 if (bm.getWidth() > width) { in scaleBitmap()
47 widthScale = (float) width / bm.getWidth(); in scaleBitmap()
50 int scaleWidth = (int) Math.ceil(bm.getWidth() * scale); in scaleBitmap()
51 int scaleHeight = (int) Math.ceil(bm.getHeight() * scale); in scaleBitmap()
53 Bitmap scaledBm = bm; in scaleBitmap()
[all …]
/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java60 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) { in scaleBitmap() argument
61 Rect rect = calculateNewSize(bm, maxWidth, maxHeight); in scaleBitmap()
62 return Bitmap.createScaledBitmap(bm, rect.right, rect.bottom, false); in scaleBitmap()
65 public static Bitmap getScaledMutableBitmap(Bitmap bm, int maxWidth, int maxHeight) { in getScaledMutableBitmap() argument
66 Bitmap scaledBitmap = scaleBitmap(bm, maxWidth, maxHeight); in getScaledMutableBitmap()
72 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) { in calculateNewSize() argument
74 final double bmRatio = bm.getHeight() / (double) bm.getWidth(); in calculateNewSize()
78 rect.bottom = Math.round((float) bm.getHeight() * maxWidth / bm.getWidth()); in calculateNewSize()
80 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize()
87 String id, Bitmap bm, int maxWidth, int maxHeight) { in createScaledBitmapInfo() argument
[all …]
DImageLoader.java417 Bitmap bm = drawable instanceof BitmapDrawable in doGetBitmapInBackground() local
420 return bm == null in doGetBitmapInBackground()
422 : BitmapUtils.createScaledBitmapInfo(getKey(), bm, mMaxWidth, mMaxHeight); in doGetBitmapInBackground()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java151 Mailbox bm = ProviderTestUtils.setupMailbox("b2", a.mId, true, c, Mailbox.TYPE_MAIL); in testGetMailboxType() local
154 assertEquals(Mailbox.TYPE_MAIL, Mailbox.getMailboxType(c, bm.mId)); in testGetMailboxType()
163 Mailbox bm = ProviderTestUtils.setupMailbox("b2", a.mId, true, c, Mailbox.TYPE_MAIL); in testGetDisplayName() local
166 assertEquals("b2", Mailbox.getDisplayName(c, bm.mId)); in testGetDisplayName()
175 Mailbox bm = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_MAIL); in testIsRefreshable() local
180 assertTrue(Mailbox.isRefreshable(c, bm.mId)); in testIsRefreshable()
197 Mailbox bm = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_MAIL); in testCanMoveFrom() local
202 assertTrue(bm.canHaveMessagesMoved()); in testCanMoveFrom()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DImageMemoryCache.java43 Bitmap bm = mRadioManager.getMetadataImage(globalId); in resolve()
44 mCache.put(globalId, bm); in resolve()
45 return bm; in resolve()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramInfoExt.java164 Bitmap bm = imageResolver.resolve(albumArtId); in toMediaMetadata() local
165 if (bm != null) bld.putBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART, bm); in toMediaMetadata()
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java140 Bitmap bm = mBitmap; in getOpacity() local
141 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ? in getOpacity()
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogChangeReceiver.java47 BackupManager bm = new BackupManager(context); in onReceive() local
48 bm.dataChanged(); in onReceive()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java205 Bitmap bm = mBitmap; in getOpacity() local
206 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ? in getOpacity()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/widget/
DUriImageView.java65 public void setImageBitmap(@Nullable Bitmap bm) { in setImageBitmap() argument
66 super.setImageBitmap(bm); in setImageBitmap()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskThumbnailView.java138 Bitmap bm = thumbnailData.thumbnail; in setThumbnail() local
139 bm.prepareToDraw(); in setThumbnail()
140 mBitmapShader = new BitmapShader(bm, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in setThumbnail()
/packages/apps/Settings/src/com/android/settings/
DBandMode.java110 public BandListItem(int bm) { in BandListItem() argument
111 mBandMode = bm; in BandListItem()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DBandMode.java110 public BandListItem(int bm) { in BandListItem() argument
111 mBandMode = bm; in BandListItem()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar1107 ���I�=� ,��H����Q�j����)ڀ�n���jĬλ�lG>޵4l�u'���F�0&H��$��;vS��J��A(�+��PO��Q�����.Te�n�ڑbm�…
3442 …���v����>�x�2"d ���F3�� 7#�Tdm��CdDs1���s�aQ�"A"F6���x8�O�'��U��8�'�Ա�bm�D��s��ΞT<��s��qԚr�…
4946 …=�(_����5H���Fp�1Q�XpƮ�����ʩo�s�ҳ�3����;�V`�`H��ޞ��s���IXa:�-�ںd�4�bm�+q� ⸟��e���Gl��n…
5353 a��YwS�iV8���)O�`q�zٻR����0�+��Re=����Y$S� s�^l�dR6��F8d�bm���-0kz;�?T�<�Ln ����E)�1@c��[�…
6780 …O'�k[�^�\���%��+�/�2�i����r`á��m2�R��nLK��̒��1�|�3�P�h��&� �/4�����bm��`�m�|�c��L�G=~���8#…
8587 …�p�__oƮE�xg��Ԭ�[>N@ێ�5�N[������7�"������^���ʎ�Y��<�ò���`�9^Y��k�����"bm��ۭm�)Iɕ5�[)�l�<���…
9117 �S��*1�~X��OJ��bm˸FN(&>K�㚉^L�,c�&���������T['��O[���H*�0`�i�a�0������/����8��H8*��…
9813 �����s�n����u+�ɴ��X�����bm��K4�BL�R}�z�����*�A1&�==�y|_�$6D'��ۓVo<��ML��Đ<�����+6��…
10869 …5�7й/n�1�a��[_��9ݜ>��'�P��Zz��b�%�n�d*��Go�S����PR�ȻV�FP�O\�v�Q�P�k����bm�p��#��ZKu�{ĝ&U�8.ϝ�…
10916 …X�css|�eVr�����f�O o,��e�MM�h�F�W�d��sZ��e�Bb�ʕ9;y��Zͅ�2���'�Ѕ�r8�2��bm�^K(�m-�1�D�r1���R��…
[all …]
/packages/inputmethods/LatinIME/dictionaries/
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Dlv_wordlist.combined.gz