/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.cpp | 230 const char16_t* str16 = parser->getAttributeNamespace(i, &len); in CopyAttributes() local 231 if (str16) { in CopyAttributes() 232 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 235 str16 = parser->getAttributeName(i, &len); in CopyAttributes() 236 if (str16) { in CopyAttributes() 237 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 245 str16 = parser->getAttributeStringValue(i, &len); in CopyAttributes() 246 if (str16) { in CopyAttributes() 247 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 295 const char16_t* str16 = tree.getNamespacePrefix(&len); in Inflate() local [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 503 std::u16string str16 = util::Utf8ToUtf16(str); in ParseInt() local 505 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseInt() 514 std::u16string str16 = util::Utf8ToUtf16(trimmed_str); in ParseResourceId() local 516 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseResourceId() 530 std::u16string str16 = util::Utf8ToUtf16(trimmed_str); in ParseSdkVersion() local 532 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseSdkVersion() 566 std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)); in TryParseInt() local 568 if (!android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in TryParseInt() 579 std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)); in TryParseFloat() local 581 if (!android::ResTable::stringToFloat(str16.data(), str16.size(), &value)) { in TryParseFloat()
|
/frameworks/base/packages/services/PacProcessor/jni/ |
D | com_android_pacprocessor_PacNative.cpp | 38 std::u16string str16(reinterpret_cast<const char16_t*>(str), in jstringToString16() 41 return str16; in jstringToString16()
|
/frameworks/native/libs/binder/ndk/ |
D | parcel.cpp | 322 void* str16 = parcel->get()->writeInplace((len16 + 1) * sizeof(char16_t)); in AParcel_writeString() local 323 if (str16 == nullptr) { in AParcel_writeString() 327 utf8_to_utf16(str8, length, (char16_t*)str16, (size_t)len16 + 1); in AParcel_writeString() 335 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString() local 337 if (str16 == nullptr) { in AParcel_readString() 350 len8 = utf16_to_utf8_length(str16, len16) + 1; in AParcel_readString() 366 utf16_to_utf8(str16, len16, str8, len8); in AParcel_readString()
|
/frameworks/base/core/jni/ |
D | android_util_Process.cpp | 122 const jchar* str16 = env->GetStringCritical(name, 0); in android_os_Process_getUidForName() local 124 if (str16) { in android_os_Process_getUidForName() 125 name8 = String8(reinterpret_cast<const char16_t*>(str16), in android_os_Process_getUidForName() 127 env->ReleaseStringCritical(name, str16); in android_os_Process_getUidForName() 154 const jchar* str16 = env->GetStringCritical(name, 0); in android_os_Process_getGidForName() local 156 if (str16) { in android_os_Process_getGidForName() 157 name8 = String8(reinterpret_cast<const char16_t*>(str16), in android_os_Process_getGidForName() 159 env->ReleaseStringCritical(name, str16); in android_os_Process_getGidForName()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 124 const char16_t* str16 = pool->stringAt(value.data, &len); in GetValue() local 125 out += Utf16ToUtf8(StringPiece16(str16, len)); in GetValue()
|
/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 | 896 const char16_t *str16 = stringAt(idx, &len); in string8ObjectAt() local 897 if (str16 != NULL) { in string8ObjectAt() 898 return String8(str16, len); in string8ObjectAt() 7386 const char16_t* str16 = pkg->header->values.stringAt( in print_value() local 7388 if (str16 != NULL) { in print_value() 7390 normalizeForOutput(String8(str16, len).string()).string()); in print_value()
|