OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:BitmapUtil
(Results
1 - 3
of
3
) sorted by null
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
BitmapUtilTests.java
23
import com.android.contacts.common.util.
BitmapUtil
;
29
* Tests for {@link com.android.contacts.common.util.
BitmapUtil
}.
34
assertEquals(100,
BitmapUtil
.getSmallerExtentFromBytes(createJpegRawData(100, 100)));
35
assertEquals(100,
BitmapUtil
.getSmallerExtentFromBytes(createPngRawData(100, 100)));
39
assertEquals(50,
BitmapUtil
.getSmallerExtentFromBytes(createJpegRawData(200, 50)));
40
assertEquals(50,
BitmapUtil
.getSmallerExtentFromBytes(createPngRawData(200, 50)));
44
assertEquals(40,
BitmapUtil
.getSmallerExtentFromBytes(createJpegRawData(40, 150)));
45
assertEquals(40,
BitmapUtil
.getSmallerExtentFromBytes(createPngRawData(40, 150)));
49
assertEquals(1,
BitmapUtil
.findOptimalSampleSize(512, 512));
53
assertEquals(1,
BitmapUtil
.findOptimalSampleSize(512, 1024))
[
all
...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
BitmapUtil.java
25
public class
BitmapUtil
{
26
private
BitmapUtil
() {}
/packages/apps/ContactsCommon/src/com/android/contacts/common/
ContactPhotoManager.java
51
import com.android.contacts.common.util.
BitmapUtil
;
599
BitmapUtil
.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent);
617
Bitmap bitmap =
BitmapUtil
.decodeBitmapFromBytes(bytes, sampleSize);
765
bytes == null ? -1 :
BitmapUtil
.getSmallerExtentFromBytes(bytes));
[
all
...]
Completed in 325 milliseconds