Home
last modified time | relevance | path

Searched refs:str16 (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp230 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/
DResourceUtils.cpp503 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()
567 std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)); in TryParseInt() local
569 if (!android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in TryParseInt()
580 std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)); in TryParseFloat() local
582 if (!android::ResTable::stringToFloat(str16.data(), str16.size(), &value)) { in TryParseFloat()
/frameworks/base/packages/services/PacProcessor/jni/
Dcom_android_pacprocessor_PacNative.cpp38 std::u16string str16(reinterpret_cast<const char16_t*>(str), in jstringToString16()
41 return str16; in jstringToString16()
/frameworks/native/libs/binder/ndk/
Dparcel.cpp315 void* str16 = parcel->get()->writeInplace((len16 + 1) * sizeof(char16_t)); in AParcel_writeString() local
316 if (str16 == nullptr) { in AParcel_writeString()
320 utf8_to_utf16(str8, length, (char16_t*)str16, (size_t)len16 + 1); in AParcel_writeString()
328 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString() local
330 if (str16 == nullptr) { in AParcel_readString()
343 len8 = utf16_to_utf8_length(str16, len16) + 1; in AParcel_readString()
359 utf16_to_utf8(str16, len16, str8, len8); in AParcel_readString()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp122 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/
DLookup.cpp124 const char16_t* str16 = pool->stringAt(value.data, &len); in GetValue() local
125 out += Utf16ToUtf8(StringPiece16(str16, len)); in GetValue()
/frameworks/base/tools/aapt/
DXMLNode.cpp98 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/
DResourceTypes.cpp896 const char16_t *str16 = stringAt(idx, &len); in string8ObjectAt() local
897 if (str16 != NULL) { in string8ObjectAt()
898 return String8(str16, len); in string8ObjectAt()
7385 const char16_t* str16 = pkg->header->values.stringAt( in print_value() local
7387 if (str16 != NULL) { in print_value()
7389 normalizeForOutput(String8(str16, len).string()).string()); in print_value()