Searched refs:str16 (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.cpp | 232 const char16_t* str16 = parser->getAttributeNamespace(i, &len); in CopyAttributes() local 233 if (str16) { in CopyAttributes() 234 attr.namespace_uri = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 237 str16 = parser->getAttributeName(i, &len); in CopyAttributes() 238 if (str16) { in CopyAttributes() 239 attr.name = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 247 str16 = parser->getAttributeStringValue(i, &len); in CopyAttributes() 248 if (str16) { in CopyAttributes() 249 attr.value = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 297 const char16_t* str16 = tree.getNamespacePrefix(&len); in Inflate() local [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 495 std::u16string str16 = android::util::Utf8ToUtf16(str); in ParseInt() local 497 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseInt() 506 std::u16string str16 = android::util::Utf8ToUtf16(trimmed_str); in ParseResourceId() local 508 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseResourceId() 522 std::u16string str16 = android::util::Utf8ToUtf16(trimmed_str); in ParseSdkVersion() local 524 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseSdkVersion() 559 std::u16string str16 = android::util::Utf8ToUtf16(util::TrimWhitespace(str)); in TryParseInt() local 561 if (!android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in TryParseInt() 572 std::u16string str16 = android::util::Utf8ToUtf16(util::TrimWhitespace(str)); in TryParseFloat() local 574 if (!android::ResTable::stringToFloat(str16.data(), str16.size(), &value)) { in TryParseFloat()
|
/frameworks/native/libs/binder/ndk/ |
D | parcel.cpp | 347 void* str16 = parcel->get()->writeInplace((len16 + 1) * sizeof(char16_t)); in AParcel_writeString() local 348 if (str16 == nullptr) { in AParcel_writeString() 352 utf8_to_utf16(str8, length, (char16_t*)str16, (size_t)len16 + 1); in AParcel_writeString() 360 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString() local 362 if (str16 == nullptr) { in AParcel_readString() 375 len8 = utf16_to_utf8_length(str16, len16) + 1; in AParcel_readString() 391 utf16_to_utf8(str16, len16, str8, len8); in AParcel_readString()
|
/frameworks/base/core/jni/ |
D | android_util_Process.cpp | 141 const jchar* str16 = env->GetStringCritical(name, 0); in android_os_Process_getUidForName() local 143 if (str16) { in android_os_Process_getUidForName() 144 name8 = String8(reinterpret_cast<const char16_t*>(str16), in android_os_Process_getUidForName() 146 env->ReleaseStringCritical(name, str16); in android_os_Process_getUidForName() 173 const jchar* str16 = env->GetStringCritical(name, 0); in android_os_Process_getGidForName() local 175 if (str16) { in android_os_Process_getGidForName() 176 name8 = String8(reinterpret_cast<const char16_t*>(str16), in android_os_Process_getGidForName() 178 env->ReleaseStringCritical(name, str16); in android_os_Process_getGidForName()
|
/frameworks/base/tools/aapt/ |
D | XMLNode.cpp | 98 const String16& str16) in hasSubstitutionErrors() argument 100 const char16_t* str = str16.string(); in hasSubstitutionErrors() 102 const char16_t* end = str + str16.size(); in hasSubstitutionErrors()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 998 const base::expected<StringPiece16, NullOrIOError> str16 = stringAt(idx); in string8ObjectAt() local 999 if (UNLIKELY(IsIOError(str16))) { in string8ObjectAt() 1000 return base::unexpected(GetIOError(str16.error())); in string8ObjectAt() 1002 if (str16.has_value()) { in string8ObjectAt() 1003 return String8(str16->data(), str16->size()); in string8ObjectAt() 7547 const char16_t* str16 = UnpackOptionalString(pkg->header->values.stringAt( in print_value() local 7549 if (str16 != NULL) { in print_value() 7551 normalizeForOutput(String8(str16, len).string()).string()); in print_value()
|