Searched refs:len16 (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/libs/binder/ndk/ |
D | parcel.cpp | 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() [all …]
|
/frameworks/base/core/jni/ |
D | android_database_SQLiteRawStatement.cpp | 107 size_t len16 = env->GetStringLength(jname); in bindParameterIndex() local 108 size_t len8 = utf16_to_utf8_length(reinterpret_cast<const char16_t*>(name.get()), len16); in bindParameterIndex() 111 utf16_to_utf8(reinterpret_cast<const char16_t*>(name.get()), len16, utf8Name, len8 + 1); in bindParameterIndex()
|
/frameworks/av/media/module/extractors/mp4/ |
D | MPEG4Extractor.cpp | 4336 int len16 = 0; // Number of UTF-16 characters in parse3GPPMetaData() local 4346 len16 = ((size - 6) / 2) - 1; // don't include 0x0000 terminator in parse3GPPMetaData() 4350 for (int i = 0; i < len16; i++) { in parse3GPPMetaData() 4359 len16--; in parse3GPPMetaData() 4372 String8 tmpUTF8str(framedata, len16); in parse3GPPMetaData()
|