Lines Matching refs:len16
341 const ssize_t len16 = utf8_to_utf16_length(str8, length); in AParcel_writeString() local
343 if (len16 < 0 || len16 >= std::numeric_limits<int32_t>::max()) { in AParcel_writeString()
344 ALOGW("Invalid string length: %zd", len16); in AParcel_writeString()
348 status_t err = parcel->get()->writeInt32(len16); in AParcel_writeString()
353 void* str16 = parcel->get()->writeInplace((len16 + 1) * sizeof(char16_t)); in AParcel_writeString()
358 utf8_to_utf16(str8, length, (char16_t*)str16, (size_t)len16 + 1); in AParcel_writeString()
365 size_t len16; in AParcel_readString() local
366 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString()
378 if (len16 == 0) { in AParcel_readString()
381 len8 = utf16_to_utf8_length(str16, len16) + 1; in AParcel_readString()
397 utf16_to_utf8(str16, len16, str8, len8); in AParcel_readString()