Home
last modified time | relevance | path

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

/frameworks/native/libs/binder/ndk/
Dparcel.cpp303 const ssize_t len16 = utf8_to_utf16_length(str8, length); in AParcel_writeString() local
305 if (len16 < 0 || len16 >= std::numeric_limits<int32_t>::max()) { in AParcel_writeString()
306 LOG(WARNING) << __func__ << ": Invalid string length: " << len16; in AParcel_writeString()
310 status_t err = parcel->get()->writeInt32(len16); in AParcel_writeString()
315 void* str16 = parcel->get()->writeInplace((len16 + 1) * sizeof(char16_t)); in AParcel_writeString()
320 utf8_to_utf16(str8, length, (char16_t*)str16, (size_t)len16 + 1); in AParcel_writeString()
327 size_t len16; in AParcel_readString() local
328 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString()
340 if (len16 == 0) { in AParcel_readString()
343 len8 = utf16_to_utf8_length(str16, len16) + 1; in AParcel_readString()
[all …]
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp4129 int len16 = 0; // Number of UTF-16 characters in parse3GPPMetaData() local
4139 len16 = ((size - 6) / 2) - 1; // don't include 0x0000 terminator in parse3GPPMetaData()
4143 for (int i = 0; i < len16; i++) { in parse3GPPMetaData()
4152 len16--; in parse3GPPMetaData()
4165 String8 tmpUTF8str(framedata, len16); in parse3GPPMetaData()