Home
last modified time | relevance | path

Searched refs:char16_t (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/native/services/utils/include/serviceutils/
DPriorityDumper.h30 static const char16_t PRIORITY_ARG[];
31 static const char16_t PRIORITY_ARG_CRITICAL[];
32 static const char16_t PRIORITY_ARG_HIGH[];
33 static const char16_t PRIORITY_ARG_NORMAL[];
34 static const char16_t PROTO_ARG[];
/frameworks/base/tools/aapt/
Dpseudolocalize.cpp19 static const char16_t k_arg_start = '{';
20 static const char16_t k_arg_end = '}';
45 const char16_t* str = text.c_str(); in text()
48 char16_t c = str[pos]; in text()
94 pseudolocalize_char(const char16_t c) in pseudolocalize_char()
155 static bool is_possible_normal_placeholder_end(const char16_t c) { in is_possible_normal_placeholder_end()
184 const char16_t* s = result.c_str(); in pseudo_generate_expansion()
203 static bool is_space(const char16_t c) { in is_space()
240 const char16_t* s = source.c_str(); in text()
245 char16_t c = s[i]; in text()
[all …]
DStringPool.h27 void strcpy16_htod(char16_t* dst, const char16_t* src);
29 void strcpy16_htod(uint16_t* dst, const char16_t* src);
DAaptXml.cpp44 const char16_t* str = tree.getAttributeStringValue(attrIndex, &len); in getStringAttributeAtIndex()
114 const char16_t* str = tree.getAttributeStringValue(idx, &len); in getResolvedAttribute()
135 const char16_t* str = resTable.valueToString(&value, static_cast<size_t>(block), NULL, &len); in getResolvedAttribute()
DStringPool.cpp19 void strcpy16_htod(char16_t* dst, const char16_t* src) in strcpy16_htod()
22 char16_t s = htods(*src); in strcpy16_htod()
30 void strcpy16_htod(uint16_t* dst, const char16_t* src) in strcpy16_htod()
477 char16_t* strings = (char16_t*)dat; in writeStringBlock()
479 ENCODE_LENGTH(strings, sizeof(char16_t), strSize) in writeStringBlock()
DXMLNode.cpp54 bool isWhitespace(const char16_t* str) in isWhitespace()
100 const char16_t* str = str16.c_str(); in hasSubstitutionErrors()
101 const char16_t* p = str; in hasSubstitutionErrors()
102 const char16_t* end = str + str16.size(); in hasSubstitutionErrors()
247 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString()
249 ns = (const char16_t*)"\0\0"; in parseStyledString()
292 const char16_t* str = inXml->getAttributeName(ai, &len); in parseStyledString()
304 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString()
306 ns = (const char16_t*)"\0\0"; in parseStyledString()
418 const char16_t* ns) in build_namespace()
[all …]
/frameworks/native/include/input/
DKeyCharacterMap.h96 char16_t getDisplayLabel(int32_t keyCode) const;
102 char16_t getNumber(int32_t keyCode) const;
107 char16_t getCharacter(int32_t keyCode, int32_t metaState) const;
120 char16_t getMatch(int32_t keyCode, const char16_t* chars,
126 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars,
161 char16_t character = 0;
176 char16_t label = 0;
179 char16_t number = 0;
224 status_t parseCharacterLiteral(char16_t* outCharacter);
242 bool findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const;
/frameworks/av/media/mtp/
DMtpStringBuffer.cpp30 const char16_t * utf8_cerror = u"__CONVERSION_ERROR__";
32 std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> gConvert(utf16_cerror, utf8_cerror…
80 mString = utf16ToUtf8(std::u16string((const char16_t*)src)); in set()
90 std::vector<char16_t> buffer(count); in readFromPacket()
116 for (char16_t &c : src16) { in writeToPacket()
/frameworks/native/services/utils/
DPriorityDumper.cpp21 const char16_t PriorityDumper::PROTO_ARG[] = u"--proto";
22 const char16_t PriorityDumper::PRIORITY_ARG[] = u"--dump-priority";
23 const char16_t PriorityDumper::PRIORITY_ARG_CRITICAL[] = u"CRITICAL";
24 const char16_t PriorityDumper::PRIORITY_ARG_HIGH[] = u"HIGH";
25 const char16_t PriorityDumper::PRIORITY_ARG_NORMAL[] = u"NORMAL";
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h72 static_assert(sizeof(char16_t) == sizeof(uint16_t), "char16_t is not 16 bits");
73 static_assert(alignof(char16_t) == alignof(uint16_t), "char16_t is not 16-bit aligned");
547 base::expected<size_t, NullOrIOError> indexOfString(const char16_t* str, size_t strLen) const;
566 char16_t mutable** mCache;
761 const char16_t* getComment(size_t* outLen) const;
766 const char16_t* getText(size_t* outLen) const;
771 const char16_t* getNamespacePrefix(size_t* outLen) const;
773 const char16_t* getNamespaceUri(size_t* outLen) const;
777 const char16_t* getElementNamespace(size_t* outLen) const;
779 const char16_t* getElementName(size_t* outLen) const;
[all …]
/frameworks/native/libs/binder/tests/
DbinderRecordReplayTest.cpp82 GENERATE_GETTER_SETTER_PRIMITIVE(Char, char16_t);
94 GENERATE_GETTER_SETTER(CharArray, std::vector<char16_t>);
255 recordReplay(&IBinderRecordReplayTest::setChar, char16_t{'G'}, in TEST_F()
256 &IBinderRecordReplayTest::getChar, char16_t{'K'}); in TEST_F()
308 std::vector<char16_t> savedArray = {char16_t{'G'}, char16_t{'L'}, char16_t{'K'}, char16_t{'T'}}; in TEST_F()
309 std::vector<char16_t> changedArray = {char16_t{'X'}, char16_t{'Y'}, char16_t{'Z'}}; in TEST_F()
DbinderParcelBenchmark.cpp33 } else if constexpr (std::is_same_v<T, char16_t>) { in writeVector()
50 } else if constexpr (std::is_same_v<T, char16_t>) { in readVector()
155 BM_ParcelVector<char16_t>(state); in BM_CharVector()
/frameworks/native/libs/binder/ndk/
Dparcel.cpp101 binder_status_t WriteArray<char16_t>(AParcel* parcel, const char16_t* array, int32_t length) { in WriteArray()
107 if (__builtin_smul_overflow(sizeof(char16_t), length, &size)) return STATUS_NO_MEMORY; in WriteArray()
155 binder_status_t ReadArray<char16_t>(const AParcel* parcel, void* arrayData, in ReadArray()
156 ContiguousArrayAllocator<char16_t> allocator) { in ReadArray()
164 char16_t* array; in ReadArray()
177 if (__builtin_smul_overflow(sizeof(char16_t), length, &size)) return STATUS_NO_MEMORY; in ReadArray()
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()
366 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString()
538 binder_status_t AParcel_writeChar(AParcel* parcel, char16_t value) { in AParcel_writeChar()
[all …]
/frameworks/native/libs/input/
DKeyCharacterMap.cpp73 static String8 toString(const char16_t* chars, size_t numChars) { in toString()
202 char16_t KeyCharacterMap::getDisplayLabel(int32_t keyCode) const { in getDisplayLabel()
203 char16_t result = 0; in getDisplayLabel()
214 char16_t KeyCharacterMap::getNumber(int32_t keyCode) const { in getNumber()
215 char16_t result = 0; in getNumber()
226 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const { in getCharacter()
227 char16_t result = 0; in getCharacter()
261 char16_t KeyCharacterMap::getMatch(int32_t keyCode, const char16_t* chars, size_t numChars, in getMatch()
263 char16_t result = 0; in getMatch()
287 bool KeyCharacterMap::getEvents(int32_t deviceId, const char16_t* chars, size_t numChars, in getEvents()
[all …]
/frameworks/av/media/module/id3/
DID3.cpp651 const char16_t *framedata = (const char16_t *) (frameData + 1); in getstring()
652 char16_t *framedatacopy = NULL; in getstring()
655 framedatacopy = new (std::nothrow) char16_t[len]; in getstring()
676 const char16_t *framedata = (const char16_t *) (frameData + 1); in getstring()
677 char16_t *framedatacopy = NULL; in getstring()
683 framedatacopy = new (std::nothrow) char16_t[len]; in getstring()
/frameworks/native/libs/binder/rust/tests/
Dserialization.cpp48 const char16_t TESTDATA_CHARS[4] = {0, 42, 117, numeric_limits<char16_t>::max()};
156 vector<char16_t> chars(begin(TESTDATA_CHARS), end(TESTDATA_CHARS)); in TEST_F()
159 data.writeChar(numeric_limits<char16_t>::max()); in TEST_F()
166 vector<char16_t> read_chars; in TEST_F()
167 optional<vector<char16_t>> maybe_chars; in TEST_F()
170 ASSERT_EQ(reply.readChar(), numeric_limits<char16_t>::max()); in TEST_F()
Dserialization.hpp44 extern const char16_t TESTDATA_CHARS[4];
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp244 const char16_t* ns16 = NULL; in android_content_XmlBlock_nativeGetAttributeIndex()
247 ns16 = reinterpret_cast<const char16_t*>(env->GetStringChars(ns, NULL)); in android_content_XmlBlock_nativeGetAttributeIndex()
251 const char16_t* name16 = reinterpret_cast<const char16_t*>( in android_content_XmlBlock_nativeGetAttributeIndex()
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel.h376 typedef bool (*AParcel_charArrayAllocator)(void* arrayData, int32_t length, char16_t** outBuffer);
708 binder_status_t AParcel_writeChar(AParcel* parcel, char16_t value) __INTRODUCED_IN(29);
816 binder_status_t AParcel_readChar(const AParcel* parcel, char16_t* value) __INTRODUCED_IN(29);
943 binder_status_t AParcel_writeCharArray(AParcel* parcel, const char16_t* arrayData, int32_t length)
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_to_string.h152 } else if constexpr (std::is_same_v<char16_t, _T>) {
157 return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>().to_bytes(t);
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dbinder.cpp165 PARCEL_READ_OPT_STATUS(char16_t, readChar),
190 const char16_t* str = p.readString16Inplace(&outLen); in __anonb0ef96d30902()
191 std::string bytes = str ? HexString(str, sizeof(char16_t) * (outLen + 1)) : "null"; in __anonb0ef96d30902()
249 PARCEL_READ_WITH_STATUS(std::unique_ptr<std::vector<char16_t>>, readCharVector),
250 PARCEL_READ_WITH_STATUS(std::optional<std::vector<char16_t>>, readCharVector),
251 PARCEL_READ_WITH_STATUS(std::vector<char16_t>, readCharVector),
262 PARCEL_READ_WITH_STATUS(std::array<char16_t COMMA 3>, readFixedArray),
263 PARCEL_READ_WITH_STATUS(std::optional<std::array<char16_t COMMA 3>>, readFixedArray),
Dbinder_ndk.cpp128 PARCEL_READ(char16_t, AParcel_readChar),
163 PARCEL_READ(std::vector<char16_t>, ndk::AParcel_readVector),
164 PARCEL_READ(std::optional<std::vector<char16_t>>, ndk::AParcel_readVector),
172 PARCEL_READ(std::array<char16_t COMMA 3>, ndk::AParcel_readData),
/frameworks/base/libs/androidfw/
DResourceTypes.cpp91 inline int isspace16(char16_t c) { in isspace16()
103 static void strcpy16_dtoh(char16_t* dst, const uint16_t* src, size_t avail) in strcpy16_dtoh()
105 char16_t* last = dst + avail - 1; in strcpy16_dtoh()
107 char16_t s = dtohs(static_cast<char16_t>(*src)); in strcpy16_dtoh()
835 return StringPiece16(reinterpret_cast<const char16_t*>(str.unsafe_ptr()), in stringAt()
885 auto u16str = (char16_t *)calloc(*u16len+1, sizeof(char16_t)); in stringAt()
899 mHeader->stringCount*sizeof(char16_t**)); in stringAt()
904 static_cast<size_t>(mHeader->stringCount*sizeof(char16_t**))); in stringAt()
906 mCache = (char16_t**)calloc(mHeader->stringCount, sizeof(char16_t*)); in stringAt()
909 (int)(mHeader->stringCount*sizeof(char16_t**))); in stringAt()
[all …]
/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_property_fuzzer.cpp101 char16_t* data = nullptr; in process()
105 data = const_cast<char16_t*>(s.c_str()); in process()
/frameworks/native/libs/binder/
DParcel.cpp962 status_t Parcel::writeInterfaceToken(const char16_t* str, size_t len) { in writeInterfaceToken()
1026 bool Parcel::enforceInterface(const char16_t* interface, in enforceInterface()
1069 const char16_t* parcel_interface = readString16Inplace(&parcel_interface_len); in enforceInterface()
1071 (!len || !memcmp(parcel_interface, interface, len * sizeof (char16_t)))) { in enforceInterface()
1254 void* dst = writeInplace((utf16Len + 1) * sizeof(char16_t)); in writeUtf8AsUtf16()
1259 utf8_to_utf16(strData, strLen, (char16_t*)dst, (size_t) utf16Len + 1); in writeUtf8AsUtf16()
1295 status_t Parcel::writeCharVector(const std::vector<char16_t>& val) { return writeData(val); } in writeCharVector()
1296 status_t Parcel::writeCharVector(const std::optional<std::vector<char16_t>>& val) { return writeDat… in writeCharVector()
1297 status_t Parcel::writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val) { return writeD… in writeCharVector()
1357 status_t Parcel::readCharVector(std::optional<std::vector<char16_t>>* val) const { return readData(… in readCharVector()
[all …]

123