• Home
  • Raw
  • Download

Lines Matching refs:val

786 status_t Parcel::writeByteVector(const std::vector<int8_t>& val) {  in writeByteVector()  argument
787 return writeByteVectorInternal(val.data(), val.size()); in writeByteVector()
790 status_t Parcel::writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) in writeByteVector() argument
792 if (!val) return writeInt32(-1); in writeByteVector()
793 return writeByteVectorInternal(val->data(), val->size()); in writeByteVector()
796 status_t Parcel::writeByteVector(const std::vector<uint8_t>& val) { in writeByteVector() argument
797 return writeByteVectorInternal(reinterpret_cast<const int8_t*>(val.data()), val.size()); in writeByteVector()
800 status_t Parcel::writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) in writeByteVector() argument
802 if (!val) return writeInt32(-1); in writeByteVector()
803 return writeByteVectorInternal(reinterpret_cast<const int8_t*>(val->data()), val->size()); in writeByteVector()
806 status_t Parcel::writeInt32Vector(const std::vector<int32_t>& val) in writeInt32Vector() argument
808 return writeTypedVector(val, &Parcel::writeInt32); in writeInt32Vector()
811 status_t Parcel::writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val) in writeInt32Vector() argument
813 return writeNullableTypedVector(val, &Parcel::writeInt32); in writeInt32Vector()
816 status_t Parcel::writeInt64Vector(const std::vector<int64_t>& val) in writeInt64Vector() argument
818 return writeTypedVector(val, &Parcel::writeInt64); in writeInt64Vector()
821 status_t Parcel::writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val) in writeInt64Vector() argument
823 return writeNullableTypedVector(val, &Parcel::writeInt64); in writeInt64Vector()
826 status_t Parcel::writeUint64Vector(const std::vector<uint64_t>& val) in writeUint64Vector() argument
828 return writeTypedVector(val, &Parcel::writeUint64); in writeUint64Vector()
831 status_t Parcel::writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val) in writeUint64Vector() argument
833 return writeNullableTypedVector(val, &Parcel::writeUint64); in writeUint64Vector()
836 status_t Parcel::writeFloatVector(const std::vector<float>& val) in writeFloatVector() argument
838 return writeTypedVector(val, &Parcel::writeFloat); in writeFloatVector()
841 status_t Parcel::writeFloatVector(const std::unique_ptr<std::vector<float>>& val) in writeFloatVector() argument
843 return writeNullableTypedVector(val, &Parcel::writeFloat); in writeFloatVector()
846 status_t Parcel::writeDoubleVector(const std::vector<double>& val) in writeDoubleVector() argument
848 return writeTypedVector(val, &Parcel::writeDouble); in writeDoubleVector()
851 status_t Parcel::writeDoubleVector(const std::unique_ptr<std::vector<double>>& val) in writeDoubleVector() argument
853 return writeNullableTypedVector(val, &Parcel::writeDouble); in writeDoubleVector()
856 status_t Parcel::writeBoolVector(const std::vector<bool>& val) in writeBoolVector() argument
858 return writeTypedVector(val, &Parcel::writeBool); in writeBoolVector()
861 status_t Parcel::writeBoolVector(const std::unique_ptr<std::vector<bool>>& val) in writeBoolVector() argument
863 return writeNullableTypedVector(val, &Parcel::writeBool); in writeBoolVector()
866 status_t Parcel::writeCharVector(const std::vector<char16_t>& val) in writeCharVector() argument
868 return writeTypedVector(val, &Parcel::writeChar); in writeCharVector()
871 status_t Parcel::writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val) in writeCharVector() argument
873 return writeNullableTypedVector(val, &Parcel::writeChar); in writeCharVector()
876 status_t Parcel::writeString16Vector(const std::vector<String16>& val) in writeString16Vector() argument
878 return writeTypedVector(val, &Parcel::writeString16); in writeString16Vector()
882 const std::unique_ptr<std::vector<std::unique_ptr<String16>>>& val) in writeString16Vector() argument
884 return writeNullableTypedVector(val, &Parcel::writeString16); in writeString16Vector()
888 const std::unique_ptr<std::vector<std::unique_ptr<std::string>>>& val) { in writeUtf8VectorAsUtf16Vector() argument
889 return writeNullableTypedVector(val, &Parcel::writeUtf8AsUtf16); in writeUtf8VectorAsUtf16Vector()
892 status_t Parcel::writeUtf8VectorAsUtf16Vector(const std::vector<std::string>& val) { in writeUtf8VectorAsUtf16Vector() argument
893 return writeTypedVector(val, &Parcel::writeUtf8AsUtf16); in writeUtf8VectorAsUtf16Vector()
896 status_t Parcel::writeInt32(int32_t val) in writeInt32() argument
898 return writeAligned(val); in writeInt32()
901 status_t Parcel::writeUint32(uint32_t val) in writeUint32() argument
903 return writeAligned(val); in writeUint32()
906 status_t Parcel::writeInt32Array(size_t len, const int32_t *val) { in writeInt32Array() argument
913 if (!val) { in writeInt32Array()
918 ret = write(val, len * sizeof(*val)); in writeInt32Array()
922 status_t Parcel::writeByteArray(size_t len, const uint8_t *val) { in writeByteArray() argument
929 if (!val) { in writeByteArray()
934 ret = write(val, len * sizeof(*val)); in writeByteArray()
939 status_t Parcel::writeBool(bool val) in writeBool() argument
941 return writeInt32(int32_t(val)); in writeBool()
944 status_t Parcel::writeChar(char16_t val) in writeChar() argument
946 return writeInt32(int32_t(val)); in writeChar()
949 status_t Parcel::writeByte(int8_t val) in writeByte() argument
951 return writeInt32(int32_t(val)); in writeByte()
954 status_t Parcel::writeInt64(int64_t val) in writeInt64() argument
956 return writeAligned(val); in writeInt64()
959 status_t Parcel::writeUint64(uint64_t val) in writeUint64() argument
961 return writeAligned(val); in writeUint64()
964 status_t Parcel::writePointer(uintptr_t val) in writePointer() argument
966 return writeAligned<binder_uintptr_t>(val); in writePointer()
969 status_t Parcel::writeFloat(float val) in writeFloat() argument
971 return writeAligned(val); in writeFloat()
976 status_t Parcel::writeDouble(double val) in writeDouble() argument
982 u.d = val; in writeDouble()
988 status_t Parcel::writeDouble(double val) in writeDouble() argument
990 return writeAligned(val); in writeDouble()
1054 status_t Parcel::writeStrongBinder(const sp<IBinder>& val) in writeStrongBinder() argument
1056 return flattenBinder(val); in writeStrongBinder()
1059 status_t Parcel::writeStrongBinderVector(const std::vector<sp<IBinder>>& val) in writeStrongBinderVector() argument
1061 return writeTypedVector(val, &Parcel::writeStrongBinder); in writeStrongBinderVector()
1064 status_t Parcel::writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val) in writeStrongBinderVector() argument
1066 return writeNullableTypedVector(val, &Parcel::writeStrongBinder); in writeStrongBinderVector()
1069 status_t Parcel::readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const { in readStrongBinderVector()
1070 return readNullableTypedVector(val, &Parcel::readNullableStrongBinder); in readStrongBinderVector()
1073 status_t Parcel::readStrongBinderVector(std::vector<sp<IBinder>>* val) const { in readStrongBinderVector()
1074 return readTypedVector(val, &Parcel::readStrongBinder); in readStrongBinderVector()
1163 status_t Parcel::writeUniqueFileDescriptorVector(const std::vector<base::unique_fd>& val) { in writeUniqueFileDescriptorVector() argument
1164 return writeTypedVector(val, &Parcel::writeUniqueFileDescriptor); in writeUniqueFileDescriptorVector()
1167 …Parcel::writeUniqueFileDescriptorVector(const std::unique_ptr<std::vector<base::unique_fd>>& val) { in writeUniqueFileDescriptorVector() argument
1168 return writeNullableTypedVector(val, &Parcel::writeUniqueFileDescriptor); in writeUniqueFileDescriptorVector()
1235 status_t Parcel::write(const FlattenableHelperInterface& val) in write() argument
1240 const size_t len = val.getFlattenedSize(); in write()
1241 const size_t fd_count = val.getFdCount(); in write()
1269 err = val.flatten(buf, len, fds, fd_count); in write()
1281 status_t Parcel::writeObject(const flat_binder_object& val, bool nullMetaData) in writeObject() argument
1283 const bool enoughData = (mDataPos+sizeof(val)) <= mDataCapacity; in writeObject()
1287 *reinterpret_cast<flat_binder_object*>(mData+mDataPos) = val; in writeObject()
1290 if (val.hdr.type == BINDER_TYPE_FD) { in writeObject()
1299 if (nullMetaData || val.binder != 0) { in writeObject()
1301 acquire_object(ProcessState::self(), val, this, &mOpenAshmemSize); in writeObject()
1309 const status_t err = growData(sizeof(val)); in writeObject()
1474 status_t Parcel::writeAligned(T val) { in writeAligned() argument
1477 if ((mDataPos+sizeof(val)) <= mDataCapacity) { in writeAligned()
1479 *reinterpret_cast<T*>(mData+mDataPos) = val; in writeAligned()
1480 return finishWrite(sizeof(val)); in writeAligned()
1483 status_t err = growData(sizeof(val)); in writeAligned()
1488 status_t Parcel::readByteVector(std::vector<int8_t>* val) const { in readByteVector()
1490 if (status_t status = reserveOutVector(val, &size); status != OK) return status; in readByteVector()
1491 return readByteVectorInternal(val, size); in readByteVector()
1494 status_t Parcel::readByteVector(std::vector<uint8_t>* val) const { in readByteVector()
1496 if (status_t status = reserveOutVector(val, &size); status != OK) return status; in readByteVector()
1497 return readByteVectorInternal(val, size); in readByteVector()
1500 status_t Parcel::readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const { in readByteVector()
1502 if (status_t status = reserveOutVector(val, &size); status != OK) return status; in readByteVector()
1503 if (val->get() == nullptr) { in readByteVector()
1508 return readByteVectorInternal(val->get(), size); in readByteVector()
1511 status_t Parcel::readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const { in readByteVector()
1513 if (status_t status = reserveOutVector(val, &size); status != OK) return status; in readByteVector()
1514 if (val->get() == nullptr) { in readByteVector()
1519 return readByteVectorInternal(val->get(), size); in readByteVector()
1522 status_t Parcel::readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const { in readInt32Vector()
1523 return readNullableTypedVector(val, &Parcel::readInt32); in readInt32Vector()
1526 status_t Parcel::readInt32Vector(std::vector<int32_t>* val) const { in readInt32Vector()
1527 return readTypedVector(val, &Parcel::readInt32); in readInt32Vector()
1530 status_t Parcel::readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const { in readInt64Vector()
1531 return readNullableTypedVector(val, &Parcel::readInt64); in readInt64Vector()
1534 status_t Parcel::readInt64Vector(std::vector<int64_t>* val) const { in readInt64Vector()
1535 return readTypedVector(val, &Parcel::readInt64); in readInt64Vector()
1538 status_t Parcel::readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const { in readUint64Vector()
1539 return readNullableTypedVector(val, &Parcel::readUint64); in readUint64Vector()
1542 status_t Parcel::readUint64Vector(std::vector<uint64_t>* val) const { in readUint64Vector()
1543 return readTypedVector(val, &Parcel::readUint64); in readUint64Vector()
1546 status_t Parcel::readFloatVector(std::unique_ptr<std::vector<float>>* val) const { in readFloatVector()
1547 return readNullableTypedVector(val, &Parcel::readFloat); in readFloatVector()
1550 status_t Parcel::readFloatVector(std::vector<float>* val) const { in readFloatVector()
1551 return readTypedVector(val, &Parcel::readFloat); in readFloatVector()
1554 status_t Parcel::readDoubleVector(std::unique_ptr<std::vector<double>>* val) const { in readDoubleVector()
1555 return readNullableTypedVector(val, &Parcel::readDouble); in readDoubleVector()
1558 status_t Parcel::readDoubleVector(std::vector<double>* val) const { in readDoubleVector()
1559 return readTypedVector(val, &Parcel::readDouble); in readDoubleVector()
1562 status_t Parcel::readBoolVector(std::unique_ptr<std::vector<bool>>* val) const { in readBoolVector()
1566 val->reset(); in readBoolVector()
1573 val->reset(new (std::nothrow) std::vector<bool>()); in readBoolVector()
1575 status = readBoolVector(val->get()); in readBoolVector()
1578 val->reset(); in readBoolVector()
1584 status_t Parcel::readBoolVector(std::vector<bool>* val) const { in readBoolVector()
1596 val->resize(size); in readBoolVector()
1604 (*val)[i] = data; in readBoolVector()
1614 status_t Parcel::readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const { in readCharVector()
1615 return readNullableTypedVector(val, &Parcel::readChar); in readCharVector()
1618 status_t Parcel::readCharVector(std::vector<char16_t>* val) const { in readCharVector()
1619 return readTypedVector(val, &Parcel::readChar); in readCharVector()
1623 std::unique_ptr<std::vector<std::unique_ptr<String16>>>* val) const { in readString16Vector()
1624 return readNullableTypedVector(val, &Parcel::readString16); in readString16Vector()
1627 status_t Parcel::readString16Vector(std::vector<String16>* val) const { in readString16Vector()
1628 return readTypedVector(val, &Parcel::readString16); in readString16Vector()
1632 std::unique_ptr<std::vector<std::unique_ptr<std::string>>>* val) const { in readUtf8VectorFromUtf16Vector()
1633 return readNullableTypedVector(val, &Parcel::readUtf8FromUtf16); in readUtf8VectorFromUtf16Vector()
1636 status_t Parcel::readUtf8VectorFromUtf16Vector(std::vector<std::string>* val) const { in readUtf8VectorFromUtf16Vector()
1637 return readTypedVector(val, &Parcel::readUtf8FromUtf16); in readUtf8VectorFromUtf16Vector()
1958 status_t Parcel::readStrongBinder(sp<IBinder>* val) const in readStrongBinder()
1960 status_t status = readNullableStrongBinder(val); in readStrongBinder()
1961 if (status == OK && !val->get()) { in readStrongBinder()
1967 status_t Parcel::readNullableStrongBinder(sp<IBinder>* val) const in readNullableStrongBinder()
1969 return unflattenBinder(val); in readNullableStrongBinder()
1974 sp<IBinder> val; in readStrongBinder() local
1978 readNullableStrongBinder(&val); in readStrongBinder()
1979 return val; in readStrongBinder()
2078 status_t Parcel::readUniqueFileDescriptor(base::unique_fd* val) const in readUniqueFileDescriptor()
2086 val->reset(fcntl(got, F_DUPFD_CLOEXEC, 0)); in readUniqueFileDescriptor()
2088 if (val->get() < 0) { in readUniqueFileDescriptor()
2095 status_t Parcel::readUniqueParcelFileDescriptor(base::unique_fd* val) const in readUniqueParcelFileDescriptor()
2103 val->reset(fcntl(got, F_DUPFD_CLOEXEC, 0)); in readUniqueParcelFileDescriptor()
2105 if (val->get() < 0) { in readUniqueParcelFileDescriptor()
2112 status_t Parcel::readUniqueFileDescriptorVector(std::unique_ptr<std::vector<base::unique_fd>>* val)… in readUniqueFileDescriptorVector()
2113 return readNullableTypedVector(val, &Parcel::readUniqueFileDescriptor); in readUniqueFileDescriptorVector()
2116 status_t Parcel::readUniqueFileDescriptorVector(std::vector<base::unique_fd>* val) const { in readUniqueFileDescriptorVector()
2117 return readTypedVector(val, &Parcel::readUniqueFileDescriptor); in readUniqueFileDescriptorVector()
2157 status_t Parcel::read(FlattenableHelperInterface& val) const in read()
2198 err = val.unflatten(buf, len, fds, fd_count); in read()