Lines Matching defs:str
630 const String16 str(readString16());
631 if (str == interface) {
635 String8(interface).string(), String8(str).string());
766 status_t Parcel::writeUtf8AsUtf16(const std::string& str) {
767 const uint8_t* strData = (uint8_t*)str.data();
768 const size_t strLen= str.length();
790 status_t Parcel::writeUtf8AsUtf16(const std::unique_ptr<std::string>& str) {
791 if (!str) {
794 return writeUtf8AsUtf16(*str);
1033 status_t Parcel::writeCString(const char* str)
1035 return write(str, strlen(str)+1);
1038 status_t Parcel::writeString8(const String8& str)
1040 status_t err = writeInt32(str.bytes());
1044 if (str.bytes() > 0 && err == NO_ERROR) {
1045 err = write(str.string(), str.bytes()+1);
1050 status_t Parcel::writeString16(const std::unique_ptr<String16>& str)
1052 if (!str) {
1056 return writeString16(*str);
1059 status_t Parcel::writeString16(const String16& str)
1061 return writeString16(str.string(), str.size());
1064 status_t Parcel::writeString16(const char16_t* str, size_t len)
1066 if (str == NULL) return writeInt32(-1);
1073 memcpy(data, str, len);
1973 status_t Parcel::readUtf8FromUtf16(std::string* str) const {
1982 str->clear();
1993 str->resize(utf8Size);
1994 utf16_to_utf8(src, utf16Size, &((*str)[0]), utf8Size);
1995 str->resize(utf8Size - 1);
1999 status_t Parcel::readUtf8FromUtf16(std::unique_ptr<std::string>* str) const {
2003 str->reset();
2010 str->reset(new (std::nothrow) std::string());
2011 return readUtf8FromUtf16(str->get());
2018 const char* str = reinterpret_cast<const char*>(mData+mDataPos);
2020 const char* eos = reinterpret_cast<const char*>(memchr(str, 0, avail));
2022 const size_t len = eos - str;
2025 return str;
2058 const char* str = (const char*)readInplace(size + 1);
2059 if (str == NULL) {
2062 pArg->setTo(str, size);
2069 const char16_t* str = readString16Inplace(&len);
2070 if (str) return String16(str, len);
2101 const char16_t* str = readString16Inplace(&len);
2102 if (str) {
2103 pArg->setTo(str, len);
2117 const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t));
2118 if (str != NULL) {
2119 return str;