Lines Matching defs:val
140 status_t writeInt32(int32_t val);
141 status_t writeUint32(uint32_t val);
142 status_t writeInt64(int64_t val);
143 status_t writeUint64(uint64_t val);
144 status_t writeFloat(float val);
145 status_t writeDouble(double val);
153 status_t writeStrongBinder(const sp<IBinder>& val);
154 status_t writeInt32Array(size_t len, const int32_t *val);
155 status_t writeByteArray(size_t len, const uint8_t *val);
156 status_t writeBool(bool val);
157 status_t writeChar(char16_t val);
158 status_t writeByte(int8_t val);
165 status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
166 status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) __attribute__((deprecated("use std::optional version instead")));
167 status_t writeByteVector(const std::vector<int8_t>& val);
168 status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
169 status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) __attribute__((deprecated("use std::optional version instead")));
170 status_t writeByteVector(const std::vector<uint8_t>& val);
171 status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
172 status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val) __attribute__((deprecated("use std::optional version instead")));
173 status_t writeInt32Vector(const std::vector<int32_t>& val);
174 status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
175 status_t writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val) __attribute__((deprecated("use std::optional version instead")));
176 status_t writeInt64Vector(const std::vector<int64_t>& val);
177 status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
178 status_t writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val) __attribute__((deprecated("use std::optional version instead")));
179 status_t writeUint64Vector(const std::vector<uint64_t>& val);
180 status_t writeFloatVector(const std::optional<std::vector<float>>& val);
181 status_t writeFloatVector(const std::unique_ptr<std::vector<float>>& val) __attribute__((deprecated("use std::optional version instead")));
182 status_t writeFloatVector(const std::vector<float>& val);
183 status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
184 status_t writeDoubleVector(const std::unique_ptr<std::vector<double>>& val) __attribute__((deprecated("use std::optional version instead")));
185 status_t writeDoubleVector(const std::vector<double>& val);
186 status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
187 status_t writeBoolVector(const std::unique_ptr<std::vector<bool>>& val) __attribute__((deprecated("use std::optional version instead")));
188 status_t writeBoolVector(const std::vector<bool>& val);
189 status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
190 status_t writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val) __attribute__((deprecated("use std::optional version instead")));
191 status_t writeCharVector(const std::vector<char16_t>& val);
193 const std::optional<std::vector<std::optional<String16>>>& val);
195 const std::unique_ptr<std::vector<std::unique_ptr<String16>>>& val) __attribute__((deprecated("use std::optional version instead")));
196 status_t writeString16Vector(const std::vector<String16>& val);
198 const std::optional<std::vector<std::optional<std::string>>>& val);
200 const std::unique_ptr<std::vector<std::unique_ptr<std::string>>>& val) __attribute__((deprecated("use std::optional version instead")));
201 status_t writeUtf8VectorAsUtf16Vector(const std::vector<std::string>& val);
203 status_t writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val);
204 status_t writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val) __attribute__((deprecated("use std::optional version instead")));
205 status_t writeStrongBinderVector(const std::vector<sp<IBinder>>& val);
210 status_t writeEnumVector(const std::vector<T>& val)
211 { return writeData(val); }
213 status_t writeEnumVector(const std::optional<std::vector<T>>& val)
214 { return writeData(val); }
216 status_t writeEnumVector(const std::unique_ptr<std::vector<T>>& val) __attribute__((deprecated("use std::optional version instead")))
217 { return writeData(val); }
220 status_t writeEnumVector(const std::vector<T>& val)
221 { return writeData(val); }
223 status_t writeEnumVector(const std::optional<std::vector<T>>& val)
224 { return writeData(val); }
226 status_t writeEnumVector(const std::unique_ptr<std::vector<T>>& val) __attribute__((deprecated("use std::optional version instead")))
227 { return writeData(val); }
230 status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val)
231 { return writeData(val); }
233 status_t writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) __attribute__((deprecated("use std::optional version instead")))
234 { return writeData(val); }
236 status_t writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) __attribute__((deprecated("use std::optional version instead")))
237 { return writeData(val); }
239 status_t writeParcelableVector(const std::shared_ptr<std::vector<std::optional<T>>>& val)
240 { return writeData(val); }
242 status_t writeParcelableVector(const std::vector<T>& val)
243 { return writeData(val); }
255 status_t write(const Flattenable<T>& val);
258 status_t write(const LightFlattenable<T>& val);
261 status_t writeVectorSize(const std::vector<T>& val);
263 status_t writeVectorSize(const std::optional<std::vector<T>>& val);
265 status_t writeVectorSize(const std::unique_ptr<std::vector<T>>& val) __attribute__((deprecated("use std::optional version instead")));
300 const std::optional<std::vector<base::unique_fd>>& val);
302 const std::unique_ptr<std::vector<base::unique_fd>>& val) __attribute__((deprecated("use std::optional version instead")));
304 const std::vector<base::unique_fd>& val);
319 status_t writeObject(const flat_binder_object& val, bool nullMetaData);
362 status_t readStrongBinder(sp<IBinder>* val) const;
363 status_t readNullableStrongBinder(sp<IBinder>* val) const;
368 status_t readEnumVector(std::vector<T>* val) const
369 { return readData(val); }
371 status_t readEnumVector(std::unique_ptr<std::vector<T>>* val) const __attribute__((deprecated("use std::optional version instead")))
372 { return readData(val); }
374 status_t readEnumVector(std::optional<std::vector<T>>* val) const
375 { return readData(val); }
378 status_t readEnumVector(std::vector<T>* val) const
379 { return readData(val); }
381 status_t readEnumVector(std::unique_ptr<std::vector<T>>* val) const __attribute__((deprecated("use std::optional version instead")))
382 { return readData(val); }
384 status_t readEnumVector(std::optional<std::vector<T>>* val) const
385 { return readData(val); }
389 std::optional<std::vector<std::optional<T>>>* val) const
390 { return readData(val); }
393 std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const __attribute__((deprecated("use std::optional version instead")))
394 { return readData(val); }
396 status_t readParcelableVector(std::vector<T>* val) const
397 { return readData(val); }
411 status_t readStrongBinder(sp<T>* val) const;
414 status_t readNullableStrongBinder(sp<T>* val) const;
416 status_t readStrongBinderVector(std::optional<std::vector<sp<IBinder>>>* val) const;
417 status_t readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const __attribute__((deprecated("use std::optional version instead")));
418 status_t readStrongBinderVector(std::vector<sp<IBinder>>* val) const;
420 status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
421 status_t readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const __attribute__((deprecated("use std::optional version instead")));
422 status_t readByteVector(std::vector<int8_t>* val) const;
423 status_t readByteVector(std::optional<std::vector<uint8_t>>* val) const;
424 status_t readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const __attribute__((deprecated("use std::optional version instead")));
425 status_t readByteVector(std::vector<uint8_t>* val) const;
426 status_t readInt32Vector(std::optional<std::vector<int32_t>>* val) const;
427 status_t readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const __attribute__((deprecated("use std::optional version instead")));
428 status_t readInt32Vector(std::vector<int32_t>* val) const;
429 status_t readInt64Vector(std::optional<std::vector<int64_t>>* val) const;
430 status_t readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const __attribute__((deprecated("use std::optional version instead")));
431 status_t readInt64Vector(std::vector<int64_t>* val) const;
432 status_t readUint64Vector(std::optional<std::vector<uint64_t>>* val) const;
433 status_t readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const __attribute__((deprecated("use std::optional version instead")));
434 status_t readUint64Vector(std::vector<uint64_t>* val) const;
435 status_t readFloatVector(std::optional<std::vector<float>>* val) const;
436 status_t readFloatVector(std::unique_ptr<std::vector<float>>* val) const __attribute__((deprecated("use std::optional version instead")));
437 status_t readFloatVector(std::vector<float>* val) const;
438 status_t readDoubleVector(std::optional<std::vector<double>>* val) const;
439 status_t readDoubleVector(std::unique_ptr<std::vector<double>>* val) const __attribute__((deprecated("use std::optional version instead")));
440 status_t readDoubleVector(std::vector<double>* val) const;
441 status_t readBoolVector(std::optional<std::vector<bool>>* val) const;
442 status_t readBoolVector(std::unique_ptr<std::vector<bool>>* val) const __attribute__((deprecated("use std::optional version instead")));
443 status_t readBoolVector(std::vector<bool>* val) const;
444 status_t readCharVector(std::optional<std::vector<char16_t>>* val) const;
445 status_t readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const __attribute__((deprecated("use std::optional version instead")));
446 status_t readCharVector(std::vector<char16_t>* val) const;
448 std::optional<std::vector<std::optional<String16>>>* val) const;
450 std::unique_ptr<std::vector<std::unique_ptr<String16>>>* val) const __attribute__((deprecated("use std::optional version instead")));
451 status_t readString16Vector(std::vector<String16>* val) const;
453 std::optional<std::vector<std::optional<std::string>>>* val) const;
455 std::unique_ptr<std::vector<std::unique_ptr<std::string>>>* val) const __attribute__((deprecated("use std::optional version instead")));
456 status_t readUtf8VectorFromUtf16Vector(std::vector<std::string>* val) const;
459 status_t read(Flattenable<T>& val) const;
462 status_t read(LightFlattenable<T>& val) const;
466 status_t resizeOutVector(std::vector<T>* val) const;
468 status_t resizeOutVector(std::optional<std::vector<T>>* val) const;
470 status_t resizeOutVector(std::unique_ptr<std::vector<T>>* val) const __attribute__((deprecated("use std::optional version instead")));
496 base::unique_fd* val) const;
499 status_t readUniqueParcelFileDescriptor(base::unique_fd* val) const;
504 std::optional<std::vector<base::unique_fd>>* val) const;
506 std::unique_ptr<std::vector<base::unique_fd>>* val) const __attribute__((deprecated("use std::optional version instead")));
508 std::vector<base::unique_fd>* val) const;
549 status_t writePointer(uintptr_t val);
570 status_t writeAligned(T val);
1188 const Flattenable<T>& val;
1189 explicit FlattenableHelper(const Flattenable<T>& _val) : val(_val) { }
1195 return val.getFlattenedSize();
1198 return val.getFdCount();
1201 return val.flatten(buffer, size, fds, count);
1204 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count);
1207 status_t write(const FlattenableHelperInterface& val);
1208 status_t read(FlattenableHelperInterface& val) const;
1236 status_t Parcel::write(const Flattenable<T>& val) {
1237 const FlattenableHelper<T> helper(val);
1242 status_t Parcel::write(const LightFlattenable<T>& val) {
1243 size_t size(val.getFlattenedSize());
1244 if (!val.isFixedSize()) {
1257 return val.flatten(buffer, size);
1263 status_t Parcel::read(Flattenable<T>& val) const {
1264 FlattenableHelper<T> helper(val);
1269 status_t Parcel::read(LightFlattenable<T>& val) const {
1271 if (val.isFixedSize()) {
1272 size = val.getFlattenedSize();
1284 val.unflatten(buffer, size);
1290 status_t Parcel::writeVectorSize(const std::vector<T>& val) {
1291 if (val.size() > INT32_MAX) {
1294 return writeInt32(static_cast<int32_t>(val.size()));
1298 status_t Parcel::writeVectorSize(const std::optional<std::vector<T>>& val) {
1299 if (!val) {
1303 return writeVectorSize(*val);
1307 status_t Parcel::writeVectorSize(const std::unique_ptr<std::vector<T>>& val) {
1308 if (!val) {
1312 return writeVectorSize(*val);
1316 status_t Parcel::resizeOutVector(std::vector<T>* val) const {
1326 val->resize(size_t(size));
1331 status_t Parcel::resizeOutVector(std::optional<std::vector<T>>* val) const {
1338 val->reset();
1340 val->emplace(size_t(size));
1347 status_t Parcel::resizeOutVector(std::unique_ptr<std::vector<T>>* val) const {
1354 val->reset();
1356 val->reset(new std::vector<T>(size_t(size)));
1363 status_t Parcel::readStrongBinder(sp<T>* val) const {
1368 *val = interface_cast<T>(tmp);
1370 if (val->get() == nullptr) {
1379 status_t Parcel::readNullableStrongBinder(sp<T>* val) const {
1384 *val = interface_cast<T>(tmp);
1386 if (val->get() == nullptr && tmp.get() != nullptr) {