Lines Matching refs:std
123 status_t writeString16(const std::optional<String16>& str);
124 status_t writeString16(const std::unique_ptr<String16>& str);
134 status_t writeUtf8AsUtf16(const std::string& str);
135 status_t writeUtf8AsUtf16(const std::optional<std::string>& str);
136 status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str);
138 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
139 status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val);
140 status_t writeByteVector(const std::vector<int8_t>& val);
141 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
142 status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val);
143 status_t writeByteVector(const std::vector<uint8_t>& val);
144 status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
145 status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val);
146 status_t writeInt32Vector(const std::vector<int32_t>& val);
147 status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
148 status_t writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val);
149 status_t writeInt64Vector(const std::vector<int64_t>& val);
150 status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
151 status_t writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val);
152 status_t writeUint64Vector(const std::vector<uint64_t>& val);
153 status_t writeFloatVector(const std::optional<std::vector<float>>& val);
154 status_t writeFloatVector(const std::unique_ptr<std::vector<float>>& val);
155 status_t writeFloatVector(const std::vector<float>& val);
156 status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
157 status_t writeDoubleVector(const std::unique_ptr<std::vector<double>>& val);
158 status_t writeDoubleVector(const std::vector<double>& val);
159 status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
160 status_t writeBoolVector(const std::unique_ptr<std::vector<bool>>& val);
161 status_t writeBoolVector(const std::vector<bool>& val);
162 status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
163 status_t writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val);
164 status_t writeCharVector(const std::vector<char16_t>& val);
166 const std::optional<std::vector<std::optional<String16>>>& val);
168 const std::unique_ptr<std::vector<std::unique_ptr<String16>>>& val);
169 status_t writeString16Vector(const std::vector<String16>& val);
171 const std::optional<std::vector<std::optional<std::string>>>& val);
173 const std::unique_ptr<std::vector<std::unique_ptr<std::string>>>& val);
174 status_t writeUtf8VectorAsUtf16Vector(const std::vector<std::string>& val);
176 status_t writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val);
177 status_t writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val);
178 status_t writeStrongBinderVector(const std::vector<sp<IBinder>>& val);
182 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
183 status_t writeEnumVector(const std::vector<T>& val);
184 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
185 status_t writeEnumVector(const std::optional<std::vector<T>>& val);
186 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
187 status_t writeEnumVector(const std::unique_ptr<std::vector<T>>& val);
189 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
190 status_t writeEnumVector(const std::vector<T>& val);
191 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
192 status_t writeEnumVector(const std::optional<std::vector<T>>& val);
193 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
194 status_t writeEnumVector(const std::unique_ptr<std::vector<T>>& val);
197 status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val);
199 status_t writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val);
201 status_t writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val);
203 status_t writeParcelableVector(const std::vector<T>& val);
206 status_t writeNullableParcelable(const std::optional<T>& parcelable);
208 status_t writeNullableParcelable(const std::unique_ptr<T>& parcelable);
219 status_t writeVectorSize(const std::vector<T>& val);
221 status_t writeVectorSize(const std::optional<std::vector<T>>& val);
223 status_t writeVectorSize(const std::unique_ptr<std::vector<T>>& val);
258 const std::optional<std::vector<base::unique_fd>>& val);
260 const std::unique_ptr<std::vector<base::unique_fd>>& val);
262 const std::vector<base::unique_fd>& val);
308 status_t readUtf8FromUtf16(std::string* str) const;
309 status_t readUtf8FromUtf16(std::optional<std::string>* str) const;
310 status_t readUtf8FromUtf16(std::unique_ptr<std::string>* str) const;
317 status_t readString16(std::optional<String16>* pArg) const;
318 status_t readString16(std::unique_ptr<String16>* pArg) const;
326 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
327 status_t readEnumVector(std::vector<T>* val) const;
328 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
329 status_t readEnumVector(std::unique_ptr<std::vector<T>>* val) const;
330 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
331 status_t readEnumVector(std::optional<std::vector<T>>* val) const;
333 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
334 status_t readEnumVector(std::vector<T>* val) const;
335 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
336 status_t readEnumVector(std::unique_ptr<std::vector<T>>* val) const;
337 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
338 status_t readEnumVector(std::optional<std::vector<T>>* val) const;
342 std::optional<std::vector<std::optional<T>>>* val) const;
345 std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const;
347 status_t readParcelableVector(std::vector<T>* val) const;
352 status_t readParcelable(std::optional<T>* parcelable) const;
354 status_t readParcelable(std::unique_ptr<T>* parcelable) const;
362 status_t readStrongBinderVector(std::optional<std::vector<sp<IBinder>>>* val) const;
363 status_t readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const;
364 status_t readStrongBinderVector(std::vector<sp<IBinder>>* val) const;
366 status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
367 status_t readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const;
368 status_t readByteVector(std::vector<int8_t>* val) const;
369 status_t readByteVector(std::optional<std::vector<uint8_t>>* val) const;
370 status_t readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const;
371 status_t readByteVector(std::vector<uint8_t>* val) const;
372 status_t readInt32Vector(std::optional<std::vector<int32_t>>* val) const;
373 status_t readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const;
374 status_t readInt32Vector(std::vector<int32_t>* val) const;
375 status_t readInt64Vector(std::optional<std::vector<int64_t>>* val) const;
376 status_t readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const;
377 status_t readInt64Vector(std::vector<int64_t>* val) const;
378 status_t readUint64Vector(std::optional<std::vector<uint64_t>>* val) const;
379 status_t readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const;
380 status_t readUint64Vector(std::vector<uint64_t>* val) const;
381 status_t readFloatVector(std::optional<std::vector<float>>* val) const;
382 status_t readFloatVector(std::unique_ptr<std::vector<float>>* val) const;
383 status_t readFloatVector(std::vector<float>* val) const;
384 status_t readDoubleVector(std::optional<std::vector<double>>* val) const;
385 status_t readDoubleVector(std::unique_ptr<std::vector<double>>* val) const;
386 status_t readDoubleVector(std::vector<double>* val) const;
387 status_t readBoolVector(std::optional<std::vector<bool>>* val) const;
388 status_t readBoolVector(std::unique_ptr<std::vector<bool>>* val) const;
389 status_t readBoolVector(std::vector<bool>* val) const;
390 status_t readCharVector(std::optional<std::vector<char16_t>>* val) const;
391 status_t readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const;
392 status_t readCharVector(std::vector<char16_t>* val) const;
394 std::optional<std::vector<std::optional<String16>>>* val) const;
396 std::unique_ptr<std::vector<std::unique_ptr<String16>>>* val) const;
397 status_t readString16Vector(std::vector<String16>* val) const;
399 std::optional<std::vector<std::optional<std::string>>>* val) const;
401 std::unique_ptr<std::vector<std::unique_ptr<std::string>>>* val) const;
402 status_t readUtf8VectorFromUtf16Vector(std::vector<std::string>* val) const;
411 status_t resizeOutVector(std::vector<T>* val) const;
413 status_t resizeOutVector(std::optional<std::vector<T>>* val) const;
415 status_t resizeOutVector(std::unique_ptr<std::vector<T>>* val) const;
417 status_t reserveOutVector(std::vector<T>* val, size_t* size) const;
419 status_t reserveOutVector(std::optional<std::vector<T>>* val,
422 status_t reserveOutVector(std::unique_ptr<std::vector<T>>* val,
457 std::optional<std::vector<base::unique_fd>>* val) const;
459 std::unique_ptr<std::vector<base::unique_fd>>* val) const;
461 std::vector<base::unique_fd>* val) const;
534 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
536 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
539 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
541 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
546 status_t readByteVectorInternal(std::vector<T>* val, size_t size) const;
549 status_t unsafeReadTypedVector(std::vector<T>* val,
552 status_t readNullableTypedVector(std::optional<std::vector<T>>* val,
555 status_t readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
558 status_t readTypedVector(std::vector<T>* val,
561 status_t unsafeWriteTypedVector(const std::vector<T>& val,
564 status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
567 status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
570 status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
573 status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
576 status_t writeTypedVector(const std::vector<T>& val,
579 status_t writeTypedVector(const std::vector<T>& val,
752 status_t Parcel::writeVectorSize(const std::vector<T>& val) {
760 status_t Parcel::writeVectorSize(const std::optional<std::vector<T>>& val) {
769 status_t Parcel::writeVectorSize(const std::unique_ptr<std::vector<T>>& val) {
778 status_t Parcel::resizeOutVector(std::vector<T>* val) const {
793 status_t Parcel::resizeOutVector(std::optional<std::vector<T>>* val) const {
809 status_t Parcel::resizeOutVector(std::unique_ptr<std::vector<T>>* val) const {
818 val->reset(new std::vector<T>(size_t(size)));
825 status_t Parcel::reserveOutVector(std::vector<T>* val, size_t* size) const {
841 status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
860 status_t Parcel::reserveOutVector(std::unique_ptr<std::vector<T>>* val,
870 val->reset(new std::vector<T>());
913 std::vector<T>* val,
948 status_t Parcel::readTypedVector(std::vector<T>* val,
954 status_t Parcel::readNullableTypedVector(std::optional<std::vector<T>>* val,
978 status_t Parcel::readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
990 val->reset(new std::vector<T>());
1002 status_t Parcel::unsafeWriteTypedVector(const std::vector<T>& val,
1004 if (val.size() > std::numeric_limits<int32_t>::max()) {
1026 status_t Parcel::writeTypedVector(const std::vector<T>& val,
1032 status_t Parcel::writeTypedVector(const std::vector<T>& val,
1038 status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
1048 status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
1058 status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
1068 status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
1078 status_t Parcel::readParcelableVector(std::vector<T>* val) const {
1083 status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
1096 using NullableT = std::optional<T>;
1107 status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
1118 val->reset(new std::vector<std::unique_ptr<T>>());
1120 using NullableT = std::unique_ptr<T>;
1131 status_t Parcel::readParcelable(std::optional<T>* parcelable) const {
1154 status_t Parcel::readParcelable(std::unique_ptr<T>* parcelable) const {
1177 status_t Parcel::writeNullableParcelable(const std::optional<T>& parcelable) {
1182 status_t Parcel::writeNullableParcelable(const std::unique_ptr<T>& parcelable) {
1187 status_t Parcel::writeParcelableVector(const std::vector<T>& val) {
1192 status_t Parcel::writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val) {
1197 using NullableT = std::optional<T>;
1202 status_t Parcel::writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) {
1211 status_t Parcel::writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) {
1216 using NullableT = std::unique_ptr<T>;
1220 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
1224 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
1229 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1230 status_t Parcel::writeEnumVector(const std::vector<T>& val) {
1233 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1234 status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
1238 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1239 status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
1243 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1244 status_t Parcel::writeEnumVector(const std::vector<T>& val) {
1247 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1248 status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
1251 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1252 status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
1256 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
1260 template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
1266 inline status_t Parcel::readByteVectorInternal(std::vector<T>* val, size_t size) const {
1276 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1277 status_t Parcel::readEnumVector(std::vector<T>* val) const {
1282 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1283 status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
1293 template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1294 status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
1304 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1305 status_t Parcel::readEnumVector(std::vector<T>* val) const {
1308 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1309 status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
1312 template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
1313 status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {