Home
last modified time | relevance | path

Searched refs:byteSize (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DExif.java34 public static int getOrientation(final InputStream inputStream, final long byteSize) { in getOrientation() argument
71 if (has(jpeg, byteSize, 1)) { in getOrientation()
81 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) { in getOrientation()
103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation()
198 private static boolean has(final InputStreamBuffer jpeg, final long byteSize, final int index) { in has() argument
199 if (byteSize >= 0) { in has()
200 return index < byteSize; in has()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DExif.java39 public static int getOrientation(final InputStream inputStream, final long byteSize) { in getOrientation() argument
76 if (has(jpeg, byteSize, 1)) { in getOrientation()
86 while (has(jpeg, byteSize, offset + 3) && (jpeg.get(offset++) & 0xFF) == 0xFF) { in getOrientation()
108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation()
203 private static boolean has(final InputStreamBuffer jpeg, final long byteSize, final int index) { in has() argument
204 if (byteSize >= 0) { in has()
205 return index < byteSize; in has()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java153 final long byteSize; in decode() local
155 byteSize = fd.getStatSize(); in decode()
157 byteSize = -1; in decode()
172 orientation = Exif.getOrientation(in, byteSize); in decode()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp269 size_t byteSize() const { in byteSize() function in android::IdmapEntries
394 data += entries.byteSize() / sizeof(uint16_t); in parseIdmap()
395 size -= entries.byteSize(); in parseIdmap()