Home
last modified time | relevance | path

Searched refs:signatureCheckBytes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/
DExifInterface.java2103 byte[] signatureCheckBytes = new byte[SIGNATURE_CHECK_SIZE]; in getMimeType()
2104 if (in.read(signatureCheckBytes) != SIGNATURE_CHECK_SIZE) { in getMimeType()
2108 if (isJpegFormat(signatureCheckBytes)) { in getMimeType()
2110 } else if (isRafFormat(signatureCheckBytes)) { in getMimeType()
2112 } else if (isOrfFormat(signatureCheckBytes)) { in getMimeType()
2114 } else if (isRw2Format(signatureCheckBytes)) { in getMimeType()
2125 private static boolean isJpegFormat(byte[] signatureCheckBytes) throws IOException { in isJpegFormat() argument
2127 if (signatureCheckBytes[i] != JPEG_SIGNATURE[i]) { in isJpegFormat()
2140 private boolean isRafFormat(byte[] signatureCheckBytes) throws IOException { in isRafFormat() argument
2143 if (signatureCheckBytes[i] != rafSignatureBytes[i]) { in isRafFormat()
[all …]
/frameworks/support/exifinterface/src/android/support/media/
DExifInterface.java2045 byte[] signatureCheckBytes = new byte[SIGNATURE_CHECK_SIZE]; in getMimeType()
2046 if (in.read(signatureCheckBytes) != SIGNATURE_CHECK_SIZE) { in getMimeType()
2050 if (isJpegFormat(signatureCheckBytes)) { in getMimeType()
2052 } else if (isRafFormat(signatureCheckBytes)) { in getMimeType()
2054 } else if (isOrfFormat(signatureCheckBytes)) { in getMimeType()
2056 } else if (isRw2Format(signatureCheckBytes)) { in getMimeType()
2067 private static boolean isJpegFormat(byte[] signatureCheckBytes) throws IOException { in isJpegFormat() argument
2069 if (signatureCheckBytes[i] != JPEG_SIGNATURE[i]) { in isJpegFormat()
2082 private boolean isRafFormat(byte[] signatureCheckBytes) throws IOException { in isRafFormat() argument
2085 if (signatureCheckBytes[i] != rafSignatureBytes[i]) { in isRafFormat()
[all …]