Home
last modified time | relevance | path

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

/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/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/native/libs/binder/
DUtils.h82 size_t byteSize() { return size * sizeof(T); } in byteSize() function
84 iovec toIovec() { return {const_cast<std::remove_const_t<T>*>(data), byteSize()}; } in toIovec()
DRpcState.cpp574 __builtin_add_overflow(objectTableSpan.byteSize(), bodySize, in transactAddress()
707 rpcReply.parcelDataSize, parcelSpan.byteSize()); in waitForReply()
965 transaction->parcelDataSize, parcelSpan.byteSize()); in processTransactInternal()
1125 __builtin_add_overflow(objectTableSpan.byteSize(), bodySize, in processTransactInternal()
/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/hwui/hwui/
DAnimatedImageDrawable.h111 size_t byteSize() const { return sizeof(*this) + mBytesUsed; } in byteSize() function
/frameworks/base/libs/hwui/jni/
DAnimatedImageDrawable.cpp262 return drawable->byteSize(); in AnimatedImageDrawable_nNativeByteSize()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp315 size_t byteSize() const { in byteSize() function in android::IdmapEntries
440 data += entries.byteSize() / sizeof(uint16_t); in parseIdmap()
441 size -= entries.byteSize(); in parseIdmap()